Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stabbles
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
91.
▲
by
stabbles
8mo ago
Reminds me of that solution to Fermi's paradox, that we don't detect signals from extraterrestrial civilizations because they run on a different clock speed.
92.
▲
by
stabbles
8mo ago
Many people and projects have tried to ditch OpenSSL in favor of LibreSSL, WolfSSL, MbedTLS, etc, but by now many have returned to OpenSSL. The IQ curve meme with "just use OpenSSL" applies.
93.
▲
Building Interactive C/C++ workflows in Jupyter through Clang-REPL [video]
(fosdem.org)
1 points
by
stabbles
8mo ago
|
0 comments
94.
▲
by
stabbles
8mo ago
Whenever Wolfram brings up cellular automata again, I think of John Conway who got tired of being known for Conway's Game of Life.
95.
▲
by
stabbles
9mo ago
Try this: https://www.terrygodier.com/phantom-obligation/ascii
96.
▲
by
stabbles
9mo ago
Fair, https://www.man7.org/linux/man-pages/man2/getdents64.2.html is a better link. You'd have to call lstat when d_type is DT_UNKNOWN
97.
▲
by
stabbles
9mo ago
Because you get an iterator over `struct dirent`, which includes `d_type` for popular filesystems. Notice that this avoids `lstat` calls; for symlinks you may still need to do a stat call if you want to stat the target.
98.
▲
by
stabbles
9mo ago
Yes, but with much lower latency. The squashfs file ensures the files are close together and you benefit from fs cache a lot.
99.
▲
by
stabbles
9mo ago
What comes closest is scandir [1], which gives you an iterator of direntries, and can be used to avoid lstat syscalls for each file. Otherwise you can open a dir and pass its fd to openat together with a relative path to a file, to reduce t
100.
▲
by
stabbles
9mo ago
> Zip with no compression is a nice contender for a container format that shouldn't be slept on SquashFS with zstd compression is used by various container runtimes, and is popular in HPC where filesystems often have high latency. I
101.
▲
by
stabbles
9mo ago
"I/O is the bottleneck" is only true in the loose sense that "reading files" is slow. Strictly speaking, the bottleneck was latency, not bandwidth.
102.
▲
by
stabbles
9mo ago
Another interesting choice of GitLab's CI is to effectively display `head -c N` of the logs instead of `tail -c N`. Some builds produce a lot of output, and Gitlab simply truncates it. Your job failed? Good luck figuring out what went
103.
▲
by
stabbles
9mo ago
Exactly. The discussion should center on the fact that Microsoft's shift was a contingency, not a technical necessity. It cannot have escaped them that their design choices create a legal point of entry for data requests that they are
104.
▲
by
stabbles
9mo ago
That's a false dichotomy. You can hold an organization accountable to the law without requiring them to maintain a "master key" to your private data.
105.
▲
by
stabbles
9mo ago
> Since then, there has been no further development of the service. That's not true, the website and app both got a major redesign after acquisition.
106.
▲
by
stabbles
9mo ago
It just happens to be so that hardware which power users like to use comes with macOS installed.
107.
▲
Show HN: Heavyops – identify performance bottlenecks in Python
(pypi.org)
2 points
by
stabbles
9mo ago
|
0 comments
108.
▲
by
stabbles
9mo ago
Python 3.15 features a very good sampling profiler with excellent reporting: https://docs.python.org/3.15/library/profiling.sampling.html .
109.
▲
by
stabbles
9mo ago
`sys.monitoring` is nice. I used it to find inefficiently ordered chains of branches in one of my projects. For example a chain of `if isinstance(foo, ...); elif isinstance(foo, ...); elif isinstance(foo, ...);` can be reordered from most t
110.
▲
by
stabbles
9mo ago
Right, that's also a good reminder that the builtin `command -V` is typically what you want whenever you use not-always-builtin `which` ;)
111.
▲
by
stabbles
9mo ago
Yeah, if you set the shebang `#!/bin/sh` (which is portable), shellcheck will complain about double brackets. It also helps you do quoting correctly when using single brackets.
112.
▲
by
stabbles
9mo ago
Nowadays [ is a builtin. The subprocess for a simple branch would be excessive overhead.
113.
▲
by
stabbles
9mo ago
Double brackets are less portable. For example musl linux does not come with bash by default, and your script fails. When unsure, use shellcheck.
114.
▲
by
stabbles
9mo ago
I'm using tmate for this: https://github.com/mxschmitt/action-tmate
115.
▲
by
stabbles
9mo ago
It would be interesting to have a more accurate estimate of the effective cost of maintaining Gentoo. Say 100 core developers spend 10h/week, and 380 external contributors 2h/week; that's well over 40 FTE, and at $150K per FT
116.
▲
by
stabbles
9mo ago
For constant n even exponential complexity reduces to constant time
117.
▲
by
stabbles
9mo ago
Awesome! The slides with roofline analysis are great! https://docs.google.com/presentation/d/16M90It8nOK-Oiy7j9Kw2...
118.
▲
by
stabbles
9mo ago
Nice, you don't see clingo mentioned often. We use it in the Spack package manager for resolving dependencies [1] [1] https://github.com/spack/spack/blob/develop/lib/spack/spack/...
119.
▲
by
stabbles
9mo ago
Author here. There is a part 2 to this: https://stoppels.ch/2022/11/30/io-is-no-longer-the-bottlenec...
120.
▲
by
stabbles
9mo ago
For the particular case of the 5 delimiters '\n', '.', '?', '!', and ';', it just happens to be so that you can do this as a single shuffle instruction, replacing the explicit lookup table.
More ›