Giter VIP home page Giter VIP logo

Comments (4)

mhuesch avatar mhuesch commented on June 7, 2024

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.

mhuesch avatar mhuesch commented on June 7, 2024

of interest to HDK development, as types are defined here: https://github.com/holochain/holochain/tree/develop/crates/holochain_zome_types.

from rep_lang.

mhuesch avatar mhuesch commented on June 7, 2024

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.

mhuesch avatar mhuesch commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.