Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #50070
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Paul Rubin <no.email@nospam.invalid> |
| Newsgroups | comp.lang.forth |
| Subject | Re: how can forth compete with lisp |
| Date | Sat, 13 Aug 2016 13:58:14 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 49 |
| Message-ID | <87vaz4wfmh.fsf@jester.gateway.pace.com> (permalink) |
| References | <8ceb459d-85bb-4a4d-9cbb-e8ea85c64b45@googlegroups.com> <404bf9e4-2072-490e-adff-aaeb520783ec@googlegroups.com> <8ffa1e5c-b93d-43d4-8ce2-eed3f9c879ee@googlegroups.com> <0f2cd827-39f2-48c3-ab03-ed5d19572256@googlegroups.com> <244a8d6e-5869-4ca0-948e-d4655c9ed3cc@googlegroups.com> <87ziogwj8v.fsf@jester.gateway.pace.com> <5c20ee17-759c-4f3e-be43-87a9335f750f@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | mx02.eternal-september.org; posting-host="afb9df5a762ad8974cbd7e506bdf03a5"; logging-data="8528"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TAek4eHhAth0UlMskoowW" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:+lX/FtdEPXAzCHh4h3XmSZU4hMs= sha1:SDOPFyUXlG8z59feG2WQ97VofOw= |
| Xref | csiph.com comp.lang.forth:50070 |
Show key headers only | View raw
JUERGEN <epldfpga@aol.com> writes: > In another thread I started, I tried to find a basic Forth under > MicroPython I sort of remember that, but I don't see any point in implementing Forth in Python. The idea of Forth is to get an interactive language from very little machine resources, that is capable of realtime operation, and is pretty fast for an interpreted language and that can also be made very fast with an optimizing compiler. The cost of this is quite a bit of programmer inconvenience in dealing with the stack, memory management, lack of compiler and runtime automatic error checking, etc. Python has lots of such conveniences, but the cost is that it's much slower than Forth, uses much more memory, is not realtime (uses automatic storage reclamation or garbage collection), etc. By implementing Forth in Python, you get both the inconvenience and the high resource consumption and slow speed. > Having this in MicroPython should allow to have a complete GFORTH run > under MicroPython. Gforth is written in C and you have to compile it with a C compiler. Python doesn't come into it. In principle you could write a Forth in Python but there's little to be gained from that. > How effective - is it fast enough to play with is my question? MicroPython is more than fast enough to play with. Maybe it's 10x slower than Forth on the same hardware. On the other hand, current hardware at least 100x faster than the 1980s computers from Forth's heyday, so if you're used to running Forth on those, Python will seem 10x faster, if that makes any sense. If you implemented Forth in Python straightforwardly, maybe you'd get a 10x slowdown, so you're back to the original speed of Forth on old computers. If you type "Maple Mini" into ebay, you should see lots of cheap boards (like 5 euros or less) with the old Leaf design, which is a Cortex M3 with 128k of flash and 20k of ram, at something like 80 mhz. That should be enough to run small Micropython programs, though you probably want more ram for bigger programs. The Micropython PyBoard is much nicer and comes with Micropython already installed, though it's fairly expensive (45 USD over here). You can play with one online, typing Micropython commands into your browser to watch the board control a servo and some leds: http://micropython.org/live/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how can forth compete with lisp endlessboomcapitalism@gmail.com - 2016-07-26 09:43 -0700
Re: how can forth compete with lisp mentificium@gmail.com - 2016-07-27 05:40 -0700
Re: how can forth compete with lisp mister35mm@gmail.com - 2016-10-02 12:18 -0700
Re: how can forth compete with lisp endlessboomcapitalism@gmail.com - 2016-08-13 10:01 -0700
Re: how can forth compete with lisp Pablo Hugo Reda <pabloreda@gmail.com> - 2016-08-13 10:24 -0700
Re: how can forth compete with lisp JUERGEN <epldfpga@aol.com> - 2016-08-13 11:25 -0700
Re: how can forth compete with lisp foxaudioresearch@gmail.com - 2016-08-13 11:47 -0700
Re: how can forth compete with lisp JUERGEN <epldfpga@aol.com> - 2016-08-13 12:17 -0700
Re: how can forth compete with lisp Paul Rubin <no.email@nospam.invalid> - 2016-08-13 12:40 -0700
Re: how can forth compete with lisp JUERGEN <epldfpga@aol.com> - 2016-08-13 13:08 -0700
Re: how can forth compete with lisp Paul Rubin <no.email@nospam.invalid> - 2016-08-13 13:58 -0700
Re: how can forth compete with lisp JUERGEN <epldfpga@aol.com> - 2016-08-14 00:32 -0700
Re: how can forth compete with lisp Paul Rubin <no.email@nospam.invalid> - 2016-08-18 16:11 -0700
Re: how can forth compete with lisp JUERGEN <epldfpga@aol.com> - 2016-08-19 06:45 -0700
Re: how can forth compete with lisp "WJ" <w_a_x_man@yahoo.com> - 2016-08-20 00:41 +0000
Re: how can forth compete with lisp rickman <gnuarm@gmail.com> - 2016-08-20 12:26 -0400
Re: how can forth compete with lisp Pablo Hugo Reda <pabloreda@gmail.com> - 2016-08-21 18:17 -0700
Re: how can forth compete with lisp Bill Zimmerly <billzimmerly@gmail.com> - 2016-09-15 21:19 -0700
Re: how can forth compete with lisp Bill Zimmerly <billzimmerly@gmail.com> - 2016-09-15 22:40 -0700
Re: how can forth compete with lisp anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-09-16 09:03 +0000
Re: how can forth compete with lisp JUERGEN <epldfpga@aol.com> - 2016-09-16 10:00 -0700
Re: how can forth compete with lisp Bernd Paysan <bernd@net2o.de> - 2016-09-24 21:27 +0000
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-10-01 17:23 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-09-23 15:55 -0700
Re: how can forth compete with lisp lawrencedo99@gmail.com - 2016-09-23 18:39 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-09-23 20:20 -0700
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-23 18:46 -1000
Re: how can forth compete with lisp lawrencedo99@gmail.com - 2016-09-23 22:16 -0700
Re: how can forth compete with lisp Julian Fondren <julian.fondren@gmail.com> - 2016-09-23 22:40 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-09-24 00:07 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-09-24 00:11 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-09-24 00:13 -0700
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-23 21:15 -1000
Re: how can forth compete with lisp lawrencedo99@gmail.com - 2016-09-24 00:47 -0700
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-23 22:18 -1000
Re: how can forth compete with lisp lawrencedo99@gmail.com - 2016-09-24 19:26 -0700
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-24 21:30 -1000
Re: how can forth compete with lisp lawrencedo99@gmail.com - 2016-09-25 13:53 -0700
Re: how can forth compete with lisp Paul Rubin <no.email@nospam.invalid> - 2016-09-25 13:59 -0700
Re: how can forth compete with lisp lawrencedo99@gmail.com - 2016-09-25 17:38 -0700
Re: how can forth compete with lisp Paul Rubin <no.email@nospam.invalid> - 2016-09-25 17:54 -0700
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-25 14:43 -1000
Re: how can forth compete with lisp jim <anon@example.com> - 2016-09-26 14:53 +0100
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-26 14:02 -1000
Re: how can forth compete with lisp jim <anon@example.com> - 2016-09-27 11:16 +0100
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-27 10:28 -1000
Re: how can forth compete with lisp jim <anon@example.com> - 2016-09-28 11:41 +0100
Re: how can forth compete with lisp albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-28 13:27 +0200
Re: how can forth compete with lisp foxaudioresearch@gmail.com - 2016-09-28 08:05 -0700
Re: how can forth compete with lisp Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-09-28 11:40 -0500
Re: how can forth compete with lisp foxaudioresearch@gmail.com - 2016-09-28 10:13 -0700
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-28 08:39 -1000
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-10-01 18:14 -0700
Re: how can forth compete with lisp stephen@mpeforth.com (Stephen Pelc) - 2016-09-28 11:33 +0000
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-10-01 18:12 -0700
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-28 08:35 -1000
Re: how can forth compete with lisp foxaudioresearch@gmail.com - 2016-09-29 06:59 -0700
Re: how can forth compete with lisp "Elizabeth D. Rather" <erather@forth.com> - 2016-09-29 09:43 -1000
Re: how can forth compete with lisp stephen@mpeforth.com (Stephen Pelc) - 2016-09-30 09:39 +0000
Re: how can forth compete with lisp lawrencedo99@gmail.com - 2016-09-30 16:54 -0700
Re: how can forth compete with lisp Paul Rubin <no.email@nospam.invalid> - 2016-09-30 17:14 -0700
Re: how can forth compete with lisp albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-10-01 11:06 +0200
Re: how can forth compete with lisp Paul Rubin <no.email@nospam.invalid> - 2016-10-01 12:20 -0700
Re: how can forth compete with lisp albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-10-02 02:04 +0200
Re: how can forth compete with lisp Paul Rubin <no.email@nospam.invalid> - 2016-10-01 17:00 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-10-01 17:28 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-10-01 17:27 -0700
Re: how can forth compete with lisp dunno <dunno@dunno.dunno> - 2016-10-01 13:12 +0000
Re: how can forth compete with lisp albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-10-01 16:07 +0200
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-10-01 18:33 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-10-01 18:23 -0700
Re: how can forth compete with lisp lawrencedo99@gmail.com - 2016-10-02 18:45 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-10-01 17:24 -0700
Re: how can forth compete with lisp polymorph self <jackvanc3@gmail.com> - 2016-09-24 00:08 -0700
Re: how can forth compete with lisp Bill Zimmerly <billzimmerly@gmail.com> - 2016-09-17 07:18 -0700
csiph-web