Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ufo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
421.
▲
by
ufo
4y ago
I wouldn't be surprised if it were even worse than that, e.g. promissory notes from Bitfinex (themselves)
422.
▲
by
ufo
4y ago
This is taking advantage of coroutines and to-be-closed variables. To-be-closed variables were recently introduced in Lua 5.4. Lua runs a destructor method when these variables go out of scope, like the RAII pattern in c++. Coroutines have
423.
▲
by
ufo
4y ago
I think the main takeaway is that twitter over represents people who tweet a lot, because those people are responsible for a larger percentage of the tweets. The author argues that this makes twitter more negative than real life, because ne
424.
▲
by
ufo
4y ago
Arguably Java streams aren't really lazy evaluation at the language level, because the programmer must use explicit lambdas around the lazy bits. Java itself is still eager.
425.
▲
by
ufo
4y ago
Because Brazilian fascists are pro-monarchy. Go figure ¯\_(ツ)_/¯
426.
▲
by
ufo
4y ago
Are there any userspace libraries that provide strscpy, or do we need to reimplement it ourselves?
427.
▲
by
ufo
4y ago
IIRC, aerobic decomposition doesn't create as much methane.
428.
▲
by
ufo
4y ago
This is an area where comment threads can shine. For most questions, if you ask it early enough then odds are that you'll get a good explanation from someone.
429.
▲
by
ufo
4y ago
What does adding unicode support mean? Is it about making all the string indexing match codepoints instead of bytes? Or is it more than that?
430.
▲
by
ufo
4y ago
Sometimes I pause to think how we're held back by needing to make our shell scripts backwards compatible with Bash or POSIX, because that's what is installed by default. Shell scripting would be nicer if the shell could be less cr
431.
▲
by
ufo
4y ago
While we're on this topic... What's the deal with having multiple wifi access points with the same SSID? I have heard some people say you should always use a single SSID because the clients know how to automatically pick the best
432.
▲
by
ufo
4y ago
Another crucial detail is that these attestations are not an audit of assets vs liabilities. In the past, Tether has been caught borrowing money in the day of the attestation to give the impression that there's more in their bank accou
433.
▲
by
ufo
4y ago
Tether is gasoline they print new tethers out of thin air and use them to purchase bitcoin in the market, propping up the price of bitcoin.
434.
▲
by
ufo
4y ago
Nah, it was just a typo. But I like your idea!
435.
▲
by
ufo
4y ago
I speculate it's for consistency with VLAs that are not function arguments, which is the more common use for VLAs. The original purpose of VLAs is to let you stack-allocate an array with a length that is not known at compile time. In A
436.
▲
by
ufo
4y ago
They mention that while loops are limited because C doesn't have tail recursion. However, in my experience gcc and clang are pretty decent at tail recursion. It happens via the -foptimize-sibling-calls setting, which is enabled by defa
437.
▲
by
ufo
4y ago
In other words: if it grows or decays by a rate that's proportional to the current amount, over time it'll follow an exponential curve.
438.
▲
by
ufo
4y ago
Oof. Is there anything that could be done to make HN more accessible? Who do we call for this?
439.
▲
by
ufo
4y ago
How do you feel about that problem the parent blog post mentioned, of this being slow for large blobs particularly when compiling with Clang?
440.
▲
by
ufo
4y ago
Which packages are potentially affected?
441.
▲
by
ufo
4y ago
Lol! I'm curious how slow it got... How slow are we talking about here?
442.
▲
by
ufo
4y ago
I recommend this for watching lectures & other long videos. Compared to the web player mpv gives finer control of playback speed and seeking forwards and backwards.
443.
▲
by
ufo
4y ago
Moto g 7
444.
▲
by
ufo
4y ago
On my phone it's closer to 6:1. 500 jumps to 3000 with WASM
445.
▲
by
ufo
4y ago
Don't forget about the $720M in "Mining Assets". I wouldn't be surprised if the true value were much lower than this, now that crypto prices have crashed.
446.
▲
by
ufo
4y ago
There is some historical precedent for what you said. The first programming languages were assembly languages, which only have statements that you write one per line. You can sort of say that each instruction name is a "keyword".
447.
▲
by
ufo
4y ago
Probably because you linked to your own blog. That might be frowned upon on r/technology. It's unfortunate that you got a permaban right away though. A temp ban might have been more appropriate. Note that this is unrelated to the
448.
▲
by
ufo
4y ago
A contrived example: https://godbolt.org/z/17T5MzvGY The compiler is able to optimize the function calls in the return statement. Note how the calls are compiled into a jmp instruction, instead of a call instruction. T
449.
▲
by
ufo
4y ago
Wasm is too high level to implement your own tail calls. The WASM virtual machine handles the call stack & function calling convention, instead of being something that the code itself is responsible for. This means that the compiler ca
450.
▲
by
ufo
4y ago
Deep down, AIP is one of those fad diets that prohibit more things than there's evidence for. It's justified based on some pseudoscientific ideas about certain foods causing autoimmune issues. People might say things about intesti
More ›