Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DougBTX
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
361.
▲
by
DougBTX
6y ago
They’re suggesting a web technology which would allow any website to host content for any other website, under the original site’s URL, as long as the bundle is signed by the original site. That could be quite interesting of a site like arc
362.
▲
by
DougBTX
6y ago
How consistently reproducible is it on your laptop? Do the same benchmarks change in the same way every time?
363.
▲
by
DougBTX
6y ago
Here's the library they've written: https://github.com/turbolinks/turbolinks
364.
▲
by
DougBTX
6y ago
You could use Elo rating[0] range to rank them. Basic idea is that if player A has 100 points more than player B, then you could expect player A to win 64% of the time. In rock-paper-scissors, everyone wins 50% of the time, so everyone has
365.
▲
by
DougBTX
6y ago
C# is `foo.bar<T>()`, I’m not sure what compromises that had to make for that to work but from an end-user perspective it works well.
366.
▲
by
DougBTX
6y ago
Coming back to C after several years, I now think one of the hard things about pointers in C is the C syntax for pointers, not just the idea of pointers in general. Eg, sometimes the type declaration wraps around both sides of the variable
367.
▲
by
DougBTX
6y ago
Yes, it probably is impossible. On the other hand, C programmers are asked to write code which doesn't invoke undefined behaviour otherwise their code can break in unpredictable ways, so either we just don't have sufficiently good
368.
▲
by
DougBTX
6y ago
> not all structures have a sane default for all not optional, nilable parameters. What is the default underlying reader for a bufio.Reader? I think you're actually agreeing with nemothekid here, what you're saying is that the
369.
▲
by
DougBTX
6y ago
> adds lifetime annotations and unsafe blocks Worth noting that the vast majority of lifetime annotations in Rust are “elided”, i.e. inferred by the compiler. I’d say that a successful “safe C” compiler would accept any existing C code t
370.
▲
by
DougBTX
6y ago
The first half of the paper is spent building up to the name-calling, it starts with "little squares", reaching a crescendo with the revelation that it is not the squares that are little, but the people! The closest it gets to a c
371.
▲
by
DougBTX
6y ago
As far as I can tell, the main cost of threads is 2-4MB of memory usage for stack space, so async allows saving memory by allowing one thread to process more than one task. A big deal if you have a server with 1GB of memory and want to hand
372.
▲
by
DougBTX
6y ago
The main argument from that article is "if you disagree with me I'll call you silly names", it isn't that convincing.
373.
▲
by
DougBTX
6y ago
> Checkout the translation of "you can you up,no can no bb" (see other comments). Who actually is "WDNMD0-0"? Looks like the account was created to make just that one comment.
374.
▲
by
DougBTX
6y ago
From the RFC link in a sibling comment[1]: > No uses for this have been found that cannot be better accomplished in other ways. This can, however, cause partial replies (not marked "truncated") from a caching server, where the
375.
▲
by
DougBTX
6y ago
You're right, it should be: ["a", "b"].sum("")
376.
▲
by
DougBTX
6y ago
I think the most fun I had parsing a CSV file was when I found out it switched from UTF8 to UTF16 after several thousand lines, as differently encoded CSV files had been concatenated together directly into a single file...
377.
▲
by
DougBTX
6y ago
I don't see it listed in the docs, but try running `deno run -h` to see the command line help. It should produce output like: -A, --allow-all Allow all permissions --allow-env Allow e
378.
▲
by
DougBTX
6y ago
It feels increasingly odd to work in exclusively male teams when there is no obvious biological reason why that would be. Possibly the casual “kill the ex-girlfriend” jokes contribute to that. I mean, some people really think like that, so
379.
▲
by
DougBTX
6y ago
AI as stereotype enforcer is the next filter bubble
380.
▲
by
DougBTX
6y ago
Even constitution-level free speech shouldn't be thought of as blanket freedom to lie, but exactly where the line lies is still under debate: https://en.wikipedia.org/wiki/False_statements_of_fact
381.
▲
by
DougBTX
6y ago
> Or is there something I'm missing here? There may be some platform-specific dependencies, but at least when building on Windows, I saw 67 dependencies downloaded. One thing that may be skewing the count is that internally coreutil
382.
▲
by
DougBTX
6y ago
To get that degree of flexibility in Rust you’d have to turn to macros, then the return type will depend on the generated code. That could be pretty much anything, so you’d need to read the docs anyway. Perhaps the languages are not that di
383.
▲
by
DougBTX
6y ago
I’ve not looked much into D, but I’ve really been enjoying Rust. I think the main takeaway is that there are very different ways of approaching language design. In Rust there was a decision to make the function signature the single place wh
384.
▲
by
DougBTX
6y ago
I missed this the first time, but there are two sets of parentheses in the example. Apparently the first set are like template parameters, and the second are the actual arguments to the function.
385.
▲
by
DougBTX
6y ago
I had a quick search, but finding examples where the same project has been implemented in C++ and Rust with reported compile times seems to be rare... There is a benchmark from way back in 2016 here: https://users.rust-lang.org&#
386.
▲
by
DougBTX
7y ago
> Is it possible to generate infinite data and get almost perfect neural network accuracy? Basic answer is no, but the reason is kind of interesting. Imagine that the input to the model is a list of facts, initially the facts are just:
387.
▲
by
DougBTX
7y ago
At least in the web version is uses the web browser's own element types (text boxes, radio buttons etc) so it could be as accessible as as anything else. I'd expect that to be an option for bindings to OS-native UI kits too.
388.
▲
by
DougBTX
7y ago
Hm, the RFC says the braces are needed if it is not an "identity expression" with the examples: const X: usize = 7; let x: RectangularArray<i32, 2, 4>; let y: RectangularArray<i32, X, {2 * 2}>; So
389.
▲
by
DougBTX
7y ago
Are the braces around the const expressions planned to be optional in future? I'm wondering if this will work: impl State<Color::Green> { fn next(self) -> State<Color::Yellow> { ... } }
390.
▲
by
DougBTX
7y ago
https://xkcd.com/2278/
More ›