junk-drawer
junk-drawer copied to clipboard
replace/rewrite vector module to use list as the underlying implementation
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