Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kccqzy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
811.
▲
by
kccqzy
10mo ago
Oh that’s interesting. I didn’t know that! I personally don’t use fractional scaling any more.
812.
▲
by
kccqzy
10mo ago
By default Gnome doesn’t let you choose any fractional scaling in the UI because it has some remaining TODOs on that front. So from the UI you choose 100% or 200%. But the code is there and it works if you just open a terminal and type a co
813.
▲
by
kccqzy
10mo ago
The word you are looking for is not “rent” but depreciation.
814.
▲
by
kccqzy
10mo ago
You have misunderstood what it means to make invalid states unrepresentable. data UnvalidatedFoo = UnvalidatedFoo { unvalidatedOmfg :: String, unvalidatedBar, unvalidatedBaz :: Int } data ValidatedFoo = Va
815.
▲
by
kccqzy
10mo ago
> That sounds eerily similar to the "OOP is for large teams" defence False. They are only similar to you. Haskell is a pure functional programming language and it is very much noun-based. Type classes like functors and monads a
816.
▲
by
kccqzy
10mo ago
The kind of noun-based programming you don’t like is great for large teams and large code bases where there is an inherent communication barrier based on the number of people involved. (N choose 2 = N*(N-1)/2 so it grows quadratically.
817.
▲
by
kccqzy
10mo ago
Strong disagree about laziness. If the dev is lazy they will not make a path for it. When they are not lazy they actually make a path and write a comment explaining why they think this is unreachable. Taking the time to write a comment is n
818.
▲
by
kccqzy
10mo ago
What do you mean docker doesn’t help you with desktop apps? I run complicated desktop apps like Firefox inside containers all the time. There are also apps like Citrix Workspace that need so specific dependency versions that I’ve given up o
819.
▲
by
kccqzy
10mo ago
And you can also argue how much time and energy is being wasted by committing to a stable ABI such that the library cannot meaningfully improve. Remember that even struct sizes are part of the ABI; so you either cannot add new fields to a s
820.
▲
by
kccqzy
10mo ago
That's not my point. My point is that if executable A depends on library B, and library B does not provide any stable ABI, then the package manager will take care of updating A whenever updating B. Windows has fanatical commitment to A
821.
▲
by
kccqzy
10mo ago
Your tone makes it sound like this is a bad thing. But from a user’s perspective, I do want a distro to package as much software as possible. And it has nothing to do with user freedom. It’s all about being entitled as a user to have the wo
822.
▲
by
kccqzy
10mo ago
When you write such code your mental model is C strings, not fixed-width strings, the intended use case for strncpy.
823.
▲
by
kccqzy
10mo ago
I’m not sure why you made the logical leap from having all code stored in a single repo to updating/deploying code in lockstep. Where you put your code (the repo) can and should be decoupled from how you deploy changes. > you will h
824.
▲
by
kccqzy
10mo ago
You don’t do that by accident. Fixed-width strings are thoroughly outdated and unusual. Your mental model of them is very different from regular C strings.
825.
▲
by
kccqzy
10mo ago
You can look at the Earley parser. It handles left recursion well well using a method that’s basically memoization.
826.
▲
by
kccqzy
10mo ago
That’s actually an intentional nudge to make the software packaged by the distro, which usually implies that they are open source. Who needs ABI compatibility when your software is OSS? You only need API compatibility at that point.
827.
▲
by
kccqzy
10mo ago
I love Garamond as a style but it wouldn’t be my choice for legibility. Most renditions of Garamond have too little x-height.
828.
▲
by
kccqzy
10mo ago
Yeah right. Times New Roman rendered using late 1990s software on monitors of that era certainly looked awful. These days text on screens can reasonably look like print.
829.
▲
by
kccqzy
10mo ago
Yeah but fixed width strings don’t need null termination. You know exactly how long the string is. No need to find that null byte.
830.
▲
by
kccqzy
10mo ago
That’s because Python is a bad language for writing parser combinators and parsers based on them. Try Haskell.
831.
▲
by
kccqzy
10mo ago
I've been looking at the BMW Neue Klasse electric vehicles. They seem to exceed almost all other western competitors when it comes to the metrics I care about (mainly charging speed). I do think it's the most promising European br
832.
▲
by
kccqzy
10mo ago
How about another way, which is memoization: at each position in the source code we never attempt to parse the same production more than once. This solves infinite looping as discussed by the author because the “loop” will be downgraded by
833.
▲
by
kccqzy
10mo ago
Google never sells your data to anyone. Why would they sell the primary data that they themselves use to determine how to show you ads? Doing so means a deep-pocketed new advertising platform can just buy data from Google and get started wi
834.
▲
by
kccqzy
10mo ago
Splitting trains is not uncommon. Generally for Amtrak there will be two conductors one for each part of the train. On the platform both conductors will tell you which part of the train goes where. They often check tickets more frequently t
835.
▲
by
kccqzy
10mo ago
> Smartphone and dedicated digital still cameras aren't as drastic, but when zoomed in, or in low light, faces have a "painted" kind of look. My theory is that this is trying to do denoising after capturing the image with
836.
▲
by
kccqzy
10mo ago
That someone actually running things is usually called COO, or Chief Operating Officer. That person operates the company.
837.
▲
by
kccqzy
10mo ago
I remember using some photo editing software (Aperture I think) that would allow you to customize the different coefficients and there were even presets that give different names to different coefficients. Ultimately you can pick any coeffi
838.
▲
by
kccqzy
10mo ago
I quote from Spanner docs at https://docs.cloud.google.com/spanner/docs/true-time-externa... > External consistency states that Spanner executes transactions in a manner that is indistinguishable from a system
839.
▲
by
kccqzy
10mo ago
That’s exactly what I’m saying but you simply provided more details. TrueTime guarantees clocks are well synchronized: and of course that means synchronized to a reasonable upper bound. It’s no more possible for clocks to be absolutely sync
840.
▲
by
kccqzy
10mo ago
If you are an engineer at Google dealing with Spanner, then you can in fact assume clocks are well synchronized and can use timestamps for synchronization. If you get commit timestamps from Spanner you can compare them to determine exactl
More ›