From a024cdefa17b7ac4f9a603c174563fb4634b5d2e Mon Sep 17 00:00:00 2001 From: Jason Steving Date: Mon, 6 Dec 2021 02:22:25 -0800 Subject: [PATCH] ClaroSupport working efficiently! And NOW.....A REPL on RIJU! This is the final push towards implementing legitimate support for Claro in Riju! I've now figured out how to package up all of the Bazel generated build resources (jars) and the Bazel generated run script and have pieced everything together so that rebuilds and initial page loads are all as efficient as I can make them so far accounting for the intermediate step of compiling to Java. The general process is to package everything needed from Bazel in a tarball and then to dynamically insert a custom script to the Bazel generated run script in bazel-bin to rebuild and update the jar file for the latest modification to the file. This allows me to canibalize Bazel's logic for determining where all the proper "runfiles" a.k.a. jars are located in that tarball. With this approach I'm also able to trivially support the Claro REPL in Riju as well!!!!! This is the greatest unexpected surprise :D. --- langs/claro.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/langs/claro.yaml b/langs/claro.yaml index aa4716f..4aaeac3 100644 --- a/langs/claro.yaml +++ b/langs/claro.yaml @@ -1,6 +1,27 @@ id: "claro" name: "Claro" +info: + impl: "Claro" + version: "0.1.0" + year: 2021 + desc: "Optionally compiled or interpreted, high-level, toy programming language, with an eye towards providing standardized Software Engineering best practices out of the box" + ext: + - claro + web: + home: "https://clarolang.com/" + source: "https://github.com/JasonSteving99/claro-lang/" + category: recreational + mode: compiled or interpreted + platform: Bazel + syntax: + - java + typing: static + paradigm: + - functional + - imperative + usage: literally just Jason Steving + install: apt: - default-jdk