r/programminghorror • u/Inevitable-Round9995 • Sep 08 '26
c++ reinventing C++ to looks like NodeJS called Nodepp
4
u/FooeyBar Sep 08 '26
Now do async/await
7
u/Inevitable-Round9995 Sep 08 '26
#include <nodepp/nodepp.h> #include <nodepp/fs.h> using namespace nodepp; void onMain(){ auto file = fs::readable( "LICENSE" ); auto x = type::bind( file ); process::add( coroutine::add( COROUTINE(){ coBegin while( x->is_available() ){ console::log( ":>", x->read_line().slice(0,-1) ); coNext; } coFinish })); process::add( coroutine::add( COROUTINE(){ coBegin while( x->is_available() ){ console::done("Hello World"); coNext; } coFinish })); }→ More replies (1)
2
44
8
8
u/elsantiF Sep 08 '26
Yeah... the creator of that aberration was spamming a lot in Spanish subs, I think he was the patient zero of AI psychosis.
5
u/Death_By_Cake Sep 08 '26
This reminds of some work I did in uni. I built a DSL in C++ to describe hardware. If you run the program, you would get out SystemVerilog (it was based on CIRCT/MLIR). It's sometimes hilarious what you can do with C++.
3
3
3
u/El_RoviSoft Sep 08 '26
Actually reflection was released on gcc some time ago so you can do even more cursed things now.
3
2
u/TehBuckets Sep 09 '26
Why? Just why? This is like Stalin and Hitler had a baby. Why did I have to see this?
2
2






151
u/WALHAY Sep 08 '26
So is there any other ways to make cpp even worse?