cel-spec
graalvm-demos
cel-spec | graalvm-demos | |
---|---|---|
9 | 6 | |
2,389 | 540 | |
2.5% | 0.7% | |
7.5 | 9.3 | |
3 days ago | 6 days ago | |
Go | Java | |
Apache License 2.0 | Universal Permissive License v1.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cel-spec
-
Apple releases Pkl – onfiguration as code language
My employer uses a combination of Protocol Buffers (for the config schema definition) and Bazel/Starlark (for concrete instantiations). Configs are validated at build time and runtime using CEL (https://github.com/google/cel-spec).
- SQL as API
- AWS Creates New Policy-Based Access Control Language Cedar
-
CEL for admission controller with ValidatingAdmissionPolicy in K8s 1.26
The Common Expression Language (CEL) implements common semantics for expression evaluation, enabling different applications to more easily interoperate. https://github.com/google/cel-spec
-
Pure Ruby implementation of Google Common Expression Language
Looks like Google invented a specification for a simple "expression language." -> https://github.com/google/cel-spec/blob/master/doc/langdef.md. Writing the expressions feels like writing Java, C++, Go, or TypeScript code. Google then released C++ and Go versions of this langauge as a library.
-
A library for evaluating expressions like Google Common Expression Language but for Java
https://github.com/google/cel-spec unfortunately, it's in Go or C++. Of course I can write a binding to them. But is there any other similar that you would know of for Java? My other course of action would be to offload computation to another service using this library in Go, or Jsonnet or Open Policy Agent/Rego based evaluation, which I'd prefer not to. Executing JS in Java via Nashorn also an option but it'd be heavy weight.
-
JsonLogic
Having a standard way to share expressions does seem quite useful, especially when it's multilingual.
[0]: https://github.com/google/cel-spec
-
Google Cloud: IAM Conditions
There's more information about CEL and its specifications here
-
Question about setting up multiple applications using nginx.
Especially when dealing with more complex match rules, I personally much prefer Caddy's matchers over building some weird-ass if constructs in Nginx. It also supports CEL for request matching, giving you access to extremely powerful logic, if you need it.
graalvm-demos
- Apple releases Pkl – onfiguration as code language
- What are good Java demo projects?
-
Having trouble creating an exe file in netbeans on a mac.
https://www.graalvm.org/ can generate exe, there are many examples at https://github.com/graalvm/graalvm-demos
-
Spring Cloud Gateway 4.0.0-RC2 native example with Testcontainers
Spring Framework 6 and Spring Boot 3.0.0 have recently gone GA. My favorite feature of these new releases is hands down the AOT processing. The AOT processing, provided by GraalVM, creates statically linked binary images. These images are optimized, ahead of time, for the operating system and architecture. For many modern workloads they can provide smaller image sizes, smaller memory footprint, and a much faster startup time.
-
Java on Truffle — Going Fully Metacircular
It's not "just" an interpreter; but ironically the beauty of our approach is that you write a simple interpreter in Java and with Graal/Truffle and you get a JIT compiler for free (via partial evaluation, e.g. first Futamura projection), that's the value, the fact that partial evaluation can be used in a practical way for Java code to the point of being able to implement a meta-circular JVM. With GraalVM native image tool there's no need for HotSpot to run Espresso. The goal is not to replace HotSpot, but to cover more use cases and make Java and the JVM even more accessible. See our native jshell + Espresso demo: https://github.com/graalvm/graalvm-demos/tree/master/espresso-jshell Note that the demo includes a true port of jshell to Java 8 without changing a single line of code in jshell.
The repo is available here: https://github.com/graalvm/graalvm-demos/tree/master/espresso-jshell
What are some alternatives?
jsonlogic - Go Lang implementation of JsonLogic
Graal - GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
json-logic-js - Build complex rules, serialize them as JSON, and execute them in JavaScript
Testcontainers - Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
json-logic-rs - JSONLogic implementation in Rust, accessible via Python and JS
truffletest - minimal example of trying truffle on java to get dynamic and aot'd clojure stuff
jaspr - Modern web framework for building websites in Dart. Supports SPAs and SSR.
Spring Boot - Spring Boot
secure-json-logic - Use logic-objects from uncertain sources and run them locally without breaking the own system
clojure - The Clojure programming language
jsedn - javascript implementation of edn
spring-petclinic - A sample Spring-based application