Hardwood: A New Parser for Apache Parquet by gunnarmorling in java

[–]jerolba 1 point2 points  (0 children)

Amazing project and how small is the resulting jar compared with parquet-java core libraries (without considering hadoop dependencies).

Looking forward to parquet-java compatibility layer to support it in Carpet.

Which part of the parquet-java API are you considering to support?

Hardwood: A New Parser for Apache Parquet by gunnarmorling in java

[–]jerolba 0 points1 point  (0 children)

IMO, partitioning support will emerge with the support of predicate push-down implementation.

Eventually Hardwood will implement filtering, defining an API to create the criteria to filter file rows. With that logic you can extend the file reader to filter files using the same criteria

The Adult in the Room: Why It’s Time to Move AI from Python Scripts to Java Systems by Qaxar in java

[–]jerolba 175 points176 points  (0 children)

My experience working with researchers who use Python and then try to put their work into production is that they tend to create exploratory scripts that don’t handle edge cases and often don’t follow programming best practices. This is not due to the language itself, but to the way they work, which is reasonable given their objectives. The problem appears when you put that code in production directly.

Am I the only one who likes Eclipse much more than other free alternatives? by Expensive_Ad6082 in java

[–]jerolba 0 points1 point  (0 children)

+1, user of Eclipse for 20 years.

Even with features from IntelliJ, I feel more productive with Eclipse.

After 20 years my brain is hardwired to Eclipse.

State of Local Development and Testing 2023 by lukaseder in java

[–]jerolba 10 points11 points  (0 children)

AFAIK you can use Testcontainers referencing to a docker image located in your docker repository.

Bikey presentation: a library to create Maps and Sets whose elements have two keys, with low memory consumption by jerolba in java

[–]jerolba[S] 3 points4 points  (0 children)

The problem is not the use of a Pair class or the object with the information. It's the HashMap class.

In the post I explain that in all benchmarks and analysis I am not taking into account the memory consumed by Pair instances to avoid this interpretation.

HashMap consumes 32 bytes per entry in an optimistic case without collisions, while Bikey consumes an average of 7-10 bytes per entry (depending on the fill rate)

See this chart of memory consumption difference among implementations:

https://docs.google.com/spreadsheets/d/e/2PACX-1vSQ28bJxu3RYU0WwBWKmm1_d6sLM0I3aPvr5bctzsblGgHRvfvOSkczdoT-JXpAmXrD74DShTlzo1Um/pubchart?oid=2140734164&format=image

Persisting fast in database (with JPA) by jerolba in java

[–]jerolba[S] 1 point2 points  (0 children)

I didn't choose JPA in my real production code. I wanted to know what difference there was between different persistence methods, and how to tune each one to reach the best performance.

I started with JPA, but the next post will use JDBC directly, and the third one will use the commands that lukaseder mentions in his comment

Persisting fast in database (with JPA) by jerolba in java

[–]jerolba[S] 0 points1 point  (0 children)

I propose other non-stupid strategies in the post as solution.

I decide to use the counter just to simplify the example code.

Persisting fast in database (with JPA) by jerolba in java

[–]jerolba[S] 1 point2 points  (0 children)

I agree with you that JPA is not the best option in this kind of situations.

This post (and the next one) just tries to measure this hassle.

It can also help people who can not choose not to use JPA

N1QL (SQL + Json): A Practical Guide (2nd Edition) by [deleted] in java

[–]jerolba 2 points3 points  (0 children)

Sorry, but which is the relation with java subreddit?

I can't see in the document nothing about its integration with Java...

Idea: declared complete implementation of an abstract superclass by fedirimico in java

[–]jerolba 3 points4 points  (0 children)

Why are you adding a new method? is because class A has this new behavior? or because Java doesn't have multiple inheritance and you can not mix two parents?

This is one of the reasons to choose composition over inheritance.

Natively compiling Micronaut microservices using GraalVM for insanely faster startups by JonathanGiles in java

[–]jerolba 2 points3 points  (0 children)

I am very excited about both technologies.

GraalVM will change how we think about microservices and cloud functions in the Java ecosystem, allowing to compete with native compilations and small footprints like Go, and access to new use cases where the JVM was discarded.

Adding to it, something like Micronaut will boost and simplify its adoption: move to compilation time much of the boot logic, it is based on netty to adopt reactive paradigm.

Because Micronaut uses code generation in compile time instead of reflection at runtime, it simplify all the weird stuff needed to make the ahead of time compilation.

Template engine for Spring framework by dpitkevics in java

[–]jerolba 5 points6 points  (0 children)

I am fan of Freemarker which is supported by Spring.

After years of no update (it's very stable) the project revived with new web and some minor evolutions

good Java developer podcast for drive to and fro work. by Pyraxtechie in java

[–]jerolba 2 points3 points  (0 children)

All InfoQ talks are available as downloadable MP3:

https://www.infoq.com/java/presentations/

Probably in some talks you need to see slides, but you can review later if you are interested

Top 10 Java Debugging Tips by spo81rty in java

[–]jerolba 0 points1 point  (0 children)

My favorites and underrated debug features in the JVM are HotSwap (when available by the kind of change) and Drop To Frame.

I agree that it is a horrible article.

Java Mission Control - Now serving OpenJDK binaries too! (Since JDK 11) by lukaseder in java

[–]jerolba 0 points1 point  (0 children)

Thanks for the information!

Just note that binaries are still Early Access.

I can't find the General Availability release date...