Better HN
topnewbestaskshowjobs
Log inSign up

xcombelle

46 karma · joined Feb 16, 2011 (15y ago) · 75 submissions

Submissions

comment 1y ago · link · parent

https://xkcd.com/927/

comment 2y ago · link · parent

The website has no clock. Both android and iphone lichess app has clock.

comment 2y ago · link · parent

looks like a security nightmare.

comment 2y ago · link · parent

as far as i understand, it is not based on a docker environment.

comment 3y ago · link · parent

Looks like the doc is written without braces. As such, I guess, that the canonical code is without braces

comment 3y ago · link · parent

as far as I know in technical subjects google started to deliver farm content, a little bit after the happening of chatgpt.

comment 3y ago · link · parent

It is very likely that your coworkers will be able to use your Python functions.

comment 3y ago · link · parent

python pandas has pivot tables https://pandas.pydata.org/docs/reference/api/pandas.pivot_ta...

I don't know if it fits your needs

comment 3y ago · link · parent

" 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 3y ago · link · parent

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 3y ago · link · parent

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 3y ago · link · parent

this article miss a whole part of the story. among other things, these person came back from a warzone. looks at https://fr.wikipedia.org/wiki/Affaire_du_8_décembre_2020

comment 3y ago · link · parent

I would say that 20 trials with a friend is enough to show that changing strategy is superior.

comment 3y ago · link · parent

I just don't get why people in php use lazy comparison when you know that "0e4"=="0e5" in php.

and yes, Laravel use lazy comparison (hundreds of times). And yes at least three bugs where caused by this use.

see: https://github.com/laravel/ideas/issues/698 for why I'm a bit grumpy with php ecosystem

comment 3y ago · link · parent

1- try to run the last version of python, there is speed improvement in 3.10 and 3.11

     >>> import sys; sys.version
     '3.10.4 (main, Dec  2 2022, 17:52:13) [Clang 14.0.0 (clang-1400.0.29.202)]'

     51.94417405128479
     37.79175686836243
     100.8145821094513
2- global variable lookup is costly in python, putting the whole thing in a main() function halves the running time

     22.97948908805847
     22.47922682762146
     59.1025867462158
link to my code:

https://gist.github.com/xcombelle/8ac84ccb276f8996ed1a458ee2...

comment 3y ago · link · parent

Is the graph/SQL thing used only to manage dependencies?

comment 3y ago · link · parent

that a nice project, hope you will gather enough resources to make for other language if wikipedias.

comment 3y ago · link · parent

they probably had a warning of mailchimp that putting someone on a mailing list without their consent is a forbidden use of mailchimp.

source: I worked with an organization which put a lot of people in their mailchimp mailing list

comment 3y ago · link · parent

did you switch from nodejs?

comment 3y ago · link · parent

if you need only an engine which does formula evaluation and update of dependency when a value changes, it doesn't look that hard to implement.

comment 3y ago · link · parent

actually it is not the original code of alphazero , the original code was tensorflow/TPU https://en.wikipedia.org/wiki/AlphaGo_Zero#Training and this code is in JAX

comment 3y ago · link · parent

one of the "feature" of ads is that they track you in a cross website way. and as no having cookies & co, gemini makes this job a lot harder for an advertiser.

comment 3y ago · link · parent

>Also Safari has monopoly status for everyone using an iPhone. The people on iPhone simply can't pick another browser, because Apple won't let them.

i have an iphone with safari, firefox, firefox focus and chrome, ...

comment 3y ago · link · parent

definitely out of date,

see https://lichess.org/about for up to date information

comment 3y ago · link · parent

the fact that screenwriter is framed as the filmmaker is definitely a mistake, it is not a convention of french culture. (I'm french). this article on the same subject https://www.rtbf.be/article/des-fans-d-ana-de-armas-reclamen... for example give credit to danny boyle as the filmaker

comment 3y ago · link · parent

    sections: [
        "one"
        "two"
        "three"
    ]
and

    sections: [
        "one"
        ["two" "three"]
    ]
exists already and is named rebol (and their derivatives)

comment 3y ago · link · parent

if you know the number is a factorial for example

    9! = 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1
you have are half way of having prime factorization, you can just to compute the prime factor from 1 to 9

and you get

   9! = 3^2 x 2^3 x 7 x 3 x 2 x 5 x 2^2 x 3 x 2 x1

comment 3y ago · link · parent

the source offer better insight

https://www.ons.gov.uk/peoplepopulationandcommunity/cultural...

123