foojay

Managing Native Memory in Java: Arenas, Malloc, and Custom Pools

Author: David Vlijmincx Original post on Foojay: Read More Table of Contents What is the Memory APIArenas Using Arenas Creating your own arena Native Memory allocation methods Using Malloc and Free Pool of reusable memory Why you would use them How to use a memory pool Slicing How to use them TL;DRConclusion What is the Memory API The Foreign Function …

Read More »

JC-AI Newsletter #15

Author: Miro Wengner Original post on Foojay: Read More Over the past two weeks, the field of artificial intelligence has continued its remarkable pace of advancement. As AI becomes increasingly woven into the fabric of daily life, shaping how we work, communicate, and make decisions, it is both timely and valuable to step back and understand the broader trajectory of …

Read More »

Building Reactive Data Streams with Project Reactor

Author: Matteo Rossi Original post on Foojay: Read More Table of Contents Creating Non-Blocking Streaming Endpoints for High-Throughput ApplicationsFrom Snapshots to Streams Project Setup Domain Model: Telemetry as a Streamable Document Reactive Repository Service Layer: Explicit Backpressure Strategy Streaming Endpoint with Server-Sent Events The Real Bottleneck: Waiting, Not Working The Most Dangerous Line of Code Resource Efficiency Under Pressure Error …

Read More »

Introducing the BoxLang Spring Boot Starter: Dynamic JVM Templating for Spring

Author: Cristobal Escobar Original post on Foojay: Read More Table of Contents What is BoxLang? Zero-Config Spring Boot Integration GradleGradle From Controller to Template in Minutes Full Web Scopes — Out of the Box Hot-Reload During Development Configuration That Stays Out of Your Way Coexist With Any Other View Technology Requirements How It Works Under the Hood Get Started Professional …

Read More »

How is Leyden improving Java Performance? Part 3 of 3

Author: María Arias de Reyna Domínguez Original post on Foojay: Read More Table of Contents What is inside the Ahead of Time Cache? JVM Metadata JVM Profile and Linkage Data JVM Code and Code Management Data Leyden Training Data How Do I Know Leyden Is Helping?Training the applicationAnalyzing the Cache Are we training the right thing? Did we load all …

Read More »

How is Leyden improving Java Performance? Part 2 of 3

Author: María Arias de Reyna Domínguez Original post on Foojay: Read More Table of Contents How to use an AOT Cache How to properly execute the Training Run? Should I start using AOT Cache in Java already? Heavy Mathematical Example Simple REST API In part 1 of this series of 3 blog posts we introduced the specific performance challenges OpenJDK …

Read More »

Language Learning Flashcard System – Part 1

Author: Diego Freniche Brito Original post on Foojay: Read More Table of Contents Complete code exampleCreate a project using Spring InitializrAdding the MongoDB Connection URIOur logical modelOur MongoDB schemaOur model classesImproving our development cycleOur first API endpoints Decks Cards Adding empty endpoints for DecksChanging the default portTesting our endpointsRepositoriesServicesWiring up our ControllersNext steps My native language is Spanish. I’ve been …

Read More »

How is Leyden improving Java Performance? Part 1 of 3

Author: María Arias de Reyna Domínguez Original post on Foojay: Read More Table of Contents A Brief History of Java Performance Why Java takes time to reach peak performance Housekeeping considered harmfulLeyden Project ‘premain’ Experiment Training and Production Runs In this series of 3 blog posts we will explain how OpenJDK project Leyden is helping to improve a specific area …

Read More »

BoxLang 1.11.0 Release

Author: Cristobal Escobar Original post on Foojay: Read More Table of Contents What’s New in 1.11.0 Performance Wave — 15+ Targeted Runtime Speedups Concurrency & Lock Safety — Critical Fix DateTime Casting Reliability enforceUDFTypeChecks Configuration Setting getTickCount() — Nanosecond & Second Precision New BIF: ExecutorDelete() Core Runtime Updates Class System Improvements Thread & Execution Fixes Query System String & Type …

Read More »

Java 26 Is Here, And With It a Solid Foundation for the Future

Author: Hanno Embregts Original post on Foojay: Read More Table of Contents JEP OverviewNew features HotSpot Core Libs Repreviews JEP 524: PEM Encodings of Cryptographic Objects (Second Preview) JEP 525: Structured Concurrency (Sixth Preview) JEP 526: Lazy Constants (Second Preview) JEP 529: Vector API (Eleventh Incubator) JEP 530: Primitive Types in Patterns, instanceof, and switch (Fourth Preview) Deprecations JEP 500: …

Read More »