frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Implementing Forth in Go and C

https://eli.thegreenplace.net/2025/implementing-forth-in-go-and-c/
36•Bogdanp•2h ago

Comments

s-macke•1h ago
Nice to see another developer who tried to implement Forth in Go (here’s mine: [0]). It’s not easy and usually takes several iterations.

His implementation, while working for his use cases, is actually quite far from the originals. He uses separate Go structures for words, memory, for-loops, etc. Most of the default Forth implementations of words will fail, since they expect the heap and stack to behave in a certain way. Also, every major word is implemented directly in Go, with no bootstrapping.

> However, it's insufficient for the hacker level, because the host language interpreter (the one in Go) has all the control, so it's impossible to implement IF...THEN in Forth

Well, I did it with a ... heap []any ... data structure. Works well enough.

[0] https://github.com/s-macke/Forthly

eliben•50m ago
Thanks for the note. Much of the blog post is dealing with this - how the approach I took for the Go implementation is not sufficient for the hacker level - because the code isn't stored anywhere but remains as text. This isn't a Go issue, it's a result of the specific design decision of how to implement it.

The second implementation - in C - does it the "right way", with both code and data living in the same memory, and thus allows all the usual Forth shenanigans. Again, this has all to do with the design approach and not the implementation language. Nothing precludes one from writing such an implementation in Go :-)

bertili•1h ago
Forth can be beautifully and efficiently implemented in portable c++ using the using continuation passing style via the clang musttail attribute. See Tails [1].

[1] https://github.com/snej/tails

NoToP•20m ago
Go forth and C

Nx compromised: malware uses Claude code CLI to explore the filesystem

https://semgrep.dev/blog/2025/security-alert-nx-compromised-to-steal-wallets-and-credentials/
292•neuroo•3h ago•172 comments

Monodraw

https://monodraw.helftone.com/
339•mafro•4h ago•116 comments

Object-oriented design patterns in C and kernel development

https://oshub.org/projects/retros-32/posts/object-oriented-design-patterns-in-osdev
70•joexbayer•1d ago•26 comments

Implementing Forth in Go and C

https://eli.thegreenplace.net/2025/implementing-forth-in-go-and-c/
37•Bogdanp•2h ago•4 comments

The Therac-25 Incident (2021)

https://thedailywtf.com/articles/the-therac-25-incident
286•lemper•8h ago•158 comments

ASCIIFlow

https://asciiflow.com/
47•marcodiego•3h ago•9 comments

SpaceX's giant Starship Mars rocket nails critical 10th test flight

https://www.space.com/space-exploration/private-spaceflight/spacex-launches-starship-flight-10-cr...
154•mpweiher•2h ago•112 comments

Slowing down programs is surprisingly useful

https://stefan-marr.de/2025/08/how-to-slow-down-a-program/
54•todsacerdoti•3h ago•22 comments

What We Find in the Sewers

https://www.asimov.press/p/sewers
12•surprisetalk•1h ago•5 comments

WebLibre: The Privacy-Focused Browser

https://docs.weblibre.eu/
81•mnmalst•6h ago•51 comments

The GitHub website is slow on Safari

https://github.com/orgs/community/discussions/170758
158•talboren•5h ago•105 comments

Claude for Chrome

https://www.anthropic.com/news/claude-for-chrome
732•davidbarker•20h ago•376 comments

Ember (YC F24) Is Hiring Full Stack Engineer

https://www.ycombinator.com/companies/ember/jobs/OTB0qby-full-stack-engineering-intern-summer-2026
1•charlene-wang•3h ago

F-35 pilot held 50-minute airborne conference call with engineers before crash

https://www.cnn.com/2025/08/27/us/alaska-f-35-crash-accident-report-hnk-ml
169•Michelangelo11•3h ago•237 comments

Gemini 2.5 Flash Image

https://developers.googleblog.com/en/introducing-gemini-2-5-flash-image/
1013•meetpateltech•1d ago•453 comments

QEMU 10.1.0

https://wiki.qemu.org/ChangeLog/10.1
157•dmitrijbelikov•4h ago•25 comments

Using information theory to solve Mastermind

https://www.goranssongaspar.com/mastermind
14•SchwKatze•3d ago•2 comments

Adventures in State Space [video]

https://www.youtube.com/watch?v=YGLNyHd2w10
18•bo0tzz•3d ago•3 comments

Why Aren't People Going to Local and Regional In-Person Events Anymore?

https://www.brentozar.com/archive/2025/08/why-arent-people-going-to-local-and-regional-in-person-...
26•wintermute2dot0•1h ago•26 comments

Internet Access Providers Aren't Bound by DMCA Unmasking Subpoenas–In Re Cox

https://blog.ericgoldman.org/archives/2025/08/internet-access-providers-arent-bound-by-dmca-unmas...
41•hn_acker•2d ago•6 comments

Malleable Software

https://www.mdubakov.me/malleable-software-will-eat-the-saas-world/
61•tablet•7h ago•67 comments

Dissecting the Apple M1 GPU, the end

https://rosenzweig.io/blog/asahi-gpu-part-n.html
651•alsetmusic•13h ago•142 comments

Apple Revokes EU Distribution Rights for an App on the Alt Store

https://torrentfreak.com/apple-revokes-eu-distribution-rights-for-torrent-client-developer-left-i...
36•net01•1h ago•10 comments

Show HN: FilterQL – A tiny query language for filtering structured data

https://github.com/adamhl8/filterql
37•genshii•2d ago•14 comments

Word documents will be saved to the cloud automatically on Windows going forward

https://www.ghacks.net/2025/08/27/your-word-documents-will-be-saved-to-the-cloud-automatically-on...
170•speckx•5h ago•154 comments

First absolute superconducting switch developed in a magnetic device

https://phys.org/news/2025-08-absolute-superconducting-magnetic-device.html
8•warrenm•1d ago•0 comments

Light pollution prolongs avian activity

https://gizmodo.com/birds-across-the-world-are-singing-all-day-for-a-disturbing-reason-2000646257
103•gmays•4d ago•22 comments

The “Wow!” signal was likely from extraterrestrial source, and more powerful

https://www.iflscience.com/the-wow-signal-was-likely-from-an-extraterrestrial-source-and-more-pow...
179•toss1•17h ago•178 comments

GNU Artanis – A fast web application framework for Scheme

https://artanis.dev/index.html
244•smartmic•19h ago•65 comments

Delphi in the Age of AI

https://learndelphi.org/delphi-ai-ultimate-guide/
66•andsoitis•4d ago•44 comments