HN user

Polyisoprene

101 karma
Posts0
Comments69
View on HN
No posts found.

Hopefully Java will support proper values regarding inlining and on-stack allocation for non-primitive types soon, but yes option types are a benefit in Rust as long as you’re not using any more advanced reference libraries.

No offense to Tokio and Rust, I really like Rust, but having someone rewriting their app because of performance limitations in their previous language choice, isn’t really someone picking the right tool for the job necessary.

I’m not so sure they would have done the rewrite if the Go GC was performing better, and the choice of Rust seems primarily based on prior experience at the company writing performance sensitive code rather than delivering business value.

They are not that similar to a struct in C in that they are not just about being a data carrier. So that might be confusing if that is what you expect.

Future work is intending to solve the third point and add deconstructing the record for pattern matching.

“We can declare a simple x-y point abstraction as follows: record Point(int x, int y) { } which will declare a final class called Point, with immutable components for x and y and appropriate accessors, constructors, equals, hashCode, and toString implementations.”

Would dependent types help in this case? Add the reference type when creating the type and then you could have the compiler check that the contract holds.

Kotlin vs. Java 7 years ago

Java 9 was a huge roadblock for upgrading since a lot of libraries were using internal apis and that mess took a few years longer that it should have.

Now the only supported Java version is 11, so a lot of companies have moved to 11 the last year.

Sexier name for sure. We do still call the age before the current Nordic states were established the age of Vikings in Sweden.

The whole notion of Vikings being stupid and naive sounds very old fashioned. The whole idea that short seasons and snow would scare off any people from the Nordic countries is bullshit. Nuuk is at 64 degrees north, roughly similar to Reykjavík, Trondheim or the southern point of the northern third of Sweden. Which had been inhabited for much longer. The climate is slightly better in Scandinavia that far north, but Greenland would surely have been similar.

As long as profit is taxed in the country the sale is made, nobody would complain. Now it’s just transferring money and making sure to pay the taxes in the most beneficial country.

Facebook Dating 7 years ago

Young people still have Instagram, so I guess Instadate would have been better :)

Definitely. Coming home after traveling to the US for more than few days means constant hunger and snack cravings for a week or so. The last few times I’ve been trying to limit the unnecessary sugars from sodas and other sugar rich food since you get so much more sugar than in Europe in the regular restaurant food.

It existed before Gnome and I’ve not yet seen any GTK interface that doesn’t seem like a slightly better looking Motif UI.

GTK still has extreme padding and wasted screen real estate around texts, images, lists and other component. Making a slim version and better designed UIs would probably make a lot of difference.

Unfortunately journald leaves out things like MDC information as well, which usually means JSON logging and trying to avoid broken JSON objects due to log message truncation in some part of the chain.