0 purchases
clojure compiler ffi bridge
clojure_compiler_ffi_bridge: High-level memory-safe FFI bridge for Flutter/Dart <-> hand-written Clojure compiler #
Want to combine the best between Flutter, a cross-platform hot-reload rapid-development UI toolkit, and Clojure, a dynamic, general-purpose programming language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming to build reliable and efficient software? Here it comes!
🚀 Advantages #
Memory-safe: Never need to think about malloc/free.
Cross-platform: Android, iOS, Windows, Linux, MacOS, and Web. (almost supported)
Fast: It is only a thin (though feature-rich) wrapper.
Pure-Dart compatible: This package is 100% compatible with Dart.
💡 Usage #
Installation #
dependencies:
clojure_compiler_ffi_bridge: ^0.0.1
copied to clipboard
Configure and execute #
import 'package:clojure_compiler_bridge/clojure_compiler_bridge.dart';
/// create instance of Clojure Compiler
final engine = Compiler();
/// execute Clojure source code line by line
callResult = engine.evalLine('<<some clojure code>>>');
JsonEncoder encoder = const JsonEncoder.withIndent(' ');
/// parse Clojure source code line by line to AST
evalResult = encoder.convert(engine.parseLine(_formController.text));
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.