-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mathgenerator as a npm package? #409
Comments
Hi @kevinmachstudio. I've thought about this for a while and find it important as well. I don't want to remake it in js because then I would be abandoning current python users or would have to maintain both versions. However, I'm planning on converting the project to rust or go and compiling to webassembly so that it can be used from npm and pip with https://wasmer.io/. I'm going to begin working on it immediately and expect a working version in the next week or so. Also, cool project! This is exactly the type of project that mathgenerator was created for, and I'd love for you to use this project and provide feedback. Thanks! |
Sounds good i'm looking forward to it! Thanks and happy holidays! |
hey @lukew3! Any chance you made progress on converting the project to rust / go and compiling it to webassembly? |
Hey @kevinmachstudio, sorry for the wait. I was doing a lot of research into webassembly, and I don't think that it's suitable for this project at this point. I'm rewriting this package in javascript on the js2 branch. Probably going to be equivalent versions in both languages from now on. All functions from the basic_math subject are available now and I'm working on the other subjects now. It is available now as mathgenerator on npm. Basically import * as mathgenerator from 'mathgenerator';
console.log(mathgenerator.addition()); or import { addition } from 'mathgenerator';
console.log(addition()); |
hey @lukew3 , I appreciate you rewriting it in JS, a few comments here for you to consider
current output (e.g. factorial function)
desired alternate output, first item is the problem without the equal sign and second item is the solution
|
In the plans. I just wanted to get this down in the easiest way possible at first. Might even try converting to AssemblyScript later, which is just Typescript but with webassembly compatible types and compilation.
My first thought is to say you should just use
Got it. Still a WIP. FYI, this seems like it's going to take a long time to complete this conversion. If you have any generators in particular you want completed let me know or feel free to try to write them yourself. |
I have been working on a PHP/JS project lately to create math practicing tool. It was relatively strait forward to spin it up into a small web API using Render.
|
hey @lukew3, awesome project! I discovered it through Hacker News the other day. Do you have any plans to make this project into a npm package as well? I've been building a free math user interface (https://robomath.tech) for self study students / teaching orgs and was hoping to import your math generator as a npm package to generate more variety of math worksheets. The alternative would be to use this python package inside a lambda function and call it but that would be much less ideal.
Thanks for the consideration and looking forward to hearing back.
The text was updated successfully, but these errors were encountered: