frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Cost of a Function Call

https://lemire.me/blog/2026/02/08/the-cost-of-a-function-call/
12•ingve•3h ago

Comments

lelag•1h ago
This is all fairly obvious, no?

At first, write clean code with functions and don’t obsess over call overhead. Once it works, profile, then optimize where it actually matters.

Premature optimization, etc.

RandomBK•1h ago
Code length will itself become a problem. The instruction cache is limited in size and often quite small. Bloating instruction counts with lots of duplicated code will eventually have a negative effect on performance.

Ultimately, there's too many factors to predetermine which approach is faster. Write clean code, and let a profiler guide optimizations when needed.

bob1029•1h ago
> For functions that can be fast or slow, the decision as to whether to inline or not depends on the input.

This is one area where modern JIT runtimes can dominate static compilations. Dynamic profile guided optimization adjusts things like inlining based upon how the live workload actually performs. You don't need to have any data ahead of time.

There are very few cases where I would trade this sort of long tail optimization capability for something like faster startup. Cold start happens once. If the machine rarely stops, it's not very relevant to the typical operational concerns.

account42•1h ago
This post is surprisingly shallow considering the author. I don't think it should be surprising to anyone even remotely familiar with low level programming that function calls have an overhead but inlining doesn't always always end up making things faster.

Inlining is also not a binary yes or no question. E.g. modern compilers can create clones of functions with constants propagated into some of the arguments, which gives some of the benefits of inlining. They are also free to change the calling convention (or make one up on the spot) for internal functions instead of inlining - something I'd like to see compilers explore further.

randomtoast•24m ago
> This post is surprisingly shallow considering the author.

I think a low effort post from time to time is okay.

Art of Roads in Games

https://sandboxspirit.com/blog/art-of-roads-in-games/
356•linolevan•14h ago•111 comments

Vouch

https://github.com/mitchellh/vouch
872•chwtutha•1d ago•394 comments

Show HN: Algorithmically Finding the Longest Line of Sight on Earth

https://alltheviews.world
6•tombh•1h ago•1 comments

LispE: Lisp Interpreter with Pattern Programming and Lazy Evaluation

https://github.com/naver/lispe
61•PaulHoule•4d ago•10 comments

Clean Coder: The Dark Path (2017)

https://blog.cleancoder.com/uncle-bob/2017/01/11/TheDarkPath.html
13•andrewjf•4d ago•21 comments

Tessellation Kit (2016)

https://sciencevsmagic.net/tes/#0.5.0.1.aaaaaaaaa
5•surprisetalk•4d ago•1 comments

Show HN: A custom font that displays Cistercian numerals using ligatures

https://bobbiec.github.io/cistercian-font.html
99•bobbiechen•12h ago•19 comments

Every book recommended on the Odd Lots Discord

https://odd-lots-books.netlify.app/
102•muggermuch•11h ago•38 comments

More Mac malware from Google search

https://eclecticlight.co/2026/01/30/more-malware-from-google-search/
199•kristianp•14h ago•132 comments

Apple XNU: Clutch Scheduler

https://github.com/apple-oss-distributions/xnu/blob/main/doc/scheduler/sched_clutch_edge.md
144•tosh•14h ago•26 comments

Show HN: I created a Mars colony RPG based on Kim Stanley Robinson’s Mars books

https://underhillgame.com/
219•ariaalam•18h ago•69 comments

Ask HN: What are you working on? (February 2026)

156•david927•15h ago•511 comments

Quartz crystals

https://www.pa3fwm.nl/technotes/tn13a.html
79•gtsnexp•1d ago•20 comments

Custom Firmware for the MZ-RH1 – Ready for Testing

https://sir68k.re/posts/rh1-firmware-available/
47•jimbauwens•4d ago•16 comments

Reverse Engineering the Prom for the SGI O2

https://mattst88.com/blog/2026/02/08/Reverse_Engineering_the_PROM_for_the_SGI_O2/
93•mattst88•12h ago•20 comments

Roundcube Webmail: SVG feImage bypasses image blocking to track email opens

https://nullcathedral.com/posts/2026-02-08-roundcube-svg-feimage-remote-image-bypass/
146•nullcathedral•16h ago•52 comments

The Little Bool of Doom (2025)

https://blog.svgames.pl/article/the-little-bool-of-doom
111•pocksuppet•17h ago•38 comments

Experts Have World Models. LLMs Have Word Models

https://www.latent.space/p/adversarial-reasoning
104•aaronng91•16h ago•121 comments

TSMC to make advanced AI semiconductors in Japan

https://apnews.com/article/semiconductors-tsmc-japan-taiwan-ai-11256f2bfde73ca23d08331ad138d6d5
172•dev_tty01•6h ago•113 comments

Claude’s C Compiler vs. GCC

https://harshanu.space/en/tech/ccc-vs-gcc/
276•unchar1•6h ago•227 comments

GitHub Agentic Workflows

https://github.github.io/gh-aw/
259•mooreds•21h ago•123 comments

AI makes the easy part easier and the hard part harder

https://www.blundergoat.com/articles/ai-makes-the-easy-part-easier-and-the-hard-part-harder
342•weaksauce•11h ago•251 comments

Werewolf Vflex Adapter Review

https://hagensieker.com/2026/02/05/werewolf-vflex-adapter-review/
6•geerlingguy•3d ago•0 comments

Offpunk 3.0

https://ploum.net/2026-02-09-offpunk3.html
3•todsacerdoti•34m ago•0 comments

Running Your Own As: BGP on FreeBSD with FRR, GRE Tunnels, and Policy Routing

https://blog.hofstede.it/running-your-own-as-bgp-on-freebsd-with-frr-gre-tunnels-and-policy-routing/
179•todsacerdoti•21h ago•72 comments

Show HN: Slack CLI for Agents

https://github.com/stablyai/agent-slack
85•nwparker•3d ago•25 comments

Dave Farber has died

https://lists.nanog.org/archives/list/nanog@lists.nanog.org/thread/TSNPJVFH4DKLINIKSMRIIVNHDG5XKJCM/
255•vitplister•23h ago•41 comments

Toma (YC W24) Is Hiring Founding Engineers

https://www.ycombinator.com/companies/toma/jobs/oONUnCf-founding-engineer-ai-products
1•anthonykrivonos•12h ago

Exploiting signed bootloaders to circumvent UEFI Secure Boot (2019)

https://habr.com/en/articles/446238/
125•todsacerdoti•20h ago•70 comments

A GTA modder has got the 1997 original working on modern PCs and Steam Deck

https://gtaforums.com/topic/986492-grand-theft-auto-ready2play-full-game-windows-version/
190•HelloUsername•14h ago•98 comments