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

Next version progress helpful resources #482

Open
adrian-afl opened this issue Jan 1, 2025 · 0 comments
Open

Next version progress helpful resources #482

adrian-afl opened this issue Jan 1, 2025 · 0 comments

Comments

@adrian-afl
Copy link

Hello!

I've seen some long time ago the -next version branch appear, but it seems to not be progressing.
I needed a bit of this, tried to checkout this branch and finish the code but I found many missing implementations and I wasn't sure if everything works as expected.
But I needed such api like in the -next branch so I decided to completely rewrite the whole gl-matrix current stable version into typescript.

I think it might come in handy for the -next branch progress, so I'm sharing it here: https://github.com/adrian-afl/afl-math
How this is done is that I started from the main version JS code and by hand added types everwhere, and then wrapped things in object like on -next branch.
There are some serious changes though - I decided to use x y z object attributes instead of extending Float32Array, this is around the same performance cost, but need to not that raw arrays are 2x faster than this, but the api is not so friendly then. Also this is then Float64 precision because of the "number" type used.
I'm not sure if everything works because I completely skipped the test suite 😞
The package is also ready for NPM package releases, I tested this with Vite based frontends and with backend on Node.js.

I thought this might be helpful for you! Hope it helps with the next big release.

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

1 participant