News for hackers. Stuff that matters.
Re:TypeScript to C++ by andrejus on Thursday April 02, 2020 @06:50AM (#22757723)
Author of the second to last compiler -- although simple in scope, it was one of the more exciting pieces of our undergrad coursework projects to work through (translating a language into another language).

Implementing lexical analysis and parsing manually as opposed to using lex/yacc felt much more valuable to understanding the module, which was very useful for the exam. Definitely recommend the challenge!

Re:TypeScript to C++ by steerablesafe on Thursday April 02, 2020 @03:41AM (#22756987)
Notable that the first three are TypeScript to LLVM, they are aimed for AOT compilation of TypeScript instead of source translation to C/C++. Together with a good FFI this could work better than source translation.

The compilers with C++ target on that list don't "do a lot more". The others are not directly comparable.

Re:TypeScript to C++ by maxgraey on Thursday April 02, 2020 @05:42AM (#22757467)
yakir22/ts2cpp compile to C++, has GC, FFI and etc. Canvas example: https://github.com/yakir22/ts2cpp/blob/master/TestScripts/Gr...
Re:TypeScript to C++ by steerablesafe on Thursday April 02, 2020 @06:31AM (#22757648)
I stand corrected. The readme gave the impression of a much less mature project.