Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
asveikau
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
721.
▲
by
asveikau
2y ago
It's good for most use cases for it to be a black box. TLS apis that were designed in the 90s still work with the newest protocols and ciphers and bug fixes. Consumers of the library can blindly and transparently adopt 30 years of rese
722.
▲
by
asveikau
2y ago
> machines with memory of 32MB or less was the norm My memory of 1998 is that 64mb-128mb was common by then. Around then my main machine had 128mb, until 2001 when I switched to 256mb and a 1ghz cpu. I also had an older machine with 8mb
723.
▲
by
asveikau
2y ago
Ratgdo doesn't go through the cloud. It's a separate board. You wire it into the opener the same way would a button, and it speaks the serial protocol that a myQ enabled button or console would use. Then it can speak MQTT over wif
724.
▲
by
asveikau
2y ago
Not sure how it works with a jackshaft vs. the more traditional residential opener, but ratgdo can speak the myQ protocol and control it from mqtt or home assistant. I have it working with my Chamberlain opener as do many others.
725.
▲
by
asveikau
2y ago
This is how a lot of home assistant integrations work. Sure, many HA users (self included) try to avoid dependence on cloud services and opt for local only solutions, such as zwave or ZigBee or products that work with local-only wifi. But t
726.
▲
by
asveikau
2y ago
> markets enforce efficiency, so it's not possible that a company can have some major inefficiency and survive This just seems totally false on its face. If you've worked at the big guys you know they aren't magically smar
727.
▲
by
asveikau
2y ago
I can't recall the details, but I saw a documentary that made me doubt that the mkultra experience was very formative for him. Iirc he had a big change in his outlook and demeanor at around the typical age of onset for schizophrenia an
728.
▲
by
asveikau
2y ago
I tried to read Kaczynski's manifesto once and came away with the impression he was mentally ill. I think there's stuff in there that impresses people with personality types who are disposed to agree with him, and it sounds cogent
729.
▲
by
asveikau
2y ago
I don't find it that remarkable. They are function signatures for open, close, read, write, a few locking operations... The signatures for the same operations on both Win32 and POSIX look extremely similar to this. These are fairly &qu
730.
▲
by
asveikau
2y ago
The filesystem APIs for Windows and POSIX have extremely similar semantics when you bridge their superficial differences. I don't think this is as huge an achievement as suggested. Many multiplatform projects have similar wrapper layer
731.
▲
by
asveikau
2y ago
This is the interface description. It's not the .c file that implements the abstraction. There is lots of code behind this, redundantly implementing the calls using either Win32 or POSIX.
732.
▲
by
asveikau
2y ago
Se and si (as used here) are the same word in different cases. I would draw comparisons to latin se and sibi respectively. I'd also draw parallels between sui , suus , secum and suyo , su , consigo .
733.
▲
by
asveikau
2y ago
That depends heavily on what you're working with. If it's POD types then ok. But a lot of things fit into the destructor paradigm. Note it's not just memory. The R in RAII is for resource, not memory.
734.
▲
by
asveikau
2y ago
RAII is all about making the compiler do what the "disciplined" C code is already doing manually. As mentioned elsewhere in this thread, a common C coding style and idiom is to goto to the end of your scope, where all the free cal
735.
▲
by
asveikau
2y ago
That's another valid translation for the same preposition. And there are many definitions of English "for" as well. This would fit the one used in the phrase "if not for this, ..." In other words, for itself = by vi
736.
▲
by
asveikau
2y ago
Per se is latin for "for itself".
737.
▲
by
asveikau
2y ago
The famous FPU issue that I can think of was the original Pentium.
738.
▲
by
asveikau
2y ago
> It would take maybe 15 lines of code to implement This is a very bad reason to justify something. Especially introduce threads. Your response here is like saying "I don't know why people say it's so hard to write multi t
739.
▲
by
asveikau
2y ago
You're talking about the country that started the industrial revolution.
740.
▲
by
asveikau
2y ago
Signals are indeed a nightmare. Your example of adding tons of syscalls to make up for lack of safety shows that you understand that to be true. And no, creating threads to solve this fringe problem in a spin loop with a sleep is not what I
741.
▲
by
asveikau
2y ago
That's just for checking the clock. You'd also need to have a way of getting called back when the timeout expires, after fputc et al are long gone from the stack and your program is busy somewhere else, or maybe blocked. Timeouts
742.
▲
by
asveikau
2y ago
I think doing those timeouts transparently would be tricky under the constraints of POSIX and ISO C. It would need to have some cooperation from the application layer
743.
▲
by
asveikau
2y ago
This is already how all the DNS lookup APIs work.
744.
▲
by
asveikau
2y ago
> sock = inet_connect(SOCK_STREAM, “google.com”, 443, NULL, &err); You just added a DNS lookup to connect(2). Also, you linked socket creation to all of this. This would make it hard to do an asynchronous version. Today you can creat
745.
▲
by
asveikau
2y ago
That's essentially what it is. You can determine the size by looking at sa_family. Some platforms also have an sa_len field. It's still unsafe if you allocate for the "base" type of struct sockaddr then try to use it for
746.
▲
by
asveikau
2y ago
Some platforms have a field called sa_len.
747.
▲
by
asveikau
2y ago
By the latin roots: Continue - hold together (cum + tenere -- same root as contain) Proceed - go forward (pro + cedere)
748.
▲
by
asveikau
2y ago
There is a tendency to make store names possessive even if they aren't. I usually hear about this in the US, I can't recall a lot of UK examples, but I think we have it here.
749.
▲
by
asveikau
2y ago
I think a lot of people who don't know much about London are surprised that the City of London is quite small and not what people generally mean when they say "London".
750.
▲
by
asveikau
2y ago
To be fair, a lot of comment sections are garbage, and they can be trolled and brigaded.
More ›