frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Cost of a Closure in C: The Rest

https://thephd.dev/the-cost-of-a-closure-in-c-c2y-followup
20•ingve•2d ago

Comments

andsoitis•2h ago
> Cost of a Closure in C

C does not have closures. You could simulate closures, but it is neither robust not automatic compared to languages tha truly support them.

aragilar•1h ago
C does not currently have closures, the post it looking at their performance properties with an eye for what form closures should be added to the standard.
skavi•19m ago
I think maybe this post would make more sense if you were familiar to its antecedent [0] which compares existing closure extensions to C. IIRC the comparison was in the context of considering designs for standardization.

[0]: https://thephd.dev/the-cost-of-a-closure-in-c-c2y

userbinator•1h ago
Those graph axes units are... perplexing, to say the least.

So, we need to swap to the logarithmic graphs to get a better picture

I wish more people would know about decibels.

Panzerschrek•1h ago
Why struggling using qsort? std::sort from C++ is much better in terms of usability and performance.
djaouen•1h ago
Lisp solves the performance hit of closures with macros. However, given what macros look like in C, I hope it never amounts to that!
skavi•13m ago
There’s no necessary performance hit for closures. The performance cost here is caused by these closures needing to conform to a function pointer looking interface in order to be generally useful in C.

Publish on your own site, syndicate elsewhere

https://indieweb.org/POSSE#
552•47thpresident•11h ago•127 comments

Daft Punk Easter Egg in the BPM Tempo of Harder, Better, Faster, Stronger?

https://www.madebywindmill.com/tempi/blog/hbfs-bpm/
401•simonw•9h ago•71 comments

IQuest-Coder: A new open-source code model beats Claude Sonnet 4.5 and GPT 5.1 [pdf]

https://github.com/IQuestLab/IQuest-Coder-V1/blob/main/papers/IQuest_Coder_Technical_Report.pdf
36•shenli3514•3h ago•17 comments

Show HN: Website that plays the lottery every second

https://lotteryeverysecond.lffl.me/
139•Loeffelmann•7h ago•65 comments

Of Boot Vectors and Double Glitches: Bypassing RP2350's Secure Boot

https://streaming.media.ccc.de/39c3/relive/2149
32•aberoham•6d ago•0 comments

2026 will be my year of the Linux desktop

https://xeiaso.net/notes/2026/year-linux-desktop/
425•todsacerdoti•7h ago•293 comments

A Basic Just-In-Time Compiler (2015)

https://nullprogram.com/blog/2015/03/19/
48•ibobev•6h ago•11 comments

Adventure 751 (1980)

https://bluerenga.blog/2026/01/01/adventure-751-1980/
29•quuxplusone•4h ago•2 comments

IPv6 just turned 30 and still hasn't taken over the world

https://www.theregister.com/2025/12/31/ipv6_at_30/
326•Brajeshwar•16h ago•664 comments

Clicks Communicator

https://www.clicksphone.com/en/communicator
309•microflash•14h ago•204 comments

Ask HN: Who is hiring? (January 2026)

279•whoishiring•15h ago•176 comments

Linux kernel security work

http://www.kroah.com/log/blog/2026/01/02/linux-kernel-security-work/
90•chmaynard•9h ago•40 comments

Loud noises heard in Venezuela capital, southern area without electricity

https://www.reuters.com/world/americas/loud-noises-heard-venezuela-capital-southern-area-without-...
27•jumpocelot•50m ago•6 comments

Unix v4 (1973) – Live Terminal

https://unixv4.dev/
139•pjmlp•12h ago•64 comments

The Cost of a Closure in C: The Rest

https://thephd.dev/the-cost-of-a-closure-in-c-c2y-followup
20•ingve•2d ago•7 comments

Einstein Probe detects an X-ray flare from nearby star

https://phys.org/news/2025-12-einstein-probe-ray-flare-nearby.html
29•wglb•5h ago•4 comments

Jank Lang Hit Alpha

https://github.com/jank-lang/jank
150•makemethrowaway•11h ago•23 comments

Fighting Fire with Fire: Scalable Oral Exams

https://www.behind-the-enemy-lines.com/2025/12/fighting-fire-with-fire-scalable-oral.html
157•sethbannon•13h ago•204 comments

Ask HN: Who wants to be hired? (January 2026)

105•whoishiring•15h ago•195 comments

Japan joining growing global trend of declining democracy

https://www.asahi.com/ajw/articles/16262732
35•wahnfrieden•1h ago•20 comments

TinyTinyTPU: 2×2 systolic-array TPU-style matrix-multiply unit deployed on FPGA

https://github.com/Alanma23/tinytinyTPU-co
102•Xenograph•12h ago•42 comments

Accounting for Computer Scientists (2011)

https://martin.kleppmann.com/2011/03/07/accounting-for-computer-scientists.html
92•tosh•13h ago•33 comments

Multiple explosions in Venezuela's capital Caracas

https://www.cnn.com/2026/01/03/americas/venezuela-explosions-intl-hnk
39•breppp•36m ago•18 comments

A Beginner's Two-Component Crystal-Style Wi-Fi Detector

https://siliconjunction.wordpress.com/2025/12/12/a-beginners-two-component-crystal-style-wi-fi-de...
6•jensgk•2d ago•2 comments

The rsync algorithm (1996) [pdf]

https://www.andrew.cmu.edu/course/15-749/READINGS/required/cas/tridgell96.pdf
113•vortex_ape•14h ago•12 comments

Punkt. Unveils MC03 Smartphone

https://www.punkt.ch/blogs/news/punkt-unveils-mc03
136•ChrisArchitect•15h ago•124 comments

Chain Flinger

https://nealstephenson.substack.com/p/kdk-kinetik-der-kontinua-part-1-introduction
41•roomey•5d ago•7 comments

Uxn32: Uxn Emulator for Windows and Wine

https://github.com/randrew/uxn32
51•ibobev•6d ago•4 comments

Assorted less(1) tips

https://blog.thechases.com/posts/assorted-less-tips/
197•todsacerdoti•18h ago•45 comments

HPV vaccination reduces oncogenic HPV16/18 prevalence from 16% to <1% in Denmark

https://www.eurosurveillance.org/content/10.2807/1560-7917.ES.2025.30.27.2400820
525•stared•21h ago•298 comments