News for hackers. Stuff that matters.

Polyisoprene

Re:Why Discord is switching from Go to Rust on Tuesday February 04, 2020 @06:47PM (#22242431)
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.
Re:Why Discord is switching from Go to Rust on Tuesday February 04, 2020 @06:38PM (#22242361)
Sure, but generics are available in Java as well and compared to Haskell and similar language I rate Rust as closer to Java.
Re:Why Discord is switching from Go to Rust on Tuesday February 04, 2020 @06:35PM (#22242342)
Sure, just reflecting on the “There also tends to be way less of the `EnterpriseJavaBeanFactory`-style code in idiomatic Rust.”
Re:Why Discord is switching from Go to Rust on Tuesday February 04, 2020 @06:05PM (#22242108)
Haven’t really seen anyone trying to use JVM options to get performance benefits without benchmarks for their specific use case the last 10 years or so.
Re:Why Discord is switching from Go to Rust on Tuesday February 04, 2020 @05:53PM (#22241996)
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.

Re:Java 14 Feature Spotlight: Records on Tuesday February 04, 2020 @12:59PM (#22238724)
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.”

Re:Jonathan Blow on Rust on Sunday February 02, 2020 @05:56PM (#22220044)
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.
They are still allowed to have police present at the internal border and checking both your id, itinerary and asking questions about your visit as long as it’s not “systematic”.
Sure there is. They have checked my id on about half of the arrivals the last years.
Yeah, having reads rebalancing the tree in a multithreaded subsystem is probably not optimal. Might be that the Splay-trees have outstayed their welcome :)

FreeBSD’s tree.h used to have, iirc, both RB- and Splay-trees.

I believe Splay trees are usually mentioned as an alternative.
Re:What's new in Java 12, 13 and 14 on Tuesday December 17, 2019 @08:55AM (#21813414)
I would like to have the result type for this, like in Rust:

enum Result<T, E> { Ok(T), Err(E), }

Re:Kotlin vs. Java on Tuesday December 17, 2019 @05:15AM (#21812245)
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.

Re:Kotlin vs. Java on Tuesday December 17, 2019 @05:09AM (#21812214)
Java 13 was released 2 months ago.
Re:Java's URL.equals() Performs DNS Resolution on Wednesday December 11, 2019 @03:23PM (#21766400)
I’m sure there are some languages without legacy in their stdlib, but I still haven’t seen one.
Re:Why Did Greenland’s Vikings Vanish? (2017) on Tuesday November 26, 2019 @03:30PM (#21642370)
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.

Re:Debugging Network Stalls on Kubernetes on Friday November 22, 2019 @06:51PM (#21611332)
Inefficient Linux cadvisor implementation causes unexpected latency. Also this affects buzzword compatible technologies.
Unfortunately that seems to be common. Artifactory for example has similar requirements. Guessing that running full free text search and analysis on the artifacts are the main culprits.

https://www.jfrog.com/confluence/plugins/servlet/mobile?cont...

Re:AWS Customers Rack Up Hefty Bills for Moving Data on Monday October 21, 2019 @01:38PM (#21314980)
Cheap shovels and expensive ladders.
Re:Apple’s New Mac Pro to Be Made in Texas on Monday September 23, 2019 @02:45PM (#21052125)
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.
Re:Facebook Dating on Thursday September 05, 2019 @12:21PM (#20888217)
Young people still have Instagram, so I guess Instadate would have been better :)
Re:Amazon AWS had a power failure, their backup generators failed on Wednesday September 04, 2019 @12:19PM (#20878663)
Data, sure. Lose the volume, no.
Re:Google’s GDPR Workaround on Wednesday September 04, 2019 @10:01AM (#20877273)
If their whole business model is selling personal data, then 4% is clearly just a cost of running their business.
Re:Amazon AWS had a power failure, their backup generators failed on Wednesday September 04, 2019 @08:04AM (#20876283)
Scary that AWS can’t restore EBS volumes properly after a power failure. Snapshot are not a solution to this in a live system.
Re:Effects of short-term fasting on cancer treatment on Monday September 02, 2019 @02:20PM (#20860904)
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.
Re:Caviar was a free bar snack on Friday August 23, 2019 @01:30PM (#20780091)
Saw mill workers in northern Sweden had similar clauses. “No more than 50% of the salary is to be payed out in salmon.”
Re:Rust GUI ecosystem overview on Friday August 23, 2019 @01:05PM (#20779750)
It existed before Gnome and I’ve not yet seen any GTK interface that doesn’t seem like a slightly better looking Motif UI.
Re:Rust GUI ecosystem overview on Friday August 23, 2019 @07:58AM (#20776564)
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.
Re:Syslog: Complete System Administrator Guide on Monday August 05, 2019 @12:29PM (#20615442)
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.

Older »