Better HN
topnewbestaskshowjobs
Log inSign up

kvnhn

291 karma · joined Aug 2, 2020 (6y ago) · 67 submissions

Submissions

comment 2mo ago · link · parent

PSA: Spoiler alert for the show Silo in some of the demo shots.

Product demos spoiling TV shows… What a time to be alive.

comment 4mo ago · link · parent

Rebase (squash), I assume

comment 6mo ago · link · parent

Sheriffs are elected officials, at least in most states.

comment 6mo ago · link · parent

What does your username mean?

comment 10mo ago · link · parent

I made a simple web UI[1] for generating images like this. It uses a Go library by Michael Fogleman[2] for all the heavy lifting—hat’s off to him.

For Bézier curves in particular, iteratively constraining the search around initial matches seems key to retaining detail (see the “rep” argument in Fogleman’s work), for example in the eyes of the Vermeer portrait in the OP.

[1]: https://github.com/kevin-hanselman/primitive-web-ui

[2]: https://github.com/fogleman/primitive

6.

A programmable display using microfluidics [video](youtube.com ↗)

87 points · by kvnhn · 1y ago · 6 comments

comment 1y ago · link · parent

IMO, a key passage that's buried:

"You can ask the agent for advice on ways to improve your application, but be really careful; it loves to “improve” things, and is quick to suggest adding abstraction layers, etc. Every single idea it gives you will seem valid, and most of them will seem like things that you should really consider doing. RESIST THE URGE..."

A thousand times this. LLMs love to over-engineer things. I often wonder how much of this is attributable to the training data...

comment 1y ago · link · parent

Dud author here. Happy to hear it's working well for you!

9.

Unofficial HTTP Status Codes(en.wikipedia.org ↗)

2 points · by kvnhn · 1y ago · discuss

10.

"No" is not an actionable error message(github.com ↗)

3 points · by kvnhn · 2y ago · 1 comment

11.

Casting Out Nines(en.wikipedia.org ↗)

2 points · by kvnhn · 2y ago · discuss

12.

Designing with types: Making illegal states unrepresentable(fsharpforfunandprofit.com ↗)

3 points · by kvnhn · 2y ago · discuss

comment 2y ago · link · parent

This is a variation on one of my favorite software design principles: Make illegal states unrepresentable. I first learned about it through Scott Wlaschin[1].

[1]: https://fsharpforfunandprofit.com/posts/designing-with-types...

14.

16 of 23 GoF Design Patterns are invisible or simpler in dynamic languages(norvig.com ↗)

1 points · by kvnhn · 2y ago · discuss

15.

The Day Before Studio Fntastic Announces Closure Just Days After Early Access(ign.com ↗)

1 points · by kvnhn · 2y ago · 1 comment

16.

Ask HN: What's your favorite tech talk from the past year?

4 points · by kvnhn · 3y ago · 2 comments

comment 3y ago · link · parent

IMHO, Poetry is the best we have in the Python dep mgmt space, and it's still endlessly frustrating. It's especially hard to recommend it for newbies looking to get up and running with even a simple ML stack. Check out this thread[1] on the Kafkaesque nightmare that is trying to install PyTorch with Poetry.

[1]: https://github.com/python-poetry/poetry/issues/6409

comment 3y ago · link · parent

PEP 582 was rejected, FYI.

https://peps.python.org/pep-0582/

19.

Making "LCD, Please"(dukope.com ↗)

187 points · by kvnhn · 3y ago · 21 comments

comment 3y ago · link · parent

I've used DVC in the past and generally liked its approach. That said, I wholeheartedly agree that it's clunky. It does a lot of things implicitly, which can make it hard to reason about. It was also extremely slow for medium-sized datasets (low 10s of GBs).

In response, I created a command-line tool that addresses these issues[0]. To reduce the comparison to an analogy: Dud : DVC :: Flask : Django. I have a longer comparison in the README[1].

[0]: https://github.com/kevin-hanselman/dud

[1]: https://github.com/kevin-hanselman/dud/blob/main/README.md#m...

comment 4y ago · link · parent

You might be referring to me/Dud[0]. If you are, first off, thanks! I'd love to know more about what development progress you are hoping for. Is there a specific set of features that bar you from using Dud? As far as testing, Dud has a large and growing set of unit and integration tests[1] that are run in Github CI. I'll never have the same resources as Iterative/DVC, but my hope is that being open source will attract collaborators. PRs are always welcome ;)

[0]: https://github.com/kevin-hanselman/dud

[1]: https://github.com/kevin-hanselman/dud/tree/main/integration...

22.

COSI: Object Storage Management Using Kubernetes APIs(kubernetes.io ↗)

3 points · by kvnhn · 4y ago · discuss

comment 4y ago · link · parent

Unfortunately, there's a few things that currently hinder compatibility with DVC caches. First, Dud uses the Blake3 checksum algorithm, and DVC uses md5. This means the content-addressed caches will have completely different file names. Second, directories are committed to DVC differently than they are in Dud. For directories, not only will the committed file names not match (due to point 1), but the contents will not match either. Both of these things could be addressed, but it would take a lot of effort and would likely cost Dud in terms of its two main goals, speed and simplicity. I'm not opposed to this if we can make it work, though.

Dud currently does not support reflinks, but I think adding reflink support would be fairly straight-forward. Just curious: What filesystem and OS are you using for reflinks?

I'd be happy to chat more about this. Feel free to open GitHub issues for these items. I welcome contributions as well. ;)

comment 4y ago · link · parent

I very much agree with you about DVC's feature creep. The other issue I have with it is speed. DVC has left me scratching my head at its sluggishness many times. Because of these factors, I've been working on an alternative that focuses on simplicity and speed[0]. My tool is often five to ten times faster than DVC[1]. I'd love to hear what you think.

[0]: https://github.com/kevin-hanselman/dud

[1]: https://kevin-hanselman.github.io/dud/benchmarks/

comment 4y ago · link · parent

I don't know about replacing Make with Docker, but I use the two together to good effect. One of my favorite hacks is adding a 'docker-%' rule in my Makefile to run make commands in a Docker image[1]. It's a bit mind-bending, and there's a few gotchas, but it works surprisingly well for simple rules.

[1]: https://github.com/kevin-hanselman/dud/blob/e98de8fcdf7ad564...

comment 4y ago · link · parent

A thousand times, yes. I've wanted to write this same article. Thanks for saving me the time!

The industry is going to great lengths to avoid writing configuration in any ubiquitous imperative programming language. We're seeing the proliferation of hyper-specialized, clunky declarative languages with sub-par tooling and package ecosystems. In what world are templates acceptable code? I don't mean to pick on anything specific, but this[0] is the most recent example I've come across, and it's far from the most unreadable examples.

[0]: https://github.com/traefik/traefik-helm-chart/blob/master/tr...

27.

Show HN: Tailscale Authentication with Traefik(github.com ↗)

1 points · by kvnhn · 4y ago · discuss

comment 4y ago · link · parent

Here's an example I whipped up: https://github.com/kevin-hanselman/tailscale-forward-auth

comment 4y ago · link · parent

I haven't used it, no. Around the time Git LFS was released, my read from the community was that Git LFS was favored to supersede git-annex, so I focused my time investigating Git LFS. Given that git-annex is still alive and well, I may have discounted it too quickly :) Maybe I'll revisit it in the future. Thanks for sharing!

comment 4y ago · link · parent

Dud author here. I'm guessing this was shared after I mentioned it[0] in the comments on this recent post[1].

Thanks, kind stranger, for sharing! I'm happy to answer any questions.

[0]: https://news.ycombinator.com/item?id=31008992

[1]: https://news.ycombinator.com/item?id=31006003

123