Re: [Gambas-user] New JIT Compiler, Trying.... TER

2012-05-23 Thread Emil Lenngren
Ok, so try to replace the JIT_load method in main/gbx/gbx_jit.c with this one: bool JIT_load(){ static bool loaded = FALSE; static bool available = TRUE; if (loaded) return TRUE; if (!available) return FALSE; COMPONENT_load(COMPONENT_create("gb.jit")); LIBRARY_get_interface_by_name("gb.jit", JI

Re: [Gambas-user] New JIT Compiler, Trying.... TER

2012-05-23 Thread Emil Lenngren
Gambas scripts are runned by the gbs3 scripter, that takes your script, makes a class of it, take the code outside all the functions and put it in a Main method. It is then run normally by first compiling it with gbc3 and then running it with gbx3 .. kind of .. ;) See source code here: http://gamba

Re: [Gambas-user] New JIT Compiler, Trying.... TER

2012-05-23 Thread Ru Vuott
> Try to run the benchmark > http://gambasdoc.org/help/doc/benchmark/polynom > and ...I don't understand that strange: End Dim I As Integer For I = 1 To 10 Print Test(0.2) Next --

Re: [Gambas-user] New JIT Compiler, Trying.... TER

2012-05-23 Thread Emil Lenngren
As long as you have the latest installed version of gbx3, you should be fine. Try to run the benchmark http://gambasdoc.org/help/doc/benchmark/polynom and add a line 'Fast' on the line after #!/usr/bin/env gbs3 If your time is < 10 seconds, the jit i

Re: [Gambas-user] New JIT Compiler, Trying.... TER

2012-05-23 Thread Benoît Minisini
Le 24/05/2012 02:24, Ru Vuott a écrit : > >> Well now bg.jit.so exists ! >> > > I tried your code, but it doesn't work, and CPU is at 100%. > > Maybe, I must re-updated gambas3 from ./reconf etc ? > CPU must be at 100% (on one core) in both case. The JIT compiled function is just faster. Just tr

Re: [Gambas-user] New JIT Compiler, Trying.... TER

2012-05-23 Thread Ru Vuott
> Well now bg.jit.so exists ! > I tried your code, but it doesn't work, and CPU is at 100%. Maybe, I must re-updated gambas3 from ./reconf etc ? -- Live Security Virtual Conference Exclusive live event will cover all t

Re: [Gambas-user] New JIT Compiler, Trying.... TER

2012-05-23 Thread Ru Vuott
Well now bg.jit.so exists ! -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include end