HNHacker News
TopNewBestAskShowJobs

xcombelle

46 karma · joined February 16, 2011

submissionscomments
xcombelle··on JSON parsers that can accept comments
https://xkcd.com/927/
xcombelle··on Turn your phone or tablet into a chess clock
The website has no clock. Both android and iphone lichess app has clock.
xcombelle··on Hmpl.js: Template language for fetching HTML from API
looks like a security nightmare.
xcombelle··on Piku – a micro-PaaS for any server
as far as i understand, it is not based on a docker environment.
xcombelle··on DaScript: Fast and Versatile Scripting Language
Looks like the doc is written without braces. As such, I guess, that the canonical code is without braces
xcombelle··on Ask HN: Why does Google rank the real Python documentation below content farms?
as far as I know in technical subjects google started to deliver farm content, a little bit after the happening of chatgpt.
xcombelle··on Microsoft is bringing Python to Excel
It is very likely that your coworkers will be able to use your Python functions.
xcombelle··on Microsoft is bringing Python to Excel
python pandas has pivot tables https://pandas.pydata.org/docs/reference/api/pandas.pivot_ta...

I don't know if it fits your needs

xcombelle··on There are only 3 data structures
" 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.

xcombelle··on Python: Overlooked core functionalities
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.
xcombelle··on How the Tour de France became a $100M business
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
xcombelle··on French govt. says users of uBlock Origin, Signal etc. are potential terrorists
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
xcombelle··on Let’s Make a Deal–With Python
I would say that 20 trials with a friend is enough to show that changing strategy is superior.
xcombelle··on Go with PHP
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

xcombelle··on The High Price of Abstraction in Python
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...

xcombelle··on Mandala: Python programs that save, query and version themselves
Is the graph/SQL thing used only to manage dependencies?
xcombelle··on Show HN: WikiBinge – discover how all things are vaguely connected
that a nice project, hope you will gather enough resources to make for other language if wikipedias.
xcombelle··on Show HN: OpenBB Terminal – Investment research for everyone
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

xcombelle··on Why Python keeps growing, explained
did you switch from nodejs?
xcombelle··on Rows 2.0: The easiest way to use data on a spreadsheet
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.
xcombelle··on DeepMind has open-sourced the heart of AlphaGo and AlphaZero
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
xcombelle··on What the eff Is Gemini?
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.
xcombelle··on Safari's date-picker is the cause of 1/3 of our customer support issues
>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, ...

xcombelle··on Why is Lichess free? (2014)
definitely out of date,

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

xcombelle··on Movie fans can sue over misleading trailer, says US judge
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
xcombelle··on Delimiter-first code

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

    sections: [
        "one"
        ["two" "three"]
    ]
exists already and is named rebol (and their derivatives)
xcombelle··on Finding divisors of a number with Python (2019)
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
xcombelle··on England and Wales now minority Christian countries, census reveals
the source offer better insight

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

xcombelle··on New Bitcoin DDoS Technique
it is slowloris [1] isn't it ?

[1] https://en.wikipedia.org/wiki/Slowloris_(computer_security)

xcombelle··on From Lua to JSON: refactoring WirePlumber's configuration system
it is not json

  # Usual pipewire configuration variant
  wireplumber.components = [
    { name = libwireplumber-module-default-nodes , type = module },
    { name = policy-device-profile.lua, type = script/lua }
  ]

  # Actual JSON
  "wireplumber.components" : [
    { "name" : "libwireplumber-module-default-nodes" , "type" : "module" }
    { "name" : "policy-device-profile.lua", "type" : "script/lua" }
  ]

  # Even more loose syntax without separator characters
  wireplumber.components  [
    { name  libwireplumber-module-default-nodes   type  module }
    { name  policy-device-profile.lua   type  script/lua }
  ]
Page 1 of 3Next →