u/Typical-Medicine9245

Should I make a transpiled language compiler instead of reinventing the wheel?

I want to make my own programming language as a recreational programming exercise. I don't get much time other than weekends and have absolutely no experience of compiler development. I think learning and implementing deep advanced concepts of how they work under the hood would take so long for my purpose. llvm has steep learning curve, qbe doesn't seem to provide as strong optimization as llvm and lack support for some of the architectures.

Reason that most people don't write code in low level languages like C for web and app development choose modern languages instead because of memory management, difficult syntax, lack of modern programming paradigms, etc. but some of those languages suck too. like javascript itself is type unsafe and things break half the time. python use more memory and it's identation based syntax make formatting difficult. Even if I make a great syntax, learn llvm, implement standard library; it might still end up being a toy language and no one would be interested to use it.

Rather than optimizing the compiler for several platforms and maintaining large code base, I should make the coding part easier by utilizing third party libraries and compile the code into C file and let decades of optimisation which has been put into mature C compilers like gcc or clang do the heavy lifting. This way, developers get performance of C along with ease of modern languages. What are your thoughts on this? Is it a good idea?

reddit.com
u/Typical-Medicine9245 — 4 days ago