Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wahern
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
871.
▲
by
wahern
3y ago
Anecdotally, I seem to have had the opposite experience. I've been doing this for at least 15 years, and never had a negative reaction. With bank, credit card, or finance-related companies, they seem to understand immediately. With oth
872.
▲
by
wahern
3y ago
> it's a little more general, I think, since one common use case for it is to use it on your own process in order to intercept calls to stdlib/OS code from libraries you don't control. This capability is intrinsic to how E
873.
▲
by
wahern
3y ago
A classic use case for coroutines is easily turning a push (callback) interface into a pull (return) interface. I'm sure many people have thought of using coroutines to handle GUI events this way. Certainly I have, and have even writte
874.
▲
by
wahern
3y ago
In the OP's example, 2023-11-05 01:30:00 America/New_York, 1:30AM occurs twice as at 2:00AM the clock rolls back to 1:00AM. Normally this is resolved by including a disambiguating timezone, EDT (first 1:30AM) or EST (second 1:30
875.
▲
by
wahern
3y ago
> Certain files do not refer to disk files at all, but to I/O devices. [...] An effort is made to make these special files behave exactly the same way that ordinary disk files behave. This means that programs generally do not need t
876.
▲
by
wahern
3y ago
They're saying that these clouds have blunted the impact of CO2 emissions. Most of the CO2 increase (to ~420ppm) above pre-industrial levels (from ~275ppm) has occurred over the past 100 years; about half of it has only been since ~199
877.
▲
by
wahern
3y ago
There are two dimensions to "everything is a file". The first is the concept of a hierarchical filesystem namespace. The second is the notion that read and write can be used as a universal interface to any resource from the perspe
878.
▲
by
wahern
3y ago
I suspect OpenSSH's precedence order might be a consequence of the semantics and syntax of the Host and Match directives. But I haven't looked into the history.
879.
▲
by
wahern
3y ago
I don't think you can even implement indirect threading in Go. Go supports neither computed goto nor mutually recursive tail-call optimization (only self-recursive). Jump tables for switch statements was only implemented last year. If
880.
▲
by
wahern
3y ago
Here's something I bet few people know: the OpenSSH configuration parser ignores duplicate directives; only the first such directive has any effect. This is more than a little counter intuitive as IME the more common semantic in config
881.
▲
by
wahern
3y ago
> That is, since generators are primarily used to simplify the writing of iterators, the yield statement in a generator does not specify a coroutine to jump to, but rather passes a value back to a parent routine. Another term for this as
882.
▲
by
wahern
3y ago
From a tutorial at https://www.modula2.org/tutor/chapter11.php : > The ALLOCATE procedure requires 2 arguments, the first of which is a pointer which will be used to point to the desired new block of dynamically allo
883.
▲
by
wahern
3y ago
I believe the original question concerned compilation of Clojure, et al programs to WebAssembly. Unless I'm misunderstanding, your link is to a project for manipulating (assembling and disassembling) WASM bytecode, which is both the
884.
▲
by
wahern
3y ago
A reference can escape not only up, as a return value, but also down, as a function parameter. I'm not sure how sophisticated the static analyzer and inliners are, but escape analysis can only go so far; e.g. stopping at a method call
885.
▲
by
wahern
3y ago
The purpose of escape analysis is to avoid situations where other code or data structures could potentially reference stack-allocated memory. IOW, all stack-allocated data is only referenced from the local function invocation frame, presuma
886.
▲
by
wahern
3y ago
No need to guess. My man page for inet_aton says it comes from 4.3BSD: https://github.com/dank101/4.3BSD-Reno/blob/master/lib/libc/... The earlier inet_addr from 4.2BSD has the same logic: htt
887.
▲
by
wahern
3y ago
To my ears "aligning" sounds New Age-y. Similarly, "subconscious" is an abused cultural meme. So I can see where the OP might be coming from. But in the context of the article the meaning seems to be improving self-aware
888.
▲
by
wahern
3y ago
HE and Cogent are still feuding over IPv6 peering, too. Using HE for regular web browsing will work fine, but if you want to host through HE your services might not be reachable to visitors from a Cogent network, e.g. office buildings. Th
889.
▲
by
wahern
3y ago
California, at least, treats as a change in property ownership when a more than 50% interest in the legal owner (i.e. corporation, LLC, trust, etc) changes. The rules don't completely address the problem. For example, I think some buil
890.
▲
by
wahern
3y ago
If all human carbon emissions magically ceased today anthropomorphic global warming and its concomitant environmental changes will still continue to unfold for the next few centuries or millennia, at a minimum, before settling into a
891.
▲
by
wahern
3y ago
Almost. You could start the main loop ([NSApp run]), but the reverse bridge would need to be implemented as the 'run' method blocks so you need event callbacks to be able execute any Lua code within the main loop. And for event ca
892.
▲
by
wahern
3y ago
> It’s not recommend for new code (in Apple land) and they’re already starting to make features Swift-only. That's a real shame because FFI language bindings to Objective-C frameworks are amazingly simple to do with Objective-C. You
893.
▲
by
wahern
3y ago
Most if not all systems had threads before POSIX Threads. POSIX Threads brought a standard interface to replace the chaos that reigned. It took many years for the ridiculous amount of thread API portability cruft in Unix ecosystem software
894.
▲
by
wahern
3y ago
I didn't mean to insinuate that anybody faked anything. Just that video evidence on its own isn't per se any more credible than if they unambiguously made the same claim in writing. The technology for making fake or misleading vid
895.
▲
by
wahern
3y ago
Unfortunately, we live in the age of TikTok. Videos on their own bring no more credibility than written text; they no longer evince a substantively greater investment of resources. I'm more inclined toward the cheerleading section of t
896.
▲
by
wahern
3y ago
The average (mean and median) for attorneys' fees in class actions typical lies between 20% and 25%, depending on the category of case and jurisdiction. https://www.uscourts.gov/sites/default/files/theo
897.
▲
by
wahern
3y ago
Well, Japan is the only mature industrial nation other than the United States where a majority of science papers are published in domestic journals[1][2], many of which are predominately or solely Japanese language[3], whereas internation
898.
▲
by
wahern
3y ago
I wonder if there's a language barrier. I can't judge for myself--neither the substantive content nor the biographies--but hypothetically the principle investigators might not have strong (or any) English language proficiency, rel
899.
▲
by
wahern
3y ago
epoll_wait takes a timeout, which if 0 means it will return immediately even if no events are pending. You wouldn't necessarily need to make use of this feature to implement something like Go's scheduler. Jumping to the semantics
900.
▲
by
wahern
3y ago
> The Supreme Court decisions of the early 1970s on mental health were well intentioned but disastrous. Those decisions still left much room for coerced treatment, so it's not clear how disastrous they were. Most if not all states a
More ›