Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tene
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
121.
▲
A half-hour to learn to read Rust
(fasterthanli.me)
1 points
by
tene
7y ago
|
0 comments
122.
▲
by
tene
7y ago
Can you explain more about "advanced reference libraries", and how they interfere with the benefits of option types?
123.
▲
by
tene
7y ago
Can anyone provide some insight into possible motivations for why the authors may have chosen to use a shell here? I'm struggling to understand what value it adds over representing mda_command as an array of strings and execving that.
124.
▲
by
tene
7y ago
I know basically nothing about medical technology. How likely is this to actually end up making a big difference? How does this type of development compare to new battery technology, "graphene", and similar topics in electronics
125.
▲
Nanoparticle chomps away plaques that cause heart attacks
(msutoday.msu.edu)
2 points
by
tene
7y ago
|
1 comments
126.
▲
by
tene
7y ago
The difference is that you can't accidentally use an option as a pointer without checking it first, and when your APIs specify a non-nullable pointer you can rely on the callers to have checked for null. When you're reading or wri
127.
▲
by
tene
7y ago
Can you give some more details on what the design problem is here? It seems to me that nullable references are isomorphic to having an option type with non-nullable references, but prevent accidental unchecked dereference. What are some of
128.
▲
by
tene
7y ago
You may be interested in the `im` crate for Rust, which implements efficient copy-on-write structural sharing, falling back to in-place mutation when there are no other outstanding references. https://docs.rs/im/14.1.0&
129.
▲
by
tene
7y ago
Rust is a huge help with exactly this problem. The compiler will clearly tell you exactly where you've made a mistake if you give it code that violates the ownership rules, like trying to keep a reference past its valid lifetime. It t
130.
▲
by
tene
7y ago
I actually have no idea what you're alluding to here; can you be a bit more explicit for us oblivious readers?
131.
▲
by
tene
7y ago
I'm not familiar with the implementation details of QSBR, and I've never used liburcu-qsbr, but what I've read about it tonight sounds a lot like the im[0] crate in terms of behaviour. The behaviour in im is a data structure
132.
▲
A Rust-based TLS library outperformed OpenSSL in almost every category
(zdnet.com)
214 points
by
tene
7y ago
|
80 comments
133.
▲
by
tene
7y ago
Thanks for the clarification!
134.
▲
by
tene
7y ago
What structure do you believe Haskell forces on your code? My experience with Haskell is that it's the most expressive and flexible environment for exploring different ways of structuring code that I've ever used. I've seen
135.
▲
by
tene
7y ago
Perhaps I've missed it somehow, but I didn't find anything in that video that refers to any asymmetry between north and south hemispheres?
136.
▲
by
tene
7y ago
The proposed fix is that you don't deploy code that the type system can prove is broken, and the person performing the refactoring needs to do additional work rather than pushing out something that will fail in production. My reading o
137.
▲
by
tene
7y ago
Assuming struct A has a reference to struct B, memcpy is a fine way to move struct A, and struct B cannot be moved while borrowed. Here's an example I put together demonstrating this: https://play.rust-lang.org/?version
138.
▲
by
tene
7y ago
I was including time spent reviewing documentation there. I definitely don't have any of those memorized. I almost never write code without frequently consulting an API reference. Am I misunderstanding you, or are you really saying t
139.
▲
by
tene
7y ago
How long would you expect someone to need to write code that makes a few HTTP requests (or read files or whatever other data source is specified), some kind of parsing or decoding (probably JSON) to get the URLs for more requests, and spawn
140.
▲
by
tene
8y ago
Hand-counted pen and paper ballots don't actually provide any way for you to verify that your ballot was included in the count and that the count is correct without letting anyone verify who you voted for. I'm curious what you ha
141.
▲
by
tene
8y ago
That's a good question, and something that's not always obvious without having been in a situation to get advantage from such an improvement. First, even if waiting for a response from the database is the largest single contributo
142.
▲
by
tene
8y ago
These kinds of nuances can be a bit subtle; I hope I managed to come across as polite correction instead of attack. :)
143.
▲
by
tene
8y ago
I feel confused. Are you really saying that your justification for PHP having a consistent design is that, on its seventh major version, twenty years into its lifetime, an effort has been started to attempt to establish consistency by remo
144.
▲
by
tene
8y ago
While I agree with most of your comment, I think you've misinterpreted the intent here: > Until I list the ones it doesn't. Or are they not "real"? My reading of the original post is asserting that there is a specific
145.
▲
by
tene
9y ago
Re-reading your comment, I did overreact, and assumed that you were implying a position that you didn't actually assert. I'm sorry for assuming that you were advocating for a pro-death position. If your comment wasn't intend
146.
▲
by
tene
9y ago
There will be challenges and struggles and costs to be paid to significantly reduce death, but my personal philosophy is that involuntary death is bad and should be fought, and that the costs of increased crowding are worth paying to cut do
147.
▲
by
tene
9y ago
That's also configurable. The default setting for "mon osd down out interval" is 600 seconds. See http://docs.ceph.com/docs/master/rados/configuration/mon-osd... for a lot more configu
148.
▲
by
tene
9y ago
The more-fool-proof option for any distributed storage system is to not deploy multiple package upgrades across your entire fleet without any testing. This entire problem would have been avoided (for any distributed storage system) if th
149.
▲
by
tene
9y ago
You've correctly understood the nontrivial costs involved in trying to use Gentoo on production servers, and correctly understood that the benefits aren't relevant to your personal use-cases, or the most-common use-cases for produ
150.
▲
by
tene
9y ago
I'm curious if there's a use case or edge scenario I'm not aware of that noout does not cover. I can't say I've got exhaustive testing for this, but when performing maintenance on a ceph cluster I ran at a previous
More ›