Show HN: Standalone Jdk.compiler, Java Compiler Framework and Tree API With this standalone compiler, you can rely on all Java 11 javac features to be available, even when using newer Java versions. Specifically, this allows you to: - compile code even if your Java environment isn't a full JDK (Java JRE, for example!) - target Java 1.7 for compilation without any warnings or restrictions. - use the Compiler Tree API without resorting to --add-opens trickery that may eventually fail in newer Java releases - build a modified compiler with additional features or custom tweaks I made this after finding that the otherwise superb "jsweet" Java-to-JavaScript transpiler failed to build and run with Java 16 or newer. Surprisingly, I couldn't find any prior work other than "proper" standalone compilers like Eclipse's ecj that would properly work with modern Java runtimes. I'm excited to see what can be done now that we have this scaffolding. https://ift.tt/W4SbqeE October 10, 2023 at 10:15PM
Show HN: Standalone Jdk.compiler, Java Compiler Framework and Tree API https://ift.tt/D6zLGra
Related Articles
Show HN: Pezzo – Open-Source LLMOps Plaform Tailored for Developers https://ift.tt/FrlP1wpShow HN: Pezzo – Open-Source LLMOps Plaform Tailored for Developers He… Read More
Show HN: Idae, a PEP 723 Implementation https://ift.tt/7CMsf4PShow HN: Idae, a PEP 723 Implementation https://ift.tt/wUto2vz August … Read More
Show HN: RISC-V Linux Terminal emulated via WASM https://ift.tt/HmwQ0l8Show HN: RISC-V Linux Terminal emulated via WASM Weekend creation: A L… Read More
Show HN: Customizable terminal UI for monitoring weather, app uptime, and more https://ift.tt/bPlQ9CiShow HN: Customizable terminal UI for monitoring weather, app uptime, … Read More
Show HN: Bicycle – A Database Tool (Rust, gRPC, RocksDB) https://ift.tt/JEgDOqLShow HN: Bicycle – A Database Tool (Rust, gRPC, RocksDB) https://ift.t… Read More
Show HN: Pilot your motorcycle across increasingly wild roller coaster geometry https://ift.tt/94kasmLShow HN: Pilot your motorcycle across increasingly wild roller coaster… Read More
Show HN: Graphweaver – Instant GraphQL API on Postgres, MySQL, SQLite and More https://ift.tt/fhDdwsjShow HN: Graphweaver – Instant GraphQL API on Postgres, MySQL, SQLite … Read More
Show HN: Sounds of Space – Hear comets, planets, black holes, and more https://ift.tt/qWT4aV9Show HN: Sounds of Space – Hear comets, planets, black holes, and more… Read More
0 Comments: