digitalmars.D - dmd as a library for scripting/JIT?
- dennis luehring (4/4) Sep 14 2018 i've got user defined flow charts in my C++ application that calling
- Neia Neutuladh (5/10) Sep 14 2018 You could potentially embed LDC and LLVM as a library to do that.
- Stefan Koch (8/13) Sep 14 2018 DMD is currently not reenterant.
i've got user defined flow charts in my C++ application that calling C/C++ Code - could be possible to embedd dmd as a library, generate D code out of my flow charts and execute the "compiled" code directly without doing file io or dmd.exe runs to create dlls that i hot reload?
Sep 14 2018
On Friday, 14 September 2018 at 16:02:36 UTC, dennis luehring wrote:i've got user defined flow charts in my C++ application that calling C/C++ Code - could be possible to embedd dmd as a library, generate D code out of my flow charts and execute the "compiled" code directly without doing file io or dmd.exe runs to create dlls that i hot reload?You could potentially embed LDC and LLVM as a library to do that. I don't think it's set up to emit LLVM IR in-memory at the moment, though.
Sep 14 2018
On Friday, 14 September 2018 at 16:02:36 UTC, dennis luehring wrote:i've got user defined flow charts in my C++ application that calling C/C++ Code - could be possible to embedd dmd as a library, generate D code out of my flow charts and execute the "compiled" code directly without doing file io or dmd.exe runs to create dlls that i hot reload?DMD is currently not reenterant. You have better chances using libtcc [1] for such a purpose. Cheers, Stefan [1] http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27.tar.bz2
Sep 14 2018