frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

//go:fix inline and the source-level inliner

https://go.dev/blog/inliner
63•commotionfever•4d ago

Comments

measurablefunc•1h ago
https://en.wikipedia.org/wiki/Hygienic_macro
tapirl•47m ago
It looks the following code will be rewritten badly, but no ways to avoid it? If this is true, maybe the blog article should mention this.

    package main
    
    //go:fix inline
    func handle() {
        recover()
    }
    
    func foo() {
        handle()
    }
    
    func main() {
        defer foo()
        panic("bye")
    }
arccy•38m ago
Or: your buggy code is no longer buggy.
shoo•31m ago
Great example, illustrating go1.26.1 go fix source inline transformation breaking program semantics. Raise it as a bug against go fix?
shoo•45m ago
If I follow, this isn't a compile time inline directive, it's a `go fix` time source transformation of client code calling the annotated function.

Per the post, it sounds like this is most effective in closed-ecosystem internal monorepo-like contexts where an organisation has control over every instance of client code & can `go fix` all of the call sites to completely eradicate all usage of a deprecated APIs:

> For many years now, our Google colleagues on the teams supporting Java, Kotlin, and C++ have been using source-level inliner tools like this. To date, these tools have eliminated millions of calls to deprecated functions in Google’s code base. Users simply add the directives, and wait. During the night, robots quietly prepare, test, and submit batches of code changes across a monorepo of billions of lines of code. If all goes well, by the morning the old code is no longer in use and can be safely deleted. Go’s inliner is a relative newcomer, but it has already been used to prepare more than 18,000 changelists to Google’s monorepo.

It could still have some incremental benefit for public APIs where client code is not under centralised control, but would not allow deprecated APIs to be removed without breakage.

omoikane•16m ago
I wonder why they chose to add these directives as comments as opposed to adding new syntax for them. It feels like a kludge.

https://wiki.c2.com/?HotComments

0x696C6961•10m ago
The //go:xyz comments are an established pattern in the Go tooling.

Let your Coding Agent debug the browser session with Chrome DevTools MCP

https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session
189•xnx•2h ago•65 comments

The 49MB Web Page

https://thatshubham.com/blog/news-audit
140•kermatt•2h ago•80 comments

//go:fix inline and the source-level inliner

https://go.dev/blog/inliner
66•commotionfever•4d ago•8 comments

LLM Architecture Gallery

https://sebastianraschka.com/llm-architecture-gallery/
116•tzury•5h ago•6 comments

Separating the Wayland compositor and window manager

https://isaacfreund.com/blog/river-window-management/
167•dpassens•6h ago•74 comments

What makes Intel Optane stand out (2023)

https://blog.zuthof.nl/2023/06/02/what-makes-intel-optane-stand-out/
158•walterbell•6h ago•105 comments

Bus travel from Lima to Rio de Janeiro

https://kenschutte.com/lima-to-rio-by-bus/
79•ks2048•4d ago•28 comments

C++26: The Oxford Variadic Comma

https://www.sandordargo.com/blog/2026/03/11/cpp26-oxford-variadic-comma
81•ingve•4d ago•38 comments

Learning athletic humanoid tennis skills from imperfect human motion data

https://zzk273.github.io/LATENT/
98•danielmorozoff•6h ago•15 comments

In Memoriam: John W. Addison, my PhD advisor

https://billwadge.com/2026/03/15/in-memoriam-john-w-addison-jr-my-phd-advisor/
73•herodotus•6h ago•4 comments

Glassworm Is Back: A New Wave of Invisible Unicode Attacks Hits Repositories

https://www.aikido.dev/blog/glassworm-returns-unicode-attack-github-npm-vscode
174•robinhouston•8h ago•105 comments

A Visual Introduction to Machine Learning (2015)

https://r2d3.us/visual-intro-to-machine-learning-part-1/
293•vismit2000•11h ago•26 comments

Show HN: GDSL – 800 line kernel: Lisp subset in 500, C subset in 1300

https://firthemouse.github.io/
48•FirTheMouse•6h ago•13 comments

Autoresearch Hub

http://autoresearchhub.com/
25•EvgeniyZh•1d ago•9 comments

Show HN: Signet – Autonomous wildfire tracking from satellite and weather data

https://signet.watch
100•mapldx•9h ago•27 comments

Show HN: What if your synthesizer was powered by APL (or a dumb K clone)?

https://octetta.github.io/k-synth/
69•octetta•9h ago•28 comments

Hollywood Enters Oscars Weekend in Existential Crisis

https://www.theculturenewspaper.com/hollywood-enters-oscars-weekend-in-existential-crisis/
99•RickJWagner•9h ago•320 comments

Ask HN: How is AI-assisted coding going for you professionally?

130•svara•6h ago•197 comments

Office.eu launches as Europe's sovereign office platform

https://office.eu/media/pressrelease-20260304
218•campuscodi•3h ago•118 comments

IBM, sonic delay lines, and the history of the 80×24 display (2019)

https://www.righto.com/2019/11/ibm-sonic-delay-lines-and-history-of.html
70•rbanffy•10h ago•23 comments

Generating All 32-Bit Primes (Part I)

https://hnlyman.github.io/pages/prime32_I.html
73•hnlyman•10h ago•22 comments

Grandparents are glued to their phones, families are worried [video]

https://www.bbc.com/reel/video/p0n61dg3/grandparents-are-glued-to-their-phones-families-are-worried
154•tartoran•4h ago•103 comments

Kniterate Notes

https://soup.agnescameron.info//2026/03/07/kniterate-notes.html
51•surprisetalk•5d ago•10 comments

$96 3D-printed rocket that recalculates its mid-air trajectory using a $5 sensor

https://github.com/novatic14/MANPADS-System-Launcher-and-Rocket
351•ZacnyLos•11h ago•322 comments

Measure of Justice: Covering the Cerîde-I Adliye Covers (2017)

https://www.denizcemonduygu.com/2017/05/measure-of-justice/
4•benbreen•3d ago•0 comments

Animated 'Firefly' Reboot in Development from Nathan Fillion, 20th TV

https://www.hollywoodreporter.com/tv/tv-news/animated-firefly-reboot-in-development-nathan-fillio...
76•Amorymeltzer•3h ago•14 comments

The 100 hour gap between a vibecoded prototype and a working product

https://kanfa.macbudkowski.com/vibecoding-cryptosaurus
215•kiwieater•9h ago•285 comments

Why Mathematica does not simplify sinh(arccosh(x))

https://www.johndcook.com/blog/2026/03/10/sinh-arccosh/
139•ibobev•4d ago•54 comments

Examples for the tcpdump and dig man pages

https://jvns.ca/blog/2026/03/10/examples-for-the-tcpdump-and-dig-man-pages/
90•ibobev•4d ago•8 comments

Human Organ Atlas

https://www.science.org/doi/10.1126/sciadv.adz2240
80•bookofjoe•3d ago•4 comments