[Gambas-user] News about the new just-in-time compiler

Hans Lehmann hans at gambas-buch.de
Tue Jan 1 12:26:42 CET 2019


Am 29.06.18 um 00:41 schrieb Benoît Minisini:
> Hi,
>
> Here is a few news about the new just-in-compiler...
>
> ...
>
> 6) I introduced a new keyword, UNSAFE. You use it with the FAST keyword.
>
> When a function is declared "FAST UNSAFE", then it is just-in-time 
> compiled, but all the safety checks are removed (null object, division 
> by zero, out of array bounds...).
>
> It allows you to speed up the code a little bit, when you are sure it 
> won't do illegal things.
>
> And if it does anyway, you will have memory corruption and/or 
> segmentation fault.
>
> Of course, the keyword can be used at the class level.
>
> Enjoy!
>
> -- 
> Benoît Minisini

Hello,

short question: Does point 6 still apply?

With kind regards

Hans


More information about the User mailing list