Best of Foojay.ioMarch 2026

  1. 1
    Article
    Avatar of foojayioFoojay.io·10w

    foojay – a place for friends of OpenJDK

    BoxLang Spring Boot Starter lets Spring Boot 3 developers use BoxLang — a modern dynamic JVM language — as a view/templating engine with zero configuration. Add one dependency and write .bxm templates that have full access to HTTP scopes (url, form, cookie, request), auto-inject Spring Model attributes, and support hot-reload during development. BoxLangViewResolver integrates cleanly into Spring MVC's resolver chain alongside Thymeleaf or FreeMarker. Additional features include scheduled tasks, enterprise caching, and enhanced concurrency utilities. Requires Java 21+ and Spring Boot 3.4+.

  2. 2
    Article
    Avatar of foojayioFoojay.io·12w

    I Benchmarked Java on Single-Board Computers: Orange Pi 5 Ultra and Raspberry Pi 5 Lead the Pack

    A hands-on benchmark comparison of Java performance across multiple single-board computers including Orange Pi 5 Ultra, Raspberry Pi 5, Raspberry Pi 4, LattePanda IOTA, and several RISC-V boards. The author built a custom JBang-based benchmark runner using the Renaissance Benchmark Suite, covering seven workloads including actor concurrency, fork/join parallelism, and in-memory databases. Results show the Orange Pi 5 Ultra (ARM RK3588) leads among traditional SBCs, with Raspberry Pi 5 a close second. RISC-V boards (Orange Pi RV2, BeagleV-Fire, StarFive VisionFive 2 Lite) are viable but slower. The benchmark tool and an interactive dashboard are publicly available on GitHub.

  3. 3
    Article
    Avatar of foojayioFoojay.io·9w

    How to Use Java as a Scripting Language

    Modern Java has evolved into a viable scripting language, eliminating traditional barriers like manual compilation and verbose boilerplate. Since Java 11, the `java` launcher can run source files directly without `javac`. Java 22 extended this to multi-file programs. Java 25 introduces Compact Source Files and Instance Main Methods, reducing boilerplate to a simple `void main()`. Shebang support lets Java files run as native CLI scripts. JBang further enhances this by handling dependency management (no Maven/Gradle needed), IDE integration, and GraalVM native binary export. Picocli integrates with JBang to build professional CLI tools with typed argument parsing and auto-generated help. Together, these features make Java a practical, maintainable alternative to Bash or Python for automation scripts.