3 ms·
Learn the mechanics of compiler construction first - that'll inform everything about your language, and is a prerequisite to actually building something other p
by nostrademons 8y ago
Learn the mechanics of compiler construction first - that'll inform everything about your language, and is a prerequisite to actually building something other people can use. I'd recommend The Dragon Book [1], SICP [2], and Modern Compiler Implementation in ML [3] for this.
After that, it's a question of where you want to go with your language, and what distinguishing features you'd like it to have relative to other languages. Languages which just change some syntax and keywords but otherwise look like C are common, but they tend not to get usage beyond their creators. Much of the academic research lately is about type systems (TAPL has already been mentioned) - there's research into dependent types, effect typing, total functional programming, linear types already made it into Rust's borrow checker, etc.
However, many of the worst problems in industry - dependencies, versioning, smoothly migrating from a prototype to robust production code, code navigation, security, parallelization & distribution, the memory hierarchy - have gotten relatively little attention in academic research, and are desperately awaiting solutions. If you have some industry experience, it may be worth trying to imagine how you might fix these problems if you were allowed to change the programming language at will.
[1] https://en.wikipedia.org/wiki/Compilers:_Principles,_Techniques,_and_Tools https://en.wikipedia.org/wiki/Compilers:_Principles,_Techniq...
[2] http://web.mit.edu/alexmv/6.037/sicp.pdf http://web.mit.edu/alexmv/6.037/sicp.pdf
[3] https://www.amazon.com/Modern-Compiler-Implementation-Andrew-Appel/dp/0521607647 https://www.amazon.com/Modern-Compiler-Implementation-Andrew...
- earenndil 8y ago> Languages which just change some syntax and keywords but otherwise look like C are common, but they tend not to get usage beyond their creators Considering c++ is one of the most widely-used languages out there, I would question this.
- nostrademons 8y agoC++ has a bunch of new semantics on top of C - classes, access modifiers, virtual functions, constructors/destructors, operator overloading, different casting rules, exceptions, namespaces, templates, etc. People who know both of them well consider them very distinct languages, because the programming style you use in a C++ program is very different from a C program.