TIL: JEP 165 (Compiler Control) https://openjdk.org/jeps/165 lets you tune the JIT per method — disable vectorization, control inlining, print assembly, disable specific intrinsics, and more.

Example:
```json
[
{
"match": "com/example/MyClass.myMethod(I)V",
"c2": {
"Vectorize": false
}
}
]
```
Start with -XX:CompileCommandFile=directives.json

While writing a new book on SIMD and the Java Vector API I always wondered how to isolate auto-vectorization at the method level. Turns out there's a whole toolbox here.

#Java #JVM #VectorAPI #simd

JEP 165: Compiler Control

Java se v AI světě rozjíždí naplno. Vedle knihoven jako Spring AI nebo LangChain4j se dostáváme i blíž k hardwaru – díky Vector API, Panama/FFM API a postupně i Project Babylon (pro přímé volání AI služeb z Javy).

Že by nebylo skoro nutné používat Python? :)

#java #ai #vectorapi

🐘 Unleash the power of LLMs on your own machine with Java! 🐘

Dive into the world of Large Language Models and learn how to build a blazing-fast inference engine using pure Java, inspired by Andrej Karpathy. No need for cloud services or expensive GPUs!

https://www.youtube.com/watch?v=zgAMxC7lzkc&t=2576s&pp=2AGQFJACAQ%3D%3D

#Java #llm #genai #aiml #graalvm #vectorapi #Devoxx

Practical LLM Inference in Modern Java by Alfonso² Peterssen, Alina Yurenko

YouTube