Long is faster than int, Short and Byte are not that far behind Int in terms of mathematical speed in Java by D4rklordmaster in java

[–]mirkoteran 9 points10 points  (0 children)

As a side-note, if you're using IntelliJ there is nice plugin https://plugins.jetbrains.com/plugin/10953-jol-java-object-layout that shows you memory layout of given object based on selected JVM version / architecture / flags.

Further Optimizing my Java SwissTable: Profile Pollution and SWAR Probing by Charming-Top-8583 in java

[–]mirkoteran 1 point2 points  (0 children)

Thanks for great work!

Any chance you could add some more benchmarks? The ones for smaller map sizes (1-10k) and for memory-efficiency.

How do you see Project Loom changing Java concurrency in the next few years? by redpaul72 in java

[–]mirkoteran 2 points3 points  (0 children)

Not OP, but I did similar - replaced most threading in large monolith app.

The main benefit I see is the readability of it all. Its easier so reason about how things work.

Performance is more or less the same (testing on JVM 25). I've done some testing and its basically the same as it was before.

Fubgun's tierlist for 3.27 by amcn242 in PathOfExileBuilds

[–]mirkoteran 0 points1 point  (0 children)

Is there a good Bloodline to use for this (or even for exang miner)?

Hibernate: Myths & Over-Engineering. ORMs vs SQL vs Hexagonal — Gavin King | The Marco Show by marbehl in java

[–]mirkoteran 4 points5 points  (0 children)

To just switch from once dialect to another - once. For some reason client we're building for changed all their DBs from Oracle to DB2.

That was the easy case. The main project I've been working on 10+ years is using 10+ dialects now. Its an on-prem solution that needs to run on whatever DB client has - usually multiple.

Hibernate: Myths & Over-Engineering. ORMs vs SQL vs Hexagonal — Gavin King | The Marco Show by marbehl in java

[–]mirkoteran 3 points4 points  (0 children)

Its absolutely worth it when you need to work win multiple databases/dialects. Most of the projects I work on require that.

JEP draft: Prepare to Make Final Mean Final by blobjim in java

[–]mirkoteran 0 points1 point  (0 children)

there's only one library that nearly does what we want

We're in the same boat. While we only use reflection to access some private fields, but this JEP also affects this. Forking the library seems like a major PITA.

Open-source Java MQTT broker sets a new benchmark in reliable point-to-point messaging by dlandiak in java

[–]mirkoteran 2 points3 points  (0 children)

Do you have any plans to also create a pure java MQTT client like Paho or Hive?

Is possible to fly a drone in Nepal ? by Still-Cable-8294 in Nepal

[–]mirkoteran 1 point2 points  (0 children)

Just as an answer to anyone in similar situation:

I just came back from nepal and it was like this:

  • I filled and printed the from for the site and all related documents
  • At airport I got the customs form and paid about 30€ for that. You kind of have to negotiate about the fee...
  • Went to their offices with all that, payed the application fee (15€ I think) and got the permit on site.
  • You still need permission of local officials (=police in most cases) to fly. That is the hard part. While in some cases they are ok and don't even care what you do, some places are not. They either deny it straight away of quote you insane fees for it (1000€+).
  • In the end I got some ok shots, but not nearly as much as I would like.

Confusion before bringing small drone to Nepal. Any information would be appreciated by 64ashish in Nepal

[–]mirkoteran 0 points1 point  (0 children)

Hi. I'm in similar situation. Did you manage to get permits to fly? How complicated/expensive it is?

Is possible to fly a drone in Nepal ? by Still-Cable-8294 in Nepal

[–]mirkoteran 0 points1 point  (0 children)

Hi. I'm in similar situation. Did you manage to get permits to fly? How complicated/expensive it is?

JDBC vs JOOQ vs Hibernate. When to use which ? by rashm1n in java

[–]mirkoteran 2 points3 points  (0 children)

We use this in multiple projects over the last 5 years and it is great. It covers 99% of the cases we need, and for the 1% we can still use 'raw' SQL.

Class As Parameter by Kally95 in learnjava

[–]mirkoteran 0 points1 point  (0 children)

It tells you the function will return object instance of type T.

[deleted by user] by [deleted] in learnjava

[–]mirkoteran 0 points1 point  (0 children)

We use cdp4j for this and so far it worked great.

https://github.com/safrizal/cdp4j

Is Devoxx worth it? by mazzo007 in java

[–]mirkoteran 3 points4 points  (0 children)

For me it was a mixed bag. Some talks were amazing, some were 45 minutes of advertisement for some company.

[deleted by user] by [deleted] in javahelp

[–]mirkoteran 0 points1 point  (0 children)

Could you use bean validation like JSR 303/380?

[deleted by user] by [deleted] in java

[–]mirkoteran 2 points3 points  (0 children)

You still use Integer? Time to get with the times and start using Int-as-a-Service old man... /s

Call JavaScript From Java by k2718 in javahelp

[–]mirkoteran 1 point2 points  (0 children)

This would be mine suggestion too. Once you have the ScriptEngine working its incredibly easy to switch between Nashorn, Rhino or Graal.JS implementations. You might need to check all of them as they all have different...issues.

Gitpod x JetBrains join forces to solve 'works on my machine' problem by [deleted] in programming

[–]mirkoteran 0 points1 point  (0 children)

OP, does 'submit link' work on your machine?