So now that AsmJit is gone , I had a new idea for a project and I wanted
your opinion on this if you think it will be useful for the community, I
call it WarpSpeed.

I was thinking it would still be cool to have some kind of library that
will help us boost the speed of pharo . So I was thinking about a C
inliner  which is far easier than an Assembly inliner (see AsmJIT)  I also
found TinyC

http://bellard.org/tcc/

 which is as you guessed a tiny c compiler 100kbs in size which i can
include with a pharo image to allow me to dynamically compile inlined C
code inside the pharo image so even pharo users without a C compiler
installed can benefit from it .

That means that if something does not perform as fast as you want you could
mix C code with pharo code , I am thinking passing the C source code as a
string or even having the C code in a separate file, and then dynamically
call the TinyC compiler, compile it to shared library and load if via UFFI
back to pharo. TinyC is very fast so compilation of the code should be as
fast if not faster than compiling pharo code.

Looks easy enough to do for a small project by me with the condition there
are people really interested into something like this. TinyC is licensed as
LGPL but I can make it fall back to other compilers as well if ones want to
close the source.

How it sounds as an idea ?

Reply via email to