News for hackers. Stuff that matters.
Re:Show HN: Plotting 3 years of hourly data in 150ms by augustt on Friday May 01, 2020 @05:57PM (#23046958)
I feel like in general people underestimate just how fast computers are. Crazy to hear about libraries that choke on a couple thousand points when compared to https://hackernoon.com/drawing-2-7-billion-points-in-10s-ecc... (for instance)
Re:Show HN: Plotting 3 years of hourly data in 150ms by leeoniya on Friday May 01, 2020 @06:17PM (#23047110)
completely agree.

additionally, it's hard to overstate how impressive modern javascript JITs are, as well as GPUs.

every time i visit a web page that downloads 2MB of js and spins up my CPU fan, i feel ashamed that this is the industry (webdev) where i make my living.

at least with uPlot i show that all this waste is not necessary.

Re:Show HN: Plotting 3 years of hourly data in 150ms by ehsankia on Friday May 01, 2020 @08:50PM (#23048069)
The problem with large websites is that there's a dozen layers of abstractions leading to large and inefficient code. But when it comes to just raw speed (iterating over a huge array of numbers in a tight loop, like drawing this chart), then it's blazing fast especially with JIT. That's specifically where a lot of people underestimate JS. I've seen a lot of people do things in the backend when they can just send all the data and do all the filtering/sorting locally leading to much faster UX.
Re:Show HN: Plotting 3 years of hourly data in 150ms by jkob_ on Saturday May 02, 2020 @02:40AM (#23049846)
Interesting read indeed. Too bad this was posted to Hackernoon, had a hard time reading it due to the header bar constantly dropping down into the text I was reading. So frustrating!
Re:Show HN: Plotting 3 years of hourly data in 150ms by ori_b on Friday May 01, 2020 @07:16PM (#23047489)
Yeah. This is still tens of thousands of instructions per point.