Hacker Newsnew | past | comments | ask | show | jobs | submit | dundarious's commentslogin

There is a token you must pass around, sure, but because you use the same token for both async and sync code, I think analogizing with the typical async function color problem is incorrect.

I don't appreciate these kinds of simple one-line referential jokes on HN, but your joke was to emulate perfectly the central issue of TFA, so I do agree that it brings into question who did and who did not read the article -- I know you read it.

The central complaint of TFA is the exact same as what ruined is doing. It is very obviously a joke. Not something I appreciate on HN, but still.

I think it was a good enough joke or witty remark grounded in the crux of the article that it’s worth it. And it’s certainly interesting to see the “whoosh” past many of the commenters

It was flagged and I vouched it for similar reasons. I downvote such comments though.

It's not about the "age" of the number at all, devices are mandated to try all available networks when it is a recognized emergency number. In this case, even though the number was indeed a device-recognized emergency number, it failed to try all available networks as mandated. The article mentions Triple Zero several times, but not because that is specifically noteworthy beyond it being the typical emergency number.


> Former CIA director Leon Panetta labeled last week’s deadly pager explosions in Lebanon a form of “terrorism.”

> “I don’t think there’s any question that it’s a form of terrorism,” Panetta said on “CBS News Sunday morning.”

https://thehill.com/policy/international/4893900-leon-panett...

I don't take anything Leon Panetta says as gospel, but the fact that someone like him says this shows how the position is not ludicrous in the way you and other similar replies are painting it.


That would get you almost none of the benefits of arenas and other types of allocators. Recommend https://www.rfleury.com/p/untangling-lifetimes-the-arena-all...


I know what arenas are but I don't see how passing something explictly vs implicitly matters except for which style people prefer?


For one, you don't want exactly one arena or allocator for all tasks.


Well you couldn't you just use a different one in that case? The variable would just be like a suggestion.


Most programmers don't prefer thread local mutable state over a single pointer argument. Especially for general purpose code (i.e., not specific to a single purpose/project). With the mutable state version, you have to clearly define which state you're using and when (which named allocator/arena variable), and if you're mutating it in place and then restoring it, there can be some pretty obvious issues.

Given this thread is completely off the rails from anything specific to allocators or arenas, and even Zig, I will now exit.


Suggest you read up on that law a bit more, they're not responding to targeting of porn, nothing of the sort.


I have read up on the law. They have no reason to worry and even if they did, given the extent of non-compliance in the porn industry, they are so far down the pecking order that this reaction looks like what it is: activist narcissism.


Fair enough, don't share your confidence, nor the service's reticence to visit in person (at least over this issue).


Incorrect, the last build is substantially faster and is using the "native" debug backend.


piper's amy voice is pleasant enough to me for reading articles, and it's instantaneous and trivial to use, just download the binary and model file.


Wow, this is much faster and higher quality than the meloTTS program I was using before, and has many more voices available... although it doesn't appear to support Japanese.

Thank you!


You can make this app yourself in an hour if you're on Linux and can do some scripting. Mockup below for illustration, but this is the beating heart of a real script:

  # whisper-live.sh: run once and it listens (blocking), run again and it stops listening.
  if ! test -f whisper.quit ; then
    touch whisper.quit
    notify-send -a whisper "listening"
    m="/usr/share/whisper.cpp-model-tiny.en-q5_1/ggml-tiny.en-q5_1.bin"
    txt="$(ffmpeg -hide_banner -loglevel -8 -f pulse -i default -f wav pipe:1 < whisper.quit \
      | whisper-cli -np -m "$m" -f - -otxt -sns 2>/dev/null \
      | tr \\n " " | sed -e 's/^\s*//' -e 's/\s\s*$//')"
    rm -f whisper.quit
    notify-send -a whisper "done listening"
    printf %s "$txt" | wtype -
  else
    printf %s q > whisper.quit
  fi
You can trivially modify it to use wl-copy to copy to clipboard instead, if you prefer that over immediately sending the text to the current window. I set up sway to run a script like this on $mod+Shift+w so it can be done one-handed -- not push to listen, but the script itself toggles listen state on each invocation, so push once to start, again to stop.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: