DEV Community

Nik
Nik

Posted on

I need some suggestions for my programming language

So I am planning to create a programming language in c++, I need some good suggestion on the following topics

  1. How good you should be in c++
  2. How to create a good lexer
  3. How to make it fast and powerful

Suggestions of any books for these topics would help

Top comments (4)

Collapse
 
sakethkowtha profile image
sakethk • Edited

Hey @niketjohn i understand your passion but before jumping into required tech skills. We have to come up with the question Why ?. Why we are building ?. Have you feel the existing languages are not useful for your use cases ? or for learning purpose ?

If it is for your learning purpose have a look on some concepts and topics like compiler design, infix, posix, token parsing and lexical analysis etc... Also have a look on tools like lex.

Collapse
 
nuclearzzet profile image
Nik • Edited

Hi, @sakethkowtha I want to create a programming language because python and rust python is easy but slow and rust is super fast but a bit hard so I want to create the takes the good things of those programming language and avoid the bad things, I will be first creating one to learn more about it then I will proceed with Chytrids.

Collapse
 
sakethkowtha profile image
sakethk • Edited

There are lot of things you need to think buddy. Till 90's programming language is used for multiple purposes example C++, Java used in desktop apps, enterprise apps, web servers, OS development and for Data base connects. But now the scenario is different mostly Java is using for REST API's and android, Javascript for web dev, Obj-c / Swift for IOS development, Python for ML and data-science, R for data analysis etc... coming to your statement Rust usage purpose is different and python purpose is different. I am not discouraging you but saying that choose problem area like web / os / network / app dev / ML/ game dev build in that area for that problem.

Collapse
 
sammysheep profile image
Sam Shepard

Have you considered just contributing to a relatively new language that shares your goals? You'd get more bang for your effort and probably learn a lot from others.

In order of popularity you could look at Julia, Nim, and Vale.