Pages: [1] 2 3   Go Down
Author Topic: Is anyone using Forth in their Lilypad?  (Read 4936 times)
0 Members and 1 Guest are viewing this topic.
London, GB
Offline Offline
Sr. Member
****
Karma: 8
Posts: 332
Nothing works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If someone has already changed their Lilypad from being an Arduino to being a Forth processor, perhaps using Amforth, could you please point me to a simple step-by-step sequence of instructions, one after the other, which will tell me how to do such a thing? I want to do such a thing, you see, but I don't know how because I lack the knowledge involved for precisely this task, and possibly other related subknowledges too.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 613
Posts: 49270
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I want to do such a thing, you see
No, I don't see. Why do you want to do this?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26274
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Because he prefers Forth to C?
Looks fun - I may give it a shot.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

field road, jupiter creek
Offline Offline
Sr. Member
****
Karma: 6
Posts: 354
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just downloaded amforth, I'll try using it on my Mega and tell you all how I go!

I've been using Forth (and PostScript) since the '70's!

It's a great language, some of my favourite programs were written in Forth.
The most conspicuous example is the desktop planetarium program, "Voyager"
Logged

London, GB
Offline Offline
Sr. Member
****
Karma: 8
Posts: 332
Nothing works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks. I'll wait with interest. Bear in mind I'm using OS X, but I also have access to the other operating system, Linux (but haven't hooked that machine up to an Arduino as yet).

Incidentally, in about 1990 I hooked up a Psion Organiser XP and its Serial adaptor (both on loan from Psion for review purposes - had to give back unfortunately) directly into an Apple Laserwriter and using the PostScript interactive mode got it to output a page with some type and a shape on, much to the amazement of other people watching. That's about as far as I ever got though. From that point onwards, PostScript became like plumbing: if it worked, no need to roll up the sleeves and get the hands dirty, and generally by then, with QuarkXpress and Illustrator it increasingly always worked, so I remained on the front of the page design and illustration process and further away from the code, until I encountered SVG and somehow recognised a lot of its philosophy.
Logged

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

Always liked forth conceptually, but never quite as a "real" programming language.  Postscript did a good job at fixing things...
I actually had cause to write some postscript code rather recently, to get EAGLE to output drillaid-stile holes in its postscript output...
[ps-drillaid]
(hmmph.  2006.  Time flies...)
Logged

London, GB
Offline Offline
Sr. Member
****
Karma: 8
Posts: 332
Nothing works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm getting nowhere with any of this arduino stuff. It's proving immensely too difficult to actually make Forth actually be on the Lilypad itself.

Is there anything else that is conceptually like a Lilypad (small, low-power, easy to sew together electrically, washable) that is actually easy to use (ie, uses a programming language that isn't downright hostile and repellent) when the brick wall of making customised software functionality is encountered?

There's a board on ebay — the Byvac BV511 — that looks ideal except that it's got sharp corners, costs about three times as much as I want to pay for it, and seems to have nobody else actually using it (which means no help from a community).

I just want Lilypads with Forth on.
Logged

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

You can program in Forth, but find the Arduino C++-subset "hostile and repellent" ?!  Wow.

I don't think that there is anything else like Lilypad...

There is BitLash, which has a Basic-like syntax.

Based on http://objectmix.com/forth/385440-forth-arduino.html , getting amforth running on an Arduino as Arduino would indeed be rather complicated.  If you have an ISP programmer (possibly including another arduino), you should be able to completely reprogram the lilypad with AMForth (overwriting the bootloader as well as any sketches.)
It looks like there are already templates for building amforth compatible with the arduino hardware, but the amforth build documentation is pretty ... sucky.

If you run forth on your lilypad, I don't know how much help you'd be able to get from the normal Arduino Community either...
Logged

London, GB
Offline Offline
Sr. Member
****
Karma: 8
Posts: 332
Nothing works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What do you mean “wow”?

The Bitlash looks very interesting at first sight. I'll try it. Thanks.
« Last Edit: October 27, 2010, 03:11:52 am by u0421793 » Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26274
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think he meant "wow" as in "Wow! Here's someone who finds Reverse Polish user-friendly and intuitive"  
 smiley-grin
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

London, GB
Offline Offline
Sr. Member
****
Karma: 8
Posts: 332
Nothing works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's not that friendly, it is after all a computer language, so it has that metallic monotone robot voice in your mind when you read it out from the page.

I've just put Bitlash on a Lilypad.

    a)
      it was easy! OS X instructions are given, unambiguously, and I followed them blindly and everything just worked. This is what it's all about.
    b)
      it actually is relatively akin to Forth, although the numbers don't “seem to” go onto a stack, the words are defined in a manner not too far away from a colon definition — in fact, in a way that actually feels more comfortable to me than Forth was.
    c)
      I not only wrote the demo blinking led program and had it working straight away, but after about ten minutes of errors, eventually made a simple modification to the demo program and got it to work again! This is tremendous. People can do their own customisations easily without discouragement. Instead of several weeks of never ending errors and non-working code, only a few minutes or so, until gratification is gained. This is very important.
    d)
      it's a bit fussy with the input from Screen in OS X terminal. It's easy to overflow the line, and instinctively one would cursor back up to correct an incorrectly entered line, but you can't. Nevertheless, each line on its own, small though it might be, is quite easy to retype over and over and over until it thinks you've done it enough times to be considered right.
    e)
      still too much incorrect use of punctuation all over the place, but this is a flaw all programming languages seem to have.
    [/list]
    This morning, in my estimation, the usability of the whole Arduino Lilypad system has gone right up, almost approaching zero. I'm quite pleased thus far.
    « Last Edit: October 27, 2010, 06:26:50 am by u0421793 » Logged

    Portugal
    Offline Offline
    God Member
    *****
    Karma: 6
    Posts: 962
    View Profile
     Bigger Bigger  Smaller Smaller  Reset Reset

    Are you trolling or what?
    Basic seems always stupid for me, but I'm a C guy, so maybe that explains it.
    It is very, very,very easy to program the arduino using C and its high-level functions, the IDE as a ton of examples and usually you get away stitching 2 or 3 examples together, how the hell do you take weeks to open the blinky demo?
    If our language didnt have punctuation you would understand a bit of it, but you want that your compiler read what you write without punctuation?
    Logged

    Global Moderator
    UK
    Offline Offline
    Brattain Member
    *****
    Karma: 302
    Posts: 26274
    I don't think you connected the grounds, Dave.
    View Profile
     Bigger Bigger  Smaller Smaller  Reset Reset

    Quote
    If our language didnt have punctuation

    Oh! The irony!    smiley-wink
    Logged

    "Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
    Do not send technical questions via personal messaging - they will be ignored.

    London, GB
    Offline Offline
    Sr. Member
    ****
    Karma: 8
    Posts: 332
    Nothing works.
    View Profile
     Bigger Bigger  Smaller Smaller  Reset Reset

    I don't know why people are mentioning Basic. Basic has nothing to do with this conversation. Stop mentioning Basic.

    If you understand C that's good, but I don't see how you can extrapolate that just because you can understand it, so must everyone else automatically — unless you, for some reason, are a believer in Rupert Sheldrake's theories of formative causation and morphic resonance. If that's the case, can you please get even better at C so that we can all get a bit better at it?

    As for punctuation, why are there prime and double prime marks all over the place? Why are there semicolons at the end of a line? Surely that's where a full-stop goes? Why is the code peppered with brackets, curly brackets, square brackets, in and out and in and out again? Why so much cryptic use of random letters and numbers that make no sense when spoken out loud? It's a flaw of programming languages that they need to look like a cat typed it in by walking across the keyboard.
    Logged

    Global Moderator
    UK
    Offline Offline
    Brattain Member
    *****
    Karma: 302
    Posts: 26274
    I don't think you connected the grounds, Dave.
    View Profile
     Bigger Bigger  Smaller Smaller  Reset Reset

    Like Yoda, Forth using, you would like your sketch to form?
    « Last Edit: October 27, 2010, 01:44:39 pm by AWOL » Logged

    "Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
    Do not send technical questions via personal messaging - they will be ignored.

    Pages: [1] 2 3   Go Up
    Jump to: