Recent Posts

Understanding BSON: A Beginner’s Guide to MongoDB’s Data Format

Author: Tim Kelly Original post on Foojay: Read More Table of Contents What is BSON? Why not just JSON? BSON vs. JSONCommon BSON data types (and their Java equivalents)BSON and MongoDB internalsSetup and project structureBSON data types and document creation Nested fields and arrays Why use nested structures? Raw BSON manipulationQuerying with BSONAggregation with BSONPOJO mapping: Bridging Java and BSON …

Read More »

How to send prompts in bulk with Spring AI and Java Virtual Threads

Author: Raphael De Lio Original post on Foojay: Read More Table of Contents Here’s the flow:Virtual Threads for Massive ParallelismSpring AI Prompt CallProcessing in BatchesHandling Errors GracefullyProcess Results in BulkFull ImplementationStay curious! TL;DR: You’re building an AI-powered app that needs to send lots of prompts to OpenAI. Instead of sending them one by one, you want to do it in …

Read More »

How Deep Netts and Java AI Transformed Particle Physics at US DoE, Jefferson Lab

Author: Zoran Sevarac Original post on Foojay: Read More At the intersection of nuclear physics and artificial intelligence, Jefferson Lab is leveraging Java-based AI to overcome one of the most computationally intense challenges in modern science: reconstructing particle trajectories from high-frequency electron scattering experiments. Each second, over 16,000 interactions are recorded as particles pass through a complex array of drift …

Read More »