Page 1 of 1

JIT-Compiler for subset of PureBasic (scripting)

Posted: Wed Jun 25, 2003 1:30 pm
by Eastgrove
Hello!

Well, the subject says it all really.

Wouldn't it be usefull with the possibility of writing scripts for your game/tool/whatever with a subset of PureBasic?

Could probably be done with a cut down version of the standard PB-compiler. That would then be optionally included in the exe as a JIT (Just In Time) compiler for scripts.

This would be usefull for more rapid development and also give exellent support for MOD-ing of your application.

Fred, what do you think? 8)

Posted: Wed Jun 25, 2003 3:51 pm
by Fred
I don't like JIT :).

Posted: Wed Jun 25, 2003 5:25 pm
by Eastgrove
Ok. The JIT thing with a PB-subset was just an idea for how to get good scripting-support.

I suppose the real question is if you're thinking of adding some sort of scripting?

Otherwise i suppose it would be possible to add as a UserLib using one of many avalible solutions. But i still think using a subset of PB would be really nifty. ;) And easy for people to learn as well.

Re.

Posted: Wed Jun 25, 2003 7:13 pm
by dbellis
you could always make ur own scripting system and control it through ini files yes it would be easy for newcommers to learn but they wont learn how to realy use PB that way to make a language grow is for ppl to use all the power and show it off ;)

any way i have a ini dll some were if any one needs it


read inifile name$,section$

if name$="blah" gosub blah Commands
CreateParticle=CreateParticleEmitter(#ParticleEmitter, Width, Height, Depth, Type, [, x, y, z])
return

thats only pusedo code but if u put some effet into it u could have wot u want might be a bit slow but it would work