Just use unsafe then you have all of the good points of rust, like being able to say you wrote it in rust with none of the downsides, like having to write safe code in rust, or that code being slow.
This comment shines a spotlight on my issues with the US auto market. None of these vehicles are sold in the US, for a variety of reasons - both economic and regulatory. I hate knowing that the vehicles I want to buy both exist and are affordable, but I just can’t have them. Meanwhile, the cars sold in my market are all egregiously enormous, have giant screens inside, etc.
This is the very definition of a “first world problem,” but it sure is frustrating.
I don't know enough about El Salvador's politics to know whether the mass imprisoning brought down the gang murders and improved stuff on the street, but why, once you've got people trapped and unable to do harm, can't you go back through them using officials you audit for gang influence or whatever and have individual trials? Instead, they did a farcical hundred-person-at-a-time show trial for the people they imprisoned, so who knows what portion were guilty. What it makes clear to me is that there's no interest here in identifying the innocent or guilty, but plenty of interest in keeping the undistinguished mix caged up like dogs in a kennel for the rest of their lives. What excuses do you make for that?
How about caring for both? How about that as an idea? It’s impossible for you to accept that you can arrest and jail all those people to protect the lives of regular citizens but also not torture them while they are in jail?
Of course there is. Freedom is a pretty fundamental human right. We don't mind taking it away from some people, sometimes permanently. Then of course the death penalty is a thing.
Now organised abuse, or even not taking steps to prevent such abuse is accepted to be a bad thing by most of society so that shouldn't happen. But my concern isn't directed in any way towards violent gangsters that held an entire country hostage.
And don't forget the tertiary effects as we displace millions with those bombs, only to take in a large number of "asylum seekers" from the countries we "aided".
IMO this is all by design, and there are a non-zero number of NGO operatives on this very site who are frustrated that anything is impeding that plan.
4 western countries with aging populations, what they really found is that people are getting older, have more free time for friends, who are now interest oriented rather than work or school related.
It’s just two pointers the current place to write and the current place to read, escapes are always more characters than they represent so there’s no danger of overwriting the read pointer. If you support compression this can become somewhat of and issue but you simply support a max block size which is usually defined by the compression algorithm anyway.
You have a read buffer and somewhere where you have to write to.
Even if we pretend that the read buffer is not allocating (plausible), you will have to allocate for the write source for the general case (think GiB or TiB of XML or JSON).
Not if you are doing buffered reads, where you replace slow file access with fast memory access. This buffer is cleared every X bytes processed.
Writing to it would be pointless because clears obliterate anything written; or inefficient because you are somehow offsetting clears, which would sabotage the buffered reading performance gains.
I thought we were talking about high performance parsing. Of which buffered reads are one. Other is loading entire document into mutable memory, which also has limitations.
reply