Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
judofyr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
151.
▲
by
judofyr
5y ago
> Why is f.x a const object even when accessed through a non-const variable? Because the member is const. It's a bit strange example because there's no reason to have mutable pointer to a struct with only const members. A bette
152.
▲
by
judofyr
5y ago
What do you disagree with? CAP has a long history and was originally provided without a proof. The proved version of CAP has a very strict definition, but it's not that useful in practice because most systems don't actually foll
153.
▲
by
judofyr
5y ago
This might be a bit confusing, but "consistency" in CAP doesn't have one "strict" definition. It can be roughly defined as "a request will either return the correct response or return an error", but you&
154.
▲
by
judofyr
5y ago
This would be a “bijective function” or a “perfect hash function”, although the latter is usually used when the input is much smaller than the output.
155.
▲
by
judofyr
5y ago
> If you’re running a website where extended outages are no big deal and you don’t care about lost revenue, then it’s not really a valid comparison to the typical business website. I think you're severely underestimating how many bu
156.
▲
by
judofyr
5y ago
As someone who has actually studied physics (including quantum mechanics) I find this analogy extremely poor. Keeping multiple potential candidates which you gradually reduce into a single solution is a very common approach for solving a va
157.
▲
by
judofyr
5y ago
Honestly I think this an amazingly effective title: It's very evident from the comments here who actually read the article (which is very short) and who are just replying to the title.
158.
▲
by
judofyr
5y ago
I read through the paper when the first draft was published on Arxiv a few weeks ago. It's a very neat algorithm and there seems to be a cool underlying concept here, but I wasn't quite able to make it practical. This algorithm re
159.
▲
by
judofyr
5y ago
I'm pretty sure since the linked page here ( https://legiblenews.com/ ) is a just more readable version (typography) of Wikipedia's current events.
160.
▲
by
judofyr
5y ago
I've tried to incorporate some of the ideas of the "second brain" and it didn't really give me that much. My lessons: 1. It's always super helpful to write things down. Taking notes from what I read/learn is a
161.
▲
by
judofyr
5y ago
Historically there’s been a mentality on HN to avoid these repetitive shallow jokes (sorry, but it’s true) since they don’t lead to much interesting discussions, but maybe times are changing.
162.
▲
by
judofyr
5y ago
I like (and actively use) code formatters, but honestly I don't understand why people make such a big fuss about its impact. Weirdly formatted code impacts maybe 1% of my "reading code"-ability — at least after I accept "
163.
▲
by
judofyr
5y ago
I thought that they downloaded the list and checked locally (ref https://feeding.cloud.geek.nz/posts/how-safe-browsing-works-... ). Has this been changed recently?
164.
▲
by
judofyr
5y ago
Reminder that Uber turned off $100M of their ad spend and saw basically no change in conversions: https://twitter.com/nandoodles/status/1345774768746852353 . I’m pretty sure they thought they were working initially
165.
▲
by
judofyr
5y ago
These statements don’t claim that the vaccine is “ineffective”. “effective” does not mean 100% perfect.
166.
▲
by
judofyr
5y ago
What is even going on here? https://github.com/jorgebucaran/colorette/issues/78 . They're arguing about who should have attribution for adding a single "!s &&" to improve performance? Wh
167.
▲
by
judofyr
5y ago
What is a bare-metal C++ threadpool? Is that a specific library you're referring to?
168.
▲
by
judofyr
5y ago
I remember reading this back in 2011 and thought it presented some amazing ideas. Later I've studied physics with focus on simulations (mechanical systems, spring models, gases and so forth) and I'll have to admit that I haven
169.
▲
by
judofyr
5y ago
It’s not “wrong”, but it’s annoying. They’re asking me to invest into their platform, but they’re also constantly increasing the price and/or making it more restrictive. This makes it hard for me to understand the long term cost of a c
170.
▲
by
judofyr
5y ago
“Adding everything” is definitely not a part of Zig’s philosophy. https://github.com/ziglang/zig/issues/130#issuecomment-70601... > However, at this point the plan is to not add an additional dynamic dispa
171.
▲
by
judofyr
5y ago
Zig uses explicit allocations everywhere (if you want to allocate something you need a reference to an allocator) which is pretty unique even for low-level languages (e.g. C, Rust)
172.
▲
by
judofyr
5y ago
It should be mentioned that their reasons were mainly developer convenience/productivity, and not “correctness”. I think people severely overrate the value of the language when it comes to avoiding bugs. We already know how to minimize
173.
▲
by
judofyr
5y ago
I’ll have to admit that I don’t fully know how these things work, but my impression was that a malloc(4GB) on most systems will not actually allocate 4GB, but only acquire virtual memory and the OS will give it memory when it’s being used.
174.
▲
by
judofyr
5y ago
How does this compare to just calling .reserve(4GB) on a regular std::vector?
175.
▲
by
judofyr
5y ago
Well, it seems like most of the critical packages in the Rust ecosystem are at 0.x so I’m not sure how much this is being done in practice.
176.
▲
by
judofyr
5y ago
> Thankfully the commit didn't have my name at the top. I made him fix it. EDIT: To make it more explicit than the original passive-aggressive comment I initially wrote (below): I think we need to stop worrying about writing perfe
177.
▲
by
judofyr
5y ago
That's a good suggestion! Chess also has a very decent rating system (either the official FIDE rating or the ratings on online chess servers) so another way of setting yourself an achievable goal is to pick a rating (i.e. 1700 on Lic
178.
▲
by
judofyr
5y ago
This is a very factual article explaining how to become a grandmaster, but I feel like it needs a disclaimer: I know that Hacker News likes the idea that if you work hard enough then anything is possible [especially when there's so m
179.
▲
by
judofyr
5y ago
Shouldn’t the question be whether it’s better or worse than copy-pasting random functions from StackOverflow you found when googling?
180.
▲
by
judofyr
5y ago
I was actually thinking about writing a “macro” (i.e. function) which takes in a math expressions as a string and an anonymous struct for these use cases: eval("Ax + v", {.A = …, .x = …, v = …}) Wouldn’t that be cool?
More ›