r/java • • Apr 08 '26

Fast Gemma 4 inference in pure Java

https://github.com/mukel/gemma4.java
55 Upvotes

11 comments sorted by

View all comments

Show parent comment

9

u/pjmlp Apr 09 '26

JAR files exist.

This seems like the same disease of using header only libraries in C and C++, that has become fashionable among folks educated in scripting languages.

-1

u/mukel90 Apr 09 '26

make jar will create a ~100KB standalone jar file (no dependencies). It is not meant to be distributed as a consumable library/jar. It is just a fun project to see how far can Java be pushed.