Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Twisol
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
391.
▲
by
Twisol
5y ago
That's right. From the linked JEP, under "Scheduler": > Some blocking APIs temporarily pin the carrier thread, e.g.most file I/O operations. The implementations of these APIs will compensate for the pinning by tempora
392.
▲
by
Twisol
5y ago
Yes, Java is finally becoming a language I don't cry myself to sleep over. I've still got other languages I (vastly) prefer, but I don't feel like I'm fighting the system nearly as much anymore. (Though, tail-call optimi
393.
▲
by
Twisol
5y ago
I'd love to know who, of those pinned to an LTS release, has actually made use of a support contract with a company providing contracted support for an LTS release, whether it's Oracle or another company. I don't doubt they e
394.
▲
by
Twisol
5y ago
Yes, by my reading of the linked JEP, these virtual threads are executed by a pool of honest-to-goodness OS threads (so a virtual thread might pause on one thread and get resumed on another).
395.
▲
by
Twisol
5y ago
I'm salivating over the context switching wins, myself. I've got a simulation system that uses threads to pause and resume modeled tasks at the appropriate times relative to the simulation clock, and we're just passing a toke
396.
▲
by
Twisol
5y ago
That would be my guess as well, and I would (casually, sitting in my armchair) expect two previews for such a significant change to the JVM. I'm not expecting it to land fully until Java 20 at least -- but we should absolutely give the
397.
▲
by
Twisol
5y ago
> My understanding is that you won't have to worry about blocking a virtual thread, because all IO APIs are being modified to park when executed in the context of a virtual thread. And, from what I read in the original JEP, the unde
398.
▲
by
Twisol
5y ago
Tildes are used for strikethrough in some markup dialects (including mark down ), so I think they meant to depict replacing "its" with "Java's". No clue on the apostrophe.
399.
▲
by
Twisol
5y ago
If the pre-zoomed image was already downscaled (e.g. to fit a small display), then up to a point, zooming should simply downscale less , i.e. remove fewer pixels. Beyond that point, yes, a zoom would have to perform some kind of interpolat
400.
▲
by
Twisol
5y ago
> but there is no way for the system itself to treat that as an invoice, so it's only confusing to humans. I agree in principle, but then you have Windows skipping version 9 because of all of the `version.hasPrefix("9")` o
401.
▲
by
Twisol
5y ago
Concurrent constraint programming is especially interesting to me -- Saraswat's ideas about a general constraint store (versus the Herbrand domain Prolog is usually instantiated over) are genuinely fascinating to me. I see the relative
402.
▲
by
Twisol
5y ago
That's a reasonable criticism. It works better in Reader View (because you can scale the font down, at least in Firefox), but I have to rotate to landscape as well.
403.
▲
by
Twisol
5y ago
What's wrong with the formatting? Plain text has a lot going for it. (I remember when most/all GameFAQs guides were text files just like this -- not to mention the Super Metroid guide [0] that manually justified every paragraph v
404.
▲
by
Twisol
5y ago
Original by Matt Might at https://matt.might.net/articles/phd-school-in-pictures/ . I'm not sure what this version adds. It mostly seems to copy the original wholesale. And there's more than a little bit
405.
▲
by
Twisol
5y ago
I think the M1 CPU lowers some of the ARC retain/release to silicon -- it doesn't remove the problem, but it does seem to reduce the relative overhead significantly. https://news.ycombinator.com/item?id=25203924 &
406.
▲
by
Twisol
5y ago
> But Fortnite is a not a pay to win game. That depends on how you define "win". As a gacha player myself (Genshin Impact), a lot of people roll because of FOMO and because they want to own a thing, not necessarily because they
407.
▲
by
Twisol
5y ago
Divisibility can be cast in terms of subsets of the prime factor multisets. That is, for every number, we can translate it to its multiset of prime factors, e.g. 36 would become {2->2, 3->2}; then divisibility becomes the subset relat
408.
▲
by
Twisol
5y ago
Friends have suggested much the same, yeah. It feels unlikely due to a few factors, but I'm very willing to chalk that up to naivete on my part. (If nothing else, it's a convenient fiction that allows one to move on.)
409.
▲
by
Twisol
5y ago
> You feel bad if you have one lead and you blow it. This one hits pretty hard for me; I have a hard time maintaining multiple leads at once. I think it's more psychological than actual, but it feels a bit unnatural to put myself ou
410.
▲
by
Twisol
5y ago
I recently had an interview where I had about 40 minutes to implement a particular data structure. This was after completing an intial take-home of significantly more complexity (think, reading and implementing published specifications), fo
411.
▲
by
Twisol
5y ago
My (mostly layperson's) understanding is that our laws of physics demand that causality would be broken; it's not taken as an axiom. Because of how the three dimensions of space and one dimension of time are put together, you can
412.
▲
by
Twisol
5y ago
> The theoretical energy expended to move an object is zero. The theoretical energy expended to keep an object moving is zero. The theoretical energy transferred to the object to get it moving is deeply non-zero, even as the energy t
413.
▲
by
Twisol
5y ago
Ah, very nice on both counts. It looks like instantiating generics over primitive types won't happen until a yet later JEP, and preview features tend to have a cycle time of at least two releases anyway, so I won't expect too much
414.
▲
by
Twisol
5y ago
I'd definitely be curious about which signals you're drawing on. From what I've seen, the Valhalla OpenJDK wiki has gone without update for quite some time, and even that wiki refers to JEP 169 ("Value Objects") as
415.
▲
by
Twisol
5y ago
(I got lucky and spotted this reply instantly; I promise I wasn't lurking waiting for a reply.) Don't dynamic DI frameworks like Spring use runtime reflection to invoke such constructors? If a bug existed in Spring causing a value
416.
▲
by
Twisol
5y ago
Java annotations aren't executable on their own, so they're trivially type safe. The systems that do things depending on those annotations are typically reflection-based, which does an end-run around the static type system and usu
417.
▲
by
Twisol
5y ago
> And Java developers care a lot about static typing. With the amount of reflection and annotation-based magic I've seen in the ecosystem, I'm not sure I actually believe this? Maybe it's just lack of exposure, but most of
418.
▲
by
Twisol
5y ago
I suspect it has something to do with classfile format backwards compatibility. From a pure syntax standpoint, I would agree with you, but there's probably some value to making a very clear separation for classfile loading.
419.
▲
by
Twisol
5y ago
For myself, I'd like to see use-site variance replaced with declaration-site variance. It's really painful sometimes to have type arguments within generics more than one level deep; you have to start adding `? extends` (usually; o
420.
▲
by
Twisol
5y ago
Not yet. You can track Project Valhalla [0], the incubator for value/inline types in OpenJDK. But I don't get the sense it's landing particularly soon. https://openjdk.java.net/projects/valhalla/
More ›