frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Checked-size array parameters in C

https://lwn.net/SubscriberLink/1046840/3eb9029084cc9e1e/
13•chmaynard•2h ago

Comments

aaaashley•27m ago
Funny thing about that n[static M] array checking syntax–it was even considered bad in 1999, when it was included:

"There was a unanimous vote that the feature is ugly, and a good consensus that its incorporation into the standard at the 11th hour was an unfortunate decision." - Raymond Mak (Canada C Working Group), https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_205.htm

jacquesm•7m ago
It wasn't considered bad, it was considered ugly and in the context given that is a major difference. The proposed alternative in that post to me is even more ugly so I would have agreed with the option that received the most support, to leave it as it was.
o11c•16m ago
Better option: just wrap it in a unique struct.

There are perhaps only 3 numbers: 0, 1, and lots. A fair argument might be made that 2 also exists, but for anything higher, you need to think about your abstraction.

Veserv•10m ago
Pointer to array is not only type-safe, it is also objectively correct and should have always been the syntax used when passing in the address of a known, fixed size array. This is all a artifact of C automatically decaying arrays to pointers in argument lists when a array argument should have always meant passing a array by value; then this syntax would have been the only way to pass in the address of a array and we would not have these warts. Automatic decaying is truly one of the worst actual design mistakes of the language (i.e. a error even when it was designed, not the failure to adopt new innovations).
jacquesm•6m ago
Fully agreed, and something that is hard to fix. This guy is trying really hard and with some success:

https://news.ycombinator.com/item?id=45735877

Ghostty is now non-profit

https://mitchellh.com/writing/ghostty-non-profit
572•vrnvu•4h ago•108 comments

Reverse engineering a $1B Legal AI tool exposed 100k+ confidential files

https://alexschapiro.com/security/vulnerability/2025/12/02/filevine-api-100k
384•bearsyankees•5h ago•124 comments

Valve reveals it’s the architect behind a push to bring Windows games to Arm

https://www.theverge.com/report/820656/valve-interview-arm-gaming-steamos-pierre-loup-griffais
268•evolve2k•1d ago•311 comments

1D Conway's Life glider found, 3.7B cells long

https://conwaylife.com/forums/viewtopic.php?&p=222136#p222136
247•nooks•5h ago•94 comments

Micron Announces Exit from Crucial Consumer Business

https://investors.micron.com/news-releases/news-release-details/micron-announces-exit-crucial-con...
213•simlevesque•4h ago•71 comments

RCE Vulnerability in React and Next.js

https://github.com/vercel/next.js/security/advisories/GHSA-9qr9-h5gf-34mp
317•rayhaanj•6h ago•91 comments

Lie groups are crucial to some of the most fundamental theories in physics

https://www.quantamagazine.org/what-are-lie-groups-20251203/
63•ibobev•3h ago•22 comments

Everyone in Seattle hates AI

https://jonready.com/blog/posts/everyone-in-seattle-hates-ai.html
434•mips_avatar•3h ago•413 comments

Launch HN: Phind 3 (YC S22) – Every answer is a mini-app

59•rushingcreek•5h ago•59 comments

Show HN: I built a dashboard to compare mortgage rates across 120 credit unions

https://finfam.app/blog/credit-union-mortgages
31•mhashemi•2h ago•15 comments

Checked-size array parameters in C

https://lwn.net/SubscriberLink/1046840/3eb9029084cc9e1e/
14•chmaynard•2h ago•5 comments

Why are my headphones buzzing whenever I run my game?

https://alexene.dev/2025/12/03/Why-do-my-headphones-buzz-when-i-run-my-game.html
117•pacificat0r•7h ago•96 comments

How to Synthesize a House Loop

https://loopmaster.xyz/tutorials/how-to-synthesize-a-house-loop
143•stagas•6d ago•48 comments

Chips for the Rest of Us

https://engineering.nyu.edu/about/unconventional-engineer/chips-for-us
21•hasheddan•1h ago•3 comments

R packages for data science

https://tidyverse.org/
40•cl3misch•1w ago•16 comments

MinIO is now in maintenance-mode

https://github.com/minio/minio/commit/27742d469462e1561c776f88ca7a1f26816d69e2
368•hajtom•6h ago•212 comments

Apple Desktop Bus Protocol (2021)

https://www.lopaciuk.eu/2021/03/26/apple-adb-protocol.html
45•dcminter•3d ago•8 comments

Rocketable (YC W25) is hiring a founding engineer to automate software companies

https://www.ycombinator.com/companies/rocketable/jobs/CArgzmX-founding-engineer-automation-platform
1•alanwells•5h ago

You can't fool the optimizer

https://xania.org/202512/03-more-adding-integers
219•HeliumHydride•10h ago•131 comments

Prompt Injection via Poetry

https://www.wired.com/story/poems-can-trick-ai-into-helping-you-make-a-nuclear-weapon/
46•bumbailiff•4h ago•28 comments

Anthropic taps IPO lawyers as it races OpenAI to go public

https://www.ft.com/content/3254fa30-5bdb-4c30-8560-7cd7ebbefc5f
241•GeorgeWoff25•12h ago•203 comments

Cross-Compiling Common Lisp to WASM

https://turtleware.eu/posts/Common-Lisp-and-WebAssembly.html
13•jackdaniel•5d ago•1 comments

“Captain Gains” on Capitol Hill

https://www.nber.org/papers/w34524
763•mhb•9h ago•483 comments

Show HN: Fresh – A new terminal editor built in Rust

https://sinelaw.github.io/fresh/
69•_sinelaw_•8h ago•56 comments

GSWT: Gaussian Splatting Wang Tiles

https://yunfan.zone/gswt_webpage/
82•klaussilveira•8h ago•20 comments

Greeting Vocalizations in Domestic Cats Are More Frequent with Male Caregivers

https://onlinelibrary.wiley.com/doi/10.1111/eth.70033
8•JumpCrisscross•54m ago•3 comments

A Look at Rust from 2012

https://purplesyringa.moe/blog/a-look-at-rust-from-2012/
148•todsacerdoti•1w ago•61 comments

8086 Microcode Browser

https://nand2mario.github.io/posts/2025/8086_microcode_browser/
10•zdw•1h ago•0 comments

Formally verifying Advent of Code using Dijkstra's program construction

https://haripm.com/blog/aoc-day-3-without-thinking/
24•seafoamteal•4h ago•2 comments

Are we repeating the telecoms crash with AI datacenters?

https://martinalderson.com/posts/are-we-really-repeating-the-telecoms-crash-with-ai-datacenters/
154•davedx•11h ago•122 comments