Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
andreyv
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
andreyv
10mo ago
Follow this forum: https://forum.sailfishos.org/c/announcements/17 .
2.
▲
by
andreyv
1y ago
Autoconf can use cache files [1], which can greatly speed up repeated configures. With cache, a test is run at most once. [1] https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/a...
3.
▲
by
andreyv
1y ago
Here is a non-zero null pointer: https://gcc.godbolt.org/z/Po5r5Pa36
4.
▲
by
andreyv
2y ago
It creates a compound literal [1] of type array of int, and initializes the specified array positions using designated initializers [2] with the results of calls to puts(). Using designated initializers without the = symbol is an obsolete e
5.
▲
CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
(openwall.com)
141 points
by
andreyv
2y ago
|
56 comments
6.
▲
by
andreyv
2y ago
Even the original version 1507 is still supported on the LTSC channel. Support for UTF-8 manifest was added only in version 1903.
7.
▲
by
andreyv
2y ago
Old does not mean bad. Even a decade later Wayland struggles to provide basic features that were built in the X protocol.
8.
▲
by
andreyv
3y ago
The number of registers available to the program is fixed in the instruction set. The program cannot address more registers without recompiling it to an extended instruction set.
9.
▲
by
andreyv
3y ago
First person shooters. Vertical synchronization causes a noticeable output delay. For example, with a 60 Hz display and vsync, game actions might be shown up to 16 ms later than without vsync, which is ages in FPS.
10.
▲
by
andreyv
3y ago
The Soviet Union briefly tried 5 and 6 day weeks in the 1930s: https://en.wikipedia.org/wiki/Soviet_calendar
11.
▲
by
andreyv
3y ago
You can use systemd-cron [1] to run traditional cron jobs with systemd. No need for a separate daemon anymore. [1] https://github.com/systemd-cron/systemd-cron
12.
▲
by
andreyv
3y ago
Instead of "/usr/bin/time" you can also write "command time".
13.
▲
by
andreyv
3y ago
1% is still a lot for power saving. If the system is idle, it should be at 0%. If it is anything above, then it shows poor design.
14.
▲
by
andreyv
4y ago
See: https://en.wikipedia.org/wiki/Lagrange_polynomial
15.
▲
by
andreyv
5y ago
Right — ferror() does not set errno, and so perror() is not appropriate here. fprintf(stderr, ...) would be better.
16.
▲
by
andreyv
5y ago
In C, and many other languages, the file stream error state is saved after each operation, so you can skip error checking on every output line and only do if (fflush(stdout) != 0 || ferror(stdout) != 0) { perror("stdout"
17.
▲
by
andreyv
5y ago
Perhaps this: https://docs.microsoft.com/en-us/windows-hardware/design/dev... > On occasion, the system stays in the active mode (with the screen off) for a longer interval of time. These longer active int
18.
▲
by
andreyv
5y ago
> So there is no way to abort a bash script if something like <(sort nonexistent) fails. The process ID of the last executed background command in Bash is available as $!. cat <(sort nonexistent) wait $! || echo fail gives
19.
▲
C++ iostreams: Unexpected but legal multithreaded behaviour
(berthub.eu)
2 points
by
andreyv
5y ago
|
0 comments
20.
▲
by
andreyv
5y ago
Dell also removed trackpoint and all touchpad buttons, and made up/down arrow keys half height on the new Latitude laptops. These are not the changes one would expect to see in a professional-grade laptop. On the other hand, the Lenovo
21.
▲
by
andreyv
5y ago
Autoconf can use a cache file to speed up tests: https://www.gnu.org/software/autoconf/manual/autoconf-2.60/h...
22.
▲
by
andreyv
6y ago
In fast-paced games it is essential to disable vertical synchronization as well, trading possible tearing for less input lag. Does Wayland support this?
23.
▲
by
andreyv
7y ago
C now has a memset_s() function to do this.
24.
▲
by
andreyv
7y ago
Windows unredirects full-screen games, bypassing the compositing delay. This is also what sensible compositing X11 window managers do on Linux.
25.
▲
by
andreyv
7y ago
Forced composition and vsync is a mistake for gaming. The added output latency is unacceptable, especially for first-person shooters. A little tearing is nothing compared to the vsync lag. If Wayland wants to replace X.org, then it should s
26.
▲
by
andreyv
7y ago
Indeed, "volatile sig_atomic_t" is the recommended official C way to change a flag from a signal handler.
27.
▲
by
andreyv
7y ago
There is no tearing with proper drivers and window managers. This was a problem in the past, but now is largely overstated.
28.
▲
by
andreyv
8y ago
One counterargument is that for each ABI you need a different set of libraries loaded in memory. So, if some programs in the system use the 64-bit ABI and some use x32, then memory usage may substantially increase. And, of course, this also
29.
▲
by
andreyv
8y ago
What the actual hell.
30.
▲
by
andreyv
8y ago
Flatpak, Snap, container images are the new iteration of static linking. Just like with static binaries, they make deployment easier for the developer, but introduce problems with size, duplication and library updates. Flatpak added runtime
More ›