Rewrite of the existing code #8
Replies: 2 comments 3 replies
-
I'm 👎 on a line for line "do X by in Rust". Look at tools like:
The list can go on but all these tools built their own CLI and goals to make a better version instead of being a line for line replacement but in Rust. |
Beta Was this translation helpful? Give feedback.
-
Based on a few attempts, my experience confirms the advice given above. C++ rewrite makes for a hell of an experience. References and lifetimes all over the place definitely do not allow for maintainable code. Based on that, I've gone down the line of implemented Ledger's ideas the Rust way (as far as I'm aware). Since I'm not proficient in C++, or rather in BOOST and templates, I can't follow all of Ledger's code but I hope I get the gist of it. In any case, it seems that a 1-on-1 rewrite is not going to happen. |
Beta Was this translation helpful? Give feedback.
-
The plan of action for the code rewrite.
The existing repo is at https://github.com/ledger/ledger/
The suggestion is to translate file-by-file, keeping the same names. Potentially also stick to existing methods/function names.
The idea behind this, as recommended in the original thread, would be to port the original functionality first, before moving to expand it with new features.
Beta Was this translation helpful? Give feedback.
All reactions