Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: forth Clear Filter

Show HN: I built a minimal Forth-like stack interpreter library in C

This weekend I created stacklib.h - a single-header library that brings Forth-style stack operations to C. It implements a basic interpreter with: - Stack operations (push/pop/dup/swap/over/drop) - Arithmetic (+, -, *, /) - Output (., emit, cr) - Stack inspection (.s, depth) Example usage: Stack s; stack_init(&s); dict_init(); exec(&s, "10 20 + ."); // Prints "30" exec(&s, "1 2 3 4 .s"); // Shows stack contents The library is self-contained, requires no dependencies, and handles basic error c

Implementing Forth in Go and C

I first ran into Forth about 20 years ago when reading a book about designing embedded hardware. The reason I got the book back then was to actually learn more about the HW aspects, so having skimmed the Forth chapter I just registered an "oh, this is neat" mental note and moved on with my life. Over the last two decades I heard about Forth a few more times here and there, such as that time when Factor was talked about for a brief period, maybe 10-12 years ago or so. It always occupied a slot i

Weathering Software Winter (2022)

weathering software winter This is a blog post based on a transcript of a talk by Devine on November 26th 2022. Watch the video version on (YouTube). The slideshow presentation was made using Adelie. Thank you to Matt Mascarenhas for providing us with an auto-transcript, it would have taken us ages to put this text together without it. While we are grateful to have had the opportunity to give this presentation, an event in 2025 has resulted in us distancing ourselves from the conference respo

Weathering Software Winter

weathering software winter This is a blog post based on a transcript of a talk by Devine on November 26th 2022. Watch the video version on (YouTube). The slideshow presentation was made using Adelie. Thank you to Matt Mascarenhas for providing us with an auto-transcript, it would have taken us ages to put this text together without it. While we are grateful to have had the opportunity to give this presentation, an event in 2025 has resulted in us distancing ourselves from the conference respo

Memory-Level Parallelism: Apple M2 vs. Apple M4

The Apple M2, introduced in 2022, and the Apple M4, launched in 2024, are both ARM-based system-on-chip (SoC) designs featuring unified memory architecture. That is, they use the same memory for both graphics (GPU) and main computations (CPU). The M2 processor relies on LPDDR5 memory whereas the M4 relies on LPDDR5X which should provide slightly more bandwidth. The exact bandwidth you get from an Apple system depends on your configuration. But I am interested in single-core random access perfor