frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Stack walking: space and time trade-offs

https://maskray.me/blog/2025-10-26-stack-walking-space-and-time-trade-offs
1•ingve•2m ago•0 comments

Programming is morphing from a creative craft to a dismal science

1•pyeri•3m ago•0 comments

New AI Browser Alert: Get 1 Month of Perplexity Pro for Free

1•zailushang•4m ago•0 comments

Lessons learned from 2 years of operating a tiny news archive

https://til.andrew-quinn.me/posts/lessons-learned-from-2-years-of-operating-a-tiny-news-archive/
1•hiAndrewQuinn•5m ago•0 comments

Cara buka blokir bws mobile

1•patokkkkl•6m ago•4 comments

The cave divers who went back for their friends (2016)

https://www.bbc.com/news/magazine-36097300
1•thunderbong•12m ago•0 comments

How Cloudflare's client-side security made the NPM supply chain attack non-event

https://blog.cloudflare.com/how-cloudflares-client-side-security-made-the-npm-supply-chain-attack...
1•meysamazad•15m ago•0 comments

LaTeX, LLMs and Boring Technology

https://eli.thegreenplace.net/2025/latex-llms-and-boring-technology/
1•ingve•19m ago•0 comments

Call Center Batik Air Jakarta

1•dreincrypto81•22m ago•0 comments

Google Scholar tool gives extra credit to first and last authors

https://www.nature.com/articles/d41586-025-03281-4
1•XzetaU8•22m ago•0 comments

Silicon Valley called – the 1990s are back

https://www.ft.com/content/834487ce-2357-40c4-bf45-34562e522755
1•zerosizedweasle•27m ago•1 comments

Emulating the Impossible: Inside RPCS3 with One of Its Developers

https://gardinerbryant.com/emulating-the-impossible-inside-rpcs3-with-one-of-its-developers/
2•manzokubuffer•35m ago•0 comments

Hess Triangle

https://en.wikipedia.org/wiki/Hess_triangle
2•mudil•37m ago•0 comments

Russia Fires First Nuke-Powered Cruise Missile, Burevestnik

https://www.eurasiantimes.com/russia-fires-worlds-1st-nuke-powered-cruise-missile-burevestnik/
3•methuselah_in•39m ago•1 comments

Venezuela's Autocrat Uses Crypto to Fight Trump's Sanctions

https://www.nytimes.com/2025/10/26/world/americas/trump-maduro-venezuela-economy.html
1•mmooss•45m ago•0 comments

Institutions, memes, and macro turned crypto's glory cycle into a grind

https://cryptoslate.com/the-worst-bull-run-ever-how-institutions-memes-and-macro-turned-cryptos-g...
1•salkahfi•45m ago•0 comments

CaDoodle CAD, free and offline TinkerCAD alternative

https://cadoodlecad.com/
1•guardienaveugle•46m ago•0 comments

How to tackle private credit's 'cockroaches' as contagion fears build

https://www.cnbc.com/2025/10/24/how-to-tackle-private-credits-cockroaches-as-contagion-fears-buil...
1•zerosizedweasle•47m ago•0 comments

Show HN: TSK – agent sandbox, delegation, and parallelization tool

https://github.com/dtormoen/tsk
1•dtormoen•50m ago•0 comments

Stop Caring So Much About Your People

https://avivbenyosef.com/stop-caring-so-much-about-your-people/
1•kylegalbraith•57m ago•2 comments

OpenWetWare

https://openwetware.org/
1•timcobb•1h ago•0 comments

Show HN: Write Go code in JavaScript files

https://www.npmjs.com/package/vite-plugin-use-golang
3•yar-kravtsov•1h ago•0 comments

Encryption using SSH Keys with age in Linux

https://ittavern.com/encryption-using-ssh-keys-with-age-in-linux/
1•signa11•1h ago•0 comments

Ahead of Trump-Xi meeting, China says bombers flew near Taiwan

https://www.reuters.com/business/aerospace-defense/ahead-trump-xi-meeting-china-says-bombers-flew...
1•zerosizedweasle•1h ago•0 comments

Show HN: HN reader with "Page Down" for mobile and other QoL tweaks

https://hn.leftium.com
1•Leftium•1h ago•0 comments

Navy loses two aircraft from USS Nimitz aircraft carrier within 30 minutes

https://apnews.com/article/navy-nimitz-aircraft-carrier-crashes-8afee8488bd39371350fe0a1dd55374d
2•bandrami•1h ago•0 comments

It Is Trump's Casino Economy Now. You'll Probably Lose

https://www.nytimes.com/2025/10/26/opinion/trump-economy-casino.html
5•measurablefunc•1h ago•3 comments

AI Art Tool Is Changing Everything (Goodbye Midjourney?)

1•PraiseAsuquo•1h ago•2 comments

Google: The AI Company (Fall 2025)

https://www.acquired.fm/episodes/google-the-ai-company
1•vismit2000•1h ago•0 comments

MiniMax-M2

https://github.com/MiniMax-AI/MiniMax-M2
2•vinhnx•1h ago•0 comments
Open in hackernews

Severe performance penalty found in VSCode rendering loop

https://github.com/microsoft/vscode/issues/272155
60•anticensor•2h ago

Comments

nawgz•2h ago
A bit sloppy but easily resolved - surprised it took so long to notice, or maybe it was new?
minitech•1h ago
It’s been around since the root commit in 2015: https://github.com/microsoft/vscode/blob/8f35cc4768393b25468...
anticensor•1h ago
Yeah, it was a bit surprising to me as well.
muglug•2h ago
Given that the issue already gives a before-and-after metric it's extremely odd there's no POC PR attached.

This just seems like an AI slop GitHub issue from beginning to end.

And I'd be very surprised if VS Code performance could be boosted that much by a supposedly trivial fix.

duskwuff•1h ago
Even if it is a real performance issue, the reasonable fix would be to move the sort call out of the loop - implementing a new data structure in JS is absolutely not the way to fix this.
muglug•1h ago
Right, and also this would show up in the profiler if it were a time sink — and I'm 100% certain this code has been profiled in the 10 years it's been in the codebase.
oe•1h ago
Adding a new data structure just for this feels like such an AI thing. I've added to our agents.md a rule to prefer using existing libraries and types, otherwise Gemini will just happily generate things like this.
nneonneo•1h ago
There’s clearly functionality to push more work to the current window’s queue, so I would not be surprised if the data structure needs to be continually kept sorted.

(Somewhere in the pile of VSCode dependencies you’d think there’d be a generic heap data structure though)

gigatexal•1h ago
I’ve already moved from VSCode to Zed. It’s native. Faster. Has most of the functionality I had before. I’m a huge fan.
sillythrowawy9•1h ago
OP’s account also seems automated. This certainly feel like automated post to social media for PR clout
anticensor•1h ago
Not really, I read HN more than I post to it, but I found this one interesting.
ollin•1h ago
Yeah the issue reads as if someone asked Claude Code "find the most serious performance issue in the VSCode rendering loop" and then copied the response directly into GitHub (without profiling or testing anything).
a-dub•1h ago
i see emojis in the comments.

also no discussion of measured runtimes for the rendering code. (if it saves ~1.3ms that sounds cool, but how many ms is that from going over the supposed 16ms budget.)

hyperhello•2h ago
> Real-world impact: With 50+ view parts (text, cursors, minimap, scrollbar, widgets, decorations, etc.), this wastes 1-2ms per frame

Good thing to find...

blharr•1h ago
How does it possibly take 1-2ms to sort... 50 items? I'd expect that to happen in an order of microseconds
klodolph•1h ago
It’s being sorted not once per frame, but once per item.

If you have 50 items in the list, then the list gets sorted 50 times. If you have 200 items in the list, the list is sorted 200 times.

This is unnecessary. The obvious alternative is a binary heap… which is what the fix does. Although it would also be obvious to reuse an existing binary heap implementation, rather than inventing your own.

duskwuff•56m ago
> It’s being sorted not once per frame, but once per item.

Even if that were the case, sorting a list that's already sorted is basically free. Any reasonable sort method (like the builtin one in a JS runtime) will check for that before doing anything to the list.

> The obvious alternative is a binary heap… which is what the fix does.

The overhead of creating a heap structure out of JS objects will dwarf any possible benefit of avoiding a couple of calls to Array.sort().

anticensor•53m ago
> Although it would also be obvious to reuse an existing binary heap implementation, rather than inventing your own.

Yes, that's indeed the approach I'd take.

hdjfjkremmr•1h ago
it's sorting 50 times a list going from 50 to 0 items.
retsibsi•1h ago
The issue seems to be a direct copy-paste from an LLM response, so I suspect "this wastes 1-2ms per frame" is estimated/made up.
webprofusion•2h ago
Looks interesting.

I see they also contributed a fix to the OnlyFans notification robot. Clearly doing the important work that the internet needs.

brokencode•1h ago
This is what I want to do when I retire. Maybe not OnlyFans fixes specifically, but just go around fixing random stuff.

Like if Batman turned out to be bad at fighting criminals so had to fight null pointer exceptions instead.

gnarlouse•1h ago
bugman
OrderlyTiamat•40m ago
"Fear not the bugs citizen! For in my utility belt, I have REGEX and VIM!"
anticensor•1h ago
That notification robot codebase is actually generic, Zara Darcy just used OnlyFans branding to boost her follower base.
adwn•1h ago
I'm confused: Does top.execute() modify currentQueue in some way, like pushing new elements to it? If it doesn't, then why not simply move the sort out of the loop? This is simpler and faster than maintaining a binary heap.
adwn•1h ago
One more thing: Nowadays sort() functions ary usually heavily optimized and recognize already sorted subsequences. If currentQueue isn't modified during the loop, then the sort() call should run in O(n) after the first iteration, instead of O(n * log n). Still worse than not having it inside the loop at all, of course.
nateb2022•1h ago
> If it doesn't, then why not simply move the sort out of the loop?

Yup, they should definitely move the sort outside of the loop. Shifting is O(N) so overall complexity would be O(N^2) but they could avoid shifting by reverse-sorting outside the loop and then iterating backwards using pop()

jgoldshlag•1h ago
This seems like a nonsense issue. Sorting 50 things takes 1-2 ms? What sort of potato was that timed on.
tylerhou•1h ago
No, sorting 50/2ish things 50 times allegedly takes 1-2ms. Which is only slightly more believable.
jojobas•1h ago
The penalty is called "Electron".
geokon•1h ago
I feel with Valgrind (in C++land) or VisualVM (JVMland) stuff like this is very easy to zero in on.

I don't work in JS-land.. but are Electron apps difficult to do performance profiling on?

nateb2022•1h ago
https://www.electronjs.org/docs/latest/tutorial/performance
nawgz•1h ago
No. Browser dev tools are available, and make it pretty easy to do performance profiling, and get a flamegraph etc..

Just seems like the reality of things is that the number of extensions or widgets or whatever has remained low enough that this extra sorting isn't actually that punitive in most real-world use cases. As a long-time developer working mainly in VSCode, I notice no difference between performance/snappiness in VSCode compared to JetBrains Rider, which is the main other IDE I have meaningful experience with these days.

rockorager•1h ago
If you work with LLM agents, you will immediately be able to tell this issue is written by one. The time cost of this sort is almost certainly not real, as others have pointed out.

I’ve had agents find similar “performance bottlenecks” that are indeed BS.

ec109685•1h ago
I hate ai sometimes — an AI generated pull request (really some rando found a way of shaving 12% off the run loop?) responded to by an ai comment bot:

> This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

dkdcio•17m ago
reasonably confident that’s just an automated response bot, not AI…

also it’s an issue, not a PR

flowerthoughts•33m ago
I would have expected V8 sort() to be optimized for runs of presorted input, like other implementations nowadays. So O(n²) seems more likely than O(n² log n). Not that it matters much.

But then again, probably AI slop with "performance gain" numbers taken out of thin air. Who knows if the number 50 and 1-2ms are based on fantasy novels or not.

Like when I used Claude to build a door video intercom sytem, and first asked it to create a plan. It inserted how many weeks each milestone would take, and it was an order of magnitude off. But I guess milestone documents have time estimates, so that's how it's supposed to look, information accuracy be damned.