apollovm
2.36.2, released 2 days ago by an unverified publisher
Portable multi-language VM to parse, run, translate, and compile Dart, Java, Kotlin, Go, C#, JS, and Python.
What it does
ApolloVM provides a portable virtual machine for native, web, and Flutter that parses, interprets, cross-compiles, and translates code across multiple programming languages. It features on-the-fly Wasm compilation and can be used as an MCP server for LLMs.
AI-written summary of version 2.36.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want an LLM MCP tool or sandboxed reasoning scratchpad to validate generated code.
- You need to embed multi-language scripting in a Flutter app that updates live at runtime.
- You want to compile loaded source code directly into portable WebAssembly modules on the fly.
Skip it when
- You are building standard production application features that should rely on native Dart performance without a VM abstraction layer.
- You need full 100% feature parity for every single control flow and operator construct across all cross-compiled languages.
Strengths
- Supports multiple popular source languages and translates between them.
- Runs natively, on the web, and inside Flutter applications.
- Compiles source code dynamically to WebAssembly without external toolchains.
Weaknesses
- Complex language features or specific constructs may be unsupported or limited depending on the target language and Wasm backend.
- Interpreting and translating multiple languages at runtime carries significant overhead compared to native code.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 16
Add apollovm to your pubspec.yaml dependencies.
// ApolloVM usage depends on API instantiation, see documentation for parser and interpreter calls.Alternatives
Packages that do the same job and could replace apollovm.
- markdown
A portable Markdown library written in Dart that can parse Markdown into HTML.
86Compare - jni
Provides Dart/Flutter bindings to call native Java code via JNI.
90Compare - frontend_server_client
Client to interact with Dart SDK's frontend_server compiler.
85Compare - result_dart
Kotlin and Swift inspired Result class for error handling in Dart and Flutter.
69Compare
Works with
Packages commonly used together with apollovm: ones it builds on, ones built on it, and its own family.
- archiveapollovm depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- yamlapollovm depends on itA Dart library for parsing YAML documents into Dart data structures.
- cryptoapollovm depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- pub_semverapollovm depends on itVersions and version constraints implementing pub's versioning policy.
- petitparserapollovm depends on itBuild fast, composable, and type-safe grammars and parsers in plain Dart code.
- webapollovm depends on itLightweight bindings for browser APIs via JS interop
- argsapollovm depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- stream_channelapollovm depends on itAn abstraction for two-way communication channels based on the Dart Stream class.