Readit News logoReadit News
johnmorrison commented on Towards 1-bit Machine Learning Models   mobiusml.github.io/1bit_b... · Posted by u/homarp
bionhoward · 2 years ago
Isn’t 1bit too low for optimal radix economy (Euler’s number) though?

I want to see somebody try “imbalanced quaternary” -,0,+,2

johnmorrison · 2 years ago
people are indeed working on -1,0,1,2 Q2 models, I read something about it the other day but don't recall the title.

they mentioned decomposition of Q2 into ternary+binary i.e. [[1,2],[-1,0]] -> [[1,1],[0,0]] + [[0,1],[-1,0]]

johnmorrison commented on Observable 2.0, a static site generator for data apps   observablehq.com/blog/obs... · Posted by u/tmcw
johnmorrison · 2 years ago
This is very cool to see! We've been building something very similar (in some regards, very different in others) in https://rysana.com/bundown

Somehow ideas like this emerge in waves seemingly with no coordination, kind of like what happened when Calculus was first invented

(Of course there's a lot of prior art here but it's interesting to see a specific jump towards polyglot single-file Markdown 'apps' and so on happen around the same time)

johnmorrison commented on Generals.io – Capture enemy generals to defeat them   generals.io/... · Posted by u/emj
johnmorrison · 2 years ago
I love this game, got pretty into it around 2016/17 and rose to the top of the global 1v1 leaderboard for a while. Really cool to see it still running :D
johnmorrison commented on Ask HN: Is AI safety simply the thought police?    · Posted by u/gtirloni
johnmorrison · 2 years ago
> the public seems to demand exactly this from AI

No, not "the public", this is a small vocal minority.

johnmorrison commented on tRPC – Build and consume typesafe APIs without schemas or code generation   trpc.io/... · Posted by u/olalonde
ShadowBanThis01 · 3 years ago
"Runtime" is not a problem.
johnmorrison · 3 years ago
TypeScript-first schema validation with static type inference
johnmorrison commented on tRPC – Build and consume typesafe APIs without schemas or code generation   trpc.io/... · Posted by u/olalonde
ShadowBanThis01 · 3 years ago
I just checked out the Zod intro pages but I still don’t know what problem it’s trying to solve. What is it adding to TypeScript (which I am not conversant in either)?

Thanks for any insight!

johnmorrison · 3 years ago
runtime
johnmorrison commented on tRPC – Build and consume typesafe APIs without schemas or code generation   trpc.io/... · Posted by u/olalonde
epolanski · 3 years ago
I would also recomment effect/core + effect/schema, the pattern of creating typed services starting from schemas is there perfect for people that are more functional-programming leaning.
johnmorrison · 3 years ago
I saw that a while back, but it seems like a large learning curve and I don't immediately feel much drawing me towards it. Will be keeping an eye on it anyhow.
johnmorrison commented on tRPC – Build and consume typesafe APIs without schemas or code generation   trpc.io/... · Posted by u/olalonde
killthebuddha · 3 years ago
Zod is...so freaking great. I'm feeling kind of hyperbolic at the moment, so I'll even go so far as: for a certain style of programming, adding Zod to a codebase is as big of a win as adding TypeScript.
johnmorrison · 3 years ago
Absolutely. Zod is to the runtime what TypeScript is to the IDE.
johnmorrison commented on tRPC – Build and consume typesafe APIs without schemas or code generation   trpc.io/... · Posted by u/olalonde
graftak · 3 years ago
I don’t really like Zod at all, it has very finicky and verbose types/generic params and it’s object generic won’t allow you to pass a data type, but instead you must pass zods own schema types as properties which are very messy and unintuitive.

Another annoyance is that the type of validation errors varies depending on what kind of schema you’re checking against. This makes it unpredictable to handle errors and there’s always too many edge cases.

Lots of room for improvement.

johnmorrison · 3 years ago
I don't disagree (not that I feel the same level of annoyance, on balance I love Zod for the time it saves me) but what would you recommend as an alternative?

The new valibot.dev looks cool but I haven't tried it yet.

johnmorrison commented on tRPC – Build and consume typesafe APIs without schemas or code generation   trpc.io/... · Posted by u/olalonde
johnmorrison · 3 years ago
I love tRPC, it's by far the best fullstack DX I've ever seen and has such a brilliant API especially when combined with Zod.

Zod and tRPC are some of the most important projects in the future of TS imho, I think we're gonna see a beautiful bloom of tRPC inspired DX across the TS space in coming years.

Two projects already have clearly have tRPC DNA attacking different use cases are Ping's UploadThing (https://github.com/pingdotgg/uploadthing) and our Lusat (https://github.com/lusatai/lusat).

u/johnmorrison

KarmaCake day750March 22, 2019
About
Nullius in verba.
View Original