Here's the challenge (1st post edited) - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: QbasicNews.Com (http://qbasicnews.com/newforum/forum-3.html) +--- Forum: Challenges (http://qbasicnews.com/newforum/forum-10.html) +--- Thread: Here's the challenge (1st post edited) (/thread-4269.html) |
Here's the challenge (1st post edited) - QbGuru - 07-07-2004 Script Engine Challenge. (edited this to be easier to understand) Porpuse: To code script engine in qbasic that can run several scripts at the same time (aka "multitask") Ground Rules:
Points: Points total 100 + Bunus Speed - 0 ... 20 Stability -0 ... 25 Easy to use -0 ... 15 Size -0 ... 5 Power (how many scrpits, variables, For - Next, If -Then cycles and such is able to handle) -0 ... 30 Cleannes of the code -0 ... 5 Bonus: Depending on a feature. For eatch 0 ... 5 (on extra cases 0 ... 20) Re: Here's the challenge (should be hard enough) - Zack - 07-07-2004 Quote:To make a script engine what would be capable of running several scripts at the same time.*Cough* Multitasking in QB? Errr...no. And that is really the only definition of "at the same time" in programming terms. Here's the challenge (1st post edited) - red_Marvin - 07-07-2004 must it be able to do nested if's/for's? if so how many? or is stuff like that just for bonus points? Edit: When must it be finished? Here's the challenge (1st post edited) - na_th_an - 07-07-2004 It can be done. It's not harder than running a single task. I just don't have the time But I can share my ideas with those who have it Here's the challenge (1st post edited) - Frobozz - 07-07-2004 You know... Gimi (gui made with QB) is basically a program that runs multiple scripts. So could I enter that (even though I didn't make it) and win? On a more serious note this sounds like a fun challenge. A few questions do pop up though. 1) Do I have to process the scripts as strings or can I convert them to bytecode and process that each cycle? 2) Does it have to support graphics? 3) Does it need to have expression handling? This is probably going to be yes. Here's the challenge (1st post edited) - Z!re - 07-08-2004 http://www.Novix.tk Novix Script v5.x: Supports up to 255 scripts running "at the same time" (alhough it's painfully slow with that many, poor QB) It has bytecoded scripts and custom variables, no need to predefine. With v2.5.0.4 it will also have: Memory allocation up to: TotalMemory+FreeDiskSpace of memory for your program. VESA SVGA Graphics Hopefully, by v2.5.0.5 it will have: A nice looking GUI, programmed in NS5x (The script language) And if everything works out fine, in later versions (lot later) it might even have network and some internet support (Still looking into it, having problems with routers, and firewalls, meeeh) Example of a NS5x program: Code: %set myvar, 100 //set integer myvar to 100 This is not an entry, just showing it can be done. Here's the challenge (1st post edited) - jatos - 07-08-2004 Just don't try what I am, unless you want to have a well interestig time. Making a scripts which runs most commands through calls abs, but few are filtered to make it work correctly. Here's the challenge (1st post edited) - QbGuru - 07-08-2004 Hya, Yeah "multitasking" is what I meant. And no FroBozz you can't put other people's work. I think It certanly MUST have commands what I said before, but every other command and possabilitie would be for extra points. 1) It can Support graphics -yes, but doesn't have to (extra points) 2) It have to process scripts AS scripts 3) Yes, Expression handling is a MUST 4) It should be able to handle at least one FOR...NEXT cycle inside another, (more would be for more points) 5) Finishing date -late say one month from today 12th July 2004. It would be enought time. Also who would like to be a referee (I'd like to be, but I want to compete also) Who would like to take a part in it just send a private message to me, or write here in the forum. Points total 100 + Bunus: Speed - 0 ... 20 Stability -0 ... 25 Easy to use -0 ... 15 Size -0 ... 5 Power (how many scrpits, variables, For - Next, If -Then cycles and such is able to handle) -0 ... 30 Cleannes of the code -0 ... 5 Bonus: Depending on a feature. For eatch 0 ... 5 (on extra cases 0 ... 20) Well anyone who have better ideas for rules and such please write here. Okay... Let it begin Hy - QbGuru - 07-09-2004 Progress reposrt of my script lang. Code: Rem QBGuru's Script engine demo. Made for Script lang challange. You can define as meny variables of String or Integer type as you desire. Only limit is memory. With Let statament you can either assign values like in the deme, or calculate different values like: Code: Dim Value% as Integer I'm not kidding, it's true. I'll post demo soon (as soon as Print statament is finished) :wink: Here's the challenge (1st post edited) - na_th_an - 07-09-2004 Well, now that you have that interpreter working you can get the multi tasking so easily, just ... well, I better don't ruin the compo To me, the most difficult task in this compo is having the parser/interpreter working. The multitasking part is somewhat straight-forward. |