HackerTrans
TopNewTrendsCommentsPastAskShowJobs

kvnhn

291 karmajoined 6 лет назад

Submissions

A programmable display using microfluidics [video]

youtube.com
87 points·by kvnhn·11 месяцев назад·6 comments

Unofficial HTTP Status Codes

en.wikipedia.org
2 points·by kvnhn·12 месяцев назад·0 comments

"No" is not an actionable error message

github.com
3 points·by kvnhn·2 года назад·1 comments

Casting Out Nines

en.wikipedia.org
2 points·by kvnhn·2 года назад·0 comments

Designing with types: Making illegal states unrepresentable

fsharpforfunandprofit.com
3 points·by kvnhn·2 года назад·0 comments

16 of 23 GoF Design Patterns are invisible or simpler in dynamic languages

norvig.com
1 points·by kvnhn·2 года назад·0 comments

The Day Before Studio Fntastic Announces Closure Just Days After Early Access

ign.com
1 points·by kvnhn·3 года назад·1 comments

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

4 points·by kvnhn·3 года назад·2 comments

Making "LCD, Please"

dukope.com
187 points·by kvnhn·3 года назад·21 comments

comments

kvnhn
·позавчера·discuss
Rebase (squash), I assume
kvnhn
·2 месяца назад·discuss
Sheriffs are elected officials, at least in most states.
kvnhn
·2 месяца назад·discuss
What does your username mean?
kvnhn
·6 месяцев назад·discuss
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
kvnhn
·11 месяцев назад·discuss
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...
kvnhn
·11 месяцев назад·discuss
Dud author here. Happy to hear it's working well for you!
kvnhn
·2 года назад·discuss
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...
kvnhn
·3 года назад·discuss
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
kvnhn
·3 года назад·discuss
PEP 582 was rejected, FYI.

https://peps.python.org/pep-0582/
kvnhn
·3 года назад·discuss
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...