Hacker Newsnew | past | comments | ask | show | jobs | submit | _3u10's commentslogin

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.

You can write slow unsafe Rust just fine.

But whatever you want Toyota has a 10k truck and a jimmy is 15k, if you need a car a vitz can be had for 12k

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.


One of the many reasons I choose not to live in “the west”.

Exactly, everyone is for affordability but no one wants their primary residency to be worth 50% less in 5 years.

Housing affordability is inherently unpopular with voters.


If it cut my taxes 50%, I would, as I have no intention of selling it.

We are Paraguayans... Argentinians, and Brazilians... but mostly Paraguayans and Argentinas

https://idlewords.com/2006/04/argentina_on_two_steaks_a_day....


It’s saved so over 15,000 lives and protected the human rights of millions of Salvadorans. Truly a great accomplishment.

I’m excited to see what positive coverage CBS has of this great development in human rights in El Salvador.


Universal Declaration of Human Rights, Article 5:

No one shall be subjected to torture or to cruel, inhuman or degrading treatment or punishment.


Agreed. 15,000 el Salvadorans have not been subjected to arbitrary execution. A triumph of the rule of law.


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?


What's saved that? The torture camp? You know bukele _is associated with_ MS13


[flagged]


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?


Sigh… there is no such thing as forfeiting your human rights by committing a crime. You only forfeit your freedom temporarily.

And why mention that inmates have forfeited their human rights if you see no evidence of abuse? Weird thing to pre-argue.


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.


How do you know who's a violent criminal without a trial?


They probably want to operate their Datacenter at night or when the wind isn’t blowing.


Obviously if this agreement conflicts with the patriot act, it’s unpatriotic and America is right not to sign it.


Most US foreign aid is delivered as bombs, and/or directly funding the terrorists.

And if not directly funding the terrorists, creating a situation so stupid that it will lead to a fresh batch for next years war.

Neither the people paying for it, nor the people receiving it want it to be done that way.


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.


If you have a place to write, then it's not zero allocation. You did an allocation.

And usually if you want maximum performance, buffered read is the way to go, which means you need a write slab allocation.


> If you have a place to write, then it's not zero allocation. You did an allocation.

Where did that allocation happen? You can write into the buffer you're reading from, because the replacement data is shorter than the original data.


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).


> You have a read buffer and somewhere where you have to write to.

The "somewhere you have to write to" is the same buffer you are reading from.


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.


Maybe I missed it, but ITT we were talking about C buffers, not buffered reads.


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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: