Péter Szilágyi pfp

Péter Szilágyi

@karalabe.eth

22 Following
182183 Followers


Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
And of course, release notes at: https://github.com/karalabe/ssz/releases/tag/v0.3.0 Enjoy and thanks for the feedback/issues/contributions.
0 reply
0 recast
0 reaction

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
Monolith code generator explained at: https://github.com/karalabe/ssz?tab=readme-ov-file#monolithic-types-1
1 reply
0 recast
0 reaction

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
The nice part of course is that not only is writing fork-aware code just as clean as writing fork-unaware code, but that the included code generator is able to ingest these ssz-fork Go struct tags and output fork-aware code itself. Monoliths explained at: https://github.com/karalabe/ssz?tab=readme-ov-file#monolithic-types
1 reply
2 recasts
7 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
After a bit of time, I finally published v0.3.0 of my golang Ethereum ssz library. The highlight of the release is support for monolithic types: struct fields that can be tagged with fork names, which during codec operations will be used/skipped based on which fork you're in.
1 reply
7 recasts
40 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
Worth it 🙈
0 reply
0 recast
1 reaction

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
Ser, this is Farcaster
1 reply
0 recast
3 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
Possibly one of our more boring releases... but hey... boring is good in critical software 😇 Geth v1.14.18 out without any important highlights! Please check the nodes for details :) https://github.com/ethereum/go-ethereum/releases/tag/v1.14.8
1 reply
8 recasts
86 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
Was on holiday last week... did I miss anything?
0 reply
2 recasts
38 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
And for the grand reveal: https://github.com/karalabe/ssz Njoy 🥳
0 reply
0 recast
2 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
Last but not least, a word of warning: this package is unstable, experimental, might blow your entire machine up, etc. Use it at your own risk, I take absolutely no responsibility for what might go wrong. 🙈🙉🙊
1 reply
0 recast
0 reaction

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
On the downside, my use case for the first version of the library is allow Geth to speak to consensus clients, fast, through SSZ. This means Merkleization is not yet implemented (at all). My hope is that it can be added without code change, but... ¯\_(ツ)_/¯
1 reply
0 recast
0 reaction

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
I want fast code. Latency eventually becomes king all over the place in Ethereum, so might as well preempt it and have something that's fast from the start. The library is a 0 allocation stream en/decoder, and is blazing fast! Perhaps not as fast as raw bit-fiddling, but fast.
1 reply
0 recast
1 reaction

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
I want maintainable code. Generators can be amazing tools, but unless they are perfect, eventually you'll end up hand writing some code. The library uses an extremely concise API that is easy to understand and write, whether manually or generated. This pic was generated by it!
1 reply
0 recast
0 reaction

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
First up, it is an opinionated library! I wanted to make something that is elegant and simple to use for me, which might not be the case for you. The library takes a hard stance on what you yourself are supposed to do (and how); and what the library itself is supposed to do.
1 reply
0 recast
0 reaction

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
Hello Ethereum world! Happy to announce the first unstable version v0.1.0 of my Go SSZ serialization library! Codename "SSZ 15", because it's at least the 15th SSZ library out there... and because I worked on it exactly 15 days! Here's what it is, and what it isn't 🧵
1 reply
12 recasts
115 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
Gearing up for publishing my Ethereum ssz Go lib (as an unstable version, mind you :P)
0 reply
12 recasts
97 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
It's alive! :) My SSZ lib and generator can crunch through the beacon types :)
0 reply
17 recasts
131 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
First incarnation of my ssz lib's code generation capability :) Still a bit to go, maybe will be ready for a live test run tomorrow :D
2 replies
11 recasts
69 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
Good morning Ethereum, guess what! New SSZ speedups :D
0 reply
16 recasts
140 reactions

Péter Szilágyi pfp
Péter Szilágyi
@karalabe.eth
There are a few, but a sync.Pool is way too slow for me :D
0 reply
0 recast
1 reaction