JIT-Compiler for subset of PureBasic (scripting)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Eastgrove
New User
New User
Posts: 6
Joined: Thu Jun 19, 2003 1:10 am
Location: Östersund, Sweden.

JIT-Compiler for subset of PureBasic (scripting)

Post 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)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

I don't like JIT :).
Eastgrove
New User
New User
Posts: 6
Joined: Thu Jun 19, 2003 1:10 am
Location: Östersund, Sweden.

Post 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.
dbellis
User
User
Posts: 10
Joined: Sun Jun 22, 2003 4:42 am

Re.

Post 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
Codeng Makes Your Girl Friends Hate You ;)
Post Reply