News for hackers. Stuff that matters.
Re:Swift as a C Language REPL by pjmlp on Thursday January 02, 2020 @10:03AM (#21935863)
Compile your executable with debug info, and then make use of gdb expressions.

https://sourceware.org/gdb/current/onlinedocs/gdb/Expression...

It is not fully featured REPL, don't expect to use it to create stuff on the fly, it is more to query and call existing code.

For a proper REPL, check one of the listed interpreters.

Re:Swift as a C Language REPL by rowanG077 on Saturday January 04, 2020 @05:17PM (#21957990)
So what you are saying that it's not actually a C REPL. It's a GDB expression REPL which is very different. What was the original point of your comment?