Skip to content
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

Use more TypeScript? #1

Open
be5invis opened this issue Dec 19, 2018 · 2 comments
Open

Use more TypeScript? #1

be5invis opened this issue Dec 19, 2018 · 2 comments

Comments

@be5invis
Copy link

Just for better code organization...

@raphlinus
Copy link
Owner

I'm open to this. The code started as just a rough prototype for playing with curves but is growing and will no doubt continue to grow more, as there's still major functionality missing (such as the ability to edit more than one subpath). I will probably hold off until I get a better idea where the codebase is going, whether this will be the main place it's developed into a real tool or not.

@jrus
Copy link

jrus commented Dec 24, 2018

Research prototype should be plain Javascript, IMO.

Make a production implementation in Rust and compile it to wasm.

YMMV, but I find Javascript syntax more or less okay (in terms of programmer productivity) for numerical stuff if you do everything in inefficient ways creating tons of unnecessary tiny temporary arrays, using way more function calls than necessary to increase the level of abstraction, etc. But start trying to do efficient numerical code in Javascript which avoids unnecessary data movement etc. and it quickly becomes ugly and painful to write/edit.

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

No branches or pull requests

3 participants