frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Inlining – The Ultimate Optimisation

https://xania.org/202512/17-inlining-the-ultimate-optimisation
16•PaulHoule•4d ago

Comments

jayd16•1h ago
Is there a name for duplicating function calls such that different optimizations for the same function can be compiled, but they are not fully duplicated at every call site?
Someone•1h ago
I think that is called specialization (https://www.linkedin.com/posts/compilers-lab_compiler-progra...).

Even if the compiler doesn’t explicitly do it, it can happen when doing subsequent optimization steps after inlining such as constant folding and dead code elimination.

hinkley•29m ago
Specialization is one of the reasons my call trees are just a little bit deeper than what one would expect given my loud but moderate stance on function splitting. Uncle Bob is nuts for espousing one line functions. But the answer to Bob being a lunatic is not two page functions. I think you can say a lot in five to six lines, and not overshoot meaningful names into word salad because you’ve run out of ideas. That’s still small enough for branch prediction, inlining, and specialization to kick in per call site, particularly if some callers follow one conditional branch and the others favors the other.
taeric•1h ago
I think this is what the C++ world calls template specialization?
khuey•1h ago
If I understand what you're asking for correctly, function cloning.

If you have f(x, y) and the compiler realizes the function optimizes nicely when y == 2 it can create a clone of f with a fixed argument y == 2, optimize that, and rewrite the appropriate call sites to call the clone.

hinkley•34m ago
There was a weird period in JavaScript’s history where the threshold for inlining was rather fixed and counted comments as part of the function weight. So there was code that would go faster if you deleted the comments.

I believe it was counting AST nodes rather than bytes, otherwise that would have also created problems for descriptive function names as well and that would have been what we heard about instead of comments.

on_the_train•21m ago
That's the reason why polymorphism is sometimes described as slow. It's not really slow... But it prevents inlining and therefore always is a function call as opposed to sometimes no function call. It's not the polymorphism is slow. It's that alternatives can sometimes compile to zero
branko_d•9m ago
On the other hand, if the compiler can prove at compile-time what type the object must have at run-time, it can eliminate the dynamic dispatch and effectively re-enable inlining.

The Tulip Creative Computer

https://github.com/shorepine/tulipcc
132•apitman•4h ago•30 comments

AI Generated Music Barred from Bandcamp

https://old.reddit.com/r/BandCamp/comments/1qbw8ba/ai_generated_music_on_bandcamp/
335•cdrnsf•2h ago•238 comments

No management needed: anti-patterns in early-stage engineering teams

https://www.ablg.io/blog/no-management-needed
10•tonioab•2h ago•0 comments

How to make a damn website (2024)

https://lmnt.me/blog/how-to-make-a-damn-website.html
58•birdculture•3h ago•24 comments

Show HN: Ayder – HTTP-native durable event log written in C (curl as client)

https://github.com/A1darbek/ayder
35•Aydarbek•3h ago•9 comments

Games Workshop bans staff from using AI, management not excited about the tech

https://www.ign.com/articles/warhammer-maker-games-workshop-bans-its-staff-from-using-ai-in-its-c...
28•jsheard•28m ago•5 comments

Instagram AI Influencers Are Defaming Celebrities with Sex Scandals

https://www.404media.co/instagram-ai-influencers-are-defaming-celebrities-with-sex-scandals/
85•cdrnsf•1h ago•55 comments

Scott Adams has died

https://www.youtube.com/watch?v=Rs_JrOIo3SE
496•ekianjo•5h ago•878 comments

Influencers and OnlyFans models are dominating U.S. O-1 visa requests

https://www.theguardian.com/us-news/2026/jan/11/onlyfans-influencers-us-o-1-visa
273•bookofjoe•4h ago•188 comments

Apple Creator Studio

https://www.apple.com/newsroom/2026/01/introducing-apple-creator-studio-an-inspiring-collection-o...
429•lemonlime227•6h ago•350 comments

Text-based web browsers

https://cssence.com/2026/text-based-web-browsers/
265•pabs3•15h ago•98 comments

Signal leaders warn agentic AI is an insecure, unreliable surveillance risk

https://coywolf.com/news/productivity/signal-president-and-vp-warn-agentic-ai-is-insecure-unrelia...
274•speckx•2h ago•84 comments

Legion Health (YC S21) Hiring Cracked Founding Eng for AI-Native Ops

https://jobs.ashbyhq.com/legionhealth/ffdd2b52-eb21-489e-b124-3c0804231424
1•ympatel•4h ago

Inlining – The Ultimate Optimisation

https://xania.org/202512/17-inlining-the-ultimate-optimisation
16•PaulHoule•4d ago•8 comments

Are two heads better than one?

https://eieio.games/blog/two-heads-arent-better-than-one/
4•evakhoury•4h ago•0 comments

Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

https://marketplace.visualstudio.com/items?itemName=Nogic.nogic
6•davelradindra•2h ago•0 comments

Git Rebase for the Terrified

https://www.brethorsting.com/blog/2026/01/git-rebase-for-the-terrified/
208•aaronbrethorst•6d ago•222 comments

Everything you never wanted to know about file locking (2010)

https://apenwarr.ca/log/20101213
45•SmartHypercube•5d ago•9 comments

A university got itself banned from the Linux kernel (2021)

https://www.theverge.com/2021/4/30/22410164/linux-kernel-university-of-minnesota-banned-open-source
37•italophil•2h ago•16 comments

Show HN: An iOS budget app I've been maintaining since 2011

https://primoco.me/en/
124•Priotecs•10h ago•55 comments

Choosing learning over autopilot

https://anniecherkaev.com/choosing-learning-over-autopilot
3•evakhoury•2h ago•0 comments

Going for Gold: The Story of the Golden Lego RCX and NXT

https://bricknerd.com/home/going-for-gold-the-story-of-the-golden-lego-rcx-and-nxt-9-9-21
8•kotaKat•4d ago•0 comments

Show HN: Self-host Reddit – 2.38B posts, works offline, yours forever

https://github.com/19-84/redd-archiver
122•19-84•5h ago•24 comments

What a year of solar and batteries saved us in 2025

https://scotthelme.co.uk/what-a-year-of-solar-and-batteries-really-saved-us-in-2025/
218•MattSayar•5h ago•274 comments

Show HN: Ever wanted to look at yourself in Braille?

https://github.com/NishantJoshi00/dith
16•cat-whisperer•4d ago•3 comments

Show HN: FastScheduler – Decorator-first Python task scheduler, async support

https://github.com/MichielMe/fastscheduler
32•michielme•6h ago•6 comments

Cowork: Claude Code for the rest of your work

https://claude.com/blog/cowork-research-preview
1225•adocomplete•1d ago•524 comments

Local Journalism Is How Democracy Shows Up Close to Home

https://buckscountybeacon.com/2026/01/opinion-local-journalism-is-how-democracy-shows-up-close-to...
348•mooreds•7h ago•234 comments

The Case for Blogging in the Ruins

https://www.joanwestenberg.com/the-case-for-blogging-in-the-ruins/
57•herbertl•3h ago•6 comments

Confer – End to end encrypted AI chat

https://confer.to/
55•vednig•7h ago•47 comments