Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ryao
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
601.
▲
by
ryao
2y ago
There is no need for a certificate from let’s encrypt. DANE lets you put your own self signed certificate into DNS and it should be trusted because DNS is authoritative, although DNSSEC should be required to make it secure.
602.
▲
by
ryao
2y ago
DANE lets the domain owner manage the certificates issued for the domain.
603.
▲
by
ryao
2y ago
If the web browsers would adopt DANE, we could bypass CAs and still have TLS.
604.
▲
by
ryao
2y ago
Could you explain why Let's Encrypt is dropping OCSP stabling support, instead of dropping it for must-staple only certificates and letting those of us who want must-staple to deal with the headaches? I believe that resolving the priva
605.
▲
by
ryao
2y ago
SEEK_HOLE would let you find the holes, but not tell you the record size, which is what he wants here. ZFS does not implement .fiemap. zdb could be used to get this information by inspecting the dataset's object corresponding to the in
606.
▲
by
ryao
2y ago
It was GNU grep 2.13 and ZFS' behavior predates GNU grep 2.13 by many years. This was considered to be a bug in grep by the grep developers: https://github.com/openzfs/zfs/issues/829 http://gi
607.
▲
by
ryao
2y ago
The moment I saw this title, I imagined this on ZFS: $ truncate -s 1G testfile $ du testfile 1 testfile $ du -b testfile 1073741824 testfile
608.
▲
by
ryao
2y ago
You did not spend 90 days writing assembly language. I doubt you even spent 1 day.
609.
▲
by
ryao
2y ago
Why did Atari not just use a signal analyzer to get the key? Also, why was there a copy of the code at the United States Copyright Office?
610.
▲
by
ryao
2y ago
You are misreading. I said to take a char * and then cast it to whatever you want. You can cast it to struct A *. Then you can cast the original char * to struct B *. The compiler will be fine with this since the strict aliasing rule exclud
611.
▲
by
ryao
2y ago
Handing memcpy() the address at the end of an array and length 0 is undefined behavior. It is often said that the reason for this is to allow memcpy() to read before it branches to make it fast. This lead me to think of the case where you h
612.
▲
by
ryao
2y ago
Perhaps he wants to jump through hoops to avoid function pointers, even when doing that in C++ for optional functions like is done in the VFS requires gymnastics: https://godbolt.org/z/4GWdvsz6z That is the closest I c
613.
▲
by
ryao
2y ago
The point of the throwaway account’s comment was to say that you should use C++ class member functions instead of C function pointers in structures, but that is impossible to do in the general case in a sane way, since there is no way to le
614.
▲
by
ryao
2y ago
You cannot use variably modified types in C++. The following will not compile no matter what flags you give the C++ compiler as far as I know: https://godbolt.org/z/z9M55s3q6 What is particularly nice about that code i
615.
▲
by
ryao
2y ago
Not everything. See the features that C++ refuses to support. Beyond that, there is no compiler flag to stop requiring explicit casts of void pointers before assigning them. Furthermore, less is more. You get faster build times with C becau
616.
▲
by
ryao
2y ago
I wonder if in a few years you will never want to write another line of Rust again like another developer I know who used to be enamored with Rust. That said, I have not written perfect C code myself, but I have fixed a number of mistakes o
617.
▲
by
ryao
2y ago
Thanks for the explanations. As for the last one, I would probably bzero() that structure, as it is faster than setting just 1 field to zero in a loop, which presumably is what you would do until you have some need to “allocate” a value. Th
618.
▲
by
ryao
2y ago
Well, it would not be a class in that case, but a use case would be anything that is modular where you want to support a new function, but do not require all of your implementors to use it. The best example of this is the VFS. Here is docum
619.
▲
by
ryao
2y ago
How about TLS without CAs? See DANE. If only web browsers would support it.
620.
▲
by
ryao
2y ago
If web browsers supported DANE, we would not need CAs for encryption.
621.
▲
by
ryao
2y ago
Why would they? The old certificates will expire and the new ones will have short lifespans. Web browsers do not need to do anything. That said, it would be really nice if they supported DANE so that websites do not need CAs.
622.
▲
by
ryao
2y ago
wears math hat C does not have an infinite number of libraries and examples. The number of libraries and examples C has is quite large, and there are an infinite number of theoretically possible libraries and examples, but the number of l
623.
▲
by
ryao
2y ago
Spend 90 days writing nothing but assembly language and then tell me that you believe C is a low level language.
624.
▲
by
ryao
2y ago
It is more annoying to want to implement an optional function in a class and then have no simple way to check if that optional function is implemented in the object without, having to edit code that guards the call sites every time you add
625.
▲
by
ryao
2y ago
Can you think of anything I missed: https://news.ycombinator.com/item?id=43701516
626.
▲
by
ryao
2y ago
This is very bad advice for a few reasons: 1. It is not possible to add optional member functions (which would be pure virtual functions) to a C++ class base class and then check at runtime if they are unimplemented in the object (at least
627.
▲
by
ryao
2y ago
cast a `struct Foo*` into a `struct Bar*` and access the Foo through it (in practice we teach this as the "strict aliasing" rules, and that's how all(?) compilers implement it, but that's not what §6.5 paragraph 7 o
628.
▲
by
ryao
2y ago
Who are these customers that get developer support from Microsoft engineering teams?
629.
▲
by
ryao
2y ago
I had the same thought. I imagine the percentage of hacker news links to microsoft.com that are Raymond Chen links is high.
630.
▲
by
ryao
2y ago
The article says "he took credit for it on the social media platform X".
More ›