Unless you only copy and compare you have to decode it, or implement more complicated logic for everything from searching to concatenation (which is normally just memcopy).
- 0 Posts
- 5 Comments
Joined 2 years ago
Cake day: July 24th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
anton@lemmy.blahaj.zoneto Programmer Humor@programming.dev•I got to avoid memory management for quite some time3·10 days agoI can’t comment whether learning C first improves your rust, but it certainly makes you appreciate what the rust compiler does.
Also learning rust improved my C.
One day you will be able to circumnavigate the great wall of the Netherlands by boat.
To visit you take a elevator down from the water line to the bike rental.
You could save 0.64 bit per char more if you actually treated you output as a binary number (using 6 bits per char) and didn’t go through the intermediary string (implicitly using base 100 at 6.64 bits per char).
This would also make your life easier by allowing bit manipulation to slice/move parts and reducing work for the processor because base 100 means integer divisions, and base 64 means bit shifts. If you want to go down the road of a “complicated” base use base 38 and get similar drawbacks as now, except only 5.25 bits per char.