Tuesday, October 10, 2023

Show HN: Standalone Jdk.compiler, Java Compiler Framework and Tree API https://ift.tt/ADetgRU

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/PlkORxe October 10, 2023 at 10:15PM

No comments:

Post a Comment

Show HN: RM2000 Tape Recorder, an audio sampler for macOS https://ift.tt/N1Qh04Z

Show HN: RM2000 Tape Recorder, an audio sampler for macOS RM2000 Tape Recorder makes it stupid simple to grab audio samples and organize the...