London, GB
Offline
Sr. Member
Karma: 7
Posts: 332
Nothing works.
|
 |
« on: October 22, 2010, 06:02:51 am » |
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
Brattain Member
Karma: 311
Posts: 35470
Seattle, WA USA
|
 |
« Reply #1 on: October 22, 2010, 06:50:14 am » |
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
Online
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #2 on: October 22, 2010, 07:02:43 am » |
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.
|
|
|
|
field road, jupiter creek
Offline
Sr. Member
Karma: 2
Posts: 342
Arduino rocks
|
 |
« Reply #3 on: October 23, 2010, 08:10:17 pm » |
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
Sr. Member
Karma: 7
Posts: 332
Nothing works.
|
 |
« Reply #4 on: October 24, 2010, 09:08:29 am » |
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
Faraday Member
Karma: 78
Posts: 5453
Strongly opinionated, but not official!
|
 |
« Reply #5 on: October 25, 2010, 10:33:35 am » |
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
Sr. Member
Karma: 7
Posts: 332
Nothing works.
|
 |
« Reply #6 on: October 26, 2010, 06:25:38 am » |
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
Faraday Member
Karma: 78
Posts: 5453
Strongly opinionated, but not official!
|
 |
« Reply #7 on: October 26, 2010, 06:15:28 pm » |
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
Sr. Member
Karma: 7
Posts: 332
Nothing works.
|
 |
« Reply #8 on: October 27, 2010, 03:08:04 am » |
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
Online
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #9 on: October 27, 2010, 05:24:34 am » |
I think he meant "wow" as in "Wow! Here's someone who finds Reverse Polish user-friendly and intuitive" 
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
London, GB
Offline
Sr. Member
Karma: 7
Posts: 332
Nothing works.
|
 |
« Reply #10 on: October 27, 2010, 06:08:38 am » |
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
God Member
Karma: 5
Posts: 962
|
 |
« Reply #11 on: October 27, 2010, 10:59:36 am » |
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
Online
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #12 on: October 27, 2010, 11:48:43 am » |
If our language didnt have punctuation Oh! The irony! 
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
London, GB
Offline
Sr. Member
Karma: 7
Posts: 332
Nothing works.
|
 |
« Reply #13 on: October 27, 2010, 12:27:00 pm » |
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
Online
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #14 on: October 27, 2010, 12:35:37 pm » |
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.
|
|
|
|
|