Hi, i just released MBasic V1.2 today.

So what such primitive console basic have to do with asm ? Well, actually everything because it was done with mr. hutch's masm32 distrib.

So, if any of you peeps have luminous ideas about what a basic interpreter/compiler should be and want to help your humble servant then... Let's participate for a change, we will then share happily and try to find The Question together (since we already know the answer).

MBasic is available here:

http://membres.lycos.fr/hitchhikr/

or more precisely:

http://membres.lycos.fr/hitchhikr/MBasic.html

Sourcecode is of course included in the package for your entire satisfaction, my Lord.

Don't think i'm ubiquitous, i'm just wandering around.

Regards,

h.

Note: Don't ask me to make a compiler out of this mess, it's already on my schedule.
Posted on 2002-11-15 16:08:06 by hitchhikr
> Print "Nice!"

:alright:
Posted on 2002-11-15 17:19:42 by CYDONIA
Pitman was very funny (and hard)! Good job!
Posted on 2002-11-16 04:11:52 by Delight
Hitch,

This looks like a piece of genius, compliments on a well done idea. Hope you keep working on it.

Regards,

hutch@movsd.com
Posted on 2002-11-16 06:00:57 by hutch--
I know i speak bad england but...

What do you mean by:

"Hope you keep working on it." ?

Something like: "That's fine kid but you're pad malone" ?

Or

"I'm waiting for something more complete and descent to grant you, my dear friend, with some peaceful advices and interesting comments" ?


Tell me.

h.
Posted on 2002-11-16 07:55:33 by hitchhikr
Nothing so sinister hitch, I have just wasted a few hours playing pitman and I like the idea. I have never seen a finished compiler or assembler, the authors just keep working on them forever and I have no doubt you are no exception. I just offered some encouragement. :alright:

Regards,

hutch@movsd.com
Posted on 2002-11-16 10:24:45 by hutch--
Hitch,

While I am at it, if you have time, would you put the two procedures Float2String and String2Float into 2 seperate modules in normal library format as I do not have a matching pair like that in the MASM32 library. I thinki a lot of people would find them useful.

Regards,

hutch@movsd.com
Posted on 2002-11-16 10:36:23 by hutch--
Surely it is far from the end-that-will-never-occurs-anyway but from this, i got several ways to go on.

Let me expose them now:

(Note that i'll remove the console sooner or later and put a customized version of masmed for an ide when adding the compiler).

1. I add directX and/or openGL abilities and turns it into a gfx dedicated basic together with megasuper3dpitman 2002 ?

2. I focus on objects and it will smells furiously like a vb clone ?

3. I create a complete operating system with this basic as console like in old 8 bits computer but for nowadays computers ?

4. I go back to sleep ?

I'm still wondering...


h.
Posted on 2002-11-16 10:43:52 by hitchhikr
hitchhikr, don't goto sleep, there are errors to fix... :grin:

I run the benchmark program, then interpreter steals first key:
MBasic v1.2

Written by Franck Charlet

Ready.
>load benchmark
Ready.
>run
Testing 500000 floating points operations...
Result: 0.16 seconds (value: 405055.08749449296)
Testing 500000 floating points functions...
Result: 0.361 seconds (value: 0.744876367175211)
Testing 500000 integer operations...
Result: 0.43 seconds (value: 139)
Testing 500000 integer functions...
Result: 0.231 seconds (value: 50000000)
Testing 500000 string functions...
Result: 0.551 seconds (value: THIS IS A TEST)
Creating 1000 random numbers from 1 to 100...
Sorting...
Result: 0.23 seconds
Ready.
>un
I typed run, but got un. :)

Nice work, I like your style.
Posted on 2002-11-16 11:00:23 by bitRAKE
:grin:

Yea i just saw this one

Should'nt be hard to spot.

I write this right down in my little black book.


h.
Posted on 2002-11-16 11:08:33 by hitchhikr
:eek:

Btw what kinda beast computer do you own ?
Posted on 2002-11-16 11:09:37 by hitchhikr
It's just a 1.3Ghz Athlon TB. Maybe you should list milliseconds. :grin: I'll upgrade to an Athlon XP when the maximum speed my motherboard supports is under $100 (i.e. any day now :) ).
Posted on 2002-11-16 11:56:01 by bitRAKE

Surely it is far from the end-that-will-never-occurs-anyway but from this, i got several ways to go on.

Let me expose them now:

(Note that i'll remove the console sooner or later and put a customized version of masmed for an ide when adding the compiler).

1. I add directX and/or openGL abilities and turns it into a gfx dedicated basic together with megasuper3dpitman 2002 ?

2. I focus on objects and it will smells furiously like a vb clone ?

3. I create a complete operating system with this basic as console like in old 8 bits computer but for nowadays computers ?

4. I go back to sleep ?

I'm still wondering...


h.


I choose 1. Maybe 3, but really today's users don't look like the programmer-wannabes they used to.

Posted on 2002-11-17 00:10:14 by AmkG
>While I am at it, if you have time, would you put the two procedures Float2String >and String2Float into 2 seperate modules in normal library format as I do not have >a matching pair like that in the MASM32 library. I thinki a lot of people would find >them useful.

You must be joking or just getting old.

They are coming right away from MASM32 lib.

:grin:

h.
Posted on 2002-11-18 06:25:05 by hitchhikr
Version 1.3 released on a rainy day.

h.
Posted on 2002-12-07 09:07:36 by hitchhikr
sorry for resurrecting this thread but that is awesome.

I would choose 1 and 3, make it a simple editbox on a win32 client (instead of console), detect the enter key so the mode is still immediate. Roll your own graphics modes/palette changers... like:

graphics 8 could open up a simple 800x600 GDI window using desktop colordepth, no titlebar
fade bmp 5 to 1 would crossfade two palettes from two bitmaps

check out the old STOS and AMOS commands, those would be prefect in my opinion.

please keep up the good work.
Posted on 2003-04-17 03:21:50 by drarem
but it's still cool! i'm a fan of your work :)

keep up!
Posted on 2003-04-27 10:05:51 by gaidar