4 ms·
From the README: The approach is surprisingly simple: for each line of code you enter, we compile a shared object in the background. If the compilation succeed
by chasingsparks 17y ago
From the README:
The approach is surprisingly simple: for each line of code you enter, we compile a shared object in the background. If the compilation succeeds, the object is loaded into a child process via dlopen(). Parsing of C #includes uses gccxml. (Unfortunately, I can't figure out how to use gccxml to parse the user's input, and due to the complexity of parsing C the input parser is currently hacky and heuristic.)
While I agree that this may be an elegant (simple) way of doing things, how responsive is the compilation process for the RE portion of REPL? Even a one second wait time might seem tedious.
- ivanstojic 17y agoI've used C-Repl quite comfortably for smaller hacks and tests. While it's not a true REPL, it can certainly help along for simple use cases.
- mbrubeck 17y agoOn my four-year-old "Pentium D" workstation, it's not quite instantaneous but close enough for interactive work.
- chasingsparks 17y agoThanks for the feedback. Now that I'm home, I'm going to install.