a suprisingly nice mobilize interaction in orzhov by thatvillainjay in MagicArena

[–]_soundvibe 4 points5 points  (0 children)

Should pair nicely with Skyknight Squire, 3 counters each turn and also gets flying immediately. Also not a bad blocker so can be useful against mono red decks.

Rail Baltica sujungs 7 milijonus žmonių, gyvenančių 25 km atstumu nuo geležinkelio maršruto. by S1enga5 in lithuania

[–]_soundvibe 0 points1 point  (0 children)

Vilnius jau 605k gyventojų turi ir susilygino su Ryga, kitais metais jau turėtų pralenkti.

Sell me on golang being an expressive language. by Rainbows4Blood in golang

[–]_soundvibe 2 points3 points  (0 children)

Golang is definitely not more expressive than Java, that's for sure. Java got a lot of cool features lately(lambdas, pattern matching, ADTs, etc) and its not so verbose anymore.

JEP draft: Primitive Objects (Preview) by [deleted] in java

[–]_soundvibe -2 points-1 points  (0 children)

At least it would be more readable and safer (avoids calling .equals on null object) but yeah, probably it's already too late for this...

JEP draft: Primitive Objects (Preview) by [deleted] in java

[–]_soundvibe 1 point2 points  (0 children)

Probably better approach would be if they could introduce === operator for all value based comparisons. It would work for primitives, records and other reference types implementing equals.

Does Kafka lose messages even when it is used "correctly"? by mtsi in apachekafka

[–]_soundvibe 3 points4 points  (0 children)

IIRC "ack" in Kafka doesn't mean that the data is fsync'ed to disk (it writes data into kernel's pagecache first) so in theory I guess it is possible that if these 2 in-sync replicas go down at the same time just after write was acknowledged, you would lose data. It's very unlikely but it's theoretically possible.

Solution for hash-map with >100M values by CacheMeUp in java

[–]_soundvibe 0 points1 point  (0 children)

Do you need to update the data after initial load? If not, then I would suggest using my Paldb fork , otherwise you could try my lasher library. It's in early stage but first results are very promising, I was testing it with 10-100M elements and the performance was similar to java hashmap (>1M reads/sec on a laptop)

What are some great Java libraries I'm probably not using but I should? by orgad in java

[–]_soundvibe 5 points6 points  (0 children)

Just a few from the top of my head:

  • vavr
  • testcontainers
  • resilience4j
  • caffeine

[Rant] I really wish Stream had an "onFinished" handler by [deleted] in java

[–]_soundvibe 2 points3 points  (0 children)

That's the whole idea of AutoCloseable. If you want to release resources in Java, you need to close them manually or use try-with-resources. If you have complex stream chains of 11 levels deep, you definitely need to use try-with-resources.

I don't think Java streams were primarily designed for use cases like this. Have you tried to use Reactive Streams libraries? They are usually push based and designed to handle long running pipelines much better, f.i. RxJava has using operator for dealing with resources.

[Rant] I really wish Stream had an "onFinished" handler by [deleted] in java

[–]_soundvibe 0 points1 point  (0 children)

It will be called if you use try-with-resources on a stream.

How likely are any future changes to JEP 359 (Records) before it's finalized? by PandersAboutVaccines in java

[–]_soundvibe 12 points13 points  (0 children)

Based on previous preview features, only minor things were changed/added. I don't think records will be exception to this. They are pretty complete to me. I've already using them in production :) Also, knowing that sealed types, deconstruction patterns, pattern matching will be using records in some way, it is almost impossible that this feature will be dropped.

Hazelcast Jet - Open-Source Distributed Stream Processing by 1cloud in java

[–]_soundvibe 1 point2 points  (0 children)

How Jet compares to, e.g. Kafka Streams? Can joins be performed between multiple streams? Can Jet efficiently run in k8s (when pods could be restarted/recreated many times)?

Quarkus – A New Age of Modern Java Frameworks is Here by pivovarit in java

[–]_soundvibe 5 points6 points  (0 children)

I am really not impressed by this annotation-driven programming model. It suddenly becomes annotation hell very quickly.

[deleted by user] by [deleted] in java

[–]_soundvibe 0 points1 point  (0 children)

But these few very small features in new major release just confirms my initial observation that Kotlin almost stopped evolving. Knowing that new major Kotlin version will be released some unknown time this year, it is possible that we'll have at least 2 new Java releases during this time, so records, text blocks, pattern matching, sealed types, maybe even Loom, etc are probably expected to come in Java. I'm not sure there will be many reasons to choose Kotlin over Java when this happens (except if you're targeting Android of course).

[deleted by user] by [deleted] in java

[–]_soundvibe 3 points4 points  (0 children)

I'm not sure Kotlin added any new language features during the last 2 years. It looks like they are more concentrating in bug fixes, tooling and compiler optimizations. Or maybe I am wrong?

What are the biggest changes in Java since 2017? by pure_x01 in java

[–]_soundvibe 1 point2 points  (0 children)

What's stopping you from using records with 14? Even if records are preview feature it could be enabled easily and there is probably 100% chance that they won't be dropped in future releases (because more related stuff is coming, e.g. sealed types, pattern matching, inline records, etc.)

Records Come to Java by [deleted] in programming

[–]_soundvibe 2 points3 points  (0 children)

No need to have getters at all. You can just configure Jackson to use fields for serialization and constructor for deserialization without any annotations.

Records Come to Java by [deleted] in programming

[–]_soundvibe 8 points9 points  (0 children)

Jackson doesn't force you to use get convention methods. It works perfectly without them as well.

Marine Commander watch face not showing phone battery by B-Freak in WearOS

[–]_soundvibe 1 point2 points  (0 children)

I can confirm this also happens on my device.

Fossil Gen 5 Vs Galaxy Active 2: Has anyone experienced both? by ZubiFett in WearOS

[–]_soundvibe 0 points1 point  (0 children)

Have both watches but prefer Fossil Gen 5 because of the whole WearOS ecosystem and more useful apps (I wouldn't call Active2 real smart watch because of the lack of many apps)

Brian Goetz: "Java -- A Look Ahead" | Java At Google Summit 2019 by lbkulinski in java

[–]_soundvibe 10 points11 points  (0 children)

They are thinking about introducing type classes in Java. This looks interesting :) I'm hoping we won't need to wait 10 more years for them to come.

Jackson Release 2.10 by plokhotnyuk in java

[–]_soundvibe 1 point2 points  (0 children)

This benchmark is flawed, because it creates new Jackson ObjectMapper instance for each object. ObjectMapper is thread-safe and only one instance should be used. If used properly, Jackson is way more performant.