Online LLVM-based C++ REPL
fiddle.jyt.io
Online LLVM-based C++ REPL
1–10 of 19 posts
Re: Online LLVM-based C++ REPL
#2I played around with it a little.
It doesn't crash on errors, just prints a helful error message.
Time for one more attempt at teaching my son programming, with c++ this time !
previous discussion with more info: https://news.ycombinator.com/item?id=11478301
Re: Online LLVM-based C++ REPL
#3http://fiddle.jyt.io/github/9a340a40988f79264c3686a90d2d80e3
Re: Online LLVM-based C++ REPL
#4Re: Online LLVM-based C++ REPL
#5It is a great idea in general and a technical feat in itself. It is just that C++ is not the best language for that type of programming. It may work OK for toy to lower-middle size of projects, but for big projects compilation time starts to pile up pretty quickly. One reason for that is C legacy of header files that are recompiled for each and every translation unit (yes there are PCH but they are unwieldy and requi…
Re: Online LLVM-based C++ REPL
#6It is a great idea in general and a technical feat in itself. It is just that C++ is not the best language for that type of programming. It may work OK for toy to lower-middle size of projects, but for big projects compilation time starts to pile up pretty quickly. One reason for that is C legacy of header files that are recompiled for each and every translation unit (yes there are PCH but they are unwieldy and requi…
This is small, probably supports most things.
This can be used to show small hacks about programming(c++ has many of them) and share with others. The developer can experiment in the browser.
Re: Online LLVM-based C++ REPL
#7It is a great idea in general and a technical feat in itself. It is just that C++ is not the best language for that type of programming. It may work OK for toy to lower-middle size of projects, but for big projects compilation time starts to pile up pretty quickly. One reason for that is C legacy of header files that are recompiled for each and every translation unit (yes there are PCH but they are unwieldy and requi…
cern uses a c interpreter for real. This is just bringing it to a wider audience with a friendlier interface.
i wonder if it works with cuda... http://llvm.org/docs/CompileCudaWithLLVM.html
Re: Online LLVM-based C++ REPL
#8Very nice ! I played around with it a little. It doesn't crash on errors, just prints a helful error message. Time for one more attempt at teaching my son programming, with c++ this time ! previous discussion with more info: https://news.ycombinator.com/item?id=11478301
Re: Online LLVM-based C++ REPL
#9It is a great idea in general and a technical feat in itself. It is just that C++ is not the best language for that type of programming. It may work OK for toy to lower-middle size of projects, but for big projects compilation time starts to pile up pretty quickly. One reason for that is C legacy of header files that are recompiled for each and every translation unit (yes there are PCH but they are unwieldy and requi…
Hopefully C++20 might get proper modules, until then we only have VC++2015 draft implementation to play with.
Re: Online LLVM-based C++ REPL
#10Earlier quoted context omitted.
Hopefully C++20 might get proper modules, until then we only have VC++2015 draft implementation to play with.
Actually, clang has had modules support (and one of the alternative C++ modules proposals for C++20) for quite a while now.
It only got production quality for Objective-C and Swift interoperability.
Also it relied on an external description files, instead of extending C++.