Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
judofyr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
judofyr
2y ago
Author here. I’d maybe phrase it as “Spice is not optimal” instead of “Spice is not suited for”, but yes, that’s the conclusion for this benchmark. I’m hoping/assuming that for a more typical case (more CPU work being done) Spice will
92.
▲
by
judofyr
2y ago
Author here. I knew that some people would react negatively to the term, but I can assure the intention is for you to have a better understanding of exactly how and when you should use Spice and Rayon. I would recommend reading the benchm
93.
▲
by
judofyr
2y ago
I too wish that command-line arguments were standardized, but alas, we were given `char *argv[]` and I've finally accepted (yes, I'm looking at you Go) that the only way is to read the documentation and type the command exactly
94.
▲
by
judofyr
2y ago
It's a bit of a strange choice, but if you read the full documentation (man codesign) it's not too confusing actually: NAME codesign — Create and manipulate code signatures SYNOPSIS codesign -s
95.
▲
by
judofyr
2y ago
Then add the following and handle it later: … catch @panic("todo") I do it all the time. Lots of @panic during development and then I come back later and handle the error cases separately.
96.
▲
by
judofyr
2y ago
Very interesting and I'll have to read more to understand how it fully works, but _initially_ the space requirements doesn't seem too impressive? Am I missing something here? Is my calculation/assumption completely off? Maybe
97.
▲
by
judofyr
2y ago
Considering that 43% of the words (in my dictionary at least) include "s" it's not so strange: $ cat /usr/share/dict/words | wc -l 235976 $ cat /usr/share/dict/words | g
98.
▲
by
judofyr
3y ago
Generate a separate SSH key which is only stored in your offsite backup (and then also encrypted with a password), and not on any of your physical machines.
99.
▲
by
judofyr
3y ago
"Well, I'm a [store, café, bar, gym, etc] owner and I know that my customers now earn an additional $600/mo, and every other customer in my market is also earning an addition $600/mo, I would be an idiot not to raise
100.
▲
by
judofyr
3y ago
I've been using this helper: https://github.com/judofyr/zini/blob/ea91f645b7dc061adcedc91... . It starts by making the first allocation fail, then the second, then the third, and so on. As long as it re
101.
▲
by
judofyr
3y ago
Do you have the link?
102.
▲
by
judofyr
3y ago
Googling "overfitting" gives this definition: > Overfitting is an undesirable machine learning behavior that occurs when the machine learning model gives accurate predictions for training data but not for new data . However, m
103.
▲
by
judofyr
3y ago
Hah, as someone who has studied at University of Oslo, many of the lecturers make sure that Simula isn’t forgotten , by constantly reminding us that it was the first language with classes etc. Therefore, a few years back I decided to learn
104.
▲
by
judofyr
3y ago
6.2.1 was released on 2020-11-14, but there's been additional bug fixes, features and speedups since then: https://gmplib.org/repo/gmp/ . Not quite sure why they are not cutting a new release when there's
105.
▲
by
judofyr
3y ago
More context: https://github.com/BtbN/FFmpeg-Builds/issues/278 The FFmpeg-Builds repo has a GitHub Actions Workflow which clones the Mercurial repo. However, this runs as a (daily?) cronjob. In addition, this
106.
▲
by
judofyr
3y ago
It just feels like two widely different scenarios we're talking about here. https://jack-vanlightly.com/blog/2023/4/24/why-apache-kafka-... talks about the case of a single failure and it shows
107.
▲
by
judofyr
3y ago
I'm confused here. If I'm reading this correctly, the following is happening: - Node 3 is the leader. - Node 1 is isolated (failure #1). - 10 records are written. They are successful because a majority is still alive (persisted to
108.
▲
by
judofyr
3y ago
> Yes, you should improve your hash function, but assuming the author is right you should still prefer this over integer modulo to reduce the size of the input hash value to the size of the hash table if you can as a default because it&#
109.
▲
by
judofyr
3y ago
Something related to prime factorization maybe?
110.
▲
by
judofyr
4y ago
> As a personal challenge, I strived to explicitly limit the amount of memory needed for solving each AoC problem to something that fits on the stack (typically a few MBs at most). If the purpose is to "use limited amount memory&quo
111.
▲
by
judofyr
4y ago
> Except it's not "just" a for loop, it's a weird special case for a for loop. You could also argue that a for loop which can only iterate over a _single_ sequence is a special case of a multi-sequence for loop. >
112.
▲
by
judofyr
4y ago
> In particular, what is the point of learning something that is answerable by an AI such as ChatGPT? ChatGPT will often make up an answer which is absolutely incorrect. It will even insist that it’s correct. It appears that the only res
113.
▲
by
judofyr
4y ago
> It wasn’t until I had been using an iPhone for a couple years that I discovered you’re just supposed to press it, not slide it. Huh? On the iPhone you've always been able to slide it. I blame this on all the other implementation
114.
▲
by
judofyr
4y ago
I think you mean “The Day before Christmas Eve” (what is called “Little Christmas Eve” in Norway) instead of New Year’s Eve.
115.
▲
by
judofyr
4y ago
In 2018 I did the same thing, but I asked my friends for the list of languages (they didn’t know what it was for) so I ended up with far more esoteric languages: https://github.com/judofyr/aoc2018 In the end I lost the
116.
▲
by
judofyr
4y ago
> The standard of living for the bottom half of the developed world has arguably declined in the past few decades. In the last 5 years or so, due to inflation and Covid, more people have fallen into extreme poverty. What’s the source for
117.
▲
by
judofyr
4y ago
Isn’t there a race condition here? Thread 1 acquires the lock, but stalls before it writes the value. Thread 2 will not acquire the lock, but immediately attempt to read the value - which will be None and the unwrap will panic.
118.
▲
by
judofyr
4y ago
> A warning sign should be instinctive to most of the population. Isn't it good to also have standarized signs for warnings that are meaningful for a smaller subset of the population (e.g. "rapid movement of workpiece in press
119.
▲
by
judofyr
4y ago
This is a quite interesting discussion actually! Some thoughts: First of all: Theoretical results are actually quite important for real-life performance. It’s possible to write an implementation of bubble sort, have a bunch of benchmarks wh
120.
▲
by
judofyr
4y ago
> Karmem has proven to be ten times faster than Google Flatbuffers I’d recommend not using the word “proven” here. In computer science this word typically refers to a mathematical proof. In this case it seems that you ran a regular bench
More ›