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

Benoît Minisini g4mba5 at gmail.com
Tue Jan 1 13:25:30 CET 2019


Le 01/01/2019 à 12:26, Hans Lehmann a écrit :
> 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
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----

Yes, why?

-- 
Benoît Minisini


More information about the User mailing list