Live data from Hacker News

Viewing profile — tomn

tomn

HN member
Joined
Thu, Nov 12, 2009, 12:02 AM UTC
HN karma
368
Public activity
190 items

About tomn

hn@tomn.co.uk

https://www.tomn.co.uk/

https://github.com/tomjnixon

Recent public activity

  1. comment
    Comment #44401760

    Bullets are a bad example because they have multiple properties which makes them much harder to localise than many other sounds. I'm pretty sure most people can localise a vehicle …

  2. comment
    Comment #44401723

    > They have to be loud enough to be heard through hearing protection. It's kind of a nit-pick, but this is not really true. Very approximately, you will perceive a sound if it is a…

  3. comment
    Comment #44289529

    looking around a bit, it's used as an example in the documentation: https://github.com/haiku/haiku/blob/7d07c4bc739dbf90159a5c02... This is actually a great reason to keep it aroun…

  4. comment
    Comment #44283106

    Yeah, it's certainly doable, just a bit tricky because the spoil-board is not attached to the base, and is replaced nearly every time. It also needs at least one extra tool set-up.…

  5. comment
    Comment #43771002

    You're comparing a hub dynamo with cheap low-capacity rechargeable lights. Rechargeable lights from the usual suspects are generally not good, they are expensive for what they are,…

  6. comment
    Comment #43770768

    The simple contextlib.contextmanager example doesn't really sell the benefits. The main one is that it makes error handling and clean-up simpler, because you can just wrap the yiel…

  7. comment
    Comment #43767280

    A spare battery in your saddle-pack solves most of those problems. If you're worried about being without light, a (typical) dynamo system is more complicated and exposed than a bat…

  8. comment
    Comment #43766944

    I get why people like them, but they make way less sense when you work out the capacity of an equivalent weight (not to mention cost) of lithium cells. It's easy to get to about 90…

  9. comment
    Comment #43327757

    I don't see why it should be so binary. I said it "mostly" just works because there are no packaging systems which do exactly what you want 100% of the time. I've had plenty of pro…

  10. comment
    Comment #43327452

    Yeah, I thought about that too, but if you want to process more than 255 values this might not be valid, depending on the implementation of count_if.

  11. comment
    Comment #43327426

    Just to correct my own comment: > with an uint8_t local variable and size_t return value, an earlier optimisation removes the cast to uint8_t, because it only has an effect when un…

  12. comment
    Comment #43313940

    I've had a look at what's going on in LLVM, and we're both a bit wrong :) This optimisation is applied by AggressiveInstCombinePass, after the function has been completely inlined.…

  13. comment
    Comment #43312704

    I'm not sure how "it can go the other way around too" -- in that case (assigning to a uint8_t local variable), it seems like that particular optimisation is just not being applied.…

  14. comment
    Comment #43310105

    Oh right, I didn't see it in a couple of passes (and searching for cast); for anyone else looking it's in the 3rd footnote. Thanks.

  15. comment
    Comment #43309849

    another solution is to just cast the result to an uint8_t; with this, clang 19.1.0 gives the same assembly: https://gcc.godbolt.org/z/E5oTW5eKe

  16. comment
    Comment #43269516

    This is incoherent to me. Your complaints are about packaging, but the elixir wrapper doesn't deal with that in any way -- it just wraps UV, which you could use without elixir. Wha…

  17. comment
    Comment #42798721

    Real justice would be changing the laws and sentencing guidance (through a democratically legitimate process), and re-evaluating the sentences of everyone affected. Whatever you th…

  18. comment
    Comment #42791930

    despite that, the employment rights bill is at least moving in the right direction

  19. comment
    Comment #42713760

    > I am pretty sure that, unless you use --impure, all files that are read are required to be in the store. Since the store is read-only, it does not break purity. Right, but even t…

  20. comment
    Comment #42710245

    > the help online is always in the form of code fragments whose purpose kinda sorta looks alright maybe, but doesn't ever seem to fit into the setup I've built. So then I'm faced w…

  21. comment
    Comment #42709679

    > You can absolutely have a better language generate derivations, surely? Yes, hence guix. The issue is that it doesn't fit well into a pure functional language like haskell if you…

  22. comment
    Comment #42709552

    > Evaluation is completely pure (at least with flakes, which disallows querying environment variables, etc.). Evaluation of derivations will result in .drv files in the store, but …

  23. comment
    Comment #42706433

    > I'm no language expert, but I genuinely don't understand why it wouldn't have been better to build some equivalent DSL in Haskell to do this given the similar lazy nature of the …

  24. comment
    Comment #41896203

    they do, but google play is the main distribution channel for android apps, and without that many people will not use it (and many will complain). from the actual announcement: > w…

  25. comment
    Comment #41417130

    OpenWrt's dnsmasq will serve PTR records corresponding to DHCP leases, so you can use reverse DNS lookups. Use something like: dig -x ip_address_here For me it would be ideal if th…