Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sltkr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
85 ms
·
511.
▲
by
sltkr
7y ago
> you should be separating the functions of router and wifi into their own discrete devices Why? If you need a media converter, router, and wireless access point anyway, there are obvious space and power advantages to combining these fun
512.
▲
by
sltkr
8y ago
I believe the discussion is around wage stagnation after correcting for inflation.
513.
▲
by
sltkr
8y ago
This article is missing one detail: what if resource creation fails? How do you signal that failure when the client calls GET on the task queue resource, in a way that's distinguishable from a failure to retrieve the task queue status?
514.
▲
by
sltkr
8y ago
I was pretty confused by this link, until I realized that the part about Ewin Tang has been deleted from that page, which must have happened shortly after posting the link. Archive.org has the original text: https://web.archive.o
515.
▲
by
sltkr
9y ago
I think the main issue with parsing is that you probably need to parse all JavaScript before you can start executing any of it. That might lead to a high delay before you can start running scripts. Compiling and optimizing code can be slow,
516.
▲
by
sltkr
9y ago
Fascinating read! The final approach of interpreting the shaders initially, while compiling them in the background for greater performance, sounds very similar to what just-in-time compilers do. If you think about it, the problems they face
517.
▲
by
sltkr
9y ago
> 1) Google [..] definitely works on hard algorithms True, but Google also has over 20,000 engineers working on various things. I think only a tiny minority of those are actually working on hard algorithms.
518.
▲
by
sltkr
10y ago
It was made back in 2003, when DHTML was the latest buzzword! Here's some background info: https://crisp.tweakblogs.net/blog/3881/dhtml-lemmings-primer... Some additional fun facts: - The author doesn't
519.
▲
by
sltkr
11y ago
So based on current data, Lee Sedol is exactly as good AlphaGo running on a single machine.
520.
▲
by
sltkr
11y ago
The code is still wrong for another reason: if (uintptr_t)ptrOld < (uintptr_t)ptrNew, then the subtraction is calculated modulo some power of 2 yielding a large number. The result of converting this to a signed integral type like ptrdiff
521.
▲
by
sltkr
11y ago
You can easily seed your PRNG with a cryptographic entropy source which can certainly provide enough entropy. But in reality you don't care. You could seed the PRNG with the current system time in nanoseconds or something, and every ga
522.
▲
by
sltkr
11y ago
> It's similar to why, on Linux/Unix, it's bad practice to include "." in your PATH (or LD_LIBRARY_PATH). An even trickier problem on Linux is that an empty component in the LD_LIBRARY_PATH is interpreted as a re
523.
▲
by
sltkr
11y ago
> No you don't. There are well-documented, consistent ways to centre in CSS. Vertical entering used to be difficult (for obvious reasons), but now we've got flexbox which solves that problem entirely. So, what's the way to
524.
▲
by
sltkr
11y ago
FYI, Kobo already sells a waterproof e-reader today for ~$160.
525.
▲
by
sltkr
11y ago
To be clear: the Y combinator is just one way to define a fixed-point combinator in the untyped lambda calculus. You can define fixed-point combinators differently and achieve the same effect. I do agree that the realization that it's
526.
▲
by
sltkr
11y ago
That's not a timestamping service; that's just a way to quickly notify Google when you add a page to your blog. What if your blog doesn't use Pubsubhubbub, but mine does, and I copy your blog post? Google will see my post fir
527.
▲
by
sltkr
11y ago
From the paragraph you quoted: > In 2003, the financial sector comprised an estimated 11.6% of Switzerland's GDP and employed approximately 196,000 people (136,000 of whom work in the banking sector); this represents about 5.6% of t
528.
▲
by
sltkr
11y ago
> Did you know that the 4 major political parties are all in the government together - by mutual agreement? It's actually 5 different parties (with only 7 seats in the federal council). https://en.wikipedia.org/wiki&
529.
▲
by
sltkr
11y ago
Btw, Python has nifty multiple assignment, so you can write the swap simply as: root.left, root.right = (self.invertTree(root.right), self.invertTree(root.left)) (Parentheses added to break over two lin
530.
▲
by
sltkr
11y ago
I think in cases where the original comment appears to be made in good faith, it's OK to explain what's wrong with it/what to do instead. That's how people learn. (Obvious spam/flames/etc. should just be downvo
531.
▲
by
sltkr
11y ago
Compound interest isn't some magical force. https://xkcd.com/947/
532.
▲
by
sltkr
11y ago
> Using it is usually as simple as "configure;make;make install". "Usually" indeed. Because if it breaks, you do need to know the implementation details to figure out what's wrong.
533.
▲
by
sltkr
12y ago
Obvious questions: 1. How do you extend Boyer-Moore to arbitrary regexps? 2. Does "not looking at every byte" really matter when the strings being searched for are typically so short that you're gonna hit every cache line a
534.
▲
by
sltkr
12y ago
Sure, but I imagine there is some correlation.
535.
▲
by
sltkr
12y ago
If you're curious why it works that way, you should read "The Development of the C Language" by Dennis Ritchie: http://cm.bell-labs.com/who/dmr/chist.html The short version is that in the early days
536.
▲
by
sltkr
12y ago
> attempting to ascertain whether "lambda:0" is really the shortest way to make an empty object in python... In what sense does "lambda:0" create an empty object? And how is it better than "object()"?
537.
▲
by
sltkr
12y ago
I think the problem with that is that subs like /r/thefappening popping up by default is kind of a PR nightmare. From the perspective of attracting new users it's great, though.
538.
▲
by
sltkr
12y ago
Sure, but more radicial OO languages like Smalltalk were full of getters/setters too (e.g. in Smalltalk all member variables are private, so getters/setters are the only way to access those) so it makes sense to think that this wa
539.
▲
by
sltkr
12y ago
It's Bejeweled for nerds, essentially.
540.
▲
by
sltkr
12y ago
> The new rule is that /a/g/x can not import /a/internal/y. As I understand it, /a/g/x CAN import /a/internal/y, because /a/g/x is in the directory tree that star
More ›