Mark Wills <
markwi...@gmail.com> writes:
>On Wednesday, 6 April 2016 15:55:32 UTC+1, JUERGEN wrote:
>> On Wednesday, April 6, 2016 at 2:10:31 PM UTC+1, Mark Wills wrote:
>> > On Wednesday, 6 April 2016 10:32:26 UTC+1, JUERGEN wrote:
>> > > On Wednesday, April 6, 2016 at 10:13:42 AM UTC+1, Martin Nicholas wro=
>te:
>> > > > On Wed, 6 Apr 2016 00:14:41 -0700 (PDT)
>> > > > JUERGEN <
epld...@aol.com> wrote:
>> > > >=20
>> > > > > A MicroBit has arrived on my desk, but no Forth yet available. Un=
>til
>> > > > > a real Forth is running, and as Python is a supported language - =
>is
>> > > > > there a Forth out there in Python I could load and run? Speed is =
>not
>> > > > > the issue for now nor is completeness. I mainly want to control t=
>he
>> > > > > IOs, and the 25 LEDs are just enough to display ok, or a 4 Bit IN=
>PUT
>> > > > > value, a 4 bit OUTPUT value - and 3 levels of Stack ... Any help
>> > > > > appreciated.
http://microbit-micropython.readthedocs.org/en/lates=
>t/.
>> > > > > Picture and video you can find at
>> > > > >
https://www.facebook.com/groups/PROGRAMMINGFORTH/?fref=3Dts. Has
>> > > > > anybody re-written JonesForth in Python?
>> > > >=20
>> > > >=20
>> > > > --=20
>> > > > Regards,
>> > > >=20
>> > > > Martin Nicholas.
>> > > >=20
>> > > > E-mail:
reply-...@mgn.org.uk
>> > >=20
>> > > There might be a misunderstanding: There will be Forths running on th=
>e MicroBit - BUT this means that the original software has to be replaced =
>or at least partially. The idea here was to use the existing Python Program=
>ming Environment to have a small Forth running as an Application - leaving =
>everything else as is.
>> >=20
>> > There's no point. Python is *insanely* easy, and all the libraries
>> > for handling the hardware will already be there. Might as well just
>> > use them and enjoy yourself.
>>=20
>> I do disagree - either via the PC or the Mobile or a cheap display and a =
>keyboard. I want to have Forth on the MicroBit - if this is not for you - f=
>ine.
>I'm all for a Forth on the MicroBit - why not? I just meant there's
>no point in getting a Forth-in-python running just to control the
>I/Os and LEDs as you mentioned in your first post. Might as well just
>just use Python for that and have some fun!
>But getting a Forth on it? Sure, why not. Then we can have some
>proper fun ;-)
The first thing to know is whether the Forth -compiler must be
an ELF format or (MS) .com format. The other possibility is that the whole
Microbit is in fact one single turnkey program, with a built in
interpreter for Python.
It took me more than 5 minutes to not find that information on the
Microbit website, which warrants the conclusion that it is a
programmer-hostile environment.
An environment like ARM-android accepts ELF files. There is a gforth
ELF-arm, and shortly there will be ciforth-ELF-arm. (The last hurdle
was compiling turnkeys to executable files.)