Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:39 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBasic Size

Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 01:33am 02 Mar 2012
Copy link to clipboard 
Print this post

Just out of interest, yesterday I counted the lines of code in MMBasic. Overall it is just over 46,000 lines of code and comments (excluding blank lines). A Google search reveals that that is about the same size as the King James bible.

Even more interesting, the core of the language is just 4,500 lines. This is the interpreter and the standard BASIC commands and functions like PRINT, LIST, etc.

Most of the code (over 40,000 lines) is devoted to special Maximite functions like USB, the full screen editor, I2C, serial comms, etc.

One reason why I did this count is because I am helping a multinational manufacturer to integrate MMBasic into a piece of analytical equipment. This will enable users to write programs on the machine that can interpret the data being produced by the machine and present it in a more human friendly format. So, MMBasic is moving beyond the humble Maximite.

Just thought that you might be interested,
Geoff
Geoff Graham - http://geoffg.net
 
crackerjack

Senior Member

Joined: 11/07/2011
Location: Australia
Posts: 164
Posted: 03:41am 02 Mar 2012
Copy link to clipboard 
Print this post

Fantastic news that MMBasic is branching out onto other hardware platforms Geoff. I have read somewhere (how reliable the source, who can say?) that embedded software costs around $15 to $40 dollars per line. That's quite a range and I guess the lower end would be fairly poor in quality compared to the higher end. It does however translate to a cost for MMBasic of between $690,000.00 and $1,840,000.00 (if such a value could be really calculated - please remember this is just meant to be a thought-provoking response to the original post, not a precise economical analysis). Of course the quality of MMBasic (from all contributors) is on the high-end of the scale as far as I can tell.

All in all, to me, MMBasic is priceless...
 
marcwolf

Senior Member

Joined: 08/06/2009
Location: Australia
Posts: 119
Posted: 06:53am 02 Mar 2012
Copy link to clipboard 
Print this post

Congrats.
MMBasic is a really powerful language and would be invaluable in process control and data aquistion systems. To beable do to real time filtering on incoming streams.

Looking forward to seeing what equipment it appear on

Washing Machine
If Smell(Socks) > 5 then
Call Heavy_Wash(50)
Else
Call Light_Wash(10)
End If


Coding Coding Coding..
Keep those keyboards coding..
RAW CODE!!!!!
 
djuqa

Guru

Joined: 23/11/2011
Location: Australia
Posts: 447
Posted: 06:55am 02 Mar 2012
Copy link to clipboard 
Print this post

No I hope it is for Brewing Equipment

[code]For X = ColdBeer to Drink

[/code]Edited by djuqa 2012-03-03
VK4MU MicroController Units

 
MMFast
Newbie

Joined: 27/02/2012
Location: Singapore
Posts: 1
Posted: 11:08am 02 Mar 2012
Copy link to clipboard 
Print this post

  crackerjack said   Fantastic news that MMBasic is branching out onto other hardware platforms Geoff. I have read somewhere (how reliable the source, who can say?) that embedded software costs around $15 to $40 dollars per line. That's quite a range and I guess the lower end would be fairly poor in quality compared to the higher end. It does however translate to a cost for MMBasic of between $690,000.00 and $1,840,000.00 (if such a value could be really calculated - please remember this is just meant to be a thought-provoking response to the original post, not a precise economical analysis). Of course the quality of MMBasic (from all contributors) is on the high-end of the scale as far as I can tell.

All in all, to me, MMBasic is priceless...


Looks like Geoff is far more effective than the average coder. Largely written in 8 days, lets say 20 hours per day, 160 hours, at say, lets be generous, $100 per hour, thats $16000 for 46000 lines, that puts Geoff at about 0.35c a line.

Even if the 8 days didnt include all the design work and working through the original basic version written by a farmers wife somewhere in the US, call it $1 per line designed and delivered. Even at $2 per line, still a bargain.

Great to hear it is finding a home in a real world application. MMBasic will become pretty big I would predict.

Wizardry! :)Edited by MMFast 2012-03-03
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 11:18pm 02 Mar 2012
Copy link to clipboard 
Print this post

What was written in the first cut was just the minimal core interpreter. About 3,000 lines if I remember correctly. Over the past 18 months it has filled out to what you see today and that includes code contributed by people such as Gerard Sexton.

So, sorry. No superman here.

Geoff
Geoff Graham - http://geoffg.net
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024