Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
orlp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
301.
▲
by
orlp
3y ago
It's also a waste of time tourist trap. The normal Icelandic baths are much cheaper and just as good.
302.
▲
by
orlp
3y ago
> a $1k one is top quality $100 gets you a SM57 which probably has been on more platinum albums than any other mic.
303.
▲
by
orlp
3y ago
It's not terrorism if done purely for profit and without a political motive. Words have meanings.
304.
▲
by
orlp
3y ago
Readers may also be interested in this old comment of mine: https://news.ycombinator.com/item?id=30895669 . It uses the method by Downey briefly mentioned at the end of the article.
305.
▲
by
orlp
3y ago
If I didn't speak English, I'm sure I would appreciate it. E.g. to swap the roles, while I'm sure some wouldn't mind but I'd guess that the majority of people who watch anime appreciate the anime titles have English
306.
▲
Training AI to Play Pokemon with Reinforcement Learning [video]
(youtube.com)
3 points
by
orlp
3y ago
|
0 comments
307.
▲
by
orlp
3y ago
> Direct your attention to the first line "If both of the addends have the same sign, the output must have that sign" This is absolutely not true, as already shown. x=5 y=10 z=x-y=-5, which has different sign from x. The first
308.
▲
by
orlp
3y ago
> Given variables x and y with values 5 and 10, ie both having the same positive sign, x-y will produce a result -5, that has negative sign. If x and y both have a positive sign the condition "for x−y that means if x and y have diff
309.
▲
by
orlp
3y ago
> Maybe the second line should be "listen 443 ssl;" (without the colon, like in the non-HTTPS version)? That's how it is in my config. That's a clerical error while copying to Hacker News, it is without the colon in m
310.
▲
by
orlp
3y ago
Yep, I have listen [::]:443 ssl; listen 443 ssl; in the server block.
311.
▲
by
orlp
3y ago
Thanks for letting me know. I just double-checked and the AAAA IPv6 record does have the right IP, port 80 is open in the VPS firewall for both IPv4 and v6 and my nginx config does listen on both as well: listen 80; listen [::]:80
312.
▲
by
orlp
3y ago
To be entirely precise, it is functionally complete in combination with access to the constant false (-0.0). If not given access to this constant it is not functionally complete, unlike e.g. NAND which can produce false from any value. I sh
313.
▲
Subtraction is functionally complete
(orlp.net)
251 points
by
orlp
3y ago
|
72 comments
314.
▲
by
orlp
3y ago
> I suspect, though, that memory safety is one of the most important kinds of safety. I don't agree, at least in the context of safety that Ada is typically mentioned in. Safety in this context is generally about human lives . Memo
315.
▲
by
orlp
3y ago
A default branch absolutely exists, it's what you get when you git init.
316.
▲
by
orlp
3y ago
Doesn't work with touch.
317.
▲
Subtraction is functionally complete
(orlp.net)
3 points
by
orlp
3y ago
|
0 comments
318.
▲
by
orlp
3y ago
Does it matter if it's a law? One day a national security letter from some three letter agency shows up at your doorstep, requiring you to keep logs (or let their engineer install a room 641A), and forbidding you from saying you do.
319.
▲
by
orlp
3y ago
IEEE 754 floating point are numbers, they are not ranges. Every operation rounds to a representable number in the set.
320.
▲
by
orlp
3y ago
You're right I was sloppy in defining s to be an int, it should've been an unsigned type. My point was more about getting consistent behavior across platforms at (most often) zero cost, not to support arbitrary negative shifts.
321.
▲
by
orlp
3y ago
Where do you think the carbon came from in the first place? Fossil fuels don't create carbon, they are carbon. It's not shoving it under the rug, it's putting it back where it came from.
322.
▲
by
orlp
3y ago
You can get well-defined behavior at 0 cost (for x86-64 and ARM64, which covers most everything not very obscure/embedded) on both GCC and LLVM by explicitly adding a modulo operator: uint32_t foo(uint32_t x, int s) { ret
323.
▲
by
orlp
3y ago
Look into the work of Søren Eilers https://arxiv.org/abs/math/0504039 https://www.tandfonline.com/doi/abs/10.4169/amer.math.monthl... (for the latter: use sci-hub) Then there is als
324.
▲
by
orlp
3y ago
> To revive this, they would have to find an expert to attest that it is technically feasible to have security with a backdoor that government can access, but at the same time is impossible for malicious entities to access. > Ergo, th
325.
▲
by
orlp
3y ago
We do not even know what 'countries' there were for the past 2000 years.
326.
▲
by
orlp
3y ago
There are two kinds of versions here. The CRDT version and Slotmap's internal version. I am not proposing you merge the two concepts, rather that instead of a Vec and simple indexes you use a Slotmap and keys, which then does allow del
327.
▲
by
orlp
3y ago
In Rust there's my crate slotmap, the above described design matches the DenseSlotMap type. It's also often called a generational arena.
328.
▲
by
orlp
3y ago
> The solution is surprisingly simple: we can store every node in a dynamic array, (a Vec in Rust) and use indices into this vector to refer to other nodes. This solves the ownership problem because the vector now owns all the nodes. And
329.
▲
by
orlp
3y ago
> Surely the environment hasn’t been that stable on evolutionary time scales? Man-made climate change has done/will do in hundreds of years what normally takes tens of thousands...
330.
▲
by
orlp
3y ago
I think it depends on your typing speed, your target speed, and how much time you want to spend learning the method. On desktop I type 110-130 WPM so such a shortcut wouldn't really help in all but the most extreme examples in day to d
More ›