

Only if you choose a lower language level as the target. Given these results I suspect the researchers had it output JS for something like ES5, meaning a bunch of polyfills for old browsers that they didn’t include in the JS-native implementation…
Only if you choose a lower language level as the target. Given these results I suspect the researchers had it output JS for something like ES5, meaning a bunch of polyfills for old browsers that they didn’t include in the JS-native implementation…
What do you think the point of this post is, then? Comedic hyperbole only works if there is still some truth to it
is everyone here a complete beginner? how do so many people relate to this? as soon as you need to do anything halfway interesting the thing just confidently spews nonsense.
That’s not quite right. In bytecode, lambdas are significantly more efficient than anonymous class instances. So while the lambda implementation is semantically equivalent, characterizing it like you have is reductive and a bit misleading.
Man, the onion buying infowars was the one good news story this entire month… of course we can’t even have that
Oooh yeah good point. I didn’t make that connection
Huh? What context is this list set up in? I don’t really see how it relates to the medication issue.
That’s not what that page is saying. It’s terrifying enough that it’s a tie, there’s no need to make up fake polling information.
This article seems to imply they’ll withdraw charges for all parties, but the statement reads like they will only withdraw charges for the people confirmed dead…? Which is it
because the earth is big and you don’t have a hard drive big enough to store it locally?
you have what i would consider consistently bad takes on this subject
Ah, just saw a comment from OP claiming that Israel was doing “everything possible” to prevent civilian casualties, so yeah, bad take puts it pretty well. What bad faith bs
Well yes, I was simplifying because I wanted to address the main (incorrect) criticism by @spartanatreyu@programming.dev. I agree with your comment
Yeah, in Java calling first()
on a stream is the same as an early return in a for-loop, where for each element all of the previous stream operations are applied first.
So the stream operation
cars.stream()
.filter(c -> c.year() < 1977)
.first()
is equivalent to doing the following imperatively
for (var car : cars) {
if (car.year() < 1977) return car;
}
Not to mention Kotlin actually supports non-local returns in lambdas under specific circumstances, which allows for even more circumstances to be expressed with functional chaining.
…what? At least with Java Streams or Kotlin Sequences, they absolutely abort early with something like .filter().first()
.
This is a decent explanation of gradient descent but I’m pretty sure the meme is referencing the color gradients often used to highlight when something is AI generated haha
is that the one that says “fuck the color blind” because if so hey!! that’s not nice
IntelliJ finds most uses in my experience unless you’re doing something weird with reflection or similar. And if it’s a public facing API only used by the library’s consumers…– it should be used in tests at the very least! Especially if it’s prone to regressions like the comment suggests
Yeah sure, you found the one notorious TypeScript feature that actually emits code, but a) this feature is recommended against and not used much to my knowledge and, more importantly, b) you cannot tell me that you genuinely believe the use of TypeScript enums – which generate extra function calls for a very limited number of operations – will 5x the energy consumption of the entire program.