frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

PHP 8.6 Closure Optimizations

https://wiki.php.net/rfc/closure-optimizations
30•moebrowne•2d ago

Comments

moebrowne•2d ago
> Non-static closures are turned into static ones if they are guaranteed not to make use of $this.

> Stateless closures, i.e. those that are static, don't capture any variables and don't declare any static variables, are cached between uses.

hyperionultra•1h ago
~3% performance gains. I didn’t understood part about $this.
rererereferred•1h ago
If the closure doesn't use $this (an instance of the current class) then it doesn't need to store a reference to it, which also skips the bookkeeping from the garbage collector.
kevincox•1h ago
It is an interesting comparison that JavaScript always ensures that different evaluations of a closure expression results in unique instances. So in general the closures will require allocations for each (unless the allocation is otherwise prevented such as via escape analysis). Of course much of the underlying data may be shared, but the identity itself will be unique.

I don't know how strict JavaScript garbage collection rules are. This was non-observable for the longest time but FinalizationRegistry now exists which makes cleanup observable. It sounds like basically no guarantees are provided when an object will be cleaned up, so presumably an implementation would be allowed to make optimizations such are proposed where for PHP.

Qwen3.6-35B-A3B: Agentic Coding Power, Now Open to All

https://qwen.ai/blog?id=qwen3.6-35b-a3b
111•cmitsakis•43m ago•30 comments

The Future of Everything Is Lies, I Guess: Where Do We Go from Here?

https://aphyr.com/posts/420-the-future-of-everything-is-lies-i-guess-where-do-we-go-from-here
56•aphyr•47m ago•24 comments

€54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs

https://discuss.ai.google.dev/t/unexpected-54k-billing-spike-in-13-hours-firebase-browser-key-wit...
268•zanbezi•2h ago•177 comments

IPv6 traffic crosses the 50% mark

https://www.google.com/intl/en/ipv6/statistics.html?yzh=28197
522•Aaronmacaron•1d ago•333 comments

Cloudflare's AI Platform: an inference layer designed for agents

https://blog.cloudflare.com/ai-platform/
32•nikitoci•1h ago•10 comments

Cloudflare Email Service: now in public beta. Ready for your agents

https://blog.cloudflare.com/email-for-agents/
28•jilles•58m ago•8 comments

Darkbloom – Private inference on idle Macs

https://darkbloom.dev
361•twapi•10h ago•176 comments

AI cybersecurity is not proof of work

https://antirez.com/news/163
69•surprisetalk•3h ago•23 comments

Show HN: 48 absurd web projects – one every month

44•absurdwebsite•1h ago•17 comments

Mozilla Thunderbolt

https://www.thunderbolt.io/
24•dabinat•1h ago•20 comments

FSF trying to contact Google about spammer sending 10k+ mails from Gmail account

https://daedal.io/@thomzane/116410863009847575
249•pabs3•10h ago•159 comments

Modern Microprocessors – A 90-Minute Guide

https://www.lighterra.com/articles/
83•Flex247A•4d ago•10 comments

Ancient DNA reveals pervasive directional selection across West Eurasia [pdf]

https://reich.hms.harvard.edu/sites/reich.hms.harvard.edu/files/inline-files/2026_Akbari_Nature_s...
37•Metacelsus•3h ago•18 comments

PHP 8.6 Closure Optimizations

https://wiki.php.net/rfc/closure-optimizations
30•moebrowne•2d ago•4 comments

Codex Hacked a Samsung TV

https://blog.calif.io/p/codex-hacked-a-samsung-tv
98•campuscodi•3h ago•73 comments

Cybersecurity looks like proof of work now

https://www.dbreunig.com/2026/04/14/cybersecurity-is-proof-of-work-now.html
493•dbreunig•1d ago•181 comments

Long Instruction Word architectures and the ELI-512

https://dl.acm.org/doi/10.1145/800046.801649
11•rbanffy•4d ago•0 comments

RedSun: System user access on Win 11/10 and Server with the April 2026 Update

https://github.com/Nightmare-Eclipse/RedSun
128•airhangerf15•10h ago•31 comments

Fly Drones from the Browser

https://fpvsim.com/sim
3•mosfets•3d ago•1 comments

The paper computer

https://jsomers.net/blog/the-paper-computer
192•jsomers•3d ago•54 comments

RamAIn (YC W26) Is Hiring

https://www.ycombinator.com/companies/ramain/jobs/bwtwd9W-founding-gtm-operations-lead
1•svee•7h ago

Too much discussion of the XOR swap trick

https://heather.cafe/posts/too_much_xor_swap_trick/
111•CJefferson•3d ago•70 comments

North American English Dialects

https://aschmann.net/AmEng/
73•skogstokig•10h ago•35 comments

ChatGPT for Excel

https://chatgpt.com/apps/spreadsheets/
258•armcat•16h ago•166 comments

Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus

https://medium.com/airbnb-engineering/building-a-high-volume-metrics-pipeline-with-opentelemetry-...
54•jmarbach•9h ago•11 comments

Cal.com is going closed source

https://cal.com/blog/cal-com-goes-closed-source-why
355•Benjamin_Dobell•22h ago•276 comments

Google broke its promise to me – now ICE has my data

https://www.eff.org/deeplinks/2026/04/google-broke-its-promise-me-now-ice-has-my-data
1597•Brajeshwar•20h ago•692 comments

Apple accelerates eco progress with highest-ever recycled materials

https://www.apple.com/newsroom/2026/04/apple-accelerates-progress-with-highest-ever-recycled-mate...
56•salkahfi•2h ago•50 comments

I made a terminal pager

https://theleo.zone/posts/pager/
151•speckx•15h ago•35 comments

FIXAPL

https://fixapl.netlify.app/
49•tosh•4d ago•4 comments