frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Go struct field name retrieval: comparing runtime and codegen approaches

https://alvarolm.github.io/named/
1•alvaroflm•1h ago

Comments

alvaroflm•1h ago
Hey HN!

I got tired of writing field names twice: once in the struct tag and once as a constant. It was too much work to keep them consistent. So I explored two solutions: one that works at runtime with some overhead, and one with code generation. Both of these approaches have their pros and cons. But I would like to know what you guys think, and more importantly, how do you tackle this issue?

In the readme i documented the process and reasoning. It also includes some lazy benchmarks if you want to take a look

Thank you for your time

Alvaro

Show HN: Bringing stacked diff workflow to Perforce

https://github.com/minhkhoango/p4-stack
1•kai2006•2m ago•0 comments

MCP Ultimately Leads to Closed Gardens

https://chatbotkit.com/reflections/mcp-ultimately-leads-to-closed-gardens
1•_pdp_•6m ago•0 comments

New software toolbox enables brain-like models to learn directly from data

https://www.biorxiv.org/content/10.1101/2024.08.21.608979v2
1•PaulHoule•8m ago•0 comments

Kimchi's Immune System Benefits

https://www.nature.com/articles/s41538-025-00593-7
1•DaveZale•8m ago•0 comments

We Built the v0 iOS App

https://vercel.com/blog/how-we-built-the-v0-ios-app
1•MaxLeiter•11m ago•0 comments

Have You Considered Load-Bearing Shell History? (2022)

https://blog.tjll.net/load-bearing-shell-history/
1•wonger_•11m ago•0 comments

Terraform Industries' Business Case Doesn't Add Up

https://klaasnotfound.com/2025/06/03/terraform-industries-business-case-doesnt-add-up/
1•verzali•12m ago•0 comments

A tool for dealing with GPS time in Ns

https://andrew.diamonds/gpsnanos
1•andrewxdiamond•14m ago•0 comments

Show HN: Realtime, expressive AI personas that you can video call

https://playground.keyframelabs.com/playground/persona-1-live
2•kraddypatties•17m ago•0 comments

Ask HN: GitHub vs. self-hosted forges – What's your first impression?

2•bitbasher•18m ago•0 comments

We're Helping Companies Turn Open Source Contributions into Hiring

https://issuepay.app
1•Mario10•19m ago•1 comments

The Web Install API is ready for testing

https://blogs.windows.com/msedgedev/2025/11/24/the-web-install-api-is-ready-for-testing/
2•syx•23m ago•0 comments

Avian Influenza H5N5 Washington Death

https://www.idse.net/Influenza/Article/12-25/First-Person-Dies-From-H5N5-Bird-Flu/78941
3•howard941•26m ago•0 comments

One of the Greatest Polar-Bear Hunters Confronts a Vanishing World

https://www.newyorker.com/magazine/2025/12/01/one-of-the-greatest-polar-bear-hunters-confronts-a-...
1•bookofjoe•29m ago•1 comments

Launching the Genesis Mission

https://www.whitehouse.gov/presidential-actions/2025/11/launching-the-genesis-mission/
1•oidar•29m ago•0 comments

A P2P Grindr alternative I built in a weekend: no server, no accounts

https://meateor2.netlify.app/
1•guiprav•33m ago•1 comments

Pornhub Is Urging Tech Giants to Enact Device-Based Age Verification

https://www.wired.com/story/pornhub-is-urging-tech-giants-to-enact-device-based-age-verification/
2•toomuchtodo•34m ago•1 comments

Amazon's X-energy gets backing from Jane Street as investors bet big on nuclear

https://www.ft.com/content/59d9b7d5-e34b-4131-b80f-815208a2d4cc
1•perihelions•35m ago•0 comments

US presses Europe on rules for big tech companies

https://www.bbc.com/news/articles/clydjnlm54po
1•reqo•35m ago•0 comments

Safe Chain: Stopping Malicious NPM Packages Before They Wreck Your Project

https://www.aikido.dev/blog/introducing-safe-chain
7•nailer•38m ago•0 comments

Khosla-backed startup can track drones, trucks, and robotaxis, inch by inch

https://techcrunch.com/2025/11/20/this-khosla-based-startup-can-track-drones-trucks-and-robotaxis...
1•iamtech•43m ago•0 comments

Notes from a Pyre, by Amal Singh

https://psychopomp.com/deadlands/issue-23/pyre/
1•thunderbong•45m ago•0 comments

No copays for asthma inhalers in New York under new law

https://gothamist.com/news/breathe-freely-no-copays-for-asthma-inhalers-in-ny-under-new-law-signe...
5•geox•46m ago•0 comments

BREX Syntax Reference

https://www.proxylity.com/docs/destinations/brex-syntax.html
1•mlhpdx•48m ago•0 comments

Show HN: A faster day-count to Y,M,D algorithm – 30-40% speedup

https://www.benjoffe.com/fast-date-64
2•benjoffe•48m ago•0 comments

Enabling cheap LCD HUDs – 0.015px calibration eliminates waveguide optics

1•nighthawkcar•50m ago•1 comments

Development-Cycle in Cargo: 1.92

https://blog.rust-lang.org/inside-rust/2025/11/24/this-development-cycle-in-cargo-1.92/
1•todsacerdoti•55m ago•0 comments

Show HN: X Timeline Cleaner, block tweets by location from your X timeline

https://github.com/jawerty/X-Timeline-Cleaner
2•jawerty•57m ago•0 comments

The Colonists

https://store.steampowered.com/app/677340/The_Colonists/
1•doener•1h ago•1 comments

Fastest LLM Picker

https://metrik-dashboard.vercel.app/
1•mbouassa•1h ago•0 comments