23
submitted 1 year ago by yogthos@lemmy.ml to c/opensource@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] duncesplayed@lemmy.one 6 points 1 year ago* (last edited 1 year ago)

When I saw the title, I was like "oh, someone's linking to this old thing again". I'm surprised he keeps it current! I mean, current-ish.

Glad he found something that works for him.

I would like to hear his thoughts on Forth. His love of Lisp seems to be from the god-programmer perspective. Lisp gives you about as much power as you can ask for, for better or worse. I think Forth goes even a step further, though, letting you redefine constants and things.

[-] CrypticCoffee@lemmy.ml 6 points 1 year ago

I don't agree with him, but respect how he sticks to his principles. Also good to see more about his focus on work related stuff.

The world do need folk like him, even if you don't necessarily like him, you know where he stands and why.

[-] jecxjo@midwest.social 3 points 1 year ago

Not big on Forth but I wouldn't see how any of that would be difficult on some Lisps depending on levels the macro system works on (e.g. Racket you can easily get into levels of code tokenization). I guess, is that type of manipulation typical on Forth? The whole reason one writes in Lisp is for "Code is Data" and extreme meta programming. Things you wouldn't think would be used that often but Lisp programmers use it a lot.

[-] duncesplayed@lemmy.one 2 points 1 year ago* (last edited 1 year ago)

In Forth, you can do things like, say, redefine the number 0 to be computed as a function, and all code that uses the number 0 will instantly change its behaviour at runtime. Why would you do that? I've never found a legitimate use for it, which is why I hate Forth (and Lisp, for similar reasons). I like static analysis and I like it when the language prevents me from doing something silly, but I can understand why some people like the elegance and power-rush from one of the god-like languages like Lisp.

[-] jecxjo@midwest.social 3 points 1 year ago

Yeah I've seen some of that language manipulation. I guess my question is, does this happen in Forth regularly or not?

In JS you can manipulate the prototype for a data type but unless you're making some sort of library for a new type of framework most developers never do that type of stuff. In Ruby duck typing is the idiomatic way to solve many problems. In Lisp the use of macros is fairly common that a good majority of larger projects use. Not sure if that type of lower level manipulation is something everyone does in Forth or just something possible.

this post was submitted on 02 Aug 2023
23 points (79.5% liked)

Open Source

31184 readers
232 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS