-
Notifications
You must be signed in to change notification settings - Fork 9
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
Pr/save ascii #11
base: master
Are you sure you want to change the base?
Pr/save ascii #11
Conversation
I will review this soon and get back to you |
Some months later, @leto, do you mind to take a decision on this? :) Thank you! |
Oops! Sorry that this fell off my radar, @ambs. Feel free to remind me sooner in the future 😈 I like the functionality of this 👍 but I don't like the function names 👎 Perhaps save_to_file() and new_from_file() ? What was your motivation in putting "ascii" in the name? Otherwise, yes please continue on this track and write some tests and docs, too 🐪 |
Or emulate the Math::GSL interface that many people are already used to? https://github.com/leto/math--gsl/blob/master/pod/Matrix.pod#write https://github.com/leto/math--gsl/blob/master/pod/Matrix.pod#read |
Hey The motivation of using ASCII: sooner or later we might want another serialization format, like Sereal or Storable or ... or even some pack'ed format. So, I would save write and read for the binary formats when they come. |
Yeah, I like |
Nice. Will create tests, then! |
And here it is :) Have fun! |
👍 Can you add something to the ChangeLog? |
And here it is. |
Howdy,
So long, but still fighting matrices (unfortunately not petting ducks :-) ).
Now for the real matter, I found it would be nice to have methods to save/load matrices from files.
I know I can slurp a file and use 'new_from_string', but I do not think that to be very efficient (as you need to construct the full string in memory, and then parse it). The same to save...
So, I know I miss tests and documentation. But for now what I want is:
If everything is good, I'll continue coding, and will poke you again when it is ready.
Cheers