Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jmull
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
511.
▲
by
jmull
2y ago
> nor the objective of the post I wouldn't know, I just assumed of the objective is to create a useful password generator. These options aren't for increased entropy, but to satisfy restrictions real-world sites have on passwor
512.
▲
by
jmull
2y ago
I've been using a similar diceware generator for years. I think I learned about it from Cryptonomicon? Consider adding the following options: -include-captital (default yes) -include-lower (default yes) -include-symbol (d
513.
▲
by
jmull
2y ago
Don't fall for the "us vs. them" distraction. This is about seizing power, not Democrats and Republicans.
514.
▲
by
jmull
2y ago
It works for red China, why not the USA too? BTW, it's not Trump we're going to have to worry about. It's the next guy, who will have Trump imprisoned or executed for treason. This one won't be a blunderer, though, and w
515.
▲
by
jmull
2y ago
Not a big surprise. They took a big swing but it seemed pretty clear it was a big miss. Props to the management for keeping everyone employed even as the company and product died.
516.
▲
by
jmull
2y ago
I liked svelte quite a bit, but I wouldn't recommend it for most projects. Whatever version of svelte you use will be dead and abandoned soon, so if you have any hope for a long-lived project, you're jumping on the update treadmil
517.
▲
by
jmull
2y ago
I'm with you on this. I think this is a widely desirable pattern. If it's uncommon it's because of how poorly traditional dbms's address it. I suspect as server-side sqlite matures, this pattern will explode in popularit
518.
▲
by
jmull
2y ago
> Do you maintain a "global" db for fields with unique constraints? Yes. > But then when those fields are updated you need to manage this at the application level Yep. BTW, that's not really so different from a traditio
519.
▲
by
jmull
2y ago
The "Whys" aren't strong. #1 makes the point that once you use it in production you start needing production things, like backups and horizontal scaling, and those can get complicated, but for non-sqlite dbs you can use a man
520.
▲
by
jmull
2y ago
OK, here it is: int addOne(int value) { value += 1; return value; } value is clearly mutable, yet not state. State is a value you can refer to later. Here, "value" doesn't outlive the function, so
521.
▲
by
jmull
2y ago
sqlite supports concurrent access. It's optional, though. It also requires help from the os/file system (that's usually only an issue in specific contexts). So... you can get your ducks in a row in terms of checking sqlite do
522.
▲
by
jmull
2y ago
I think you should take a minute to think about it. Let me turn it around on you: Give me a simple example in code of something that is mutable and not state. I'll come back later to check your answer and provide one of my own, if nece
523.
▲
by
jmull
2y ago
I don't think this kind of article is that helpful. There are aspects of a valid point in there, but it's buried and confused. That builder pattern makes me sick to my stomach. Also, it starts with claiming state is part of the pr
524.
▲
by
jmull
2y ago
int const N = 1000000000; for (x0 = 0; x0 != N; x0++) for (x1 = 0; x1 != N; x1++) ... for (x9 = 0; x9 != N; x9++) -- do something --; Rule 1 would disallow this. Probably other rules as well, depending on t
525.
▲
by
jmull
2y ago
> I find it amazing people still feel the need to talk about it. From what I see, not very many people understand the limitations of LLMs (e.g., scroll up and down the very page you're reading now). This stuff probably needs to be t
526.
▲
by
jmull
2y ago
No, that's not really true. Directly, "the thin blue line" expresses the idea that the police are what separates society from chaos. It doesn't inherently suggest police are justified in acting outside the law themselves
527.
▲
by
jmull
2y ago
To me, abstracting away the engine is not a goal. (Generally, it's pointless -- the various engines work in different ways and offer different features. While there's a bunch of stuff that widely common, that's also the stuff
528.
▲
by
jmull
2y ago
Generally, ORM's try to present a high-level abstraction of your data and data model than the engine does natively. That makes it the ORM's responsibility to implement the abstraction in a good way. Problems come in when the "
529.
▲
by
jmull
2y ago
Yes, any such transpiler would certainly need to be engine aware (for multiple reasons). Right off the bat, the output needs to be in a syntax the engine accepts, and there are all kinds of differences from engine to engine, version to vers
530.
▲
by
jmull
2y ago
Are there a lot of dev tools that run on linux but not on Macs?
531.
▲
by
jmull
2y ago
I like it, but I'm not sure it's worth the trouble of further expanding an ever-ballooning extended family of SQL syntaxes. Of course, SQL has numerous issues, both in an absolute sense and relative to what we've come to expe
532.
▲
by
jmull
2y ago
Of course not. I don't think that has anything to do with it, though.
533.
▲
by
jmull
2y ago
> this might be the most requested feature in SQL Don’t forget to take into account the people not requesting this feature. A lot of them don’t think this is worth the changeover.
534.
▲
by
jmull
2y ago
I don’t think Tanenbaum’s distinction between micro-kernel and monolith is useful or important. He has monolith as a single binary running as a single process, while micro-kernel is multiple binaries/processes. But either way these bot
535.
▲
by
jmull
2y ago
The drama, though, is due to personalities. A directive from Linus on the technical roadmap isn't going to solve anything. It could declare someone the "winner" in this particular thread or this particular issue, but lets the
536.
▲
by
jmull
2y ago
> and because the constitution hasn’t prevented state censorship in the US[2-4] That the constitution hasn't been upheld to a perfect standard all the time doesn't mean it doesn't codify freedoms. Also, precisely what the
537.
▲
by
jmull
2y ago
> deeply flawed I can't even guess what you might be referring to.
538.
▲
by
jmull
2y ago
To me, asciidoc is effectively another markdown variant, but one that is less readable and considerably less interoperable than other flavors. I'd rather pair markdown with an independent template language, if I need programmability. (
539.
▲
by
jmull
2y ago
> If this article is anything to go by, Zig makes all of this stuff difficult to impossible. Well, having done it, it’s not.
540.
▲
by
jmull
2y ago
> But in non trivial cases, the parameter can be passed all over the place Like pretty much any parameter in any language? That's abstraction. Re jsonStringfy, that's a way for a type to control how its own instances are serial
More ›