Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
klodolph
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
901.
▲
by
klodolph
3y ago
What advantages does this system provide? Could you give a motivating example? Bazel’s BUILD.bazel scripts are restricted, but that part is the middle of a “sandwich” which handles the 90% use cases. If you want unfettered execution, you ge
902.
▲
by
klodolph
3y ago
Are you being serious, or is this an elaborate joke? My experience with build systems is that, by going through the pain of trying to implement your own build system with some of the same desiderata as Bazel (reliability, performance), you
903.
▲
by
klodolph
3y ago
These days we have Starlark, which is the core part of Python, modified to be completely hermetic & deterministic (by removing some things and changing others), and modified to support parallel execution. It is very nice to work with, s
904.
▲
by
klodolph
3y ago
The language itself is, in many ways, worse than the shell scripts it replaced with autoconf.
905.
▲
by
klodolph
3y ago
> I’ve encountered it directly multiple times, so I’m feeling slightly gaslighted. Could you elaborate on this? It’s just not something I’ve ever witnessed, and I’ve never heard any direct accounts of it, so I would be very interested in
906.
▲
by
klodolph
3y ago
> In a ponzi scheme, money is deliberately directed to early entrants to cover the conscious absence of any mechanism to produce actual value. I don’t think the “deliberate” part is particularly important. It sounds like you disagree. Th
907.
▲
by
klodolph
3y ago
> A ponzi scheme is fraud in which belief in the success of a nonexistent enterprise is fostered by the payment of quick returns to the first investors from money invested by later investors. If you’re going to copy/paste a dictiona
908.
▲
by
klodolph
3y ago
“Local minimum” is a great way to put it. I recognize that CMake has done a lot to make people’s lives easier, but it has so many design flaws that the entire design seems almost purposefully user-hostile. I know it’s not hostile on purpose
909.
▲
by
klodolph
3y ago
> prohibits "unfriendliness" You’re inverting what is written in the CoC and reporting that here. The CoC does not prohibit unfriendliness. I am guessing that the reason “be friendly and patient” is in the CoC is because projec
910.
▲
by
klodolph
3y ago
The “hey guys” thing is always some friend-of-a-friend who says it happened. I’m sure there are receipts for it happening somewhere, but it sounds like it’s uncommon. The CoC is mainly used to eject serial harassers out of a community, as f
911.
▲
by
klodolph
3y ago
Do you have specific complaints about this CoC?
912.
▲
by
klodolph
3y ago
In this scenario, we are comparing two cars, a bicycle, a jet ski, and three types of airplane. Yes, the cars are similar, within that context. Many languages, like Python and Java, do not have an array slice type. And the similarities betw
913.
▲
by
klodolph
3y ago
The idea of latent meanings encoded into CoCs is unfamiliar to me, and I don’t find this line of reasoning credible. Words are imperfect, and there are multiple ways to interpret CoCs. But CoCs provide additional transparency, relative to t
914.
▲
by
klodolph
3y ago
Prior to today, the rules were unwritten, which means that any enforcement was somewhat arbitrary.
915.
▲
by
klodolph
3y ago
Yes, this thread feels like stepping into bizarro land. I see a lot of people equating the presence of a CoC with some kind of 1984-newspeak future. This reminds me of the complaints about seatbelts. Yeah, every once in a while, a seatbelt
916.
▲
by
klodolph
3y ago
> Technically, their only solid common point is that they address contiguous spaces in memory. That’s a very major thing to have in common. Definitely not a minor detail, for sure.
917.
▲
by
klodolph
3y ago
Sure, there may be a right way to say this. I have a particular axe to grind when it comes to the word “ownership” of objects in programming. In C++ and Rust there is a very natural sense of ownership in that the owner of an object is who m
918.
▲
by
klodolph
3y ago
To be honest I kinda hate the reply to “X is like Y” comment when someone says “X is not like Y because of difference Z”. It's just… so pedantic. The whole reason we say “X is like Y” instead of “X is the same as Y” is because X is n
919.
▲
by
klodolph
3y ago
The type in Go does not carry ownership information. It is not a useful distinction to say that slices are "owned" in Go.
920.
▲
by
klodolph
3y ago
Const are build-time constants, they are not necessarily the same value across all build configurations.
921.
▲
by
klodolph
3y ago
I guess, but that seems expected to me at this point, and consistent within the semantics of how slices and maps work (and other values). Maps are kind of like type map *struct{ len int; ... } Slices are kind of like type sli
922.
▲
by
klodolph
3y ago
You can const x = min(a, b) assuming a and b are const.
923.
▲
by
klodolph
3y ago
Copy operations in Go are normally destination first, source second. This includes builtins like copy() and library functions like io.Copy(). Making it "src, dest" would make this one case the opposite of all the others. Note that
924.
▲
by
klodolph
3y ago
Making them builtins allows them to work as you’d expect with cases like, func clamp(x float64) float64 { return max(0, min(1, x)) } With ordinary functions, the arguments are assigned types too soon, and you get intege
925.
▲
by
klodolph
3y ago
Sure, although as a Go user, the behavior described is exactly what I’d expect. These new functions are no different from functions that you could write yourself.
926.
▲
by
klodolph
3y ago
The skill you are describing is usually called “absolute pitch”—someone without absolute pitch cannot easily tell the difference between A=440 and A=432 in isolation (to say nothing of something like A=442). > And I think every musician
927.
▲
by
klodolph
3y ago
Ordinary, relative pitch helps a lot learning new songs, and it is much more learnable. If you know what key you are in, and you can hear the intervals in a melody, you can play it back without needing absolute pitch to do it. > (And act
928.
▲
by
klodolph
3y ago
It’s hard to deny how useful AP is for people who transcribe music.
929.
▲
by
klodolph
3y ago
From what I’ve heard, absolute pitch can be distracting in certain scenarios, like if you are listening to something which does not use A=440 (more common than you might think, just imagine that some instrument in a band is flat, and then e
930.
▲
by
klodolph
3y ago
This is a misuse of the word “disingenuous”. “Disingenuous” is when someone pretends to be stupid, and there’s no valid reason to use that word here. “Disingenuous” is probably the most cliché and tired way to add unnecessary vitriol to a c
More ›