HNHacker News
TopNewBestAskShowJobs

garblegarble

2,159 karma · joined August 4, 2011

Cloud and broadcast media
submissionscomments
garblegarble··on datetime.utcnow() is now deprecated
No, I can't think of any case where that would be useful (although I do take umbrage with a local datetime being referred to as a 'naive' type - it serves a very specific purpose as a primitive... if it's naive then so is an int, since it does not specify a unit).

I don't know anything about Python's datetime handling (other then to be alarmed by it given what I've seen in this thread). I live in the Java world where the java.time library is one of the best around (after a decade or more of Java having one of the worst date time libraries)

garblegarble··on datetime.utcnow() is now deprecated
>2. That’s why you WANT time zones in this example. It will automatically stay at 10am instead of bouncing around when DST rules change.

Respectfully, no - in my scenario, if I used a timezone then I would show up at the wrong time for my appointment: each locale that observes DST has two timezones: one for DST, one for non-DST (e.g. BST and GMT for the UK). If I record a 10am appointment as "10am BST" and my country changes the rules on daylight savings transition date between now and the appointment, then I will show up at the wrong time for my appointment. Whereas if my appointment is recorded as "10am Europe/London" then it's encoding the human reality of my appointment, and can be correctly converted to an Instant in time if the rules change.

It sounds to me from your reply that you are mentally modelling all datetimes as Instants. These are one key aspect of dates+times (and often all a lot of software needs - since it's usually referring to some point in time that has already passed, or a future point in time that is x seconds from some other Instant), but Instants don't cover everything required when working with dates and times.

>I’ve never ever needed timezone-less dates. Even using UTC or timestamps, it’s still UTC.

Try sketching out the design for a calendar application and I bet you'll very quickly run into a whole raft of datetime related logic you might never otherwise encounter. Think particularly about future events: some are fixed instants in time (e.g. a meeting with people across timezones), others aren't (e.g. a dentist appointment in your city - my second example above is an instance where the local time of the appointment is relevant, not the Instant in time that local time referred to when the appointment was made). How do you represent recurring events?

garblegarble··on datetime.utcnow() is now deprecated
Here are two counter examples that sprang to mind:

1. I've set my alarm for 8am local time every day. I don't want my alarm clock to go off at 3am just because I'm in a different country

2. If I have an appointment at 10am next November, that's actually a datetime with a locale (given that my appointment is at 10am local time, no matter whether the DST rules change between now and then).

garblegarble··on Quitting the full-time poker scene
It's going to be obvious to other players that you're wearing a camera, and who would want to stay in a game where it looks like another person is cheating?

Making other players leave seems like it would be the fastest way to get yourself a lifetime ban to your local casinos.

(that's even ignoring the fact the casinos have already seen every trick in the book already, and will be onto you immediately)

garblegarble··on We don't do DST at this company
I was shocked by this... and here I thought I'd seen enough incompetent processing of datetimes that nothing could surprise me.
garblegarble··on Gut epithelial barrier damage caused by dishwasher detergents and rinse aids
I've found rinse aids that include citric acid end up pitting stainless steel cutlery over time, so I avoid them
garblegarble··on Astronauts drop tool bag into orbit that you can see with binoculars
Are you sure that's not a half-remembered version of Russian propaganda[1], where they tried to blame NASA Astronaut Serena Auñón-Chancellor with drilling holes into a Russian spacecraft, ostensibly so she could get sent back to earth early for medical treatment?

They were trying at the time to deflect blame for what were clearly Russian manufacturing defects (especially in hindsight, given the number of defects and accidents Roscosmos have been responsible for lately).

1: https://en.wikipedia.org/wiki/Serena_Au%C3%B1%C3%B3n-Chancel...

garblegarble··on Reasons to Prefer Blake3 over Sha256
This may only be applicable to certain CPUs - e.g. sha512 is a lot slower on M1

    $ openssl speed sha256 sha512
    type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
    sha256          146206.63k   529723.90k  1347842.65k  2051092.82k  2409324.54k  2446518.95k
    sha512           85705.68k   331953.22k   707320.92k  1149420.20k  1406851.34k  1427259.39k
garblegarble··on FFmpeg 6.1 released
A lot of that is essential complexity of the problem space - media is HARD: so many different specs, each one interpreted differently by each vendor.

In case you're not aware, though, there has been work on improving the CLI - it was discussed on HN[1] earlier this week, and there's an excellent video[2] linked in that thread with an overview from Anton

1: https://news.ycombinator.com/item?id=38160703

2: https://www.youtube.com/watch?v=Z4DS3jiZhfo&t=1245s

garblegarble··on Quake Brutalist Jam II
This does the trick quite nicely (unless you want them textured, anyway) - https://github.com/fzwoch/bsp2obj

I tried it on the map BSPs from https://github.com/fzwoch/quake_map_source/tree/master/bsp

Edit: Following a sibling comment, Trenchboom can also export as OBJ from the GUI

garblegarble··on Bluesky migrates to single-tenant SQLite

    bsky-social-lkzsp-7x7ja
    bsky-social-p4vwr-nrthu
    bsky-social-bdu6c-6tbv4
    bsky-social-fkpgk-oestw
garblegarble··on FFmpeg is getting multithreaded transcoding pipelines
I notice in your coverage plot, the UK National Grid data appears to end mid-2023... have they stopped providing this data?
garblegarble··on The first stable release of a memory safe sudo implementation
That seems like the Right Way to do it...

As annoying as it is to have to update every sudo reference -> doas, it forces you to think about everywhere you're using it, rather than waiting to see what breaks and then trying to fix it.

garblegarble··on The first stable release of a memory safe sudo implementation
The text seems to imply that's not a list of features not implemented, it's a list of features not implemented that don't output a clear error
garblegarble··on The first stable release of a memory safe sudo implementation
For sure! But that mistake has already been made, and has been in the wild for years, so removing those features (and proposing yourself as a replacement for the original) is now a breaking change
garblegarble··on The first stable release of a memory safe sudo implementation
I'm assuming this project's aim is to replace sudo, in which case hand-waving away "Leaving out less commonly used features" is a bit worrying. What are these features? How uncommonly are they used? In which way will it fail if a configuration uses those features?

Edit: Looks like their github readme outlines some of these limitations, https://github.com/memorysafety/sudo-rs#differences-from-ori...

garblegarble··on Talk-Llama
A major benefit (for me) is that I can build it with "make" and know that it just works.

Now perhaps this is a skills issue on my part (because I'm not a Python dev), but I've had endless trouble with Python-based ML projects, with some requiring I use/avoid specific 3.x versions of Python, each project's install instructions seemingly using a different tool to create a virtual environment to isolate dependencies, and issues tracking down specific custom versions of core libraries in order to allow the use of GPU/Neural Engine on Apple Silicon.

The whisper and llama.cpp projects just build and run so easily by comparison

garblegarble··on macOS Sonoma Broke Grep
>This may be less pain overall (much like making many small pull requests vs one giant rewrite).

Just shows how different people are in their approaches to dependencies... I can't imagine working like that, the idea that everything I'm using could break at any moment. I'd rather deal with those (possibly larger in number at one time) set of changes at fixed upgrade intervals, in exchange for having a stable system.

garblegarble··on Home Assistant 2023.11
>Yaml also doesn't have any proper ide support, so it's an annoying loop of restarting the app and staring at logs looking for typos.

Since YAML is a superset of JSON, I highly recommend converting[1] it to JSON, and then just treating it as a JSON config file.

1: For this, I use yaml2json (npm yaml-to-json)

garblegarble··on Child labor in chocolate industry: 'It is worse than you may realize'
I agree with you about the feeling of helplessness on the child labour in chocolate episode, but John Oliver covers such a wide range of other topics, many of which are much closer to home (and therefore something you have a chance of being able to directly address).

Isn't having this knowledge a core part of making ourselves educated voters, to be better-equipped to advocate among friends and relatives for things we believe in, and having a greater ability recognise dodgy business practises?

garblegarble··on Facebook and Instagram to Offer Subscription for No Ads in Europe
The (sometimes) unwritten part of all of those demands is a reasonably priced ad-free version. Down the thread somebody stated an annual revenue of $18 per EU user, so they want to make an order of magnitude more revenue on you in order to not show you ads. Is that reasonable? I don't think so
garblegarble··on Facebook and Instagram to Offer Subscription for No Ads in Europe
Wouldn't you also need to factor in that the people who will pay to avoid ads are likely already using ad blockers (or hate ads, in which case showing them an ad for your product is likely counter-productive)?
garblegarble··on Google to invest up to $2B in Anthropic
>Most researchers aren't there to make a commercial product. They're there to publish well-cited research papers, talk at top conferences, and have access to far more compute than anyone else can offer.

I think that's core to what I'm getting at - I don't see how Google continues to let them publish core research at this point given how much of a lead they've given their competitors (especially combined with their own inability to execute)

garblegarble··on Google to invest up to $2B in Anthropic
I can't understand the mindset of any AI researchers who stay at Google at this point.

You're there (presumably) because you want to make an impact. You gave them a massive lead with a novel approach... and Google failed to capitalise on that so spectacularly that they're now investing billions into their competitor who's miles ahead of Google, using Google's approach, all to try and head off another competitor who's miles ahead of everybody also using Google's approach

I hope that (counter to stories) they pay the researchers very well, because the best result I can see is Google shutting down what they can publish to try and stop this happening again.

garblegarble··on Now add a walrus: Prompt engineering in DALL-E 3
>You own what you produce with it too

As I understand it, this is incorrect - all of these outputs are the creations of a machine, and as such are not eligible for copyright protection

garblegarble··on Marines Test Fire Robot Dog Armed with Rocket Launcher
Yep, absolutely terrifying!

There's always the old chestnut that if your country doesn't develop it, another country (or well-funded faction) with fewer scruples will, and if they think that their tech gives them a significant advantage over you, war is more likely (because they will have a much stronger belief they can win / win at a lower cost).

That's also why we see slick video reveals of stealth bombers and missiles nowadays. The best weapon is one you never have to use in anger.

garblegarble··on Marines Test Fire Robot Dog Armed with Rocket Launcher
I'm no expert, but aren't rocket launchers recoilless?

As for why the dog form factor, I'm betting it'll be because a dog form factor makes for a much cheaper swarm than a tank form factor. Less mass to move about so a smaller power pack, too

garblegarble··on LLMs up to 4x Faster With Latest NVIDIA Drivers on Windows
No worries, confirmation bias comes for us all at some point!
garblegarble··on LLMs up to 4x Faster With Latest NVIDIA Drivers on Windows
Do you have more info on that? Their support site[1] claims their data collection is much more constrained than that (although still seems like a lot).

1: https://nvidia.custhelp.com/app/answers/detail/a_id/3188/~/w...

garblegarble··on One (1) new Wii U console was sold in the U.S. during September 2023
I too thought this when I was 26, I'm 36 now. The world won't stop you, but you may also find you just don't care enough to - you have to be spending a lot of time interactively engaging in a culture to be native to the memes, and that takes a lot of time that you might want to spend learning about / doing other things.

Also starting to realise that my "they can't stop me gaming when I'm 80!" attitude will be self-limited by joint pain at some point... probably in exactly the same way as previous generations, just s/gaming/popular activity of the era/

← PreviousPage 4 of 18Next →