> And I think that for certain problem domains, rust provides more safety than you actually want.
If writing of unsafe Rust by hands is hard for you, then write code in plain C, then convert it into unsafe Rust using crust.
0 karma · joined December 14, 2017
Volodymyr M. Lisivka vlisivka@gmail.com
Don't forget to quote me!
> And I think that for certain problem domains, rust provides more safety than you actually want.
If writing of unsafe Rust by hands is hard for you, then write code in plain C, then convert it into unsafe Rust using crust.
If we are talking about emulator, why not just make clear communication between CPU, RAM, and graphic device? Memory can be split into rows (e.g. by split_at()), so graphic device can take ownership of a single scan line at a time, leaving majority of the memory unlocked. We cannot avoid problem, but we can make scale of the problem much smaller by splitting memory into pages, so CPU can take ownership of pages, it works with right now, while graphical device can work with it own pages.
For example, we have two competing coordinate systems: first is x // width, y // height, z // depth, and second is x // width, y // depth, z // height. With descriptive names we will have no such problem.
However, it's much easier to load large and complex algorithm into head if it written concisely: one letter per variable or function, minimum unnecessary separators. When I need to understand someone else codebase, I will often concatenate all files, delete all comments and obvious functions (getters, setters, eq, hash, etc.), abbreviate long names via search and replace, remove unnecessary symbols and convert functions and classes into oneliners, until I will see whole algorithm at once. However, reading of such code requires some additional training.
To summarize, it's possible and is easy to convert descriptive names into abbreviations, so, it's better to stick with descriptive naming in public interfaces.
First, I had experience with substituted SSL certificates (by our government, at revolution), when errors were reported by Chrome only due to certificate pinning for Google services.
Second, site can be hacked and replaced directly at the site.
Bitcoin is far far away from such success.
Is number of drug uses reduced? Nope. It risen.
Is criminal drug activity reduced? Nope. It risen.
So, what exactly "works" in Portugal?
> Public healthcare works in almost every country on Earth, and in most of developed countries it works really well. At least better than that in USA (looking at the life expectancy).
If you are not a drug user, your life expectancy is at same level as in Europe.
I have personal experience with public health care. Public healthcare is interested in popping you out of clinic as fast as possible.
For example, I received no treatment for my little pain in the back until I was unable to move. In result, I spent more than year in bed. Private clinic identified my problem _decade_ before, but their results were ignored by government clinic. I was stupid enough to trust government clinic. And so on. I can tell a lot if you want to listen.
> That's what taxes are for.
I want to be homeless then.
This problem is solved centuries ago. Just cover only part of the blade with cloth.