Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
0x62c1b43e
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
0x62c1b43e
4y ago
What’s even worse is crypto meaning cryptocurrency instead of cryptography now. Now I can’t talk about “crypto” without sounding like I’m going to fill up someone’s spam folder.
2.
▲
by
0x62c1b43e
4y ago
I saw metrics like this a while ago but it’s still hard to wrap my head around. We rarely see this enormous portion of the animals that outnumber us so much. I grew up on a farm in the rural western US, and our few cattle lived in nice litt
3.
▲
by
0x62c1b43e
4y ago
If I were going to do this, I’d probably go all the way to using ReScript, but it’s a nice idea. I’m quite surprised it’s not called ToffeeScript though.
4.
▲
by
0x62c1b43e
4y ago
The compilation speed of ReScript is also great
5.
▲
by
0x62c1b43e
4y ago
C on its own does feel like a simpler language though I think it’s true that the semantics taken literally undermine it (the generated assembly can be really surprising sometimes). I do trust a given Rust program to have a specific runtime
6.
▲
by
0x62c1b43e
4y ago
> The container/heap is more useful, but it could benefit more from adding an optimization for inlining interface method calls when Go compiler knows the underlying implementation behind the interface. This is exactly what generics
7.
▲
by
0x62c1b43e
4y ago
It’s not the only one. Some other packages that used workarounds like interface{} or other things to work around the lack of generics were container/{heap,list,ring}, sort, golang.org/x/sync/singleflight, /x/ex
8.
▲
by
0x62c1b43e
4y ago
Those are good points about some of them being nontrivial. Though part of why they’re optimized and in the stdlib in the first place is because they’re such common patterns. So without them people would end up writing trivial, unperformant,
9.
▲
by
0x62c1b43e
4y ago
By that logic we should remove bytes.Clone, strings.Split, bytes.Equal, strings.TrimLeftFunc, etc. from the standard library.
10.
▲
by
0x62c1b43e
4y ago
*lately It pops up on /r/golang sometimes. I don’t think it gets taken super seriously but there’s usually at least someone bringing it up.
11.
▲
by
0x62c1b43e
4y ago
Yeah, and I don’t tend to keep this around quantitatively, but I’ve certainly run into bugs in Go programs that would’ve been categorically prevented with generics. Of course I want sync.Map to use generics instead of interface{}. How cou
12.
▲
by
0x62c1b43e
4y ago
Generics consistently showed up as one of the most desired features (if not the most desired) by working Go developers in the previous developer surveys, so I think it makes sense that the Go team felt the ecosystem saw much value in it rel
13.
▲
by
0x62c1b43e
4y ago
It’s hard to be objective because of filter bubbles, but I’ve seen it a lot on Reddit last.
14.
▲
by
0x62c1b43e
4y ago
I understand, but it shows that compiler performance is the same as before generics now, so any performance hit is gone.
15.
▲
by
0x62c1b43e
4y ago
I’m gonna be that guy, but do you have sources for any of this? That link shows that compiler performance is the same as before generics, for instance. Are there more bugs in the compiler? Is readability reduced, and having an effect on pac
16.
▲
by
0x62c1b43e
4y ago
But if adoption is “very low”, then it’s not much pollution, is it?
17.
▲
by
0x62c1b43e
7y ago
A lot of people use PlusCal, which is basically pseudocode that compiles to TLA+. Depending on what you're modeling, PlusCal or directly writing TLA+ might be a better fit.
18.
▲
by
0x62c1b43e
8y ago
Reminds me of https://programmingisterrible.com/post/139222674273/write-co...
19.
▲
by
0x62c1b43e
8y ago
They have a section discussing why this paper might seem to contradict other studies showing a causal link: > This outcome seems at odds with findings from randomized controlled trials in clinical and population samples indicating that r
20.
▲
by
0x62c1b43e
8y ago
https://examine.com/supplements/ashwagandha/?PageSpeed=noscr... If you haven't encountered it, examine.com is a good resource; they curate research on supplements. In the Human Effect Matrix, in the Anxiety e
21.
▲
by
0x62c1b43e
9y ago
Could you share what preprocessors/templating languages you've used with CloudFormation?