[HN Gopher] Lisp in Forth
___________________________________________________________________
Lisp in Forth
Author : tosh
Score : 33 points
Date : 2021-04-20 21:39 UTC (1 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| bifrost wrote:
| This is pretty cool especially since Forth is gaining interest in
| some circles.
| threatofrain wrote:
| How so?
| codezero wrote:
| For me I got interested in it while getting into some retro
| computing stuff during the pandemic, curious where others are
| getting that itch from!
|
| [1] Playing with open boot on my old iBook power PC -
| realizing it's a forth
|
| [2] Playing with durexForth on c64 emulators
|
| [3] collapse-os recently switching to forth.
| frompdx wrote:
| Personally I came across FlashForth last year and have had a
| lot of fun hacking on my Arduino boards with Forth.
| Klwohu wrote:
| In my city it's becoming more popular than Rust in the hacker
| spaces.
| asimjalis wrote:
| How fast is this?
| mark-probst wrote:
| Author here. I never benchmarked it, but probably not fast.
| This was just a fun programming exercise.
| lebuffon wrote:
| It won't be extremely fast.
|
| This was discussed in comp.lang.forth a few years back. It's
| very interesting as an instructional tool but is not optimal
| for GForth.
|
| For example the symbol table is written in Forth whereas it
| would be faster to use GForth wordlists which give you a hashed
| lookup method.
|
| There is a string-to-number routine written but GForth has
| >NUMBER which can handle double precision conversions and is in
| the kernel.
|
| However it is all there and it works. For an experience Forth
| user it wouldn't take too much to improve it.
|
| If it was compiled on a native code Forth compiler like
| SwiftForth, iForth or VFX and with a few better uses of the
| internal system resources it would be fast enough to useful I
| suspect.
___________________________________________________________________
(page generated 2021-04-20 23:00 UTC)