f



JavaScript to Forth translator (shift-forth)

Hi All,

I am working on experimental tool to translate JavaScript (subset) into Forth.

https://github.com/drom/shift-forth

It takes JavaScript program in Single Static Assignment (SSA) form,
implements very simple stack scheduling algorithm, using PICK for deep stack access. And runs peephole optimizer on top.

I am working to add basic control structures to to it: Call, if, while

Any suggestions are welcome.

--Alexey
0
Aliaksei
2/24/2015 5:24:40 AM
comp.lang.forth 7148 articles. 0 followers. markrobertwills (871) is leader. Post Follow

0 Replies
427 Views

Similar Articles

[PageSpeed] 46

Reply:

Similar Artilces:

forth in forth
I came across this in the archives: >The widely shared belief (among both Forthies >and outsiders) that every "real" Forth programmer hacks together >his own compiler/interpreter/programming environment also makes >the Forth community look frivolous or at best naive. Most people >who program for a living know that there are more useful ways to >spend their time than building their own programming environment -- >the key to productivity is leveraging off other peoples' work. HERESY in the Forth community! Imagine... NOT coming up with your own CASE...

When did FORTH become Forth
Just curious, If I recall correctly, didn't Forth used to be FORTH? Blueeyedpop wrote: > Just curious, If I recall correctly, didn't Forth used to be FORTH? The IBM 1130 didn't do lower case. -jpd (co-developer of FORGO, a FORTRAN compile&go system for the 1130) Blueeyedpop wrote: > Just curious, If I recall correctly, didn't Forth used to be FORTH? Yes, back when we used A(or K)SR33s. Jerry -- Engineering is the art of making what you want from things you can get. ����������������������������������������������������������������������� When did we stop...

Forth is to program , Forth is NOT to study ..
Forth is to program , not to learn , nor study . Study is for students , Students dont eat well . They seek help and subsidy , and credencials .. all , far from productive programming . There is NO arguement , NO arguement in Forth , cause it is always done LEAST WORK , FASTEST runtime . In 40 years , Humans have built up school systems , universities, industries and factories Since it is a "system" , its uncompetitive . Competition and profits are impossible from any system . Accountants can see the "books" indicate this is ...

applications in forth or forth libraries
is there a archive of applications built in forth? something like cpan for perl? etc.? On Dec 2, 3:46=A0pm, gavino <gavcom...@gmail.com> wrote: > is there a archive of applications built in forth? > > something like cpan for perl? etc.? Well, you'll find some things. Take a look at forthfreak.net to get the pointers. The main problem is that even "ANS compatible" Forths are not compatible at all if you add the mindset of the programmer to the standard. There are some classes of problems that are better solved by non-ANS extensions than with ANS. And almost every...

no forth pc? no forth replacement for mysqL? a la www.prevayler.org? no forth appserver?
how about a forth clone of iceWM in 1% the code? On Wednesday, February 12, 2014 8:36:49 PM UTC-6, the_gavino_himself wrote: > how about a forth clone of iceWM in 1% the code? Right now, what I'm interested in is niche RPGMaker-type games on Android. I've done some of this work already in Java, including creating a map editor (on Android) and a playable demo, using First Seed Material (http://www.tekepon.net/fsm/index.php) assets I gave up on my last alternatives to Java when I found Terminal IDE, which allowed me to move code all the way from Java source to installable ...

Forth
Was there ever a forth on cart for the 8 bitters? And if so, anyone got one they dont want anymore... On Thu, 28 Apr 2005 17:16:43 +0000, Ziggy wrote: > Was there ever a forth on cart for the 8 bitters? Not that I'm aware of. If there is one, I would be interested on Infos. There are a couple of disk based forth systems for the Atari 8bit, see http://www.strotmann.de/twiki/bin/view/APG/LangForth > > And if so, anyone got one they dont want anymore... I can build you one, if you like (8 KB Cart, or AtariMax Flashcart), if you need one for work, not for colle...

Forth
Anyone know of a version of Forth for RISC OS? I used to use Forthmacs by Hanno Schwalm a few years ago, but I've been out of the Acorn scene since 2000, recently returned with an Iyonix. Hanno's site seems to be down and no reply from his old e-mail address. Anton -- Hi, By the process of poking various fingers onto keys Anton generated this: > Anyone know of a version of Forth for RISC OS? > > I used to use Forthmacs by Hanno Schwalm a few years ago, but I've been out > of the Acorn scene since 2000, recently returned with an Iyonix. Hanno's > site see...

Forth
Hi Chris, http://www.figuk.plus.com/codeindex/index.html Your fourth code index, at the above URL looks really excellent and gives a good show for our favorite language. I am continuing to enjoy reading it. Currently, I have sorted it by applications. Applications are the area of Forth that are my favorite. I am wondering if a version might be made available to catalog editor words, commands and functions? I have found that many neat features are never used in some of the Fourth editors because it's not obvious where they are or what they do. I really like the idea of your index and ...

FORTH
Has anyone got an implementation working on a TREO 600? Ian implementation of what On Fri, 23 Apr 2004 18:44:49 +0000 (UTC), "Ian Jones" <bellevueparkw@btinternet.com> wrote: |Has anyone got an implementation working on a TREO 600? | |Ian | Alien at Large wrote: > On Fri, 23 Apr 2004 18:44:49 +0000 (UTC), "Ian Jones" > <bellevueparkw@btinternet.com> wrote: > > |Has anyone got an implementation working on a TREO 600? > | > |Ian > > implementation of what What he said in the subject line. (Hint: it&#...

3 books on eBay: Starting FORTH; Thinking FORTH; FORTH Programmer's Handbook
Forth Programmer's Handbook by Conklin and Rather Search for eBay Item # 4129534182 Excellent (like new) condition, second EDITION (August 1998), sixth PRINTING (August 2000). Thinking Forth by Leo Brodie (1984) Search for eBay Item # 4129545378 Excellent (like new) condition, this is the 1994 reprint from Fig Leaf Press (Forth Interest Group, Inc). Starting Forth by Leo Brodie (1987) Search for eBay Item # 4129553634 Second edition, in very good condition. Shows slight wear, but very clean. The softcover binding is in excellent shape. ...

Id love to surf web with 4megs ram forth pc using forth and forth chips
when will this happen? cant wait!! On 9/27/2013 11:52 AM, the_gavino_himself wrote: > when will this happen? > > cant wait!! > I'll happen when someone comes up with several $M in funding. Cheers, Elizabeth -- ================================================== Elizabeth D. Rather (US & Canada) 800-55-FORTH FORTH Inc. +1 310.999.6784 5959 West Century Blvd. Suite 700 Los Angeles, CA 90045 http://www.forth.com "Forth-based products and Services for real-time applications since 1973." ========================...

3 books on eBay: Starting FORTH; Thinking FORTH; FORTH Programmer's Handbook #2
Forth Programmer's Handbook by Conklin and Rather Search for eBay Item # 4129534182 Excellent (like new) condition, second EDITION (August 1998), sixth PRINTING (August 2000). Thinking Forth by Leo Brodie (1984) Search for eBay Item # 4129545378 Excellent (like new) condition, this is the 1994 reprint from Fig Leaf Press (Forth Interest Group, Inc). Starting Forth by Leo Brodie (1987) Search for eBay Item # 4129553634 Second edition, in very good condition. Shows slight wear, but very clean. The softcover binding is in excellent shape. ...

Forth and AI (Was Re: C vs Forth, was Howerd's ANN : Forth Versus C
Jeff, I would be interested in hearing your experiences using Forth with AI. Steve Graham === Bill Spight <Xbspight@pacbell.net> wrote in message news:<4095C3EA.1549F111@pacbell.net>... >>> > Symbolic Computations on a Personal Computer, -- S. N. Baranoff >>> > >>> > List Processing and Object-Oriented Programming Using Forth, -- >>> > Dennis L Feucht >> It might be interesting to hear from Messers Baranoff and Feucht bout >> the difficulties and trade-offs of using Forth for symbolic >> computati...

Writing ANS Forth in ANS Forth
Hi I'm currently attempting to write an ANS-compliant ITC Forth system for the ARM as a personal learning project. I've implemented my system primitives as code words and am now starting to look at the implementation of the high-level words. I've noticed that a number of systems use non-ANS definitions or user variables such as LATEST in their implementation of high-level words. I'm currently trying to decide how this fits in with a strictly ANS-compliant system. Here are my thoughts so far regarding two possible approaches... 1) Implement non-ANS words and use them in hi...

Web resources about - JavaScript to Forth translator (shift-forth) - comp.lang.forth

Resources last updated: 1/25/2016 11:27:08 PM