33

I'm thrilled to announce the release of bjForth v0.0.3 ๐ŸŽ‰

There's been a a heap of improvements and additions compared to the last release.

What's best is that they are automatically tested every time a change is pushed ๐Ÿ˜Ž

I dare you to Grab the latest tarball and hack yourself some serious Forth ๐Ÿ˜„

you are viewing a single comment's thread
view the rest of the comments
[-] bitcrafter@programming.dev 1 points 5 days ago* (last edited 5 days ago)

In Forth, though, the number of results pushed to the stack after an execution of a word could be a function of the input rather than a single value or even a fixed number of values.

Likewise, the number of arguments that a word pops from the stack could be a function of a value pushed earlier to the stack.

[-] Azzu@lemm.ee 1 points 5 days ago* (last edited 5 days ago)

That's what macros are and let you do in Lisp

[-] bitcrafter@programming.dev 1 points 5 days ago

Perhaps you could explain exactly what you mean?

[-] Azzu@lemm.ee 1 points 4 days ago* (last edited 4 days ago)

If you don't know Lisp, it'd probably take too long for me explain (i.e. I don't want to). Basically, macros let you rewrite your code arbitrarily, which would have the same effect as arbitrarily modifying the stack.

[-] bitcrafter@programming.dev 1 points 4 days ago

You are making the extremely incorrect presumption that I am unfamiliar with Lisp and how macros work. What is unclear to me is how you specifically think that arbitrarily rewriting code at macro expansion time is exactly equivalent to arbitrarily manipulating the stack at runtime.

this post was submitted on 29 Dec 2024
33 points (92.3% liked)

Programming

17717 readers
187 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS