Dmitry Zakharov
@dzakh_dev
Followers
254
Following
781
Media
154
Statuses
645
ReScript enthusiast at @envio_indexer. Create tools from the future 🧬
Georgia, Batumi
Joined March 2022
Welcome Sury 🚀 Retweet is appreciated 🙏 https://t.co/wrgNFL85VL
dev.to
Recently I wrote a comprehensive article about a JavaScript Schema library from the future where I...
0
15
46
76/1042 failing Sury tests. Good progress with fixing logic here and there. Soon - time to uncomment and create some more tests... 🫠🫠🫠
0
0
3
Are you ready for @envio_indexer on Solana? I'm going to bring something nice with me. Let's chat at @colosseum or the main @SolanaConf venue. Shipping 🚢🚢🚢
Calling all buildooors! The @colosseum Breakpoint Arena will be the place to put your inspiration to work. Workspace, tech workshops, and a place to meet and network with other builders. https://t.co/ljGAuOttyQ
1
3
12
ReScript 12 is here! A major step toward a leaner, faster, simpler toolchain. This release refines the language and embraces ReScript’s own identity. Blog: https://t.co/FVm2utCPFL Notes: https://t.co/1o7sb5hinL Huge thanks to everyone who helped move ReScript forward.
github.com
ReScript’s third major community-led release has arrived! This milestone wraps up a multi-year push to free the compiler from legacy limitations—and it comes loaded with new features and enhancemen...
2
36
123
Christmas sounds like a good goal for a stable release. Still a lot of work, but this will definitely be big 🫡
0
0
0
For the last two weeks, I finally went down from 130 failing tests to 110 out of more than a thousand. Well, there are still some commented out. Refactored SuryError to be a discriminated union last week, and fixed recursive schemas this week. Now working on fixing snapshot tests
1
0
0
But sadly, dreaming is much easier than doing. I had to completely change the internals of Sury, turning it internally into something like a compiler, which knows the type of every value and can use that to create an optimized decoding/encoding logic.
1
0
0
https://t.co/7aspNSgwHN - I didn't lie, the PR is quite old. And I've already shared some of the features it brings, but the main idea is: let fn = S.decoder(S.jsonString, userSchema, S.csv) How, in runtime, you get an ultrafast conversion to whatever you need.
github.com
1
0
0
While it's not too late, I'll follow the advice and talk a little bit about what's going on with Sury. 3 months ago, I started working on a PR with a dream of how your schema can allow you to convert between different data formats seamlessly. 🧵
@lobbyistcrab Good question! First of all, burnout is irreversible. I still feel the consequences of it and I'm afraid they'll stay with me forever. I'm not as passionate about just doing pure tech as I was before. So the first advice is to find something beyond passion that can motivate
1
0
0
Thank you for 400 ⭐ I didn't disappear and didn't abandon the project. Still working on the PR - Sury v11 will be a banger 🫡
I had 2 failing tests... But I gave up trying to fix them with little blood. So there's a lot of blood now 🫠 In the next version of Sury - complete rewrite one more time.
1
0
7
coolest part of our docs is the shipper's log. videos recapping features of each release and how to use them effectively. @dzakh_dev cooking with these
0
3
8
A workflow I experimented with at @envio_indexer this week: I have a bug X, create a reproduction test. Works well so far and now in parallel. Agents like this demonstrate how testing/feedback infrastructure becomes more and more important.
0
3
7
Sury 🧡 Hono
Hono OpenAPI v1.1 brings - - Improved support for @EffectTS_ (for all those use Effect fan boys) - Added support for Native Typebox v1 🚀 (So no more typemap stuff, you still can tho if you want) - Added support for Sury validation lib (New) And some minor changes and
0
0
0
Getting closer and closer to my dream from more than 3 years ago when I started working on Sury. And JSON is just the beginning! I want proto, capnp, and more. 166 failing tests until the release 🫡 I'll appreciate a start if you're as excited as I am https://t.co/eQZuBxfKe6
0
1
3
I had 2 failing tests... But I gave up trying to fix them with little blood. So there's a lot of blood now 🫠 In the next version of Sury - complete rewrite one more time.
0
0
0
The changes mentioned above are implemented and will be included in the next alpha release after I finish fixing a few failing tests.
0
0
0
And even though S.parser and others appear to be heavy calls, they use the same caching logic as old functions did. So if you call S.parser multiple times with the same schema, it'll compile the operation only once. What's even more fun - Sury with eval does it faster than Zod.
1
0
0
This is the final decision: I'll completely split the operations API between TypeScript and ReScript. What makes sense for ReScript doesn't make sense for TS and vice versa.
1
0
0
Cooking up some crazy API for TS users. This is what a nice composition is to me. At some point, I should rename Sury from a schema library to a runtime metaprogramming compiler 🤔
The composability of Zod codecs (via pipes) is insanely powerful 🤯 base64 ↔ bytes buffer ↔ JSON ↔ Object ht/ @colinhacks, y'all cooked hard. 🫡
1
0
1
This doesn't work in TypeScript 🤦♂️ S.assertOrThrow(schema)(data)
0
0
0