Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sltkr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
91.
▲
by
sltkr
10mo ago
We both know that CEOs are never fired, but there is a difference between resigning on their own accord and “resigning” because they had no organizational support. What happened to Eich was the CEO-equivalent of getting fired. > Donation
92.
▲
by
sltkr
10mo ago
That's just factually wrong. Proposition 8 deprived nobody of any rights. Gay couples could get exactly the same rights as straight couples through a domestic partnership, or get married out of state, as even Wikipedia admits: > A s
93.
▲
by
sltkr
10mo ago
> Yeah no, (1) Mozilla was going to be in for a tough go no matter what; I don't think Eich would have fared any better. Nobody knows this for sure. We do know that Eich was fired for political reasons, and not because of his techno
94.
▲
by
sltkr
10mo ago
So you agree: for you, it's more important that the Mozilla CEO shares your political views, than that Mozilla makes a quality product. That's exactly what the parent post is talking about. When Mozilla started prioritizing politi
95.
▲
by
sltkr
10mo ago
> Edit: looks like it's because BMP supports 1-bit packed pixels and PNG doesn't. The file sizes are almost identical That's nonsense, PNG supports 1-bit pixels just fine, and the resulting file is a lot smaller (when usin
96.
▲
by
sltkr
10mo ago
This could have been avoided by allocating the private lots in groups of 2x3 as part of 3x4 rectangles, like so (each "##" is aone 1x1 lot): +--+--+--+--+--+--+--+--+--+-- | | | | | | | | | | +--+--+--+--+--
97.
▲
by
sltkr
10mo ago
So are dictionary keys, but Python decided to make them insertion ordered (after having them be unordered just like set elements for decades). There is no fundamental reason sets couldn't have a defined order. That's what language
98.
▲
by
sltkr
10mo ago
It’s an Albany expression.
99.
▲
by
sltkr
10mo ago
Fun fact about Game of Life is that the leading algorithm, HashLife[1], uses immutable data structures. It's quite well suited to functional languages, and was in fact originally implemented in Lisp by Bill Gosper. 1. https:/
100.
▲
by
sltkr
10mo ago
I didn't do a quantative analysis (I bet neither did you), but copper theft happens everywhere: - https://www.swr.de/swraktuell/baden-wuerttemberg/heilbronn/t... - https://www.ladepeche.fr
101.
▲
by
sltkr
11mo ago
Weird parenthesization. The latin numbers are septem, octo, novem, decem for 7, 8, 9, 10. And then they all have a -ber suffix.
102.
▲
by
sltkr
11mo ago
Very cool algorithm and great write-up! I was a bit confused initially about what your algorithm actually did, until I got to the pseudo-code. Ideally there would be a high level description of what the algorithm is supposed to do before th
103.
▲
by
sltkr
11mo ago
But the site only supports up to ~10 million digits! This seems like serious defect. How am I supposed to select dates before 01/01/1970 or after 31/12/2069?
104.
▲
by
sltkr
11mo ago
Excise taxes on fuel already exceed carbon taxes. At the IMF suggested rate of €65 per tonne of CO2, a liter of fuel that produces 2.3 kg CO2 would cost €0.15 per liter, while European excise taxes on fuel average around €0.55.
105.
▲
by
sltkr
11mo ago
You're still missing the point of these problems, which is to challenge you to come up with a clever proof rather than brute-force the solution. dhosek understood the assignment by making an argument that 123456789 is composite without
106.
▲
by
sltkr
11mo ago
> the statement "you can do it in your head" generally does not entail this much complexity It's funny that you jump to accusing OP of falsely claiming you can do it in your head, without apparently considering the alterna
107.
▲
by
sltkr
11mo ago
Fair enough, but I think the first part of the advice would be a lot more helpful if it included the second part too. It's the intermediate step that turns people off: why do I need to learn about `perldoc` when I asked about `$|`? (An
108.
▲
by
sltkr
11mo ago
> when I asked on IRC the only answer I got was 'man perldoc' Your overall point notwithstanding, this was just bad advice. What you want is `man perlvar` (or equivalently `perldoc perlvar`) which documents this and other prede
109.
▲
by
sltkr
11mo ago
That's an overly simplistic take. Obviously the absolutely richest nations in the world are better places to live than the absolutely poorest. But that doesn't mean there is a strict ranking based on GDP. For example, based on GDP
110.
▲
by
sltkr
11mo ago
That's the behavior you get in Zig, if you declare a variable of type `u31`: an unsigned 31-bit integer that's implicitly convertible to `u32` or `i32`. Also in Zig overflow is illegal for both signed and unsigned integers, and gu
111.
▲
by
sltkr
11mo ago
No, it's the opposite. UNSIGNED overflow wraps around. SIGNED overflow is undefined behavior. This leads to fun behavior. Consider these functions which differ only in the type of the loop variable: int foo() { for (int i
112.
▲
by
sltkr
11mo ago
Tools like UBsan [1] can detect integer overflow in debug builds, and are used internally at Google to run automated tests. So if you use a signed integer, there is a chance that overflows are caught in tests. 1. https://clang.ll
113.
▲
by
sltkr
11mo ago
Pretty funny. I had to disable my ad blocker to be able to play it at all.
114.
▲
by
sltkr
11mo ago
I don't think it's a critical feature, but it is nice-to-have. Imagine if you opened a direct link to a JPEG image and instead of the browser rendering it, you'd have to save it and open it in Photoshop locally. Wouldn't
115.
▲
by
sltkr
11mo ago
You can do the transformation server-side, but it's not trivial to set it up. It would involve detecting the web browser using the "Accept" header (hopefully RSS readers don't accept text/html), then using XSLT to t
116.
▲
by
sltkr
11mo ago
For RSS feeds, XSLT stylesheets are used to display a human-readable version in the browser. Random example: https://lepture.com/en/feed.xml This is useful because feed URLs look the same as web page URLs, so users are
117.
▲
by
sltkr
11mo ago
From a DoS risk perspective there is no practical difference between an infinite loop, or a finite but arbitrarily large loop, which was always possible. For example, this doesn't work: #define DOUBLE(x) DOUBLE(x) DOUBLE(x) D
118.
▲
by
sltkr
11mo ago
For rational numbers, Python has a Fraction class in the standard library that performs exact integer arithmetic: >>> from fractions import Fraction >>> f = Fraction(0xFEDCBA987654321, 0x123456789ABCDEF) >
119.
▲
by
sltkr
11mo ago
This is just a link to a Github repo with only 2 stars, a total of 7 commits and no activity in the past 8 years, with not even a README describing what it is or why it would be interesting to anyone. Why is this being posted? Who is upvoti
120.
▲
by
sltkr
1y ago
Technically the 12 Days of Christmas are from December 25 to January 5, but close enough.
More ›