-
-
Notifications
You must be signed in to change notification settings - Fork 673
Low-Cost Vectors, Colors, Structs #2721
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
Comments
I think this is a duplicate of #2254 |
Your proposed syntax wouldn't really be compatible with TS in any way. TS has a syntax for tuple types but #2254 (comment) (as @Heath123 pointed out) states the issues with using that and other possibilities. Since you're also looking for performance improvements, maybe |
Thanks. I am OK with any syntax really; or a decorator. Since this is a dupe we can close and continue discussion in the other topic. In this case, SIMD is interesting but for my use case it will involve a lot of extracting/loading/storing which makes me wonder if it would be as performant, even something like |
SIMD would likely be more helpful if/when you loop over a bunch of vectors and do some calculations. Anyways, I might as well close this then... |
Feature suggestion
I have some code that deals with geometry and graphics programming, where Vectors and Colors are often needed. However, I'd like to avoid allocating new memory, or using classes, if possible. I've noticed the performance, bundle size, and complexity (in terms of dealing with Wasm Memory) are much smaller and more manageable when just using variables, or even global variables, so I wonder how to achieve some of these things with AssemblyScript.
Example use case:
I don't really care for functions, memory management, or other features of classes, and I don't want my bundle size to bloat with each new class definition. Really I am just using this as a sort of tuple. Is this possible?
The text was updated successfully, but these errors were encountered: