frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Gamma Language

https://lair.masot.net/gamma/
14•RossBencina•3d ago

Comments

masot•9m ago
Playing with 'minimal' ways to add templates/generics/reflection to C is a bit of a dumb hobby of mine that (as mentioned) Akshay shares/enables. Gamma was an experiment in templates without having to parse C. This led to some big annoyances that I guess aren't mentioned on that site but are in the PagedOut page[1]: when you instantiate a template "bar::[struct foo]" Gamma does a pretty bad job of knowing to copy the definition of "struct foo" (and all type definitions that "struct foo" depends on) from the caller into the template before compiling the instantiated template. (It gets even worse with circular dependencies, e.g., a struct tree_node that contains a list::[struct tree_node].)

More recently I've been playing with a new approach, MaC, which solves those problems by only parsing the "header file" for each template. So it knows about all of the types in the program and can copy them between template instantiations as needed, but in the "main body" of the template you can use arbitrary GNU-C features. This has been a lot more reliable. As a test program for it I'm currently in the middle of writing an LR[k] parsing library[3] in MaC.

[1] https://pagedout.institute/download/PagedOut_007.pdf#page=44 [2] https://lair.masot.net/mac/ [3] https://lair.masot.net/git/mac.git/tree/examples/lrk

New Pebble Device

https://repebble.com/blog/meet-pebble-index-01-external-memory-for-your-brain
96•freshrap6•48m ago•71 comments

Kaiju – General purpose 3D/2D game engine in Go and Vulkan with built in editor

https://github.com/KaijuEngine/kaiju
31•discomrobertul8•59m ago•12 comments

LLM from scratch, part 28 – training a base model from scratch on an RTX 3090

https://www.gilesthomas.com/2025/12/llm-from-scratch-28-training-a-base-model-from-scratch
301•gpjt•6d ago•57 comments

Show HN: AlgoDrill – Interactive drills to stop forgetting LeetCode patterns

https://algodrill.io
92•henwfan•4h ago•58 comments

The Joy of Playing Grandia, on Sega Saturn

https://www.segasaturnshiro.com/2025/11/27/the-joy-of-playing-grandia-on-sega-saturn/
119•tosh•6h ago•60 comments

Transformers know more than they can tell: Learning the Collatz sequence

https://www.arxiv.org/pdf/2511.10811
52•Xcelerate•5d ago•23 comments

Constructing the Word's First JPEG XL MD5 Hash Quine

https://stackchk.fail/blog/jxl_hashquine_writeup
51•luispa•1w ago•11 comments

EU investigates Google over AI-generated summaries in search results

https://www.bbc.com/news/articles/crl95eg33k1o
23•hackerbeat•41m ago•12 comments

A deep dive into QEMU: The Tiny Code Generator (TCG), part 1 (2021)

https://airbus-seclab.github.io/qemu_blog/tcg_p1.html
46•costco•1w ago•2 comments

Icons in Menus Everywhere – Send Help

https://blog.jim-nielsen.com/2025/icons-in-menus/
691•ArmageddonIt•20h ago•292 comments

Brent's Encapsulated C Programming Rules (2020)

https://retroscience.net/brents-c-programming-rules.html
36•p2detar•4h ago•16 comments

ZX Spectrum Next on the Internet: Xberry Pi ESP01 and Pi Zero Upgrades

https://retrogamecoders.com/zx-spectrum-next-on-the-internet-xberry-pi-esp01-and-pi-zero-upgrades/
31•ibobev•4h ago•0 comments

The Gamma Language

https://lair.masot.net/gamma/
14•RossBencina•3d ago•1 comments

Epsilon: A WASM virtual machine written in Go

https://github.com/ziggy42/epsilon
103•ziggy42•1w ago•28 comments

My favourite small hash table

https://www.corsix.org/content/my-favourite-small-hash-table
5•speckx•1h ago•0 comments

The universal weight subspace hypothesis

https://arxiv.org/abs/2512.05117
329•lukeplato•15h ago•115 comments

30 Year Anniversary of WarCraft II: Tides of Darkness

https://www.jorsys.org/archive/december_2025.html#newsitem_2025-12-09T07:42:19Z
43•sjoblomj•6h ago•23 comments

No ARIA is better than bad ARIA

https://www.w3.org/WAI/ARIA/apg/practices/read-me-first/
110•robin_reala•6d ago•69 comments

Kroger acknowledges that its bet on robotics went too far

https://www.grocerydive.com/news/kroger-ocado-close-automated-fulfillment-centers-robotics-grocer...
220•JumpCrisscross•15h ago•225 comments

Show HN: I built a system for active note-taking in regular meetings like 1-1s

https://withdocket.com
125•davnicwil•17h ago•103 comments

Manual: Spaces

https://type.today/en/journal/spaces
94•doener•15h ago•14 comments

Mazda suitcase car, a portable three-wheeled vehicle that fits in the luggage

https://www.designboom.com/technology/rediscover-mazda-suitcase-car-portable-three-wheeled-vehicl...
61•tlyleung•3h ago•32 comments

Jepsen: NATS 2.12.1

https://jepsen.io/analyses/nats-2.12.1
402•aphyr•21h ago•147 comments

Strong earthquake hits northern Japan, tsunami warning issued

https://www3.nhk.or.jp/nhkworld/en/news/20251209_02/
339•lattis•1d ago•155 comments

Microsoft increases Office 365 and Microsoft 365 license prices

https://office365itpros.com/2025/12/08/microsoft-365-pricing-increase/
437•taubek•1d ago•509 comments

Has the cost of building software dropped 90%?

https://martinalderson.com/posts/has-the-cost-of-software-just-dropped-90-percent/
355•martinald•20h ago•541 comments

Oliver Sacks Put Himself into His Case Studies. What Was the Cost?

https://www.newyorker.com/magazine/2025/12/15/oliver-sacks-put-himself-into-his-case-studies-what...
4•barry-cotter•2h ago•0 comments

Let's put Tailscale on a jailbroken Kindle

https://tailscale.com/blog/tailscale-jailbroken-kindle
309•Quizzical4230•23h ago•77 comments

Trials avoid high risk patients and underestimate drug harms

https://www.nber.org/papers/w34534
158•bikenaga•20h ago•49 comments

Launch HN: Nia (YC S25) – Give better context to coding agents

https://www.trynia.ai/
124•jellyotsiro•22h ago•77 comments