Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gklijs/cljs-gl-3d
A small example on how to use web assembly with Clojurescript
https://github.com/gklijs/cljs-gl-3d
Last synced: about 2 months ago
JSON representation
A small example on how to use web assembly with Clojurescript
- Host: GitHub
- URL: https://github.com/gklijs/cljs-gl-3d
- Owner: gklijs
- License: mit
- Created: 2020-05-06T11:39:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T17:53:27.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T13:13:57.273Z (3 months ago)
- Language: JavaScript
- Size: 471 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# Attempt to use wasm with cljs
## Intro
This will be a small example on how to use web assembly with Clojurescript. I'll be using [game-of-life-3d](https://www.npmjs.com/package/game-of-life-3d) as example as I created it, and already used it with Typescript and Elm.
It was created following the steps on [ClojureScript with Webpack](https://clojurescript.org/guides/webpack). With some differences, and after validating the react dependency was working.
## Current state
Trying to start up the REPL with
```clj -m cljs.main -co build.edn -v -c -r```
gives an error:
```No such namespace: game-of-life-3d, could not locate game_of_life_3d.cljs, game_of_life_3d.cljc, or JavaScript source providing "game-of-life-3d" (Please check that namespaces with dashes use underscores in the ClojureScript file name)```