frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Interfaces and Traits in C

https://antonz.org/interfaces-in-c/
12•ibobev•1h ago

Comments

jamesmunns•1h ago
Speaking as someone familiar with C and Rust (not so much Go!), although there's a parallel here to Rust's Traits, this actually is much closer to dyn Trait in Rust, which uses vtables and runtime polymorphism, rather than "regular" Traits in Rust, which are monomorphized versions of similar interface constraints, much closer to C++'s templates (or concepts, I'm hand waving here).

This isn't necessarily a negative, sometimes you actually prefer vtables and runtime polymorphism for various reasons like flexibility, or code size reasons. Just wanted to add some flavor for folks that aren't as familiar with Rust, that this isn't exactly how things usually work, as "regular" Trait usage is much more common than dyn Trait usage, which you have to explicitly opt-in to.

EPWN3D•47m ago
I've wound up just putting the protocol state in a struct and making the "conforming" action to have that struct in the conforming object with a standardized field name. Then just use a macro to get the protocol pointer and pass it to the protocol's implementation functions.

But I really, really wish we could have a lightweight protocol/trait feature in C. It would remove a large source of unsafe code that has to cast back and forth between void *.

GPTZero finds 100 new hallucinations in NeurIPS 2025 accepted papers

https://gptzero.me/news/neurips/
314•segmenta•2h ago•187 comments

Qwen3-TTS Family Is Now Open Sourced: Voice Design, Clone, and Generation

https://qwen.ai/blog?id=qwen3tts-0115
192•Palmik•4h ago•45 comments

It looks like the status/need-triage label was removed

https://github.com/google-gemini/gemini-cli/issues/16728
64•nickswalker•1h ago•18 comments

Show HN: isometric.nyc – giant isometric pixel art map of NYC

https://cannoneyed.com/isometric-nyc/
59•cannoneyed•1h ago•21 comments

Tree-sitter vs. Language Servers

https://lambdaland.org/posts/2026-01-21_tree-sitter_vs_lsp/
112•ashton314•3h ago•33 comments

In Europe, Wind and Solar Overtake Fossil Fuels

https://e360.yale.edu/digest/europe-wind-solar-fossil-fuels
279•speckx•3h ago•256 comments

Design Thinking Books You Must Read

https://www.designorate.com/design-thinking-books/
198•rrm1977•6h ago•95 comments

AnswerThis (YC F25) Is Hiring

https://www.ycombinator.com/companies/answerthis/jobs/r5VHmSC-ai-agent-orchestration
1•ayush4921•55m ago

CSS Optical Illusions

https://alvaromontoro.com/blog/68091/css-optical-illusions
5•ulrischa•14m ago•0 comments

Launch HN: Constellation Space (YC W26) – AI for satellite mission assurance

https://constellation-io.com/
7•kmajid•52m ago•0 comments

ISO PDF spec is getting Brotli – ~20 % smaller documents with no quality loss

https://pdfa.org/want-to-make-your-pdfs-20-smaller-for-free/
95•whizzx•7h ago•48 comments

30 Years of ReactOS

https://reactos.org/blogs/30yrs-of-ros/
168•Mark_Jansen•9h ago•86 comments

Joe Armstrong and Jeremy Ruston – Intertwingling the Tiddlywiki with Erlang [video]

https://www.youtube.com/watch?v=Uv1UfLPK7_Q
25•kerim-ca•2d ago•2 comments

Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete

https://huggingface.co/sweepai/sweep-next-edit-1.5B
476•williamzeng0•18h ago•100 comments

Downtown Denver's office vacancy rate grows to 38.2%

https://coloradosun.com/2026/01/22/denver-downtown-office-vacancy-rate-tenants-workplace/
32•mooreds•44m ago•26 comments

Doctors in Brazil using tilapia fish skin to treat burn victims

https://www.pbs.org/newshour/health/brazilian-city-uses-tilapia-fish-skin-treat-burn-victims
230•kaycebasques•12h ago•72 comments

Your brain on ChatGPT: Accumulation of cognitive debt when using an AI assistant

https://www.media.mit.edu/publications/your-brain-on-chatgpt/
495•misswaterfairy•19h ago•355 comments

In Praise of APL (1977)

https://www.jsoftware.com/papers/perlis77.htm
80•tosh•9h ago•44 comments

Show HN: Interactive physics simulations I built while teaching my daughter

https://www.projectlumen.app/
45•anticlickwise•3d ago•7 comments

We will ban you and ridicule you in public if you waste our time on crap reports

https://curl.se/.well-known/security.txt
769•latexr•7h ago•490 comments

Pragmatic Bitmap Filters in Microsoft SQL Server

https://www.vldb.org/cidrdb/2026/i-cant-believe-its-not-yannakakis-pragmatic-bitmap-filters-in-mi...
8•tanelpoder•5d ago•2 comments

Douglas Adams on the English–American cultural divide over "heroes"

https://shreevatsa.net/post/douglas-adams-cultural-divide/
259•speckx•4h ago•258 comments

eBay explicitly bans AI "buy for me" agents in user agreement update

https://www.valueaddedresource.net/ebay-bans-ai-agents-updates-arbitration-user-agreement-feb-2026/
267•bdcravens•20h ago•285 comments

Threat actors expand abuse of Microsoft Visual Studio Code

https://www.jamf.com/blog/threat-actors-expand-abuse-of-visual-studio-code/
248•vinnyglennon•17h ago•254 comments

Macron says €300B in EU savings sent to the US every year will be invested in EU

https://old.reddit.com/r/europe/comments/1qjtvtl/macron_says_300_billion_in_european_savings_flown/
10•consumer451•13m ago•1 comments

The Science of Life and Death in Mary Shelley's Frankenstein

https://publicdomainreview.org/essay/the-science-of-life-and-death-in-mary-shelleys-frankenstein/
17•Anon84•5d ago•1 comments

Claude's new constitution

https://www.anthropic.com/news/claude-new-constitution
538•meetpateltech•1d ago•633 comments

Waiting for dawn in search: Search index, Google rulings and impact on Kagi

https://blog.kagi.com/waiting-dawn-search
414•josephwegner•1d ago•232 comments

Skip is now free and open source

https://skip.dev/blog/skip-is-free/
482•dayanruben•1d ago•217 comments

Gathering Linux Syscall Numbers in a C Table

https://t-cadet.github.io/programming-wisdom/#2026-01-17-gathering-linux-syscall-numbers
85•phi-system•5d ago•37 comments