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

Generic type #1

Open
thesombady opened this issue Nov 22, 2024 · 2 comments
Open

Generic type #1

thesombady opened this issue Nov 22, 2024 · 2 comments

Comments

@thesombady
Copy link
Contributor

Hi,

I just saw your code on the discord sever and got excited. I myself have done some stuff like this before.
I'd like to contribute by making the entire linalg/vectors.v generic. so that it could support f32, and integers of different types as well. For me this makes complete sense in some scenarios, e.g. in matrix operations, the identity matrix would take up less space if its a large matrix if it could be represented as an i32 instead.

Your opinion on this would be nice, and if so I'll make the pull-request.

Best regards,
Andreas

@rodabt
Copy link
Owner

rodabt commented Nov 24, 2024

Hi @thesombady! Very happy you find this useful. Consider this is just a starting point and I'm glad to have more people onboard. With respect to generics, that would be a great start and I did thought about it at the beginning but when I started I wanted to do it quickly without resorting to any abstractions too early on. Anyway, feel free to issue a PR an discuss it further.

Let me share you with you what I have in mind too:

  • In terms of matrices I would like to addapt matmul.c to have more efficient operations
  • Later on I would like to implement some tools around this library like GUIs, Notebooks, and lots of utilities taken from scikit-learn and friends
  • I've been tinkering a lot with DuckDB too and made a couple of libraries (vduckdb and vframes) and it would be great to leverage some of its computing power for any calculations for this library.

The endgame for me it is to have a good alternative to the Python ecosystem for Data Science and Machine Learning considering all the benefits of the V language

Regards,
Rodrigo

@thesombady
Copy link
Contributor Author

Hi,

Nice that you already thought about some of the things!
I'd really like to see some more data-science in V (vsl is seldomly update nowadays :c)

I'l make some PR and then you can see what I have in mind.

Best regards,
Andreas

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

2 participants