Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pitaj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
301.
▲
by
pitaj
4y ago
Personally, I think if you're the one advocating for locking people in cells, you should be the one proving that it's effective.
302.
▲
by
pitaj
4y ago
So would sentencing them to probation where being a company executive is prohibited.
303.
▲
by
pitaj
4y ago
> Sending people to prison for committing crimes is "fucked up"? Unironically, yes. Prison is super fucked up. Prison time barely acts as a deterrent. It doesn't reform criminals. It has high costs for taxpayers. American
304.
▲
by
pitaj
4y ago
How does imprisoning someone help the victims in any way? People have some really fucked up ideas of justice. Justice should focus first on making victims whole, then on rehabilitating the perpetrators to prevent victimization in the future
305.
▲
by
pitaj
4y ago
Personally I'd prefer customers be directly compensated than companies just be fined or people imprisoned.
306.
▲
by
pitaj
4y ago
Are the three types you refer to str/String, CStr/CString, and OsStr/OsString? There are trade-offs associated with having multiple string types, but the alternative is worse. It's better to force the developer to handle
307.
▲
by
pitaj
4y ago
> There is considerable damage to the environment in countries in Africa, where Uranium is mined/extracted. That's equally of not more true of renewables like solar and batteries that require large amounts of rare metals.
308.
▲
by
pitaj
4y ago
I've found Rust is also far better than weakly typed and dynamically typed languages as well. > However rust string handling is barely a step above c’s How so? Personally I've found it very good.
309.
▲
by
pitaj
4y ago
As I understand it, Clear is actually contracted with the airports, not the government. And they only handle the initial ID check, they don't allow you to skip entirely.
310.
▲
by
pitaj
4y ago
Wealth isn't zero sum.
311.
▲
by
pitaj
4y ago
Sometimes the programmer can prove that bounds checks are unnecessary in a certain situation, but the compiler can't prove that itself, and the programmer can't communicate that proof to the compiler. Bounds checks can result in
312.
▲
by
pitaj
4y ago
Very interesting. One thing that I'm curious about is adding the bounds-check assertion to `get_unchecked` and seeing if that has a significant effect.
313.
▲
by
pitaj
4y ago
Realistically, that simply doesn't apply to TS, because the conversion to JS literally just removes types.
314.
▲
by
pitaj
4y ago
I don't think motorcycles are a great analogy. They're way more dangerous for the driver than a car and you have to be constantly vigilant about your surroundings.
315.
▲
by
pitaj
4y ago
I don't think safety or correctness can be over-emphasized.
316.
▲
by
pitaj
4y ago
> while still being memory safe (though perhaps not as expressive as Rust). Rust's memory safety protects against data races. AFAIK, Swift does not. > Swift also is much more principled when it come to certain things like excepti
317.
▲
by
pitaj
4y ago
> looking very much into Nim to see if I can replace Rust because of the high cognitive load to keep all of the Rust stuff in my head, as I don't really need safety. Personally I find that Rust has less cognitive load, because so mu
318.
▲
by
pitaj
4y ago
Silicates like glass and asbestos are hard and cause physical damage, but PTFE is a soft polymer.
319.
▲
by
pitaj
4y ago
Where do they explain that the trend doesn't exist? They make no statement that applies over time.
320.
▲
by
pitaj
4y ago
That's why they're warnings, not errors. I don't really understand the inability of some people to ignore warnings while they're working.
321.
▲
by
pitaj
4y ago
> And I suspect that now that "if let ... else" is available that that will become the preferred style for handling two cases. if let Pattern(binding) = thing { ... } else { ... } has been available for a long time. Wh
322.
▲
by
pitaj
4y ago
I don't know anything about x86, but on Arm you can use an immediate 0 that is stored in the instruction data.
323.
▲
by
pitaj
4y ago
Yeah I'm very happy with Firefox desktop no matter the OS. The Android version of Firefox is not nearly as polished or capable at the moment. It's a shame because I really do still use it a ton. It has great potential.
324.
▲
by
pitaj
4y ago
You can avoid this issue (which pretty much only ever happens on Linux, mind you) by installing the package directly from their website instead of from your distro's package manager. If you'd like to help improve stability or use
325.
▲
by
pitaj
4y ago
I understand the oil/gas industry produces hydrogen from methane. But why would nuclear care whether their electricity is used for electrolysis or battery EVs?
326.
▲
by
pitaj
4y ago
> Amazon and Meta are both obviously engaging in "unfair methods of competition" I don't think that's obvious at all. Give specifics.
327.
▲
by
pitaj
4y ago
The content of that "Core Concepts" page sounds a lot like https://github.com/salsa-rs/salsa
328.
▲
by
pitaj
4y ago
Rust also provides a lot of tools that make it easier to avoid logic bugs, like algebraic data types.
329.
▲
by
pitaj
4y ago
Very cool. Miri is seriously awesome.
330.
▲
by
pitaj
4y ago
Aren't the most commonly used libraries for all of those written in C, not C++? Regardless, I'm surprised you haven't heard of rustls - https://github.com/rustls/rustls
More ›