News for hackers. Stuff that matters.
Re:TermiC: Terminal C, Interactive C/C++ REPL shell created ... by wavemode on Tuesday August 22, 2023 @09:14AM (#37222232)
This is a cute implementation. Though for anyone wondering, an actually interactive C++ REPL does exist: https://clang.llvm.org/docs/ClangRepl.html

See also: https://github.com/root-project/cling

Re:TermiC: Terminal C, Interactive C/C++ REPL shell created ... by mathisfun123 on Tuesday August 22, 2023 @10:56AM (#37223667)
"Fugayzi, fugazi. It's a whazy. It's a woozie. It's fairy dust. It doesn't exist. It's never landed. It is no matter. It's not on the elemental chart. It's not fucking real.”

recently i've been playing with clang-repl (i don't know anything about cling) and it exists like this^. yea it's there and there are some CI tests that are run and etc but if you think you're going to run real C++ programs through it, you're in for a disappointing day.

i'm not saying it'll never get there - i hope it does!

Re:TermiC: Terminal C, Interactive C/C++ REPL shell created ... by V1ndaar on Tuesday August 22, 2023 @11:17AM (#37223967)
The ROOT interpreter cling (and cint before it) have always been known for being incredibly brittle. Segfaults are _extremely_ common. If you think you can continue your REPL session after most kinds of errors, you're mistaken.

It doesn't help of course that ROOT itself is a horrible mess of massive internal state.

Re:TermiC: Terminal C, Interactive C/C++ REPL shell created ... by mathisfun123 on Tuesday August 22, 2023 @11:30AM (#37224165)
yea i figured as much. clang-repl might be a ground-up reimplementation but i don't really have high hopes. of course it would be nice if C++ had a repl-like environment.