Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dmjio
Copy link
Owner

@dmjio dmjio commented Mar 21, 2025

  • Uses new JS backend
  • Updates nix scripts to use pkgsCross.ghcjs
  • Addresses some warnings
  • ReferenceError: h$splitmix_init is not defined
  • > cp: cannot stat 'dist/build/autogen/autogen.jsexe': No such file or directory
  • nixops updates
  • Update QEMU NixOS test runner script
  • ERROR - [JSC_LANGUAGE_FEATURE] This language feature is only supported for UNSTABLE mode or better: Public class fields.

@dmjio dmjio changed the title Bump nixpkgs hash to 9.12.2 Bump nixpkgs hash to use 9.12.2 (new JS backend) Mar 21, 2025
@dmjio dmjio force-pushed the ghc9122 branch 2 times, most recently from c76de8b to 0a2bc4f Compare March 21, 2025 15:29
@dmjio dmjio marked this pull request as draft March 22, 2025 06:20
@dmjio dmjio force-pushed the ghc9122 branch 5 times, most recently from b89ef73 to bc8ba72 Compare March 27, 2025 16:55
@dmjio dmjio force-pushed the ghc9122 branch 5 times, most recently from a7b0ff9 to 5b1ec06 Compare April 1, 2025 17:22
@mastarija
Copy link

Hey, just got into playing with the new JS backend so I remembered that miso exists. Do you need any help with getting it to work with the new JS backend? I should be able to put in some work on both Haskell and Nix side if you could point me in the right direction.

@dmjio
Copy link
Owner Author

dmjio commented Apr 3, 2025

Hi @mastarija. Thanks for asking, and sure.

Right now miso does seem to work with both the (latest) JS backend and the WASM backend. The hard part is acquiring the compilers. This has now gotten a lot easier with tools like GHCUp and Flakes.

nix shell 'gitlab:haskell-wasm/ghc-wasm-meta?host=gitlab.haskell.org'

This PR is moreso about bringing miso's nixpkgs into modernity (think our hash is from 2018) and miso still cuts its releases from GHCJS 8.6 (since that ime is most stable - this might no longer be the case with the new backend). So miso aside, a lot of other stuff we depend on has either changed dramatically or been dropped outright (closure-compiler, NixOS testing framework, nixops has also been dropped - will need to resurrect that). So that's what this PR is about mostly.

If you'd like to get involved on the edge of development there are some opportunities.

One thing we have added recently that I would like to see more large-scale usage of is locally-stateful React-style components via existential quantification. This should open the door to integrating nicely with components from CSS-only frameworks like Bulma, Tailwind's DaisyUI component library and Flowbite. These websites have the component rendered side-by-side with the JS / TS code. I would like to have an example of the same, except the components are rendered side-by-side with the miso code. I think this will help spur adoption of Haskell in the broader community as well.

If you do this we could host it at one of our subdomains. This is what @ptigwe did for the 2048 example and flatris

This would also be a good demonstration of the notify (message passing between components) / sample functions (accessing other component states) that were added. You can find more examples of that in the examples/components sub folder (very crude though).

Also, feel free to join our matrix.org server if you'd like to discuss in more depth, but that's where my heads at right now.

@dmjio
Copy link
Owner Author

dmjio commented Apr 8, 2025

Closed in favor of #855

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants