Recent submissions

Comment · 1 year ago
Comment · 2 years ago
The website has no clock. Both android and iphone lichess app has clock.
Comment · 2 years ago
looks like a security nightmare.
Comment · 2 years ago
as far as i understand, it is not based on a docker environment.
Comment · 3 years ago
Looks like the doc is written without braces. As such, I guess, that the canonical code is without braces
Comment · 3 years ago
as far as I know in technical subjects google started to deliver farm content, a little bit after the happening of chatgpt.
Comment · 3 years ago
It is very likely that your coworkers will be able to use your Python functions.
Comment · 3 years ago
Comment · 3 years ago
" I can't imagine anything else you can possibly store about relative elements besides index and order (and nothing). Graphs are their own other planet, and I don't think we can easily say much about them. So the 3 data structure types you can have are:

1. indexed data structures with an O(n) worst-case operation

2. order-less data structures with an O(1) worst-case operation

3. sorted data structures with an O(log n) worst-case operation

That's it. Let me know what you think"

I disagree.

sorting is a O(n*log(n)) worst-case operation for example.

Comment · 3 years ago
How I eventually resolve this kind of problems.

    minimum = +Inf
    for b in bar.naz():
        if not some_filter(b):
            continue
        b = some_op(b)
        minimum = min(minimum, b)
    foo(minimum)
Yes, plain old procedural python. data flow from top to bottom. it allows `print` debugging, very usefull to debug some_filter and some_op are broken.
Comment · 3 years ago
tour de france organisation has a long tradition to do more than closing eyes and even encourage doping/cheating practice (for exemple making the race harder and harder) it is a fair part of how it became a $100M business. source: i’m french
Comment · 3 years ago
Comment · 3 years ago
I would say that 20 trials with a friend is enough to show that changing strategy is superior.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton