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

replace/rewrite vector module to use list as the underlying implementation #47

Open
AlecTroemel opened this issue Nov 19, 2023 · 0 comments

Comments

@AlecTroemel
Copy link
Owner

I've personally transitioned to representing vectors as tuples instead of tables. Some reasons

  • Matches how library's such as jaylib represent vectors
  • allows me to override operators to work with tuples, which feels great
  • IMO leads to a cleaner implementation, the "L" in lisp does stand for "list"!

Here's what I've been using -> https://git.sr.ht/~alect/jmpulse/tree/master/item/src/vectors.janet. It would be great if these 2 projects shared the same implementation.. however I'm not sure how to organize that yet

@AlecTroemel AlecTroemel changed the title replace/rewrite vector module replace/rewrite vector module to use list as the underlying implementation Nov 19, 2023
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