Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hannibalhorn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
hannibalhorn
6mo ago
Did not know this had happened, but does seem PHK (the original author of Varnish) is now with of the Vinyl Cache project, so this is not just a typical fork.
2.
▲
by
hannibalhorn
2y ago
If there's a language that does this right, all ears? But I havn't seen it - The use case described is for a small one off script for use in CI, or a single file script you send off to a colleague over Slack. Very, very common s
3.
▲
by
hannibalhorn
2y ago
That's an interesting link and an argument I hadn't seen before. In my "real world" usage, I've found "bash strict mode" incredibly useful, especially when scripting things that others will be modifying.
4.
▲
by
hannibalhorn
4y ago
I do the same. Sounds like arrow is being implemented as an alternative, and you'll have to explicitly opt in via a dtype or a global setting, so numpy isn't going away.
5.
▲
by
hannibalhorn
4y ago
I've been really impressed with what I can accomplish with lima-vm, beyond just "replace docker desktop". The latest pre-release supports Virtualization.framework, including virtiofs.
6.
▲
by
hannibalhorn
4y ago
Perl actually predates both of those!
7.
▲
by
hannibalhorn
4y ago
I really like the overall design and ethos, but a new project without typehints, pydoc, and at least some tests just isn't the kind of thing I'd bring into my stack. Hope it gets a little bit of polish!
8.
▲
by
hannibalhorn
4y ago
Even well managed funds can result in someone getting the shaft. My dad's pension (Delphi Salaried) was cut to 50% of what it was supposed to be after the events of '08, and it was funded to something like $0.86 on the dollar, ab
9.
▲
by
hannibalhorn
5y ago
That makes total sense, and glad to hear that it could be on the table when the time is right!
10.
▲
by
hannibalhorn
5y ago
My gut reaction was that as a browser extension, you would have the ability to add airlines that refuse to participate in the current travel sites, e.g., Southwest? But I don't see them in the results...
11.
▲
by
hannibalhorn
5y ago
I actually gave it a try, and couldn't successfully signup due to the phone number check, even though my name is on the line. Figure I've wasted a couple hours on it in total. Unnecessary friction.
12.
▲
by
hannibalhorn
5y ago
Usually the disabled get the hardware through insurance or grants - in Texas, the state provides grants for assistive communication devices out of a fund sourced from a phone bill tax. My dad's Tobii i16 came out to ~$15k. Ex-USA, I&
13.
▲
by
hannibalhorn
5y ago
I believe Python C-API compatibility isn't a really a goal for this implementation anyway. [1] HPy sounds like the best path forward? 1. https://github.com/RustPython/RustPython/issues/1940
14.
▲
by
hannibalhorn
5y ago
So the "invention" is stackable trays on a cart? :-( I guess it's not just software patents that have become problematic.
15.
▲
by
hannibalhorn
5y ago
That is actually what he's doing [1]: We will support candidates for office who align with our core principles so that we can reform the system and make it more responsive to the American people. This means that we will support R
16.
▲
by
hannibalhorn
5y ago
So after reading the article I started reading up on deep RL, and came across what is essentially a blog post that shows you how to train a model to play Super Mario Bros [1]. I have of course done all the mNIST handwritten number recognit
17.
▲
by
hannibalhorn
6y ago
Kinda close - I use Hammerspoon to setup a hotkey that runs security(1) via popen to retrieve and paste passwords into some apps. /usr/bin/security find-internet-password -wgs mydomain.com It requires the keychain to
18.
▲
by
hannibalhorn
6y ago
The accepted PEP is 634: https://www.python.org/dev/peps/pep-0634/ and the tutorial has some examples: https://www.python.org/dev/peps/pep-0636/ .
19.
▲
by
hannibalhorn
6y ago
You really have to understand how it's translated into actual code, and of course it's Python, so there's some legacy syntax to take into account. A `:` just means call format(lhs, rhs), for example. You can also actually co
20.
▲
by
hannibalhorn
6y ago
Then switch to poetry, why break pip? The dependency I referenced actually uses poetry, and the reason it's borked is because "poetry add pandas" back when 0.25.1 was current meant effectively adding "poetry==^0.25.1&quo
21.
▲
by
hannibalhorn
6y ago
Definitely not a fan. :-( Sometimes you know what you want and the package itself is wrong. For example, I have a dependency that specifies pandas at ^0.25.1, and now I can't install it alongside pandas 1.0+ without forking or gettin
22.
▲
by
hannibalhorn
6y ago
I have a Unifi USG, which has a third party wireguard addon, though of course OpenWRT could work just fine. You setup a wireguard tunnel normally, but disable the default routing (on a Unifi, set route-allowed-ip false), and then explicitl
23.
▲
by
hannibalhorn
6y ago
tor provides a socks proxy, which you can assign to a container easy enough w/ the container proxy addon.
24.
▲
by
hannibalhorn
6y ago
I use the same setup (mullvad + container proxy) and can't praise it enough. I just keep a mullvad connection open on my router and only route the proxy IPs through it. Great for all kinds of silly GeoIP restrictions, too - in my part
25.
▲
by
hannibalhorn
6y ago
This is really cool! I prefer to keep all my in-house stuff in yaml, though of course for many big third party projects (prometheus, grafana, etc.) helm charts are the way to go. I've long been looking for something that lets me keep
26.
▲
by
hannibalhorn
6y ago
Have to plug Typer[1] here - it's built on top of click, but uses the info already there type annotations, optional keyword arguments, default arguments, etc., to create the most "common sense" CLI for a function. For all my
27.
▲
by
hannibalhorn
6y ago
I was just thinking that squaring an imaginary number results in a real number - that's a pretty crazy thing for a type system to handle, no? I guess that means the correct annotations would be more along the lines of: def square
28.
▲
by
hannibalhorn
6y ago
There is a numbers.Number for that - but yeah, that's another way in which it's just not a good example.. I think typing_extensions.Protocol helps support the general duck typing "any object that has method x", though th
29.
▲
by
hannibalhorn
6y ago
I like adding | as an alias for Union, and the PEP has lots of examples of where typing.Union gets gnarly really quick, but that doesn't seem like a great example in the changelog: def square(number: int | float) -> int | floa
30.
▲
by
hannibalhorn
6y ago
That seems like a pretty sensible approach - eliminates the "Norway problem" altogether. I'd guess you have to use the "%YAML 1.2" directive in all documents in order to get it though...
More ›