Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Google AI Studio fakes data deletion. VRP auto-banned me in 60s for reporting it(medium.com/istokovicsgyorgy79 ↗)
    discuss
  2. Polymarket's Rush to Grow Left a Door Wide Open for Fraudsters(wsj.com ↗)
    1comments
  3. Step 5 Preview: Advancing the Pareto Frontier(stepfun.com ↗)
    discuss
  4. Quantum Color Conjecture(avahbanerjee.com ↗)
    discuss
  5. What are you building with jev?
    discuss
  6. Egocentric training's gig workers are helping robots learn how to do your dishes(abc.net.au ↗)
    discuss
  7. JEV: Ranking 6K+ peer-company candidates in ~40 seconds(twitter.com/alex_aic5 ↗)
    discuss
  8. Random Reality (2000)(wisc.edu ↗)
    1comments
  9. Adapting Fossil-scm as a platform for AI agentic workflow(github.com/bensiv ↗)
    discuss
  10. Show HN: Architectural Guardrails for AI native development(github.com/cxgrd ↗)
    discuss
  11. PanoDrop: Save and rediscover immersive 360° views of anywhere in the world(panodrop.app ↗)
    discuss
  12. Protocol-Aware Deterministic Simulation Testing(tigerbeetle.com ↗)
    discuss
  13. Integrating Volt Active Data with AI Agents and Chatbots(voltdb.com ↗)
    discuss
  14. Inference-Engine Fingerprinting Attacks Are Practical(arxiv.org ↗)
    discuss
  15. OpenAI researcher on AI communicating across air-gaps via thermal side-channels [video](youtube.com ↗)
    1comments
  16. Show HN: The Smallest LLM in JavaScript(gist.github.com ↗)
    discuss
  17. Myth of Brand Power(hoskingpartners.com ↗)
    discuss
  18. Turning 15-hour layovers into 5-day stopovers, usually for less mone(uwillfly.net ↗)
    discuss
  19. Another terminal/shell AI assistant (shell native)(github.com/ther1d ↗)
    1comments
  20. Show HN: All-in-one open-source Tab organizer(github.com/ringlochid ↗)
    discuss
  21. The senior engineer death spiral(sunilpai.dev ↗)
    discuss
  22. Grit your teeth and ship it(seangoedecke.com ↗)
    discuss
  23. Nscale S-1 demonstrates unprofitability of AI(reddit.com ↗)
    discuss
  24. The Story of FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8(twitter.com/davepl1968 ↗)
    discuss
  25. California Cracks Down on Influencers' Undisclosed Political Ads(nytimes.com ↗)
    discuss
  26. The X3DH Key Agreement Protocol(signal.org ↗)
    discuss
  27. Market design: affinity networks like shooq, & why a festival should buy afm(danieldeboulay.com ↗)
    discuss
  28. Show HN: AudioSort, a web app for sorting audio files(vakaiser.com ↗)
    discuss
  29. Crypto Blew Its Big Moment–and the Blame Game Has Begun(wsj.com ↗)
    discuss
  30. OpenAI expects to burn $280B by 2030(ft.com ↗)
    discuss

Comparing reflection capabilities of C++, Zig and C3

10 pointsby 2h agonyr24.github.io
5 comments
1h agoHN ↗

"not an expert in zig" but you can't even look at the documentation to find the `@tagName` builtin to do exactly the problem posed?: https://ziglang.org/documentation/0.16.0/#tagName

i can literally google "zig enum to string" and the first result is a reddit post where the given solution is `@tagName`. i'm ready to write this post off as a low-effort ad for C3

11m agoHN ↗

If it's for debugging purposes, you can use `{any}` as the format and it will print `.BLUE`

  std.debug.print("{any}\n", .{color});
1h agoHN ↗

There's a large black zig-zag blocking reading the text.

43m agoHN ↗

Zig doesn't have attributes, but you could just create a thin wrapper struct over an inner type and use setter functions that throw errors on invalid values. Personally I prefer this over attributes because it forces you to handle possible error states from the callers of the setters, instead of relying on you remembering to call `validate` on your types.