Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jchw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
57 ms
·
661.
▲
by
jchw
1y ago
I believe sqlc can also connect to the database for type inference now too, fwiw.
662.
▲
by
jchw
1y ago
1. I can't tell you how unconvinced I am with the error being less confusing. A good error message tells you what's wrong and ideally what to do to remedy it if possible... and to me there isn't really a practical difference
663.
▲
by
jchw
1y ago
Well, it hurts that it isn't the default. The README still tells you to set the environment variable, it just isn't the "default" way to do things. In my opinion it would be better to entirely remove support for connecti
664.
▲
by
jchw
1y ago
The way I prefer to use sqlc is in combination with a schema migration framework like goose. It actually is able to read the migration files and infer the schema directly without needing an actual database. This seems to work well in produc
665.
▲
by
jchw
1y ago
Speaking of Go, if you want compile-time type checking like what SQLx offers, the Go ecosystem has an option that is arguably even better at it: https://sqlc.dev/ It has the advantage that it implements the parsing and type
666.
▲
by
jchw
1y ago
There is no objectively "best" way to render vector typefaces to a raster, but that's not because all of the options are equally correct, it's because options that are more accurate to a font might look subjectively wors
667.
▲
by
jchw
1y ago
No, no. It's just that boring glue software is the majority of all software . Seriously, it is. It's what most people here are writing most of the time. Rust is surely good for when you are doing something vastly more complicat
668.
▲
by
jchw
1y ago
In that case, when we're just talking about money, it's pretty easy to reason about this then, no? You can literally determine how much risk you're willing to take on by estimating what you might have to lose from such a bug
669.
▲
by
jchw
1y ago
I am saying in no uncertain terms that most people here, and by most I am not talking simple majority stuff, have literally not once worked on software that is mission critical by any meaningful definition of "mission critical". E
670.
▲
by
jchw
1y ago
Well, because it literally distorts the glyphs and thus doesn't actually look right, it would be like if some of the pixels on your screen were inexplicably the wrong color due to a color management issue. In some cases the distortio
671.
▲
by
jchw
1y ago
See the jump from 17pt to 18pt? That's wrong. (Also, the small sizes are just completely obliterated IMO.) Font outlines are scalable; they should have the same relative weight no matter what pt/px size you render them at, and the
672.
▲
by
jchw
1y ago
Look, this is pointless. I'm not learning anything new when you tell me that it can and will happen. How will it happen and how much will it happen? Hence linking to Uber's case study on the issue. The answer? Not that much. Ube
673.
▲
by
jchw
1y ago
To me one of the most influential pieces of writing about subpixel rendering and in particular an exploration of the ways Microsoft got it wrong was the writings by the late developer of Anti-Grain Geometry, Maxim Shemanarev (R.I.P.) htt
674.
▲
by
jchw
1y ago
With the notable inclusion of Google where the SRE team is usually separate from the SWE team (but it wasn't for my particular case) I actually was always doing operations and code at all of my jobs at least at points and usual
675.
▲
by
jchw
1y ago
Aside from the type system bypass described in the article though, this is basically no different from the status quo for virtually all languages with free threading that aren't Rust. I argue that while everyone is fallible, experience
676.
▲
by
jchw
1y ago
But correctness is not binary, it's more like a multidimensional spectrum. Your choice of programming language has some influence, as does standards and conventions, the ecosystem of your programming language, use of automated tooling
677.
▲
by
jchw
1y ago
Rust can yield a higher quality solution, but we can't make a perfect solution, we can only approach perfection. If we want to go further, we could introduce formally-proven code, too. Personally I'm interested in the intersecti
678.
▲
by
jchw
1y ago
I think the true answer is that the moment you have to do tricky concurrency in Go, it becomes less desirable. I think that Go is still better at tricky concurrency than C, though there are some downsides too (I think it's a bit easier
679.
▲
by
jchw
1y ago
This comes up now and again, somewhat akin to the Rust soundness hole issue. To be fair, it is a legitimate issue, and you could definitely cause it by accident, which is more than I can say about the Rust soundness hole(s?), which as far a
680.
▲
by
jchw
1y ago
Yeah. Sure, your body can adjust how much calories are burned when you're idle, but it can only do so much. If you're burning thousands of calories on daily activity, it's gotta come from somewhere.
681.
▲
by
jchw
1y ago
I don't really expect you to respond but if this is true why not use a CLA that guarantees the code stays open source? The FSFE FLA exists and is prominently used (though optional) by KDE.
682.
▲
by
jchw
1y ago
Ah yeah, they have a CLA that forces you to give them a carte blanche copyright license to contributions and they also restrict dependencies to be ones with permissive licensing too. Pretty obvious what's going on here. I hate seeing i
683.
▲
by
jchw
1y ago
I think it's worth considering the possibility that imperative style is just more approachable than functional style. On one hand, some tasks that are basically trivial few-line solutions in a good functional programming language ballo
684.
▲
by
jchw
1y ago
> I'll make a claim -- does anyone disagree (?) -- the incentives are not pointed in the right direction. Unless developers are paying directly for the functionality they want, that's misalignment. So enshittification seems pro
685.
▲
by
jchw
1y ago
It hasn't been a huge deal: I'm still getting a decent number of hours doing work on battery on my Framework 16, and usually I can plug into AC for a little bit if it gets too low. That said thanks for the information; I'll h
686.
▲
by
jchw
1y ago
Could it really be that simple?! Holy shit. It really is that simple. Thank you.
687.
▲
by
jchw
1y ago
Honestly, this is a weak point of Zed IMO. I just find it a bit confusing to deal with. I don't know exactly how to get it to jump to the location of a specific block in the multi-buffer view, e.g. a Find in Files view. I double click
688.
▲
by
jchw
1y ago
I am really, really starting to like Zed. I noticed recently that it now respects my EditorConfig files, which was one of my biggest gripes before recently. In general almost everything that I didn't love about Zed has been fixed. I ha
689.
▲
by
jchw
1y ago
Oh this is pretty interesting. One thing that's also interesting to note is that the Azure Blob Storage version of GitHub Actions Cache is actually a sort of V2, although internally it is just a brand new service with the internal vers
690.
▲
by
jchw
1y ago
I'm not an expert but I've read enough to know this is not a serious concern. If you were to see a reading above 2.6 pCi/L from a one-time test, that would be more concerning, but what I'm actually seeing is occasional j
More ›