4 ms·
There are multiple VMs. The JS one does run offline with Node.js (it's one file to implement BQN and one for Node-specific stuff like command-line and filesyste
by mlochbaum 5y ago
There are multiple VMs. The JS one does run offline with Node.js (it's one file to implement BQN and one for Node-specific stuff like command-line and filesystem interaction), but it's not designed for speed. CBQN is what you want. EDIT: Just run make, which will pull from a bytecode branch if necessary. It doesn't ship with bytecode, so currently you have to bootstrap once with either dzaima/BQN or Node; at some point I'm sure we'll publish a full release that can be compiled with C alone for bootstrapping.
Further details at https://mlochbaum.github.io/BQN/running.html https://mlochbaum.github.io/BQN/running.html, and feel free to contact me or join the forums for help getting set up!
- mlochbaum 5y agoEDIT: No longer necessary; see edit above. Updated this gist, so you can also copy the bytecode (into the commented files in src/gen in the CBQN repository) from here: https://gist.github.com/mlochbaum/7208fa5a4dd767102f9a99b3637ed924 https://gist.github.com/mlochbaum/7208fa5a4dd767102f9a99b363...
- 7thaccount 5y agoThanks for reaching out. I'll def keep watching the project. Really happy to see there is a C version. What is the roadmap for I/O and common data formats support on the C side (like csv, json, xml...etc), or do you get all of that with the bootstrapping?
- dzaima 5y agoThere already is some basic file I/O in CBQN (though not complete yet). Format parsing isn't hard to do in BQN itself, and finishing the base implementation is a priority over fancy built-in interfaces for now.