News for hackers. Stuff that matters.

panzerklein

It's like a scramble suit from Scanner Darkly
Re:Telefunc: Remote Functions instead of API on Sunday October 02, 2022 @10:04AM (#33055950)
Zod has a lot of features. And an ecosystem.
Re:Why Racket? Why Lisp? (2014) on Wednesday September 14, 2022 @01:49PM (#32840700)
Expression problem exists in both OOP and FP[1]

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

Re:The GPU Banana Stand on Tuesday August 23, 2022 @05:18AM (#32562315)
It's not really HTML, it's JSX. Like in all other JSX-based projects it gets compiled into js functions.
Re:Essential Climbing Knots on Wednesday August 10, 2022 @02:00PM (#32416060)
Water knot [1] might have worked.

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

Re:Essential Climbing Knots on Wednesday August 10, 2022 @04:21AM (#32409171)
Which you proceeded to tie into a knot, I presume
Re:Essential Climbing Knots on Wednesday August 10, 2022 @03:39AM (#32408859)
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

Re:A generically typed pipe function in TypeScript on Monday August 08, 2022 @10:19AM (#32385698)
Impressive work, congratulations! Though overloaded definitions would be easier to maintain in the long run
Re:A Scheme Primer on Friday July 08, 2022 @05:09AM (#32024662)
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...
Re:Make Tracker Tunes in the Browser on Wednesday May 25, 2022 @11:47AM (#31506217)
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.
Re:Postman Now Supports gRPC on Wednesday February 02, 2022 @08:53AM (#30177488)
It seems pretty easy with Firefox - there's "Edit and resend" in the context menu of every request.
Re:Lapce – Fast and Powerful Code Editor written in Rust on Tuesday December 14, 2021 @07:18AM (#29550826)
According to readme it's not a Xi frontend, but rather it uses same algorithms for string manipulations
Re:Physics Student Earns PhD at Age 89 on Tuesday November 02, 2021 @04:30AM (#29078493)
One dimension of space and one dimension of time, probably
Re:Tricks I wish I knew when I learned TypeScript on Wednesday October 13, 2021 @03:03AM (#28849063)
How did you get that result? I only see length and name.
Re:Epiousios on Monday September 13, 2021 @02:58AM (#28508585)
It's насущный, right?
Re:JSON Schema bundling formalised on Friday September 10, 2021 @07:27AM (#28480021)
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

Re:3D printable cat feeder (2020) on Tuesday August 24, 2021 @09:36AM (#28288663)
This looks nice. My cat is the same and I use plastic bottle with a couple of holes.
Re:A digital museum of video game levels on Thursday July 22, 2021 @05:18AM (#27916941)
And all three islands of Liberty City from GTA III!
Re:Lambda Calculus Examples (2009) [pdf] on Monday June 28, 2021 @09:08AM (#27661437)
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

Re:Why we switched from Webpack to Vite on Thursday April 29, 2021 @11:55AM (#26982790)
You're talking about css modules. It's a different feature.
Looks like it's based on the same idea as jotai[1]

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

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
Re:Typing Is Hard on Wednesday February 17, 2021 @12:26PM (#26168880)
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.
Re:Typing Is Hard on Tuesday February 16, 2021 @11:38PM (#26162757)
It won't with --noUncheckedIndexedAccess on.
Re:Metaballs and Marching Squares on Friday January 08, 2021 @12:33PM (#25687215)
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.
Re:Spotify, Ever the Fans of Openness on Tuesday October 13, 2020 @03:51AM (#24763261)
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.
Re:Toward a “modern” Emacs on Saturday September 26, 2020 @03:33AM (#24597063)
Right, I've noticed this while trying to update my vimrc for web development. Syntax highlighting is just not as nice as in vscode.
Re:Domains for the Rest of Us on Monday September 21, 2020 @04:12AM (#24540959)
Got cockskills.com
Re:Motivation – Keli Language on Tuesday September 01, 2020 @06:13AM (#24340144)
Putting fist through the monitor?

Older »