News for hackers. Stuff that matters.
Re:Easy Forth by adastra22 on Monday September 22, 2025 @11:56AM (#45335265)
Bitcoin’s scripting / smart contracting language is Forth.

Were there anything in the crypto space is actually solving a problem is up to your own biases and prejudices. But if you pick one thing as actually trying to solve a real problem, payments over lightning is probably that. Lightning, at its core, is a state machine composed of Forth spend scripts.

Re:Easy Forth by tromp on Monday September 22, 2025 @12:44PM (#45336011)
While bitcoin script is a stack language, it doesn't really qualify as Forth as it doesn't allow you to define any new words.
Re:Easy Forth by kragen on Monday September 22, 2025 @03:31PM (#45338354)
No, Bitcoin Script is not Forth. Bitcoin Script is designed to guarantee termination, so no Turing-complete programming language was permitted. Like BPF, Bitcoin Script doesn't have subroutine definitions or backward jumps, so each opcode executes at most once.

This is like saying JSON is C++.

Re:Easy Forth by adastra22 on Monday September 22, 2025 @03:56PM (#45338656)
It's more like saying JSON is Javascript, which it is to a degree.
Re:Easy Forth by kragen on Monday September 22, 2025 @04:33PM (#45339086)
I considered that analogy and consciously rejected it.