Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
creata
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
60 ms
·
811.
▲
by
creata
6y ago
> Reordering the character equality condition could help a tiny bit since the inequality check should be faster than the ignore case check. I think the given ordering is better: in a conjuction, you typically put the less likely condit
812.
▲
by
creata
6y ago
Roughly how would you write code to solve this particular problem in your ideal language?
813.
▲
by
creata
6y ago
Here are some more obvious modifications[1] to the author's follow-up post.[0] It runs a further 1.4x faster on my machine. [0]: https://cesarvr.io/post/rust-vs-javascript/ [1]: https://play.rust-l
814.
▲
by
creata
6y ago
> then you're doing something you shouldn't be doing. I agree! But I also think a standard library should withstand a bit of abuse from people who don't know what they're doing.
815.
▲
by
creata
6y ago
Say you're making an online game, and you need an RNG on your server. Above all, this RNG needs to be unpredictable, or someone will easily game it. Most non-cryptographic PRNGs are very predictable, so it's dangerous to use the
816.
▲
by
creata
6y ago
I feel like we're just using different definitions of implicit nullability, and by your definition, no language with value types is implicitly nullable, whereas by my definition, every language without nullable references is implicitly
817.
▲
by
creata
6y ago
I don't like your definition of "implicit nullability". Following that logic, Java integers can't be null either, and C has no implicit nullability! In practice, when we say we don't want implicit nullability, we me
818.
▲
by
creata
6y ago
In the author's defence, the "article" isn't even 50 words long.
819.
▲
by
creata
6y ago
At least we can use old.reddit.com, although I'm not sure how long that'll last.
820.
▲
by
creata
6y ago
A common analogy here is that in lots of insects, you see whole groups of non-reproductive members, and yet the idea of a "non-reproductive worker insect" hasn't "evolved into extinction." (I'm not commenting o
821.
▲
by
creata
6y ago
> You coulda just said “yeah”. But then I'd be tacitly agreeing that it's a "bypass", when there's nothing to "bypass" in the first place. > you’re undermining my ability to determine the terms under
822.
▲
by
creata
6y ago
> Should it empower you to bypass the terms under which content you're accessing were shared? I think it's disingenuous to frame it as a "bypass". The publisher is setting out a terms of use, and I think it's bad
823.
▲
by
creata
6y ago
This is just my opinion, but I think that the software I use should empower me , the user: I don't think my software should force me to "respect the requests of the publisher", and I especially think it shouldn't restri
824.
▲
by
creata
6y ago
I think poppler is a library, not an application. Anyway, it's one of the two PDF backends for Zathura (the other being MuPDF) so it's at least included indirectly.
825.
▲
by
creata
6y ago
They claim that AES is (edit: "may be... in a few years") decipherable, and AES is used pretty much everywhere, so if they actually make a practical attack, then everything would be disrupted.
826.
▲
by
creata
6y ago
Anyone can upload stuff to the AUR, so it's only to be expected that there's some malware there. At the very top of the wiki page for the AUR[0], it warns: > Warning: AUR packages are user produced content. These PKGBUILDs ar
827.
▲
by
creata
6y ago
Do you have an example of where single-letter type parameters lead to confusion? I haven't seen one yet.
828.
▲
by
creata
6y ago
She also hosted the YouTube math channel PBS Infinite Series. https://www.youtube.com/c/pbsinfiniteseries/featured
829.
▲
by
creata
6y ago
If it's not too much trouble, can you list the software you use which doesn't work on Wayland?
830.
▲
by
creata
6y ago
Thanks. I'm aware of that, but I can't find any such efforts for Haskell in particular.
831.
▲
by
creata
6y ago
Thanks. I assumed that option would be a major footgun (since accidental copies can be very expensive) but if it works for Swift, it can't be that bad.
832.
▲
by
creata
6y ago
Are you referring to Linear Haskell[0] or some other effort? Linear Haskell can definitely express destructive updates, but IIRC it needs unsightly stuff like constructors which take continuations and method signatures along the lines of
833.
▲
by
creata
6y ago
Lean has an array type, which the docs say is implemented much like a C++ vector or Rust Vec. But data types in functional programming languages all expose an immutable interface, so what happens when someone changes the list in two differe
834.
▲
by
creata
6y ago
To Jordan Chariton exclaiming in all caps: > How are journalists supposed to chronicle history if YouTube — and others — are outlawing it? Regardless of what YouTube says, they are an advertiser-friendly entertainment website. Why in God
835.
▲
by
creata
6y ago
Why's that? I thought megacorps would love software with no strings attached: at least, they seem to love MIT- and BSD-licensed codebases, which give up pretty much everything but attribution, if I understand correctly. Is it because
836.
▲
by
creata
6y ago
If you don't mind, can you show us what this 40 LOC looks like?
837.
▲
by
creata
6y ago
Right, the homepage definitely isn't built for regular people right now. The process for getting started seems to be: go to matrix.org > click "Try Now" > get redirected to element.io > click "Open in your
838.
▲
by
creata
6y ago
Yep. It feels like the news corporations are just being greedy, but I'd like to see their side of the case.
839.
▲
by
creata
6y ago
What makes news sites so special that they, unlike every other website, get to charge Google when they are indexed, and more shockingly, that they can compel Google to index them?
840.
▲
by
creata
6y ago
Thanks for the official response; I look forward to P2P Matrix.
More ›