Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Arnavion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
Arnavion
1y ago
Neat similarity to Zig's approach to generic types. The generic type is defined as a type constructor, a function that returns a type. Every instantiation of that generic type is an invocation of that function. So the generic growable
92.
▲
by
Arnavion
1y ago
Ask the Fedora maintainer? The README instructions only say Python 3. The OpenSUSE package's specfile only says Python 3, and to be sure I tried installing it and it did not pull in Python 2 packages. Actually even the Fedora package&#
93.
▲
by
Arnavion
1y ago
>About a month ago I heard Microsoft had their own Linux distribution to help Microsoft Windows users feel more at home. From memory, it was a rather simple GNOME setup. Nothing special. You're confusing Microsoft's first-party
94.
▲
by
Arnavion
1y ago
Yeah, I also learned C++ via Turbo C++ in school in India in the early 2000s. Googling for "conio.h" shows Indians still talking about it in blogs and C/C++ forums as of 2024.
95.
▲
by
Arnavion
1y ago
It is still the default but it's also trivial to change, so you don't have to "carry around actual root password" for any longer than it takes to create a dropin in /etc/sudoers.d/ with `Defaults !targetpw
96.
▲
by
Arnavion
1y ago
CPUs guarantee what they guarantee, and if they guarantee that a certain instruction takes an operand-independent time then it does. For example a RISC-V CPU implementing the Zkt extension is required to implement a whole bunch of logical a
97.
▲
by
Arnavion
1y ago
Cooperative games do still have the problem that you either need to have friends with the same interests and gaming schedule as you (the last one especially gets more and more difficult with age and real life responsibilities), or you play
98.
▲
by
Arnavion
1y ago
PSA: POSIX shells (bash etc) do the same thing for && and ||. `true || false && false; echo $?` will be 1, not 0, because it evaluates `true || false -> true; true && false -> false`, not `false && fals
99.
▲
by
Arnavion
1y ago
You want to optimize for specific chips because different chips have different capabilities that are not captured by just what extensions they support. A simple example is that the CPU might support running two specific instructions better
100.
▲
by
Arnavion
1y ago
They definitely can't cope with the load at midnight, or at least couldn't back in 2022, and the fact that they mention midnight specifically in this post makes me assume they still can't. I say this because I had cert issuan
101.
▲
by
Arnavion
1y ago
The better way is to do what I wrote in the first paragraph; ie each layer gets its own error type with a bespoke context type. The second paragraph is about the case where you want to use a single error type.
102.
▲
by
Arnavion
1y ago
If you don't `impl From<UnderlyingError> for MyError` then you can force the code to do `.map_err(|err| MyError::new(err, context))?` instead of just `?`. This doesn't work when the error is already MyError so you want to ma
103.
▲
by
Arnavion
1y ago
With C, it is _BitInt(256) if the compiler supports it. The upper limit of _BitInt is implementation-defined though, so 256 is not guaranteed to be supported. Eg clang on RV64 only supports upto 128, but does support 256 on x64_64. gcc seem
104.
▲
by
Arnavion
1y ago
In 2010 I met a person from India who pronounced it "C pound", and they were as confused by my reaction as I was by their pronunciation. I guess somehow that pronunciation became popular enough that it acquired momentum and everyo
105.
▲
by
Arnavion
1y ago
The builtin subcommand is unstable, but a long time ago a dev I knew at the time maintained an external subcommand for it. https://crates.io/crates/cargo-script Although it's old and its dependencies are old, it d
106.
▲
by
Arnavion
1y ago
See also this CGP Grey video where he talks about post codes / zip codes in general and mentions Ireland's system. https://www.youtube.com/watch?v=1K5oDtVAYzk
107.
▲
by
Arnavion
1y ago
Wonder if DDG can be convinced to append that automatically for !g queries...
108.
▲
by
Arnavion
1y ago
My webhost only supports RSA keys, so I use an RSA-4096 key just to annoy them into supporting EC keys.
109.
▲
by
Arnavion
1y ago
You can also use an NS record directly instead of CNAME'ing to a different domain.
110.
▲
by
Arnavion
1y ago
You can have multiple TXT records for the same domain identifier, and the ACME server will look through all of them to find the one that it expects. So for an order that requests SANs example.org and *.example.org, where the server asks for
111.
▲
by
Arnavion
1y ago
If you want to actually implement an ACME client from first principles, reading the RFC (plus related RFCs for JOSE etc) is probably easier than you think. I did exactly that when I made a client for myself. I also wrote up a digested descr
112.
▲
by
Arnavion
1y ago
It doesn't have to be gated by "the people who run the distro". I started packaging a few pieces of software for a distro I use because I wanted to use that software, and I don't "run" the distros in any capaci
113.
▲
by
Arnavion
1y ago
Not necessarily. DT can be loaded separately from u-boot tree / kernel tree / dtoverlay file.
114.
▲
by
Arnavion
1y ago
Yes. See https://github.com/aarch64-laptops/edk2/tree/dtbloader-app?t... for example.
115.
▲
by
Arnavion
1y ago
publicmail was asking about ACPI vs DT, not UEFI. Using UEFI and ACPI/DT are orthogonal; DT-using devices can also boot from UEFI if the firmware provides it. See https://github.com/TravMurav/dtbloader for example
116.
▲
by
Arnavion
1y ago
All RISC-V consumer boards running Linux also use DT. RISC-V is also working on getting ACPI but primarily for the sake of servers, just like with ARM where ACPI is primarily used for servers (ARM SBBR / ServerReady). ARM Windows lapto
117.
▲
by
Arnavion
1y ago
It's for the sake of providing a &mut [u8] to the initialized region for callers that cannot work with &mut [MaybeUninit<u8>] for whatever reason, eg if they wanted to use this with a std::io::Read impl. In particlar, Rea
118.
▲
by
Arnavion
1y ago
Unfortunately this hypothesis is also wrong. MAP_UNINITIALIZED can only be enabled in the kernel when there is no MMU, and in that case the page will already be in physical memory, so the very first pointer dereference will read the correct
119.
▲
by
Arnavion
1y ago
That's correct.
120.
▲
by
Arnavion
1y ago
In that case the bug he described simply does not exist.
More ›