frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Some C habits I employ for the modern day

https://www.unix.dog/~yosh/blog/c-habits-for-me.html
35•signa11•4d ago

Comments

skywalqer•1h ago
Nice post, but the flashy thing on the side is pretty distracting. I liked the tuples and maybes.
smnplk•1h ago
Not distracting at all, it feels nostalgic to me. Id rather have these flashy things than a million popups and registration forms following you around, which is basically the modern web. I hate it so much. This site is pure balsam for my soul.
Vedor•46m ago
Both nostalgic and distracting for me.
matheusmoreira•33m ago
> In the absence of proper language support, “sum types” are just structs with discipline.

With enough compiler support they could be more than that. For example, I submitted a tagged union analysis feature request to gcc and clang, and someone generalized it into a guard builtin.

https://github.com/llvm/llvm-project/issues/74205

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112840

GCC proved to be too complex for me to hack this in though. To this day I'm hoping someone better than me will implement it.

nine_k•8m ago
With proper discipline, one can even program a Turing machine directly. The problems are two: (1) Doing so is very slow and arduous, and (2) a chance of making a dangerous error is still quite high.

For instance, it appears that no amount of proper discipline, even in the best developers, allows to replace proper array support with a naked pointer to a memory area.

canpan•13m ago
Regarding memory, I recently changed to try to not use dynamic memory, or if I need to, to do it once at startup. Often static memory on startup is sufficient.

Instead use the stack much more and have a limit on how much data the program can handle fixed on startup. It adds the need to think what happens if your system runs out of memory.

Like OP said, it's not a solution for all types of programs. But it makes for very stable software with known and easily tested error states. Also adds a bit of fun in figuring out how to do it.

vbezhenar•2m ago
In recent years I had to write some firmware code with C and that was exactly the approach I took. So far I never had need for any dynamic memory and I was surprised how far I can get without it.
sys_64738•10m ago
#define BEGIN {

#define END }

/* scream! */

JamesTRexx•2m ago
Two things I thought while reading the post: Why not typedef BitInt types for stricter size and accidental promotion control when typedeffing for easier names anyway? I came across a post mentioning using regular arrays instead of strings to avoid the null terminatorand off-by-one pitfalls.

I still have a lot of conversion to do before I can try this in my hobby project, but these are interesting ideas.

Unrolling the Codex agent loop

https://openai.com/index/unrolling-the-codex-agent-loop/
182•tosh•4h ago•67 comments

New YC homepage

https://www.ycombinator.com/
144•sarreph•6h ago•64 comments

Banned C++ Features in Chromium

https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++-features.md
92•szmarczak•4h ago•74 comments

Gas Town's agent patterns, design bottlenecks, and vibecoding at scale

https://maggieappleton.com/gastown
238•pavel_lishin•8h ago•264 comments

Proof of Corn

https://proofofcorn.com/
307•rocauc•7h ago•223 comments

Some C habits I employ for the modern day

https://www.unix.dog/~yosh/blog/c-habits-for-me.html
35•signa11•4d ago•9 comments

Route leak incident on January 22, 2026

https://blog.cloudflare.com/route-leak-incident-january-22-2026/
110•nomaxx117•7h ago•26 comments

Microsoft gave FBI set of BitLocker encryption keys to unlock suspects' laptops

https://techcrunch.com/2026/01/23/microsoft-gave-fbi-a-set-of-bitlocker-encryption-keys-to-unlock...
595•bookofjoe•6h ago•420 comments

Mental Models (2018)

https://fs.blog/mental-models/
35•hahahacorn•3h ago•9 comments

TikTok Is Now Collecting More Data About Its Users

https://www.wired.com/story/tiktok-new-privacy-policy/
65•coloneltcb•2h ago•17 comments

KORG phase8 – Acoustic Synthesizer

https://www.korg.com/us/products/dj/phase8/
181•bpierre•10h ago•86 comments

Certificate Transparency Log Explorer

https://certs.swerdlow.dev
13•benswerd•4h ago•3 comments

Booting from a vinyl record (2020)

https://boginjr.com/it/sw/dev/vinyl-boot/
271•yesturi•14h ago•103 comments

TrueVault (YC W14) is hiring a Growth Lead to test different growth channels

https://www.ycombinator.com/companies/truevault/jobs/njvSGDj-growth-lead
1•jason_wang•3h ago

Gold fever, cold, and the true adventures of Jack London in the wild

https://www.smithsonianmag.com/history/gold-fever-deadly-cold-and-amazing-true-adventures-jack-lo...
33•janandonly•5d ago•6 comments

Killing the ISP Appliance: An eBPF/XDP Approach to Distributed BNG

https://markgascoyne.co.uk/posts/ebpf-bng/
64•chaz6•7h ago•16 comments

Ask HN: What's the current best local/open speech-to-speech setup?

45•dsrtslnd23•13h ago•11 comments

Proton Spam and the AI Consent Problem

https://dbushell.com/2026/01/22/proton-spam/
467•dbushell•17h ago•324 comments

Notes on the Intel 8086 processor's arithmetic-logic unit

https://www.righto.com/2026/01/notes-on-intel-8086-processors.html
70•elpocko•7h ago•9 comments

The tech monoculture is finally breaking

http://www.jasonwillems.com/technology/2025/12/17/Tech-Is-Fun-Again/
112•at1as•9h ago•159 comments

Waypoint-1: Real-Time Interactive Video Diffusion from Overworld

https://huggingface.co/blog/waypoint-1
55•avaer•9h ago•15 comments

Nobody likes lag: How to make low-latency dev sandboxes

https://www.compyle.ai/blog/nobody-likes-lag/
56•mnazzaro•7h ago•30 comments

Floating-Point Printing and Parsing Can Be Simple and Fast

https://research.swtch.com/fp
83•chmaynard•4d ago•5 comments

Show HN: Whosthere: A LAN discovery tool with a modern TUI, written in Go

https://github.com/ramonvermeulen/whosthere
192•rvermeulen98•13h ago•69 comments

Anthropic Economic Index report: economic primitives

https://www.anthropic.com/research/anthropic-economic-index-january-2026-report
104•malshe•1d ago•58 comments

Show HN: Zsweep – Play Minesweeper using only Vim motions

https://zsweep.com
62•oug-t•5d ago•28 comments

The SIM-to-real problem isn't about simulators – it's about behavior robustness

https://medium.com/@freefabian/introducing-the-concept-of-kinematic-fingerprints-8e9bb332cc85
5•fabotelli•4d ago•0 comments

Radicle: The Sovereign Forge

https://radicle.xyz
252•ibobev•11h ago•125 comments

Neko: History of a Software Pet (2022)

https://eliotakira.com/neko/
38•mifydev•3h ago•8 comments

EquipmentShare (YC W15) goes public

https://www.ycombinator.com/blog/congratulations-to-equipmentshare/
11•subsequent•3h ago•8 comments