Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
duckerude
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
duckerude
5y ago
> The AlphaFold parameters are made available for non-commercial use only, under the terms of the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license. You can find details at: https://creativeco
62.
▲
by
duckerude
5y ago
Couldn't regular asymmetric encryption take care of that? Just encrypt each entry with the patient's public key. I think you only need homomorphic encryption if the transformation is something that the owner of data can't or
63.
▲
Removing Garbage Collection from the Rust Language (2013)
(pcwalton.github.io)
2 points
by
duckerude
5y ago
|
0 comments
64.
▲
Are PHP developers functophobic? (2012)
(npopov.com)
2 points
by
duckerude
5y ago
|
0 comments
65.
▲
by
duckerude
5y ago
> don't include it in the model They tried that, but they failed because they didn't know that it's possible to downcast from an interface. It's really hard to have that kind of problem in a dumb REST API. `return {&q
66.
▲
by
duckerude
5y ago
I think GraphQL might be unusually easy to accidentally get wrong. It handles very powerful untrusted input, by design. And it has enough features that many, maybe most users don't know about all of them. This vulnerability wouldn'
67.
▲
by
duckerude
5y ago
The data was retrieved by mass-upvoting unpublished documents and using an obscure GraphQL feature to extract fields that aren't part of the explicit interface. I don't think you could do any part of that while assuming it's
68.
▲
The scikit-learn cargo cults
(nostalgebraist.tumblr.com)
34 points
by
duckerude
5y ago
|
10 comments
69.
▲
by
duckerude
5y ago
> preallocating an exactly correct size result buffer Looks like it just uses the size of the original slice. If the average broken chunk is less than three bytes (maybe quite common?) then it'll have to grow the buffer, at least do
70.
▲
by
duckerude
5y ago
If join were a method on lists then you wouldn't be able to use it with other iterables. Putting it on str is more useful, if more confusing. Maybe it would be better as a standalone function. But then you'd either have to import
71.
▲
by
duckerude
5y ago
I'm also getting a 30% speedup simply from manipulating &PyList references instead of Vecs (without parallelism).
72.
▲
by
duckerude
5y ago
But the question remains: if you're a customer at a store that doesn't use a coin system, should you return your cart? It might be a fake solution in the sense that someone else has the power to solve it in a better way, but does
73.
▲
by
duckerude
5y ago
> Even things like mosquito nets - are we sure that these NGOs are really providing mosquito nets that wouldn't be provided otherwise? There's an analysis of that particular issue: https://www.givewell.org/print
74.
▲
by
duckerude
6y ago
> It would be better if it was written in rust There is a project to rewrite HTTPie in Rust: https://github.com/ducaale/xh (Disclaimer: I'm one of the developers)
75.
▲
by
duckerude
6y ago
> Douglas’s writing routine was painful in the extreme. Sue Freestone, his publisher at Heinemann, would come round and beg, often almost with tears welling in her eyes, for pages from his printer. Douglas would hurl himself downstairs t
76.
▲
by
duckerude
6y ago
For errors the ? operator is both correct and easy most of the time. But for options it's trickier. Unless the surrounding function is structured just right, the equivalent to Typescript's and Kotlin's ? operator is .map()&#x
77.
▲
by
duckerude
6y ago
Here's the score for tokio without tests and examples: $ find . -name '*.rs' | grep -v -e test -e example | xargs -n1 sed '/mod test/q' | grep -v '^\s*//' | grep -cF -e '.unwra
78.
▲
by
duckerude
6y ago
I don't know about those other languages, but Rust needs static type information to solve it (which Python doesn't have). Take this code: static NOT_FOUND: i32 = 404; match 403 { NOT_FOUND => println!("Not foun
79.
▲
by
duckerude
6y ago
Isn't Nim's niche closer to Go's than to Rust's? It has garbage collection, at least by default.
80.
▲
by
duckerude
6y ago
That file repeated 10 times, even: https://github.com/benhoyt/countwords/blob/master/test.sh
81.
▲
by
duckerude
6y ago
Not a lot, right? 2400 days vs 3000 days.
82.
▲
by
duckerude
6y ago
curl is very widely used, including on platforms that Rust doesn't support. Broad support is perhaps its killer feature. A rewrite would introduce new bugs, even if they aren't memory issues. The rewrite could end up buggier than
83.
▲
by
duckerude
6y ago
GNU grep is so fast that it set the bar for later implementations. In your second link ripgrep is even marketed as having "the raw performance of GNU grep" (though it managed to exceed it).
84.
▲
by
duckerude
6y ago
I don't think it's a good measure of overall quality. But if the writing became less crisp (as the article claims) I'd expect the score to change.
85.
▲
by
duckerude
6y ago
I fed the first tech article I could find on NYT's front page ( https://www.nytimes.com/2021/03/08/technology/silicon-valley... ) into Hemingway: - Grade 12 (aim for 9) - 14 adverbs - 4 uses of passiv
86.
▲
by
duckerude
6y ago
Assigning blame is a bit academic. I think a protocol that used integers instead of decimal point would have led to more correct implementations. So it would be a better protocol.
87.
▲
by
duckerude
6y ago
No, it is setting limitations, they're just harder to understand and predict. Here's what the RFC says: qvalue = ( "0" [ "." 0*3DIGIT ] ) | ( "1" [ "." 0*3("
88.
▲
by
duckerude
6y ago
Niko has an impressive record of both proposals and concrete contributions, FWIW: https://github.com/rust-lang/rust/graphs/contributors https://github.com/rust-lang/rfcs/graphs/
89.
▲
by
duckerude
6y ago
> The 2017 data showed that converting annual cropland to perennial pasture, under holistic and regenerative grazing practices, had the effect of storing more carbon in the soil than cows emit during their lives. Does this continue stori
90.
▲
by
duckerude
6y ago
It has had `export` for years: https://github.com/fish-shell/fish-shell/blob/master/share/f...
More ›