home.social

#jbang — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #jbang, aggregated by home.social.

fetched live
  1. Bob's permit clerk is a Java program.

    In this repository scavenger hunt, Bobshell hooks supply a case briefing, run JUnit after edits, and refuse a permit when the stamps belong to older source. The handlers run through JBang; the companion includes the game and reset commands.

    the-main-thread.com/p/ibm-bob-

    #Java #JBang #IBMBob

  2. Surprising bugs I uncovered during testing 🐛:

    • google-java-format 2.0.0 isn't 1st-pass idempotent when wrapping >100-col string literals: `format(x) != format(format(x))`!
    • Both Google & Palantir corrupt #JBang directives (`/// usr/bin/env jbang`, `// DEPS`) & Eclipse `//$NON-NLS-1$` comments.
    • In prince-of-space 2.3.1, combining `@SuppressWarnings` with a JSpecify `@Nullable` return type duplicates `@SuppressWarnings` into the return type (Issue #147), breaking compilation!

  3. Why open-java-format 21.0.2 is my new favorite ⭐:

    • Readable 4-space, 120-col layout + 80-col dot limit for streams
    • Preserves #JBang headers & `//$NON-NLS-1$` comments verbatim
    • Joins adjacent same-line string literals & fixes Palantir's string reflow + `java.lang` wildcard import bugs
    • Ships ~60 MB GraalVM native binaries & a WebAssembly Playground

    I also contributed PR #200 (restoring `Style.PALANTIR` compatibility, merged in 21.0.2!) & Spotless PR #3179.

  4. I wrote an IBM Bob hook in Java with JBang. It reads JSON from stdin, runs seven JUnit cases, and returns exit code 2 to block the opening command when tests fail.

    The door belongs to a small escape-room game. Bob repairs the interlock, gets test feedback after edits, and leaves a Java2D replay behind.

    The lab matches one exact command and asks Bob to keep the rules intact. Play along:

    the-main-thread.com/p/ibm-bob-

    #Java #JBang #IBMBob

  5. Java keeps moving. What’s new this week?

    🔗 From TornadoVM 8.0’s GA release to Hibernate’s latest beta releases, catch up on the Java ecosystem’s latest updates, tools, and releases 👉 infoq.com/news/2026/11/java-ne

    #Java #TornadoVM #JNoSQL #JReleaser #JBang #LangChain4j #Quarkus #SoftwareDevelopment #InfoQ

  6. Mélanger #jbang et scripts #groovy exécutés en live avec le script engine, ça donne des erreurs pas drôles ...

    ```
    xception in thread "main" java.lang.IllegalAccessError: class Script1 cannot access its abstract superclass C4PlantUMLDiagramParser (Script1 is in unnamed module of loader groovy.lang.GroovyClassLoader$InnerLoader @66f57048; C4PlantUMLDiagramParser is in unnamed module of loader 'app')
    at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    ```

  7. После вайб-кодинга: почему в 2026 году появляется новый класс Code Clean-up Agents

    После вайб-кодинга: почему в 2026 году появляется новый класс Code Clean-up Agents. Как стоимость разработки смещается от генерации к проверке, рефакторингу и контролю изменений Я всё чаще вижу один и тот же сценарий. Агент получает задачу, за несколько минут собирает патч, запускает тесты и сообщает об успехе. Первый просмотр выглядит обнадёживающе. Потом начинается ревью. Чем быстрее появляется код, тем больше времени уходит на восстановление контекста: что агент поменял, на какие факты опирался, какой конфигурацией запускал тесты и сколько попыток сделал до финального ответа. В этой точке полезно отделить генерацию патча от подготовки изменения к отправке в основную ветку. Для второй задачи в 2026 году формируется отдельный класс инструментов: Code Clean-up Agents .

    habr.com/ru/articles/1061498/

    #aiагенты #ai #ai_agent #aiagent #ide #idea #jbang #программирование #аналитика #анализ_данных

  8. ICYM: the old split was Python for scripts and Java for systems. Modern Java and JBang make that split a lot less useful, especially when the script is quietly becoming a system.

    the-main-thread.com/p/java-is-

    #Java #JBang #DevTools

  9. Tired of “create project → configure build → wait” just to test an idea in #Java? #Java25 + #JEP512 + #JBang make Java feel closer to scripting—and notebooks + #RaspberryPi turn it into a real learning lab.

    Read the roadmap by @igfasouza: javapro.io/2026/01/15/java-25-

    #JAVAPRO

  10. code that just runs as a script. using to convert pptx slides to png.
    shaaf.dev/post/2026-04-15-pptx

  11. Java is becoming a better scripting language without becoming a toy scripting language. JBang, modern Java, and better packaging make it a serious option for automation that should survive past Friday.

    the-main-thread.com/p/java-is-

    #Java #JBang #DevTools

  12. I think I will be removing #JBang from all my my #Java script programs. JEP 458 and 512 are all I need in the end anyway.

  13. It still amazes me how easy & fast it is to create #MCP servers in #Java with #jbang, #langchain4j and a custom skill inside #geminicli

    A handful of prompts, and less than 5 minutes later, I had created a working #Wikipedia MCP server!

    glaforge.dev/posts/2026/04/02/

  14. AI agents behave much more like terminal users than API clients.

    So it’s not surprising that CLI tools often outperform MCP integrations for many workflows.

    For Java developers this opens an interesting path:
    JBang + small CLI tools as agent capabilities.

    I wrote a deep dive here:

    the-main-thread.com/p/ai-agent

    #Java #AI #DevTools #JBang #AIagents

  15. Most Java CLI tools stop at mvn compile exec:java.

    That works locally. It doesn’t scale.

    In this guide I show how to:
    - build a fat JAR
    - automate GitHub releases
    - publish a JBang catalog
    - install with one command

    No cloning. No Maven required.

    Full tutorial:
    the-main-thread.com/p/ship-jav

    #Java #JReleaser #JBang #Maven #OpenSource

  16. @aalmiray I should have followed mastodon more closely; we could have exchanged about #JBang and/or #Gradle at #JavaLand. Maybe next year. 😅

  17. I Benchmarked Java on Single-Board Computers: Orange Pi 5 Ultra and Raspberry Pi 5 Lead the Pack Table of Contents Benchmark ToolBenchmarkRunner.java - The User ToolSummarizeReports.java - The Auto...

    #Embedded #Java #Java #Core #JBang #Performance #Raspberry #Pi #benchmark #performance #renaissance

    Origin | Interest | Match
  18. Java still feels “too heavy” for quick learning? @igfasouza shows how #Java25 + #JEP512, #JBang & notebooks make experimentation fast—then connects it to real hardware via #RaspberryPi + #GraalPy.

    Try the stack: javapro.io/2026/01/15/java-25-

  19. #Agent #skills help 𝗮𝘂𝘁𝗼𝗺𝗮𝘁𝗲 𝗿𝗲𝗽𝗲𝘁𝗶𝘁𝗶𝘃𝗲 𝘁𝗮𝘀𝗸𝘀.

    Recently I used #GeminiCLI to easily create #MCP servers in #Java with #jbang & #LangChain4j

    I extracted that 𝗸𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲 into a 𝗿𝗲𝘂𝘀𝗮𝗯𝗹𝗲 SKILL.md to create more servers!

    glaforge.dev/posts/2026/02/21/

  20. 💪 Zero Boilerplate #Java STDIO #MCP Servers with #LangChain4j and #jbang

    You just need a single Java file.
    JBang installed.
    No build! No project structure. Nothing else.

    Then configure your custom MCP server to use with your favorite #AI #Agent harness, like #geminicli & friends!

    The #langchain4j project recently added a simple #MCP STDIO server.
    So you don't need the big guns like
    @quarkusio @micronaut & friends for simple MCP servers.

    glaforge.dev/posts/2026/02/11/

  21. For years we accepted a trade-off: Python for scripts, Java for systems.

    With JBang and Java 21, that trade-off is gone.

    You can now write single-file Java scripts with near-zero friction and promote them to production without a rewrite.

    Hands-on examples: HTTP servers, CLIs, async clients, matrix math.

    the-main-thread.com/p/java-is-

    #Java #JBang #Java21 #DevExperience #SoftwareEngineering #JVM

  22. Tired of “create project → configure build → wait” just to test an idea in #Java? #Java25 + #JEP512 + #JBang make Java feel closer to scripting—and notebooks + #RaspberryPi turn it into a real learning lab.

    Read the roadmap by @igfasouza: javapro.io/2026/01/15/java-25-

    #JAVAPRO

Share on Mastodon

Enter the server where you have an account.