penrose VS binaryen

Compare penrose vs binaryen and see what are their differences.

penrose

Haskell to JavaScript compiler, based on GHC (by ghcjs)

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
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
penrose binaryen
16 9
2,591 2,007
0.0% -
0.0 3.4
about 1 year ago over 1 year ago
Haskell Haskell
MIT 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.

penrose

Posts with mentions or reviews of penrose. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-10.
  • Secretly introduced rust in my company, now they love it!
    2 projects | /r/rust | 10 Mar 2023
    There is a fork that compiles to js https://github.com/ghcjs/ghcjs compiler, and I believe the official glasgow compiler is working towards also supporting js/wasm (although I don't think they are supported as of yet).
  • Resurrection/modernization of an old Haskell+Haste project (boardgame Yinsh)
    8 projects | /r/haskell | 8 Feb 2023
    I don't know anything about Haste, but you can get GHCJS 8.6 (or 8.10 with a bloated executable) via nix fairly easily or alternatively wait until the JS target recently merged into mainline ghc gets production ready: https://engineering.iog.io/2023-01-26-ghc-update.
  • How does GHC built from source set header search path?
    2 projects | /r/haskell | 22 Jan 2023
    Ah GHCJS does have this header: https://github.com/ghcjs/ghcjs/blob/ghc-8.10/lib/boot/data/include/stg/DLL.h
  • Haskell, JS, and WebDev?
    3 projects | /r/haskell | 12 Jan 2023
  • GHCJS or Asterius
    2 projects | /r/haskell | 3 Oct 2022
    About the FFI: GHCJS extended the FFI to support inlined JS, named arguments, etc. See https://github.com/ghcjs/ghcjs/blob/master/doc/foreign-function-interface.md For now the JS backend only implements FFI calls similarly to native FFI. The rest will be open to discussion later (e.g. in a ghc-proposal) and should take into account the Wasm backend so that the same user code compiles with both backends as much as possible.
  • Memory from finished thread is not getting reclaimed
    7 projects | /r/haskell | 9 Sep 2021
    I know, but I'm using GHCJS so I'm pretty much stuck with it (and using different compiler versions for development builds (which are native executables) and production doesn't seem like a good idea). There is hope though https://github.com/ghcjs/ghcjs/commits/ghc-8.10
    7 projects | /r/haskell | 9 Sep 2021
    Other than that, I ran into a GHCJS and Miso bug, but they weren't too hard to solve.
  • GHC Pluggable Backend?
    4 projects | /r/haskell | 4 May 2021
    There are a bunch of open branches. And yes, there is ghcjs support in haskell.nix, see this comment.
  • Is GHCJS stuck on GHC 8.6.5?
    3 projects | /r/haskell | 17 Apr 2021
    Default branch on ghcjs github is 8.6. 8.10 is a wip with commit from around a month ago.
    3 projects | /r/haskell | 17 Apr 2021
    When I compile the ghc-8.8 branch locally, I get a number of test failures from the test suite. I'm not sure exactly how to fix them and they aren't currently my highest hobby priority.

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.
  • 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)
  • 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++.

What are some alternatives?

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

ascii-art-to-unicode - Small program to convert ASCII box art to Unicode box drawings.

proposals - Tracking WebAssembly proposals

ihp - 🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness

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

pcf - A small compiler for PCF

safe - Haskell library for safe (pattern match free) functions

aeson-serialize - Functions for serializing a type that is an instance of ToJSON

final - final monad helper for Haskell to instead of return

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

cognimeta-utils - Utilities used by Perdure

miso - :ramen: A tasty Haskell front-end framework

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