News for hackers. Stuff that matters.
Re:My Node.js is a bit Rusty by Cthulhu_ on Friday September 08, 2023 @04:25AM (#37431013)
That reminds me of how iOS could achieve fast scrolling of lists, which Facebook and Twitter struggled with for years because they tried to stick with HTML. Basically if you scroll down, a list element from above is moved to the bottom and has its contents replaced.

Anyway, I'm not sure if this is in Java already or is upcoming, but Java will finally add value objects, that is, stack variables instead of just making everything a heap object. For tight loops that will be much more efficient, since it can just reuse the same memory, stay within the cpu registers, etc. (I'm talking out of my ass btw from a superficial knowledge of Go and Java and half-remembered theory from college).

Re:My Node.js is a bit Rusty by MrJohz on Friday September 08, 2023 @04:39AM (#37431111)
Virtual scrolling is a very common technique for rendering large tables or lists in HTML (and pretty much any other environment), and is by no means unique to iOS...
Re:My Node.js is a bit Rusty by lawgimenez on Friday September 08, 2023 @06:33AM (#37431885)
And also common in Android from the very beginning of their ListView now called RecyclerView.
Re:My Node.js is a bit Rusty by masfuerte on Friday September 08, 2023 @07:21AM (#37432138)
The Windows 3.1 list box supported it.