Shubh

813 posts

Shubh banner
Shubh

Shubh

@Subhdotsol

CEO @cypherzk_ | Fellow @solana | Grad @solanaturbine & @rektoff_xyz

github.com/subhdotsol Katılım Şubat 2021
176 Takip Edilen712 Takipçiler
Sabitlenmiş Tweet
Shubh
Shubh@Subhdotsol·
I built a production grade solana-indexer for @cypherzk_ in rust OSS code : github.com/subhdotsol/Ind… Functionality : - Raw yellowstone gRPC one stack below vixen - custom anchor event parser - zero-loss recovery : slot cursor + gap backfill + DLQ - realtime ws push via broadcast channel - telegram whale alerts - hexagonal arch : plug in any source or sink
Shubh tweet mediaShubh tweet mediaShubh tweet media
English
19
12
111
7K
Shubh
Shubh@Subhdotsol·
unsafe is where rust starts trusting you
Shubh tweet media
English
3
0
21
333
The Kalyugh
The Kalyugh@aashwani_91612·
My PR just got merged into @anza_xyz 's agave • tightened alpenglow block limits based on the latest consensus whitepaper. • reduced the limits for alternate blocks and notarization fallback tracking. • added regression coverage for the updated fallback limit. cc : @solana PR link : github.com/anza-xyz/agave…
The Kalyugh tweet media
English
3
1
10
175
Shubh
Shubh@Subhdotsol·
disassembled a rust std library's allocator alloc/dealloc is called on every Box drop, reimplemented from scratch in unsafe rust: - MyBox raw heap pointer with manual drop_in_place before dealloc - MyVec growable array: ptr::write to init, ptr::read to move out without Drop, realloc to double capacity - a NonNull is just a *mut T that proves non-null at compile time the borrow checker disappears you are the borrow checker now OSS : github.com/subhdotsol/uns…
Shubh tweet media
English
0
0
22
1.3K
Shubh
Shubh@Subhdotsol·
catching up with @breakandbuildhq soon. we'll be talking all things @cypherzk_ private prediction markets, low level engineering, and why we think privacy should be the default see you all there ...
Shubh tweet media
English
1
3
16
357
Biks (@HeyHomie)👾
Biks (@HeyHomie)👾@bharathshettyy·
Hunting for hidden gems from Colosseum Frontier.
Biks (@HeyHomie)👾 tweet media
English
2
1
6
300
Shubh
Shubh@Subhdotsol·
spent whole day reading blogs about sBPF assembly, my brain hurts but at least the instructions are starting to make some sense now 🙂.
Shubh tweet media
English
0
1
24
373
Shubh
Shubh@Subhdotsol·
disassembled a @solana amm's .so sol_cuvrve_validate_point (Ed25519 curve check) is called 10 times in the binary - not for signatures , for PDAs - a PDA is literally just a SHA 256 hash that fails elliptic curve membership - the AMM is doing cryptography to prove no private key can sign its token vaults
Shubh tweet media
English
3
3
16
498
Shubh
Shubh@Subhdotsol·
slashed the compute units on my @solana AMM built with pinocchio
Shubh@Subhdotsol

Just slashed the compute units on my @solana AMM built with pinocchio what i changed: - moved vault creation off chain - stopped creating ATAs in program - swapped TransferChecked for Transfer - cached reserves instead of reloading vaults - inlined the swap formula instead of calling a curve library CU before vs after the optimization :

English
0
0
5
234
Shubh
Shubh@Subhdotsol·
Just slashed the compute units on my @solana AMM built with pinocchio what i changed: - moved vault creation off chain - stopped creating ATAs in program - swapped TransferChecked for Transfer - cached reserves instead of reloading vaults - inlined the swap formula instead of calling a curve library CU before vs after the optimization :
Shubh tweet media
English
1
0
19
675
Shubh
Shubh@Subhdotsol·
how i reduced my amm's compute units by ~50% after rewriting it in pinocchio the biggest wins came from : - zero copy instead of serialization - fewer abstractions - leaner account handling - lower runtime overhead next up: rewriting the hot paths in sbpf assembly to see how far i can push it OSS : github.com/subhdotsol/pin…
Shubh tweet media
English
2
1
32
1.1K
Shubh
Shubh@Subhdotsol·
@bas_karo_anaya sometimes you need to complicate just to optimize 😂
English
1
0
2
48
Anaya
Anaya@bas_karo_anaya·
Why do people have to complicate things? Can't they just be straightforward?
English
4
0
8
676