HNHacker News
TopNewBestAskShowJobs

panzerklein

132 karma · joined April 2, 2016

submissionscomments
panzerklein··on I was messing around with img2img and I created this monstrosity
It's like a scramble suit from Scanner Darkly
panzerklein··on Telefunc: Remote Functions instead of API
Zod has a lot of features. And an ecosystem.
panzerklein··on Why Racket? Why Lisp? (2014)
Expression problem exists in both OOP and FP[1]

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

panzerklein··on The GPU Banana Stand
It's not really HTML, it's JSX. Like in all other JSX-based projects it gets compiled into js functions.
panzerklein··on Essential Climbing Knots
Water knot [1] might have worked.

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

panzerklein··on Essential Climbing Knots
Which you proceeded to tie into a knot, I presume
panzerklein··on Essential Climbing Knots
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

panzerklein··on A generically typed pipe function in TypeScript
Impressive work, congratulations! Though overloaded definitions would be easier to maintain in the long run
panzerklein··on A Scheme Primer
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...
panzerklein··on Make Tracker Tunes in the Browser
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.
panzerklein··on Postman Now Supports gRPC
It seems pretty easy with Firefox - there's "Edit and resend" in the context menu of every request.
panzerklein··on Lapce – Fast and Powerful Code Editor written in Rust
According to readme it's not a Xi frontend, but rather it uses same algorithms for string manipulations
panzerklein··on Physics Student Earns PhD at Age 89
One dimension of space and one dimension of time, probably
panzerklein··on Tricks I wish I knew when I learned TypeScript
How did you get that result? I only see length and name.
panzerklein··on Epiousios
It's насущный, right?
panzerklein··on JSON Schema bundling formalised
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

panzerklein··on 3D printable cat feeder (2020)
This looks nice. My cat is the same and I use plastic bottle with a couple of holes.
panzerklein··on A digital museum of video game levels
And all three islands of Liberty City from GTA III!
panzerklein··on Lambda Calculus Examples (2009) [pdf]
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

panzerklein··on Why we switched from Webpack to Vite
You're talking about css modules. It's a different feature.
panzerklein··on Show HN: The simplest React state manager now at stable release
Looks like it's based on the same idea as jotai[1]

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

panzerklein··on How an Anti-TypeScript “JavaScript developer” like me became a TypeScript fan
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
panzerklein··on Recreating Real-World Terrain with React, Three.js and WebGL Shaders
Here's the answer from the library author: https://twitter.com/0xca0a/status/1282999626782650368/photo/...
panzerklein··on Typing Is Hard
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.
panzerklein··on Typing Is Hard
It won't with --noUncheckedIndexedAccess on.
panzerklein··on Metaballs and Marching Squares
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.
panzerklein··on Spotify, Ever the Fans of Openness
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.
panzerklein··on Toward a “modern” Emacs
Right, I've noticed this while trying to update my vimrc for web development. Syntax highlighting is just not as nice as in vscode.
panzerklein··on Domains for the Rest of Us
Got cockskills.com
panzerklein··on Motivation – Keli Language
Putting fist through the monitor?
Page 1 of 3Next →