Recent submissions

Comment · 8 months ago
I would suggest "In the Mothers’ Land" from Élisabeth Vonarburg. It also talk about alternate society centered around gender. I didnt really liked the left hand of the night, but liked that one. And LeGuin saluted the book apparently too.
Comment · 10 months ago
When working with kanban I maintained a average number of card done per days. if someone asked when some card woud be done, I just multiplied the number of card ahead of that one by average and get an estimate. You can estimate the cards but usually it doesnt really improve accuracy as tasks are on average the same size.
Comment · 2 years ago
vscode has some code coloring extension but no code completion that I'm aware of. If you found one, please consider sharing it :). I would happily switch to another editor if one has a extension that autocomplete categories.
Comment · 2 years ago
Is there an text editor that is able to autocomplete the categories in hledger format ? It would be great to type Assets:: and then get a list of the possible categories, but I haven't found any editor or extension that does it.
Comment · 2 years ago
Yes I did. The result is perfect as far as I can tell. Not everyone is eligible to that method: you need to have enough space in your eye so that it is doable. So checking for that is a first step to be sure it is doable. The only serious risk is an infection, so each eye was done in a different operation room. I was also told that the result is better than lasik, it is more costly though.
Comment · 2 years ago
Comment · 2 years ago
Antivirus are really stupid tools, but not that stupid. I said that from a time where I had to work around tools flagged by antivirus. Among stupid things they do are flagging a part of an executable, some nsis plugin flagged the whole package as virus as soon as you included them. I think they probably hash files by chunks, if you have too many bad chunks then you are a virus. A few bytes at the end doesn't change that.
Comment · 2 years ago
Comment · 2 years ago
Git blame -w -C -C -C would also keep author in case of moved lines
Comment · 3 years ago
Does anyone know if there are libraries for writing fakes ? I wonder why there is a lot of mock libraries but I know none for writing fakes.
Comment · 3 years ago
Can you summarize what that good way look like for those of us that haven't read it ?
Comment · 3 years ago
One trick I learned from https://craftinginterpreters.com/hash-tables.html is that you don't need an extra linked list for each bucket... But how do you handle collisions then ?

The trick is that you make sure that your table is large enough to not have a lot of collisions, then if you have a collision instead of storing exactly in the bucket given by the hash, you store it in the next available bucket. When you look for a key, you get the hash, then the index from the hash, and you start searching at this point. If you reach an empty value, then there is no value. If you find the value then you return that. So everything is stored in a single array, no need for extra allocations and it is better for cache locality.

The same principle is used here for very minimal hash table (13 lines): https://nullprogram.com/blog/2020/10/19/

This video also talk about how to optimize hash table and look into several implementations: https://www.youtube.com/watch?v=DMQ_HcNSOAI&t=1690s&ab_chann... . It talks about techniques used by advanced hash table. There was a lot more that I didn't know.

Comment · 3 years ago
What matter is not whether nuclear energy produce wastes, but how much waste and how manageable it is relatively to other sources of energy. If you look at nuclear only, then obviously nuclear waste is bad. If you look at oil, coal, and the fact that they are producing tons of carbon dioxid (for what would be grams of nuclear) which is gazeous and that we don't even know how to handle it.

We need energy, but people as dismissing every source of energy because they are looking at each source one at a time. We should have taught people years ago that there is no perfect choice.

Comment · 3 years ago
Make uses timestamp, so if you checkout code or switch branches even if the files are the same, make rebuild them. Also when you switch branches the ccache cache still have copy of .o files.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton