Comments (7)
Whipped up a proof of concept in #113 - I will continue to iterate on it and update the progress here
from steel.
I do have a work in progress statically linked program representation that can be serialized to bytes - I guess the workflow could be something like this:
Rather than calling something like steel main.scm
- you'd be able to do something like:
steel build main.scm
(or something like that)
That would then generate a main.rs
file, with the whole program embedded statically in the file alongside an engine instance to run it - we then just compile this to a binary.
I think that would get the job done?
Another approach that I've experimented with is generating the entire VM + handlers dynamically specific to the program that you've given, but that requires some more work :) (but would be a cool future goal)
from steel.
That would then generate a main.rs file, with the whole program embedded statically in the file alongside an engine instance to run it - we then just compile this to a binary.
This is interesting too!
My idea is more like https://deno.com/[email protected]/tools/compiler#compiling-executables
from steel.
I'll have to go look at the deno implementation, my hunch is its doing something more or less like what I've described though. Of course, I could be totally wrong
from steel.
a quick search showed https://github.com/denoland/deno/blob/main/cli/tools/compile.rs
from steel.
Nice, looks like they had discussed my approach but didn't end up landing on it. Would it be a deal breaker if it required the rust tool chain? It would certainly make the implementation trivial
from steel.
Would it be a deal breaker if it required the rust tool chain? It would certainly make the implementation trivial
At this point, I am not sure 😄
from steel.
Related Issues (20)
- to-string adds extra space HOT 2
- Escaping backquotes HOT 2
- Successful redefinition of functions is inconsistent. HOT 3
- filter does not consider lists as true HOT 2
- Add `make-string` primitive HOT 5
- Issues building steel inside docker HOT 6
- Host documentation GitHub pages HOT 2
- WebAssembly HOT 3
- Steel REPL Cursor "Bug" HOT 11
- Installation error HOT 12
- REPL prompt is incorrectly fed a path name even though the loading has failed
- Deregister exeternal value HOT 11
- `cargo run -- install.scm` fails with `os error 2`: no such file or directory HOT 8
- add steel-language-server to nix flake HOT 1
- (require "something") not working on windows HOT 13
- `panic!` when a rational number's denominator is exact 0 HOT 2
- Dependency `lasso` fails to compile on nightly toolchain HOT 4
- `register_value_with_doc` doesn't utilize the doc part HOT 2
- `integer?` behavior HOT 2
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 steel.