Comments (4)
something slightly unfortunate: hint
seems to make the binary quite large:
67M, which reduces to 55M with strip
.
maybe this would be a good stress-test for Holochain's WASM engine
vayu :: ~/projects/hint-playground ‹master*› » cabal v2-build
Resolving dependencies...
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):
- hint-playground-0.1.0.0 (lib) (configuration changed)
- hint-playground-0.1.0.0 (exe:hp) (configuration changed)
Configuring library for hint-playground-0.1.0.0..
Preprocessing library for hint-playground-0.1.0.0..
Building library for hint-playground-0.1.0.0..
Configuring executable 'hp' for hint-playground-0.1.0.0..
Preprocessing executable 'hp' for hint-playground-0.1.0.0..
Building executable 'hp' for hint-playground-0.1.0.0..
[1 of 1] Compiling Main ( app/Main.hs, /home/mhueschen/projects/hint-playground/dist-newstyle/build/x86_64-linux/ghc-8.6.5/hint-playground-0.1.0.0/x/hp/build/hp/hp-tmp/Main.o ) [Optimisation flags changed]
Linking /home/mhueschen/projects/hint-playground/dist-newstyle/build/x86_64-linux/ghc-8.6.5/hint-playground-0.1.0.0/x/hp/build/hp/hp ...
vayu :: ~/projects/hint-playground ‹master*› » ls -lh ./dist-newstyle/build/x86_64-linux/ghc-8.6.5/hint-test-0.1.0.0/x/hint-test/build/hint-test/hint-test
-rwxr-xr-x 1 mhueschen users 67M Dec 14 14:07 ./dist-newstyle/build/x86_64-linux/ghc-8.6.5/hint-test-0.1.0.0/x/hint-test/build/hint-test/hint-test
vayu :: ~/projects/hint-playground ‹master*› » strip ./dist-newstyle/build/x86_64-linux/ghc-8.6.5/hint-test-0.1.0.0/x/hint-test/build/hint-test/hint-test
vayu :: ~/projects/hint-playground ‹master*› » ls -lh ./dist-newstyle/build/x86_64-linux/ghc-8.6.5/hint-test-0.1.0.0/x/hint-test/build/hint-test/hint-test
-rwxr-xr-x 1 mhueschen users 55M Dec 14 14:55 ./dist-newstyle/build/x86_64-linux/ghc-8.6.5/hint-test-0.1.0.0/x/hint-test/build/hint-test/hint-test
from rep_lang.
of interest to HDK development, as types are defined here: https://github.com/holochain/holochain/tree/develop/crates/holochain_zome_types.
from rep_lang.
so today I tried the experiment of running asterius
on my hint-playground
package, attempting to interpret a Haskell source file in a wasm-compiled version of hint
(the Haskell interpreter). I expected this to fail, and I ran into a roadblock that seems failure-like, but I am not totally sure how to interpret it yet.
I documented it here.
the constraint <0 && >=4.14 && <4.15
seems impossible to satisfy, so this might be the negative (failure) result I was expecting. however I will poke at this a bit more to be sure.
from rep_lang.
Closing out Haskell in favor of custom DSL development.
It seems like hint
’s dependence on a system ghc is a real limitation.
from rep_lang.
Related Issues (20)
- global: bump package versions to latest HOT 2
- investigate lazy evaluation as a means of implementing incremental list processing HOT 1
- add automated checks to CI
- convert CI to use nix HOT 2
- add `fix` back to the language
- add `head` and `tail` primitives to facilitate easy (tho unsafe) list processing
- add proper option parsing to the various executables
- add basic boolean operators
- add numeric inequality operators
- support loading of source files in `rli`
- investigate / scope adding a module system HOT 1
- implement garbage collection
- investigate whether garbage production can be minimized HOT 2
- investigate ways to reduce `Sto` clutter
- revamp `cargo2nix` workflow in light of no toplevel workspace HOT 2
- add support for user-defined datatypes
- Implement measures for memory efficiency / bounding on large datasets HOT 1
- Proof single-step computations HOT 1
- Proof multi-step computations HOT 1
- transition off forked rustyline once wasm support is merged mainline
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 rep_lang.