Solving the distributed schema problem with @effect/schema by Jess Martin (Effect Days 2024)

  Рет қаралды 4,724

Effect | TypeScript at Scale

Effect | TypeScript at Scale

Күн бұрын

Пікірлер
@electroheadfx
@electroheadfx 9 ай бұрын
Amazing, so it would like to be able to run effect on heterogeneous environment, for exemple in backend/orm/postgres we work with fastapi, but effect can't work on python ?
@jessamartin
@jessamartin 9 ай бұрын
Hmmm, I wonder ... while Effect doesn't (yet?) run in Python, you could at least get some of the benefits of unifying the schema across front-end and back-end by serializing the schema to JSON Schema and sharing that schema with your Python backend. You'd need some method for going from JSON Schema to your database schema. Ultimately, this problem is begging for some unified tooling.
@alexg2910
@alexg2910 9 ай бұрын
1. what happens if the software on one of the devices hasn't been updated yet and the new schema is not supported on that device? 2. how does effect/schema compares with things like Lenses from Ink&Switch or grafana/thema?
@jessamartin
@jessamartin 9 ай бұрын
> what happens if the software on one of the devices hasn't been updated yet and the new schema is not supported on that device? basically, it's up to the application to handle that case. In Composer, it shows a "Data unsupported" message. however, the schema *is* serialized to the database, so it can be looked up and perhaps the older device will know how to handle it, similar to 28:40.
@jessamartin
@jessamartin 9 ай бұрын
> how does effect/schema compares with things like Lenses from Ink&Switch or grafana/thema good question! As I mention at the end of the talk, we're not actually handling migration yet. We're talking with Geoff from I&S about adding some sort of lensing system on top of Effect/Schema. I'm not familiar with grafana/thema, but I'll take a look!
@alexg2910
@alexg2910 9 ай бұрын
@@jessamartin got it, thanks! Thema has similar goals as I&S lenses, but uses Cue as the schema definition language and it’s for the Go ecosystem.
@JohnMcclaned
@JohnMcclaned 9 ай бұрын
Great talk. Would love if you could post all the talks at once, drip feeding a talk a week is too slow haha
@jessamartin
@jessamartin 9 ай бұрын
Glad you enjoyed it!
@seanknowles9985
@seanknowles9985 9 ай бұрын
Can this be used with Graphql? Can we define graphql schema with effect/schema?
@Joshua-dc4un
@Joshua-dc4un 9 ай бұрын
Very surprised by the emphasis on magic, we need less magic, not more
@jessamartin
@jessamartin 9 ай бұрын
One of the benefits of frameworks is when it handles things for us so that we can move up the ladder of abstraction. But if you want to build it yourself, you can definitely assemble something DXOS-shaped from existing pieces! I'm writing an article that expands on this topic.
@gregorywestneat5957
@gregorywestneat5957 8 ай бұрын
13:07 - wooowwwwwww yesssss! 🔥🔥🔥 Somebody get this video a Z-Pak - because it smashes - really brinin the hammer, don'cha'know - haters r like "it stings when you number 1"
@mr.komp1004
@mr.komp1004 9 ай бұрын
So basically, it is a create-t3-app with NextJS Prisma and tRPC + some additional stuff that adds your dta into your localstorage and schema inside your db?
@jessamartin
@jessamartin 9 ай бұрын
Not at all, actually! I'm actually building a comparison of a create-t3-app with Prisma + tRPC to a DXOS-based app. I'll share a link here when it's done. Good eye, though! That's definitely the stack I would choose to enable this sort of behavior if I wasn't using DXOS.
@mr.komp1004
@mr.komp1004 8 ай бұрын
@@jessamartin is it ready?)
@timstewart2800
@timstewart2800 3 ай бұрын
I'm sure people running the sound love it when you call them 'yo'. :(
@avwie132
@avwie132 8 ай бұрын
So… Basically Zod
@invinciblemode
@invinciblemode 8 ай бұрын
zod + drizzle orm actually. But zod only does validation in one direction. Saying this as a zod power user.
@michaelarnaldi6680
@michaelarnaldi6680 8 ай бұрын
key difference is that schema is ast based so it allows you to generate whatever you want (incl encoding and decoding) from the ast
@invinciblemode
@invinciblemode 8 ай бұрын
Cool talk, but feels like I just watched an ad mostly
@michaelarnaldi6680
@michaelarnaldi6680 8 ай бұрын
why?
Why Effect is more important than ZIO by John A. De Goes (Effect Days 2024)
33:42
Effect | TypeScript at Scale
Рет қаралды 11 М.
Effect's Latest and Greatest by Tim Smart (Effect Days 2024)
30:10
Effect | TypeScript at Scale
Рет қаралды 3 М.
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
Production-Grade TypeScript by Johannes Schickling (Effect Days 2024)
26:58
Effect | TypeScript at Scale
Рет қаралды 18 М.
SQLite Uses ByteCode (And For Good Reason)
19:07
ThePrimeTime
Рет қаралды 90 М.
Jeff Dean: AI will Reshape Chip Design - NeurIPS 2024
43:53
GradientSpills
Рет қаралды 5 М.
Effective state machines for complex logic by David Khourshid (Effect Days 2024)
30:05
Effect | TypeScript at Scale
Рет қаралды 7 М.
SQLc is the perfect tool for those who don't like ORMs
28:11
Dreams of Code
Рет қаралды 118 М.
The Only Unbreakable Law
53:25
Molly Rocket
Рет қаралды 360 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,5 МЛН
Effect: The Origin Story by Michael Arnaldi (Effect Days 2024)
33:45
Effect | TypeScript at Scale
Рет қаралды 2,3 М.
The SQLite Rewrite In Rust
22:15
ThePrimeTime
Рет қаралды 199 М.
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН