It's pretty straight forward to include the output of `wasm-pack` into a vite project. The output is a node module in a folder with the wasm files and a single "main" JS file.
Because I wanted to load WASM in a web worker for my project [1] I needed to use vite-plugin-wasm and `wasm-pack build --target web` but without that constraint you should be able to import the main JS file from the wasm-pack output directory using wasm-pack's default `bundler` target and no vite plugins.
Interesting, thanks. I am especially interested in the idea of introducing player-defined concepts.
Would you be able to recommend a Datalog implementation that allows independant n-ary relations. Ideally one I can use from Python or Javascript in a sort of sandboxed way, as I am doing with Datascript, but if you have any recommendation at all it would be helpful to me.
To me the interesting thing is the logic programming "rules" and their overlap with game rules. Inspired by work at Stanford on the logic programming based Game Description Language [1] I implemented Tic Tac Toe in Datascript yesterday: https://github.com/kasbah/datascript-games/blob/e06a37025bf9...
I am still not clear whether there isn't a more succinct rule definition than what I have there. In the Stanford paper you have rules like:
Why does that matter? It seems you can run Lyra on the client and you can run other JS search engines on the "edge" (all that's needed is a JS runtime if I understand it correctly). It would be interesting to see how Lyra compares in these benchmarks.
PCB manufacturers accept a format called "Gerber" files. They are basically drawings of all the layers of the PCB. You can download the Gerber files from the Kitspace page and send/upload them to a manufacturer of choice or even use one of the links to auto-upload them for you to Aisler, OSHPark, PCBWay or JLCPB.
Since the PCB is the board only, component information is actually not required to manufacture it. If you want a functioning device however you do have to source the components (e.g. from Digikey) and solder them to the PCB. I would recommend starting with an easier circuit (the electron-detector above might be a good candidate!) and ideally find someone to teach and help you (maybe at a local hackerspace? youtube tutorials might get you there if not?)
The other option is to have a manufacturer solder it for you (e.g. Aisler and JLCPCB will do this for you), but if you have no experience building and debugging electronics I wouldn't recommend it (since it can get expensive and you can easily end up with a non-functioning device).
https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...