Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Live" code and rapid prototyping with C++ and LLVM JIT?

You might have already seen Bret Victor's "live" JS IDE, or some of the alternative implementations it inspired, extending to other languages, but still keeping it to VM based ones.

Yesterday however, I stumbled upon the same concept, applied in good old C++, thanks to LLVM. Still a very early and immature implementation, but with plenty of potential.

I was really curious of the implementation however the author has and might not release it to the open.

So my question is if anyone is aware of a resource on how to implement similar functionality, I mean the almost instantaneous compilation and the two connection, giving realtime feedback of the code, allowing the visual part to change or even generate and preview additional code?

like image 957
dtech Avatar asked Sep 16 '12 09:09

dtech


1 Answers

The clang-based C/C++ interpreter called "Cling" may be relevant piece of code. See how it can be used to build GUI in real time: http://www.youtube.com/watch?v=BrjV1ZgYbbA

like image 180
arrowd Avatar answered Nov 07 '22 23:11

arrowd