binaryen VS hint

Compare binaryen vs hint and see what are their differences.

binaryen

DEPRECATED in favor of ghc wasm backend, see https://www.tweag.io/blog/2022-11-22-wasm-backend-merged-in-ghc (by tweag)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
binaryen hint
9 10
2,007 256
- 0.4%
3.4 6.8
over 1 year ago 4 months ago
Haskell Haskell
BSD 3-clause "New" or "Revised" License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

binaryen

Posts with mentions or reviews of binaryen. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-13.
  • Building problems for using `Asterius` to compile Haskell to Webassembly.
    1 project | /r/haskell | 15 Sep 2022
    I've encountered a building problem when using asterius to compile a multi-packages cabal project, the detail could be found here, any suggestions?
  • Options for a frontend of demo for a toy app
    6 projects | /r/haskell | 13 Jun 2022
    ghcjs is the way to go for you, and soon it might be asterius. i do not know how hard it is to set ghcjs up without a framework. but frameworks like obelisk (based on reflex-dom), shpadoinkle, and miso automate that for. i personally like obelisk for its functional reactive programming but it can get awkward and get in your way. so if gui programming is just a means to the end of this one small application and you are not really interested in it nor functional reactive programming, shpadoinkle or miso might suit you better. miso implements the elm architecture (also "TEA", "functional model view controller") and shpadoinkle implements something directly equivalent to the elm architecture. but shpadoinkle achieves more composable widgets by minimalizing the elm architecture. so i recommend shpadoinkle for its better concept although miso is more mature.
  • hint: Runtime Haskell interpreter
    6 projects | /r/haskell | 1 May 2022
    Also, hint uses unsafeCoerce, and thus implicitly relies on an assumption about how values are represented at runtime. Namely, if a program P is interpreting an expression E of type A, hint assumes that the value of type A produced by the ghc interpreter has the same representation as the values of type A which are manipulated by program P. This is not guaranteed to be the case, since P has been compiled by the compiler portion of ghc while E has been evaluated by the interpreter portion of ghc. This means the ghc devs had to carefully craft their compiler and interpreters to match. When targetting the browser, a Haskell-to-js or Haskell-to-wasm compiler such as Asterius modifies ghc's code-generator so it produces js or wasm code. You would thus also need to tweak the interpreter so that it produces js or wasm values which match what the modified code-generator outputs. Or you could restrict yourself to the hint's less expressive eval :: String -> String API.
  • M1Pro Woes
    3 projects | /r/haskell | 8 Feb 2022
    We found a post where someone had a similar issue (here), but the fix in that issue doesn't help: using `ar` from `binutils` causes link errors like this instead:
  • Pandoc in the browser w/ lua (possible contract gig?)
    4 projects | /r/haskell | 16 Jan 2022
    https://github.com/tweag/asterius/issues/851 (asterius has a demo, but no source, and I -assume no lua filter support)
  • It seems like every top tier team I work in insists on Yarn over NPM, almost unanimously it seems like all of these killer devs know Yarn is the industry standard on serious projects. Why do all documentation across the web default to npm installation instructions and assume you're using npm?
    1 project | /r/webdev | 1 Dec 2021
    All modern ones support Haskell: https://github.com/tweag/asterius
  • Is GHCJS stuck on GHC 8.6.5?
    3 projects | /r/haskell | 17 Apr 2021
    Another option is Asterius. I'm not familiar with the current state, and it's not had active development for about 3 months now, either, so it may be in the same boat? But I think the big disadvantage of Asterius is that there's just a lot less usage, and therefore a lot less testing with the whole Haskell ecosystem, versus GHCJS which has been a fixture for a while and where loads of people have thought about compatibility for years.
  • Haskell to JS
    4 projects | /r/haskell | 22 Jan 2021
    Check out asterius
  • WebAssembly Studio
    5 projects | news.ycombinator.com | 31 Dec 2020
    I've played around with Haskell via the Asteruis project : https://github.com/tweag/asterius

    Also emscripten of course, for C/C++.

hint

Posts with mentions or reviews of hint. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-10.
  • I am looking for a new maintainer for Mueval
    2 projects | /r/haskell | 10 Jul 2023
    Mueval is based on hint, which is in turn based on the ghc library.
  • Interactive animations
    11 projects | /r/haskell | 6 May 2023
    Yeah, that project is pretty much at the bottom of my list, unfortunately. My top projects these days are mgmt, klister, recursion-schemes, and hint... And that's already too much!
  • Can GHCi be run like PDB?
    3 projects | /r/haskell | 6 Jan 2023
    You can try using hint (instead of ghci) though I'm not sure it has the breakpoint functionality.
  • Dynamic loading of modules
    2 projects | /r/haskell | 19 Dec 2022
    Have you tried hint?
  • hint: Runtime Haskell interpreter
    6 projects | /r/haskell | 1 May 2022
    with haskell.nix, well, you've found the github issue, you need to put the apecs package in the right nix incantation.
  • How to catch "Variable not in scope" error
    1 project | /r/haskell | 29 Oct 2021
    But the use case for that is for using a Haskell program A to catch errors in that same Haskell program A. For your use case, using a Haskell program A to automatically grade a Haskell program B, I recommend using the hint library instead, as it allows you to load code from external source files, run tests on them, and manipulate the error messages produced by ghc. (full disclosure: I am the maintainer of that library)
  • Does a function that takes as input a function and return its porgram text exist?
    1 project | /r/haskell | 23 Aug 2021
    I am thinking of giving hint the ability to evaluate TemplateHaskell expressions. It would indeed be quite difficult to write an interpreter for all of Haskell, so my plan is to use the Exp's Show instance to produce a program which constructs and then splices that Exp, e.g. $(pure (InfixE (Just (LitE (IntegerL 1))) (VarE GHC.Num.+) (Just (LitE (IntegerL 1))))) is a Haskell expression which is equivalent to 1 + 1, so I should be able to ask hint to evaluate that to get 2 without having to write my own Haskell interpreter.
  • Seeking a Project Lead for Matchmaker - Haskell Foundation
    3 projects | /r/haskell | 26 Jul 2021
    Yes please! Right now all of my open-source projects (most notably hint and recursion-schemes) are about to drop into barely-updated mode, and while I knew this would happen and have been working towards finding co-maintainers, I am now realizing that it wasn't enough. I think such a website would definitely have helped, and I am hoping that once it launches, I'll be able to use it to find some co-maintainers to tide over my projects until I become available again.
  • Deep embedding of Haskell in Haskell
    2 projects | /r/haskell | 15 Jul 2021
    hint's API takes a string, not an AST (I plan to fix this). Internally, hint delegates to the ghc library, which does expose a parser which you can use if you want. hint exists to provide a friendlier API than the ghc library for interpreting Haskell code, but it does not expose a friendlier API for parsing Haskell code.

What are some alternatives?

When comparing binaryen and hint you can also consider the following projects:

proposals - Tracking WebAssembly proposals

recursion-schemes - Generalized bananas, lenses and barbed wire

ajhc - A fork of jhc. And also a Haskell compiler.

ghci-pretty - tiny hack for colored pretty-printing within ghci

pcf - A small compiler for PCF

Tidal - Pattern language

hyper-haskell-server - The strongly hyped Haskell interpreter.

reflex-ghci - Run GHCi from within a Reflex FRP application and interact with it using a functional reactive interface.

dhall - Maintainable configuration files

ghc-dump - A GHC plugin and library for analysing GHC Core

haste-compiler - A GHC-based Haskell to JavaScript compiler

ghc-wpc - GHC-WPC is an extended GHC that exports the STG and other IR (.modpak) for the compiled modules and linker metadata (.ghc_stgapp) at application link time.