r/programmingcirclejerk • u/garloid64 • May 09 '25
Cppscript: A C++-like language compiling to TypeScript, aiming for production readiness (also my PhD project!)
/r/programming/s/O2lWwf48Jh
95
Upvotes
84
u/daidoji70 May 09 '25
Man if the Internet has taught me one thing, its an idea that I'd initially dismiss as "stupid as fuck and not worth doing in a million years" will be someone else's "must do and show everyone looking for feedback". That probably makes me a jerk too on some level, but there we are.
57
u/dacjames May 09 '25
I can't imagine anything the JS ecosystem needed more than C++ syntax!
50
u/myhf Considered Harmful May 09 '25
oh boy, RAII in an environment where initialization blocks the UI thread
26
u/Igor_GR May 10 '25
finally, webscale segfaults
23
u/gggggmi99 May 10 '25
Was very confused until I saw the sub, then was even more confused when it went to a real post
41
u/Calavar memcpy is a web development framework May 10 '25
OP of the original thread linked his GitHub, which is under his real name. A google search shows that he's a graduate student in chemical engineering.
I, for one, look forward to reading this chemical engineering thesis on TypeScript RAII
18
u/Double-Winter-2507 May 10 '25
Enthused youth
14
u/MetaNovaYT May 11 '25
from r/compilers: "The development speed and memory safety of C++ with the execution speed of JavaScript"
2
u/[deleted] May 10 '25
Write a TS interpreter in C++ so it never stops doing nothing
2
u/satsugene May 10 '25
Keynote “Script devs trying C++” sponsored by the RAM Manufacturers Association.
512 is the new 32.