Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Sean1708
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
391.
▲
by
Sean1708
9y ago
How does the saying go? Something like "security through obscurity isn't security"?
392.
▲
by
Sean1708
9y ago
Also the link in this paragraph: > The source code for the examples in this tutorial can be found at the Github repository here - https://github.com/triestpa/You-Should-Learn-Rege has a `href` of `""` whic
393.
▲
by
Sean1708
9y ago
As far as I'm aware any user (regardless of whether they have root) can install/update/delete packages when Nix is run in multi-user mode[0]. [0]: https://nixos.org/nix/manual/#ch-nix-security
394.
▲
by
Sean1708
9y ago
Surely the common case is that you don't want to search generated files? Or at least I personally am almost never interested in generated files because they're not the ones I'm going to be changing/doing stuff with.
395.
▲
by
Sean1708
9y ago
That sounds like a challenge (but I've goofed off work enough for one day so they'll have to be mediocre solutions): set(range(2, MAX_NUM)) - {j for i in range(2, MAX_NUM) for j in range(2*i, MAX_NUM, i)} Or to put it in th
396.
▲
by
Sean1708
9y ago
To be fair if you go to the main website it does give you that information, I feel like it would be redundant to put it on every single page.
397.
▲
by
Sean1708
9y ago
Really? I've literally never written (or at least I don't ever remember writing) a case statement without either specifying every possible value or adding a meaningful default case.
398.
▲
by
Sean1708
9y ago
Just FYI, not all undefined behaviour can be detected at compile time using current C semantics. I'm very very in favour of cracking down on undefined behaviour and changing things from undefined to implementation-defined and stuff lik
399.
▲
by
Sean1708
9y ago
> the fraction of the code that just changed. I.e. all of the code that changed, which is a fraction of the total codebase.
400.
▲
by
Sean1708
9y ago
Maybe I'm being really naive here but (other than all being Asian countries) what attributes do China, Japan, and Korea all share that Western countries don't?
401.
▲
by
Sean1708
9y ago
Which is great in theory, but what was intending to ask was are there any actual examples of JITed programs which beat C by a large margin? Because, as I say, I've only ever seen ones which are comparable to C.
402.
▲
by
Sean1708
9y ago
In my opinion nano's biggest strength is that complete CLI beginners can use nano with almost 0 prerequisite knowledge. No reading man pages or tutorials, no accidentally hitting a key then having absolutely no idea how to get help, ju
403.
▲
by
Sean1708
9y ago
> it can bite C's shiny metal ass Can it actually? I've certainly seen benchmark's where a JITed program is comparable/marginally faster than a C program, but I've never seen one where it outright trounces C.
404.
▲
by
Sean1708
9y ago
To be fair most of it was quite interesting, but those last two paragraphs felt really out of place.
405.
▲
by
Sean1708
9y ago
> Ah, yes, the age old Unix trope of, "it's not the system, it's the user's fault" Except that example could also happen on Windows.
406.
▲
by
Sean1708
9y ago
Wikipedia says that Windows accounts for well over 70% of all desktop use[0], I personally wouldn't call that a 3-way split. [0]: https://en.wikipedia.org/wiki/Usage_share_of_operating_syste...
407.
▲
by
Sean1708
9y ago
To be fair, I've only ever seen this in expensive restaurants.
408.
▲
by
Sean1708
9y ago
> It notably involves the M-word This might be a horrendously stupid question, but what is the "M-word"? The only m-word introduced up until that point is "moment" but that's obviously not it. I was thinking
409.
▲
by
Sean1708
9y ago
According to Wikipedia[0] > Early versions of MINIX were created by Andrew S. Tanenbaum for educational purposes. Starting with MINIX 3, the primary aim of development shifted from education to the creation of a highly reliable and self
410.
▲
by
Sean1708
9y ago
Isn't that what the --porcelain option[0] is for? And for commands that aren't porcelain, what's wrong with --oneline or --format? [0]: https://stackoverflow.com/questions/6976473/what-does-the-te...
411.
▲
by
Sean1708
9y ago
Out of interest, what do you mean by walled garden in this case?
412.
▲
by
Sean1708
9y ago
> Aren't they teaching this stuff anymore? They quite possibly are, but I didn't do a CS degree so I wasn't sure whether it was a standard thing to learn or not (hence "maybe" rather than "definitely").
413.
▲
by
Sean1708
9y ago
I actually think this would be a very good interview question for someone who would be working on performance critical C++ software (maybe not for an entry-level position though), branch-prediction is something that anyone working in that d
414.
▲
by
Sean1708
9y ago
Your link doesn't seem to work for me, but I presume you're talking about Reflections On Trusting Trust[0]? [0]: https://www.ece.cmu.edu/~ganger/712.fall02/papers/p761-thomp...
415.
▲
by
Sean1708
9y ago
I think having to have that special git alias just bugs me as being a bit unnecessarily complex, but different strokes for different folks I suppose. FWIW I don't actually use stow, I just wrote a simple Python script to do it[0]. It d
416.
▲
by
Sean1708
9y ago
> very likely to be lower than 4% Where in the article does it say that? I can see > Studies from several nations, including the U.S., conducted at varying time periods, have produced a statistical range of 1.2[4] to 6.8[6] percent
417.
▲
by
Sean1708
9y ago
What's the advantage of that? It looks like a lot of effort, especially each time you add it to a new pc.
418.
▲
by
Sean1708
9y ago
Your first list is full of things which would be difficult for a team of experts dedicated to tackling that problem to solve. Your second list is full of things which could feasibly be tackled by a single hobbyist. Are you really that surpr
419.
▲
by
Sean1708
9y ago
Looks like it: In [1]: %%timeit x = np.ones(100000000); y = np.ones(100000000) ...: np.add(x, y, out=x) ...: np.add(x, y, out=x) ...: 1 loops, best of 3: 287 ms per loop In [2]: %%timeit x = np.ones(100000000); y =
420.
▲
by
Sean1708
9y ago
You're going through the array twice whatever you do (once when multiplying by two then a second time when adding the arrays together), Python/NumPy isn't clever enough to figure out that it can be done in a single loop.
More ›