Comments (3)
Calling load_script will register the script under the given file name which you can then import
by refering to the module name (my/file.glu -> my.file
etc)
from gluon.
Btw, a related question:
How can I add gluon modules that should be are available for import, such that I specify them as string (.glu file content + module name), not as real filename?
In my use case the modules only exist as Strings in RAM (e.g. when running in the Wasm frontend), not as files on the file system. So I'd like to import them from RAM, is it possible somehow? :)
from gluon.
No idea why WASM isn't working, never tested it throughly so something may have broken.
from gluon.
Related Issues (20)
- VM - Lifetimes in `DeSeed::new` allow aliased mutable references HOT 1
- Stack overflow on code loading / evaluation
- Incremental compilation / linking? HOT 1
- Sandboxing by disallowing file/network access? HOT 1
- gluon doesn't compile with latest rustc: missing lifetime specifier
- How to check return type of script before trying to convert it? HOT 1
- Function to convert List to Array or to sort Array by key?
- stateful run_expr
- Rust crate page outdated
- Release a new version? HOT 4
- How to get names of all symbols that a script defined?
- Support rust 1.70.0 HOT 8
- Stack overflow with polymorphic recursion HOT 1
- Gluom and Profile-Guided Optimization (PGO)
- 24 example fails to compile HOT 1
- Report a vulnerability in gluon-lang/gluon HOT 1
- `cargo install gluon_repl` fails to compile HOT 1
- `cargo install gluon_repl` won't compile HOT 1
- Missing 0.18.2 tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gluon.