473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Release: BASIC compiler and VM in Javascript

Hullo all.

A while back I wrote a BASIC compiler and VM in Javascript as a learning
project. As happens too often, my life got too busy to do anything with it.

Rather that sit on it any longer, I hereby pass it along to everyone as
a gift. Someone may find it useful to learn from.

My coding has gotten much better since then, but if there are any comments
on the code I'm open to hearing them.

http://mopedepot.com/jjs/mote/

Dec 6 '07 #1
13 1329
On Thu, 06 Dec 2007 07:00:31 +0000, Jeremy J Starcher wrote:
>
Hullo all.

A while back I wrote a BASIC compiler and VM in Javascript as a learning
project. As happens too often, my life got too busy to do anything with it.
Ignore this post. Meant to make it a top-level post. Not quite sure
where I went wrong.
Dec 6 '07 #2
Ignore this post. Meant to make it a top-level post. Not quite sure
where I went wrong.
OK -- I feel like a dolt already. Ignore the ignore. Sorry.
*Embarrassed and rather sheepish grin*
Dec 6 '07 #3
Ignore this post. Meant to make it a top-level post. Not quite sure
where I went wrong.
Amazing how dense I can be, misreading my own screen.

Please ignore that ignore.

Apologies.
Dec 6 '07 #4
rf

"Jeremy J Starcher" <r3***@yahoo.spam.me.not.comwrote in message
news:pa****************************@yahoo.spam.me. not.com...
>Ignore this post. Meant to make it a top-level post. Not quite sure
where I went wrong.

Amazing how dense I can be, misreading my own screen.

Please ignore that ignore.
Pan playing up again?

--
Richard.
Dec 6 '07 #5
On Dec 6, 3:25 am, Jeremy J Starcher <r3...@yahoo.spam.me.not.com>
wrote:
Ignore this post. Meant to make it a top-level post. Not quite sure
where I went wrong.

Amazing how dense I can be, misreading my own screen.

Please ignore that ignore.

Apologies.
So do you want somebody to look at it or not? I assumed yes and
clicked your "see it in action" link. I looked at the source of the
page and it is a disaster. No opening HTML tag. XHTML-style tags
with an HTML strict doctype, plus things like this:

<script src="tools/tools.js" language="javascript1.2" type="text/
javascript">
</script>

<script type="text/javascript">
//<![CDATA[

<a href="javascript:changeSize('dialog_content',1)">

<form name="tab1_form" method="post" action="javascript:void(0)"
id="tab1_form">

I would find a competent developer to re-do the site before you flood
newsgroups with additional ads.
Dec 6 '07 #6
David Mark said the following on 12/6/2007 5:31 AM:

<snip>
I would find a competent developer to re-do the site before you flood
newsgroups with additional ads.
"flood newsgroups with additional ads"? Isn't that a wee bit harsh?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 6 '07 #7
On Dec 6, 6:51 am, Randy Webb <HikksNotAtH...@aol.comwrote:
David Mark said the following on 12/6/2007 5:31 AM:

<snip>
I would find a competent developer to re-do the site before you flood
newsgroups with additional ads.

"flood newsgroups with additional ads"? Isn't that a wee bit harsh?
I was half-jokingly referring to the half-dozen posts that started
this thread.
Dec 6 '07 #8
Response to David Mark <dm***********@gmail.com>:
I was half-jokingly referring to the half-dozen posts that started
this thread.
Wouldn't that be quater-dozen? ; )

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Dec 7 '07 #9
On Thu, 06 Dec 2007 08:33:29 +0000, rf wrote:
>
"Jeremy J Starcher" <r3***@yahoo.spam.me.not.comwrote in message
news:pa****************************@yahoo.spam.me. not.com...
>>Ignore this post. Meant to make it a top-level post. Not quite sure
where I went wrong.

Amazing how dense I can be, misreading my own screen.

Please ignore that ignore.

Pan playing up again?
As much as I'd like to blame it on Pan, I must confess to posting while
tired. The fact that its been a year or so since I started a thread
just helped.
Dec 7 '07 #10
Lets see if I can make less of a mess here than I did on my first posting.
Debated starting a new thread, but decided against it.

Everyone: Thank you for your comments. I took the gentle hand-smacking
in good grace and cleaned up my HTML; it is now HTML 4.01 strict
compliant.

I'm wearing a fireproof suit and ready for the NEXT round of comments.
Hullo all.

A while back I wrote a BASIC compiler and VM in Javascript as a learning
project. As happens too often, my life got too busy to do anything with it.

Rather that sit on it any longer, I hereby pass it along to everyone as
a gift. Someone may find it useful to learn from.

http://www.mopedepot.com/jjs/mote/
Dec 22 '07 #11
Jeremy J Starcher said the following on 12/22/2007 1:42 AM:
Lets see if I can make less of a mess here than I did on my first posting.
I will refrain from smacking you for top-posting.
Debated starting a new thread, but decided against it.
Either/Or, doesn't really matter.
Everyone: Thank you for your comments. I took the gentle hand-smacking
in good grace and cleaned up my HTML; it is now HTML 4.01 strict
compliant.
I think that is the first time I have seen someone apologize for trying
to offer your work, for free, to try to save someone else a lot of time.
I'm wearing a fireproof suit and ready for the NEXT round of comments.
Did you notice though that nobody commented on the actual code itself
and rather chose to comment on the presentation of the code? Screw'em.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 22 '07 #12
On Sat, 22 Dec 2007 02:07:25 -0500, Randy Webb wrote:
Did you notice though that nobody commented on the actual code itself
and rather chose to comment on the presentation of the code? Screw'em.
Actually, yea I did. However, I've lurked here enough to realize that
some folks here are fairly busy and don't chase down every code snippet
and use presentation for a "quality-of-code" metric.

Either that or its too big of a thing to easily digest. I might have
picked too esoteric of an idea to learn JS with.

Who knows, maybe I'll yank out the tokenizer and turn that into a
pretty-print script. I've not been happy with any of the ones I've seen.
Dec 22 '07 #13
On Dec 22, 1:42*am, Jeremy J Starcher <r3...@yahoo.spam.me.not.com>
wrote:
Lets see if I can make less of a mess here than I did on my first posting.
Debated starting a new thread, but decided against it.

Everyone: Thank you for your comments. *I took the gentle hand-smacking
in good grace and cleaned up my HTML; *it is now HTML 4.01 strict
compliant.
Actually, if I had read carefully and noticed the word "gift", I
wouldn't have taken your page apart (we get a lot of ads in here.) Of
course, there were so many posts. Good that you cleaned it up though.
Dec 22 '07 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Carl Friedrich Bolz | last post by:
pypy-0.8.0: Translatable compiler/parser and some more speed ============================================================== The PyPy development team has been busy working and we've now packaged...
7
by: Brian | last post by:
Hi, I have been trying to tune my vc7 compiled applications to perform at the same or (preferably) better speed of the same vc6 application. Both versions of my code are compiled with...
7
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by...
1
by: adhingra | last post by:
I stumbled upon something which does not make sense "Debug class methods are not automatically suppressed by the managed c++ compiler when the project is build in release mode" Create a a...
10
by: trippeer | last post by:
I have the source code to an old BASIC program that a friend of mine would like to run online. I am a beginner at JS, but I think that it would be a good choice for the project. My background is in...
3
by: Jon Harrop | last post by:
The California-based internet startup Skydeck have released a free OCaml to JavaScript compiler: http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/ -- Dr Jon D Harrop,...
2
by: Dave Johansen | last post by:
I just converted a solution from Visual Studio 2003 to Visual Studio 2005 and the Debug mode seems to be running just fine, but the Release mode crashes on the following code: std::ifstream...
0
by: Luke Kenneth Casson Leighton | last post by:
Pyjamas 0.3 ----------- Pyjamas is a python-to-javascript compiler and an AJAX-based Widget toolkit for Web Development (for the sister project, running pyjamas-based apps on the desktop, see...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.