Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kortex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
82 ms
·
901.
▲
by
kortex
4y ago
> The point of duck typing was that you don't have to write all that boilerplate and stuff just works as long as the right functions are there. As long as your definition of "just works" is "run, crash, fix something,
902.
▲
by
kortex
4y ago
> And it's pretty half baked on top (e.g. `a: int = "foo"` goes through the python interpreter without even a warning). Well, yeah, because that's a compile-time check, not a runtime check. Use Pydantic if you want ru
903.
▲
by
kortex
4y ago
> Conceptually, though, it can be treated as an error monad. Exceptions are very much not a monad , that's one of the biggest pain points about them. You can't map over exceptions. They are a control flow statement.
904.
▲
by
kortex
4y ago
Rust absolutely nails the error handling department. Python style exceptions, pros: - rapidly drop through layers when needed to get to a stable entry point - easy to add errors deep in the stack Cons: - basically a limited GOTO, therefore
905.
▲
by
kortex
4y ago
Configuration hoisting and library layout to avoid circulars is tricky. The way I structure my libs, lets say ./foo is my main lib, I'll have ./foo/types/ .py with most of my primary schema models (I use Pydantic he
906.
▲
by
kortex
4y ago
For me, type annotations has been the single biggest ergonomics improvement to come to python. It's a very simple type system compared to many other languages (definitely simpler than rust, haskell, scala, java, and c++, I find it easi
907.
▲
by
kortex
4y ago
> Well, no. Boredom comes from within. When you have too many thoughts, or too few, to focus, boredom happens. > TL;DR: Lay off virtual sugar, digitally detox, open the mind… - appreciate interestingness - hang out with geek
908.
▲
by
kortex
4y ago
Excellent comment. Makes me feel "less guilty" for being bored to bits by Blade Runner (and 2001, similarly). I "feel guilty" because I consider myself a big sci fi fan, and while they are visually brilliant movies, they
909.
▲
by
kortex
4y ago
Those master cylinders are of specific dimensions, variable length and probably mass as well. I wonder if one could analyze the audio frequency spectrum, and/or mechanical impulse response, to deduce the length of the master and work o
910.
▲
by
kortex
4y ago
Drilling is tamper-evident though. The big win of picking/shimming is that it is stealthy and leaves no sign of entry. Otherwise, just "pick" it with a Ramset, sledgehammer, c4...
911.
▲
by
kortex
4y ago
There's no one gene, but aside from very specific things, there's hardly one gene for any condition, but ADHD is highly heritable, and we already know several strong candidates. DRD4-R7, COMT Val158Met, TPH2, a couple others h
912.
▲
by
kortex
4y ago
Nope. ADHD is a distinct neurological condition that we can pick up on with PET scans and the like. It sure as hell can be kryptonite for ADHDers - basically limitless novelty on tap - but it cannot cause ADHD. Source: had adhd long before
913.
▲
by
kortex
4y ago
I love the performance of blake3 but my understanding is it's still a bit of the new kid on the block. Blake2 is a SHA-3 finalist so should be perfectly sufficient, plus it has variable digest sizes, reasonably fast, and other nice fea
914.
▲
by
kortex
4y ago
That sounds frustrating, however easy_install hasn't been relevant for years, and obviously 2.x is EoL. Anaconda is generally better for beginners since it manages basically everything for you. Hardly a disaster. You basically need NPM
915.
▲
by
kortex
4y ago
Have you looked at dvc www.dvc.org? Takes a little bit to figure out how you want to handle the backing store (usually s3) but then it's very straightforward. You could do a similar pattern: have a data repository and simply move the g
916.
▲
by
kortex
4y ago
That ship has long sailed. As soon as you have JS, you have the ability to transpile to JS from any language with the appropriate tooling, to say nothing of WASM.
917.
▲
by
kortex
4y ago
This is pretty sparse on citations/evidence compared to the usual HN trending fare. Some commenters are suggesting TFA is equating declining birth rate to declining sex. I don't particularly see it, they seem to be suggesting both
918.
▲
by
kortex
4y ago
I think the point isn't that a contraction is bad in general, it's that too fast of a contraction leaves an inverted demographic pyramid, which has all kinds of very bad implications. You need a certain tax base to keep services
919.
▲
by
kortex
4y ago
> Top ten lists I couldn't find any "listicle" style top N list, the closest was "top players in quantum computing" > awful generic CGI backgrounds That's pretty par for the course for this tier of channe
920.
▲
by
kortex
4y ago
Nix has some serious ergonomics issues that need to be addressed. This is dead simple by comparison. Wheels are just zip archives with some specific semantics. Like, I wanted to get into Nix but it's super daunting and there's n
921.
▲
by
kortex
4y ago
> numpy already has, like, 99% of that functionality built in in the form of structured arrays and records Respectfully, this is pretty wrong. Pandas does vastly more out of the box than numpy. Off the top of my head: I/O from over
922.
▲
by
kortex
4y ago
The original impetus seems to be from this tweet: https://mobile.twitter.com/AaronBergman18/status/15273336157... > 12oz Diet Coke contains 100mg phenylalanine, which is an indirect precursor to dopamine and no
923.
▲
by
kortex
4y ago
Why? This is just what language does - it's like a constantly evolving entropy code. Jargon emerges to concisely describe unique concepts. Hydration is a great example: it's important in the process, so it gets talked about a lot,
924.
▲
by
kortex
4y ago
> It's much easier to remember/recognize an integer based PK when troubleshooting a data problem. How often are you actually relying on memory of an ID to troubleshoot a problem? I mean sure, if you are scanning visually, it&#x
925.
▲
by
kortex
4y ago
I've bee using ULIDs in python for about a year now and so far have been super happy with them, so a) thank you for maintaining this! b) I always felt a bit uneasy about the way the spec describes the monotonicity component. Personally
926.
▲
by
kortex
4y ago
I wish we had a layer 6-ish security protocol that "just worked" the way HTTP just works. Something analogous to an ssh tunnel, where once you establish the correct keys (via a single, simple operation), clients and servers can ju
927.
▲
by
kortex
4y ago
A for loop is easy: everyone can conceptualize doing a process N times. A map is not as easy of a concept in some ways (it's more abstract, you are taking N elements of X to N elements of Y). But a map is simpler than a for loop, bec
928.
▲
by
kortex
4y ago
You are still talking about dozens/hundreds of hours of work. Better way would be to embarrassingly parallelize the problem. Get large groups of people to flip coins and collimate the result.
929.
▲
by
kortex
4y ago
The keyword to look for is usually Auto-NUC (non-uniformity correction) or just auto-calibrate. Usually in terms of minimum time and/or temp change.
930.
▲
by
kortex
4y ago
Thanks, but it actually has to be a logical data stream. It's not actually drone GPS, but it's analogous. It's definitely a thing that exists, I've seen stackoverflow issues talking about working with containers that h
More ›