Better HN
topnewbestaskshowjobs
Log inSign up

panzerklein

132 karma · joined Apr 2, 2016 (10y ago) · 65 submissions

Submissions

comment 4y ago · link · parent

It's like a scramble suit from Scanner Darkly

comment 4y ago · link · parent

Zod has a lot of features. And an ecosystem.

comment 4y ago · link · parent

Expression problem exists in both OOP and FP[1]

[1] https://wiki.c2.com/?ExpressionProblem

comment 4y ago · link · parent

It's not really HTML, it's JSX. Like in all other JSX-based projects it gets compiled into js functions.

comment 4y ago · link · parent

Water knot [1] might have worked.

[1] https://www.animatedknots.com/water-knot

comment 4y ago · link · parent

Which you proceeded to tie into a knot, I presume

comment 4y ago · link · parent

Figure 8 knot is not that hard to untie after a fall, you just have to tie it in a particular way [1].

[1] https://www.youtube.com/watch?v=QAr-uHd8h8o

comment 4y ago · link · parent

Impressive work, congratulations! Though overloaded definitions would be easier to maintain in the long run

comment 4y ago · link · parent

Racket is great for this book. With some work it's also doable in Common Lisp, here's my take: https://github.com/tsumo/solutions/blob/master/little_scheme...

comment 4y ago · link · parent

Interesting to see a completely custom renderer. Look at the page through dev tools inspector - it's just a single canvas inside body. Everything is drawn using the Canvas API. Not even WebGl, just a regular old 2d context, bunch of fillRect's and drawImage's.

comment 4y ago · link · parent

It seems pretty easy with Firefox - there's "Edit and resend" in the context menu of every request.

comment 4y ago · link · parent

According to readme it's not a Xi frontend, but rather it uses same algorithms for string manipulations

comment 5y ago · link · parent

One dimension of space and one dimension of time, probably

comment 5y ago · link · parent

How did you get that result? I only see length and name.

comment 5y ago · link · parent

It's насущный, right?

comment 5y ago · link · parent

You can write validation schemas using zod library [1]. They end up looking pretty similar to typescript definitions (same vocabulary, same methods for combining/intersecting/filtering). And if you migrate to typescript you'll get type definitions for free out of those schemas.

[1] https://github.com/colinhacks/zod

comment 5y ago · link · parent

This looks nice. My cat is the same and I use plastic bottle with a couple of holes.

comment 5y ago · link · parent

And all three islands of Liberty City from GTA III!

comment 5y ago · link · parent

Here's one great introduction - A Flock of Functions: Lambda Calculus and Combinatory Logic in JavaScript | Gabriel Lebec @ DevTalks

https://www.youtube.com/watch?v=6BnVo7EHO_8

comment 5y ago · link · parent

You're talking about css modules. It's a different feature.

comment 5y ago · link · parent

Looks like it's based on the same idea as jotai[1]

[1] https://github.com/pmndrs/jotai

comment 5y ago · link · parent

Supporting static range types is crazy hard. Only full-on math languages like Idris can do that. If you need runtime checks and types without duplication use something later like zod or io-ts. They can derive ts types automatically

comment 5y ago · link · parent

Here's the answer from the library author: https://twitter.com/0xca0a/status/1282999626782650368/photo/...

comment 5y ago · link · parent

This option is too extreme to be enabled by default. Even --strict shortcut that turns on a bunch of useful checks does not include it.

comment 5y ago · link · parent

It won't with --noUncheckedIndexedAccess on.

comment 5y ago · link · parent

Should be easy to isolate objects that haven't touched anything yet. Determining when to start isolating already touching objects would be harder. Probably some kind of threshold is needed.

comment 6y ago · link · parent

Which makes them totally inaccessible in some countries where Spotify does not offer services or offers a limited set of them. My favorite podcast went Spotify and I since then I just can't get access to the new episodes.

comment 6y ago · link · parent

Right, I've noticed this while trying to update my vimrc for web development. Syntax highlighting is just not as nice as in vscode.

comment 6y ago · link · parent

Got cockskills.com

comment 6y ago · link · parent

Putting fist through the monitor?
123