News for hackers. Stuff that matters.

lazka

Re:PHP's Oddities on Saturday May 23, 2026 @01:17PM (#48249366)
That array keys are auto-coerced to integers has bit me multiple times.
Re:Tachyon: High frequency statistical sampling profiler on Friday December 26, 2025 @05:37AM (#46390926)
Here is a podcast episode were the devs talk about the new profiler: https://creators.spotify.com/pod/profile/corepy/episodes/The...
Re:Git: Introduce Rust and announce that it will become mandatorty on Wednesday September 24, 2025 @08:14AM (#45359233)
It's a native build. Only various tools it is shipped with are cygwin builds, like bash etc.
In Austria you can use a web browser + FIDO key as an alternative. It works nicely. https://ida.gv.at/de/hilfe/hilfe-zu-ida/authentifizierungsfa...
Re:Performance of the Python 3.14 tail-call interpreter on Wednesday March 12, 2025 @04:21AM (#43340927)
I'm also still using 3.11 for a FastAPI app since 3.12 and 3.13 are quite a bit slower.
Re:FLAC 1.5 Delivers Multi-Threaded Encoding on Tuesday February 11, 2025 @02:36PM (#43017303)
On Windows (so libwinpthread), 8C/16T machine:

  $ flac --version
  flac 1.5.0
  $ hyperfine -r5 "flac -f -8 a.wav a.flac" "flac -j16 -f -8 a.wav a.flac"
  Benchmark 1: flac -f -8 a.wav a.flac
    Time (mean ± σ):     13.148 s ±  0.194 s    [User: 12.758 s, System: 0.361 s]
    Range (min … max):   12.934 s … 13.318 s    5 runs

  Benchmark 2: flac -j16 -f -8 a.wav a.flac
    Time (mean ± σ):      2.404 s ±  0.012 s    [User: 14.126 s, System: 1.355 s]
    Range (min … max):    2.395 s …  2.425 s    5 runs

  Summary
    flac -j16 -f -8 a.wav a.flac ran
      5.47 ± 0.09 times faster than flac -f -8 a.wav a.flac
Re:YouTube audio quality – How good does it get? (2022) on Saturday February 01, 2025 @03:01PM (#42901672)
See "Why not use graphs / frequency analysis to compare codecs?" https://wiki.hydrogenaud.io/index.php?title=FAQ#:~:text=Why%...

"I decided that analysis should focus on the higher, more conventional rates – 48k and 44k1" - opus is always 48khz, so that doesn't mean much.

Re:SAMA – open-source Chat server on Friday September 06, 2024 @10:50AM (#41466746)
Discord has "Forum" channels now which are similar to Zulip, with forced "threads" which they call "posts".
Re:Just Use MSYS2 You Say? on Monday July 22, 2024 @05:11PM (#41039870)
> > After you get through this hurdle you then have to install the right software, and MSYS2 makes the "genius" decision of letting me pick which binary I want to install for every single install. Do you need to install fmpeg? Better spend an hour sifting through clang-amd64-ucrt-mingw32-ffmpeg vs. gcc-x86_64-w32-gnu-ffmpeg and tons of packages.

> Huh. Yeah, that does seem odd - is it a result of MSYS2 being oriented at devs who need compatible libraries?

Yeah, we are oriented at devs that re-package our binaries and also want to be a development environment for upstreams, and also a testbed for toolchains. So we provide x86/x64/arm64, then ucrt/msvcrt, and llvm/gcc. I wouldn't blame anyone for finding this confusing. It's described here: https://www.msys2.org/docs/environments

For ffmpeg, since it was mentioned as an example, this looks like: https://packages.msys2.org/base/mingw-w64-ffmpeg

Re:Fastly launches free developer accounts on Friday June 21, 2024 @12:34PM (#40751215)
What happens if you go over the 200GB or 2 Million monthly requests limits?
Re:I just learned: Docker edits firewall rules for you on Sunday February 19, 2023 @01:17PM (#34860235)
Could UFW detect/warn that there are iptables rules interfering with its own rules?
Re:One Does Not Simply 'pip install' on Sunday February 19, 2023 @11:25AM (#34858934)
The next Debian/Ubuntu releases will no longer allow `pip install` outside of a venv: https://discuss.python.org/t/pep-668-marking-python-base-env...

You can still force it via `pip install --break-system-packages ...` if needed.

For those of you who haven't looked at MSYS2 in a while: We now also have a Clang/LLVM based toolchain and ARM64 support.
Re:PHP 8.2 on Saturday December 10, 2022 @05:52PM (#33937895)
Sure. (1) it is a global setting so I can't decide if I want it on a per application basis, with Docker that is less of an issue though (2) it is disabled by default, so hardly anyone uses it from what I see (3) I'd like to have it always enabled, also in production, so my code doesn't end up in states that I didn't expect and I get notified.

But that might just be me and/or my particular use case.

Re:PHP 8.2 on Thursday December 08, 2022 @09:55AM (#33908461)
assert() is still broken if it's disabled in php.ini.
Re:Faster CPython 3.12 Plan on Tuesday September 20, 2022 @03:42AM (#32908839)
Only C extensions that themselves have no global state and don't depend on the GIL for locking, which most of them do. So they will all require some porting, and it will take time since it requires newer CPython API only available in 3.9+ and some even 3.11+ (PEP 630).
Re:Show HN: A virtual Yubikey device for 2FA/WebAuthN on Sunday September 18, 2022 @04:03AM (#32885472)
Imo that it's not phishable and that there is no secret on the target server is even more useful in practice. And both those properties don't require physical isolation.
U2F generates a new keypair for each origin. Public keys are not re-used.
Re:Don't Use RAR on Friday February 25, 2022 @06:47AM (#30466253)
Microsoft ASF/WMA also has a similar limitation, where it disallows writing an open source implementation if you use the official format specification.

Luckily it is too mostly irrelevant nowadays.

Re:Tell HN: I got 10x Hetzner storage at the same price on Saturday February 19, 2022 @03:06PM (#30400049)
Nextcloud doesn't support color profiles in images, so anything not sRGB looks off in their gallery app -> I wouldn't recommend it.
Re:Disclosure of three 0-day iOS vulnerabilities on Friday September 24, 2021 @06:46AM (#28640716)
According to the GDPR health data is a special category that needs extra care and heart rate falls in that category:

"Information derived from the testing or examination of a body part or bodily substance"

Re:Audacious 4.0 released, switches from GTK to Qt 5 on Sunday March 22, 2020 @04:33PM (#22658376)
Here is how a gtk app looked in 2014 on macOS: https://i.imgur.com/1e669Tp.png
Re:PyPy v7.0.0: triple release of 2.7, 3.5 and 3.6-alpha on Wednesday February 13, 2019 @06:57AM (#19152376)
Yeah, sorry. It shows at least that it's possible with the current PyPy C API layer to have GUI bindings working.

Here is the only PyPy related issue I found for PySide2: https://bugreports.qt.io/browse/PYSIDE-535

PyQt doesn't have a bug tracker ¯\_(ツ)_/¯

Re:PyPy v7.0.0: triple release of 2.7, 3.5 and 3.6-alpha on Tuesday February 12, 2019 @08:33AM (#19143278)
For gtk, gstreamer etc. PyGObject should just work. It has PyPy as part of its CI pipeline. Also in combination with matplotlib (GTK3Cairo backend) and numpy.

Not sure about PySide2..

Re:Kernel quality control, or the lack thereof on Monday January 07, 2019 @01:16PM (#18848112)
What makes you so sure?
Re:Kernel quality control, or the lack thereof on Monday January 07, 2019 @07:23AM (#18844612)
I've filed bugs for some of the mentioned copy_file_range() issues more than two years ago:

- https://bugzilla.kernel.org/show_bug.cgi?id=135461

- https://bugzilla.kernel.org/show_bug.cgi?id=135451

No response...