in the context of a float expression evaluator,
i've been toying with llvm to measure performance ratio against a pure nim pcode solution (expression.nim),
in some cases such ratio exceeds 50,
attached files cover
lexing functionality is supported by nimly
llvm.nim / .h: a basic llvm-10 wrapper expression.nim : pcode expression evaluator expression_llvm.nim same w/llvm funcs.nim: additional funcs -> funcs.so funcs.cpp: same as above in .cpp
Nice!
You might be interested in https://github.com/arnetheduck/nlvm/pull/18 which provides a full JIT for Nim code using LLVM
thankx!,
i sawed the nim-llvm, that's the 'whole thing',
my idea was to build something that being practical is small and easy to understand as a starting point for something bigger