Pages: [1]   Go Down
Author Topic: Forth programming language?  (Read 3129 times)
0 Members and 1 Guest are viewing this topic.
Maryland, USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a nostalgic attachment to the Forth programming language that I learned last century and never used.
I understand Forth is used in embedded systems (lego mindstorms is the only one that comes to mind right now) so I thought i would find an implementation for the most popular microcontroller development system in the world, i.e. Arduino.
Yet i could not find anything mature enough to be of simple installation and practical to use.

Anyone knows of a good Forth implementation for Arduino?

TIA
Logged

There are three kind of people in the world: Those who can count, and those who can't

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27352
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Has been discussed in the forum, do some browsing & see how far it went.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Maryland, USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Has been discussed in the forum, do some browsing & see how far it went.


Thank you for your useful answer.
Here's the link to the post you are referring to.
http://arduino.cc/forum/index.php/topic,8838.0.html

I read the whole post before opening a new thread. The post is from 1/2011 and, guess what, is closed!
And, as I said "Yet i could not find anything mature enough to be of simple installation and practical to use."

So my question still stands: Anyone knows of a good Forth implementation for Arduino?

Any useful answer would be greatly appreciated.


« Last Edit: November 16, 2012, 09:31:48 pm by Thot » Logged

There are three kind of people in the world: Those who can count, and those who can't

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 631
Posts: 50107
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So my question still stands: Anyone knows of a good Forth implementation for Arduino?

Any useful answer would be greatly appreciated.
So, you've googled and found nothing. Doesn't that tell you something?
Logged

Maryland, USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So my question still stands: Anyone knows of a good Forth implementation for Arduino?

Any useful answer would be greatly appreciated.
So, you've googled and found nothing. Doesn't that tell you something?

Yes, it does. I guess i am afraid to face the sad reality.
 Call it denial if you wish but i was hoping that someone in this forum (which i find, for the most part, very useful) could give me hope.  smiley-cry

Oh well, i guess i'll ask this question again in 2 years.....
Logged

There are three kind of people in the world: Those who can count, and those who can't

0
Offline Offline
God Member
*****
Karma: 39
Posts: 988
Get Bitlash: http://bitlash.net
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

While you're waiting, give the Bitlash interpreter a try.  If you know Forth it should be a piece of cake to learn. 

You'll have to live with infix notation, but you get the same immediacy you get from the Forth command line.

-br
http://bitlash.net
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://amforth.sourceforge.net/ - Not specifically Arduino, but it is designed for ATMegas.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
Arduino rocks / OpenLCB rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, I have a fondness for Forth, too.  The limited resources on early Arduinos, read limited RAM, since thats where a 'real' Forth wants to live, made it a very limited system, unless one went for a blended system where development occurs on your computer, compiled and uploaded to the Arduino, which is more complicated. 

However, with the newer Arduinos with more powerful mpus, this should be much easier now, and a more traditional standalone Forth with adequate resources sounds eminently possible. 

David Harris
OpenLCB Dev Team
Logged

Dr. David Harris
OpenLCB Dev Team

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2086
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can recommend amforth:
http://amforth.sourceforge.net/

and FlashForth:
http://flashforth.sourceforge.net/

Both run atmegas, FF runs pic18/24/33 as well.

Pito
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 135
Posts: 6782
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The last time I tried to put amforth on an arduino, it was a pretty painful experience.  But amforth has had active development since then, and with optiboot there is at least the potential to preserve the arduino bootloader AND put the code amforth needs to save new words to flash, up in the boot section.  So it might be worth another look...
Logged

Maryland, USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So it might be worth another look...


You have my vote smiley

And also, during the (rather fruitless) research I've done prior to opening this topic, I came across pForth, which is an open source implementation aimed at portability. It has been ported to a ton of other systems, but surprisingly not to Arduino.
I wonder if for someone (like you) who has the right set of skills, this could be an easier/ more practical way to go:
http://www.softsynth.com/pforth/

Just a thought....


   
« Last Edit: November 17, 2012, 03:04:01 pm by Thot » Logged

There are three kind of people in the world: Those who can count, and those who can't

Upstate NY
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've been working on a Forth environment for the Arduino, and just a posted a call for help here http://arduino.cc/forum/index.php/topic,140050.0.html. I still need to find a place to post the code that. Any suggestions?
Logged

Pages: [1]   Go Up
Jump to: