When creating a language that transpiles into another which then compiles to machine code, what target language would be your top pick?

I developed a BASIC-inspired language and am now exploring a lean alternative to bulky C/C++ compilers for generating executables. What efficient target language do you recommend?

hey, i been playin with rust lately. it’s pretty efficient for exes, even if lifetimes get a bit tricky. what do u think bout its steep learnin curve? curious if it fits ur needs or if another route might work better

In my view, leveraging LLVM as the intermediate target language offers significant advantages. It provides a robust framework for optimization that can help maintain execution efficiency while keeping the compiler modular and extensible. LLVM’s extensive toolchain simplifies targeting multiple architectures, making it easier to generate lean executables. This approach not only handles low-level optimizations well but also benefits from a large community and ecosystem, which can accelerate development and troubleshooting when working with custom language implementations.

hey, have u considered zig? its low-level, kinda like c but offers neat modern features which may help keep those exes lean. what is ur take on its simplicity and cross-platform nature? any pitfalls u noticed?

hey, u might wanna try nim. it compiles fast into c code, gives low-level perf, and is less heavy than rust. could be a solid pick for lean exes.