News for hackers. Stuff that matters.
Re:Jupyter C Kernel by zokier on Thursday August 10, 2017 @05:10PM (#14984323)
It would be interesting exercise to compile cells into object files as they are entered and load them dynamically into a persistent process, doing needed linking etc on the fly in-memory. You'd also need to generate a header file from the current in-memory symbol table and implicitly include that in compilation.

That might actually work relatively well for simple cases. But I imagine there would be a ton of problematic edge cases, considering that with C you can end up with all sorts of weird stuff.

Re:Jupyter C Kernel by williamstein on Friday August 11, 2017 @10:14AM (#14989834)
The %cython mode for Sage notebooks (which I wrote in I think 2008??) does precisely that by generating a random-named Python shared object libary and importing it into the runnig Python process after each evaluation. There's a similar (%%cython?) mode for Jupyter notebooks.
Re:Jupyter C Kernel by dgfgfdagasdfgfa on Thursday August 10, 2017 @06:35PM (#14984992)
If you protect it appropriately, you've basically re-implemented exec.