SekFook ☀️ (@SekFook) header
SekFook ☀️ (@SekFook) profile picture

data & research @goldskyio

Joined February 2017
Photo by SekFook ☀️ (@SekFook)Photo by SekFook ☀️ (@SekFook)Photo by SekFook ☀️ (@SekFook)Photo by SekFook ☀️ (@SekFook)Photo by SekFook ☀️ (@SekFook)Photo by SekFook ☀️ (@SekFook)Photo by SekFook ☀️ (@SekFook)Photo by SekFook ☀️ (@SekFook)Photo by SekFook ☀️ (@SekFook)Photo by SekFook ☀️ (@SekFook)
SekFook ☀️ retweeted
Paradigm's swarm riding guide is the best thing I've read on coding agents in a while. I'm bullish on Tiger Style as discipline for aggressive agent usage. My reservations: invariant-based tests are underweighted, and legacy code needs more attention. johnsaigle.com/posts/a-respo…
EFFECTIVE SWARM RIDING FOR ENGINEERS I think we are entering an era where software development feels a lot more like magic. But you need the right attitude, the right infra, and some incantations. These are some things that have worked well for me & I hope for you! 1/N
9
3
49
7,106
A Linux socket costs about 3,300 bytes of kernel memory, even when idle. A userland network stack in Rust, together with a custom runtime, reached 16 million servers on one 10 GB VM. 🦀 The article "15 million web servers on one VM" by @kaptekoguid (kapteko) is a humorous but technically clear experiment: run one web server for every person on the planet, starting with 15 million on a single VM with 10 GB of RAM and one CPU core. The path, step by step: → A plain C server hits the port limit first. AnyIP, which lets a machine listen on a whole subnet, solves the addressing → Each process then costs about 1.5 MB, so 15 million would need around 20 TB of RAM. The answer is a custom runtime that runs the servers as sandboxed guests in one process, using LFI for isolation, with about 16 bytes of scheduling state per guest. That runtime comes from earlier articles by the same author → The kernel finding: a socket call allocates about 3,300 bytes whether the socket is active, listening or doing nothing. The post breaks down 3,384 bytes: tcp_sock 2,240, socket_alloc 768, file 184 and dentry 192. The author's first assumption that idle listeners would cost zero memory was wrong, and the post says so The fix is to go lower in the network stack. smoltcp, a Rust TCP/IP stack that needs no heap allocation, handles the protocol in userland. Packet I/O comes through TUN or TAP, DPDK, or AF_XDP: → DPDK takes the network device from the OS and uses a busy-looping core → AF_XDP leaves the device with the kernel and uses an eBPF filter to route packets to userspace, so SSH keeps working The results, from the author's benchmark: → With the kernel network stack, memory runs out at around 2.5 million servers, and requests per second drop as the count grows → With smoltcp, an idle server costs about 620 bytes and an active one about 1 KB, and the run reached 16 million servers → DPDK is fastest, with AF_XDP just behind 🔗 kapteko.com/15-million-webse… #RustLang #Networking #DPDK #Systems #Rust
6
45
3
507
21,411
SekFook ☀️ retweeted
In many software engineering environments, there’s nothing wrong with being in a state of partial understanding. In fact, in large systems a partial understanding is the best you can do.
20
34
8
491
97,540
JVM internals (by James D. Bloom): blog.jamesdbloom.com/JVMInte…
37
249
12,003
SekFook ☀️ retweeted
Occasionally a student will reach out thanking us for our Market Microstructure Guide. It’s human-written, and lots of startups plagiarized it. Databento’s content is what AI trains on. All other guides are slop. databento.com/microstructure
13
23
3
396
36,686
SekFook ☀️ retweeted
Built for the NEAR HACKATHON: 🛡️ Touchstone, an agentic security harness. A swarm of AI agents audits smart contracts in isolated sandboxes, running entirely on @NEARProtocol AI inference, and backs real findings with machine-checked proofs. Live demo 👇 #NEARHackathon
4
3
14
462
SekFook ☀️ retweeted
自顶向下学习 LLM 的技术路线 👇 CS329Z -> cs329z.stanford.edu/ CS224N -> web.stanford.edu/class/cs224… CS336 -> cs336.stanford.edu/
7
205
1,302
48,350
同事今天丟給我看的,我看完覺得實在太好了。強烈建議不要看任何其他人的總結,直接原速看完整段演講,我覺得對我作用挺大的,無敵無敵推薦,很多可以思考的方向也多了很多新的思路,需要好好消化一下!
神鱼 @bitfish 的这个认知太顶了,真正的“窃天之智” 核心观点: 1/ 算力决定你看到的世界:从原子 → 比特 → 向量 2/ 用 Token 购买「时间折叠权」 3/ AI 时代更需要「健脑房」+ 双轨阅读 4/ 向内觉察:Agent 成为最懂你的镜子 5/ 向内觉察:Agent 成为最懂你的镜子 6/ 人机协同的控制论:两个核心旋钮 7/ 超级个体放进传统组织会失效 8/ 人生本质上只有三件事:吃饭、睡觉、合道(运用算力对外探索世界结构、对内觉察灵魂) 结尾金句:在向量世界里,人人都在“窃天之智”
10
39
247
29,915
SekFook ☀️ retweeted
"Stablecoins are becoming the settlement leg." @kevintheli, Founder of @goldskyio, on "Money That Moves Itself" at Ethereum Stablecoin Summit.
5
1
15
593
SekFook ☀️ retweeted
Jane Street just put an AI skill on GitHub. It's not a trading bot. It's a strict Socratic tutor: → Starts with a diagnostic of what you already know → Builds a skill map with levels from 0 to 5 → Asks one question at a time instead of handing you answers → Brings old material back with spaced review → Ends with a final assessment Copy it into your agent's skills folder and say "teach me [anything]". Works in a normal chatbot too: paste the SKILL.md. github.com/janestreet/agent_…
161
404
48
7,505
930,245
SekFook ☀️ retweeted
tradingmind.net/course recorded this ages ago in a small group mentorship but there's some good content there if you're interested in market structure/price action/orderflow
9
58
1
790
83,203
Understanding the Erlang runtime system (by Erik Stenman): blog.stenmans.org/theBeamBoo…
1
3
34
1,670
SekFook ☀️ retweeted
been doing a lot of database performance work (I’m having so much fun!) and I keep coming back to this blog from planetscale about benchmarking, such excellent tips all in one place! planetscale.com/blog/on-benc…
6
22
260
12,415
These are great articles. The images in the posts might not appear for you because they are stored on a different domain that throws an SSL warning. If you make your browser ignore the warning, all the images from the posts will appear. Getting Physical With Memory manybutfinite.com/post/getti… How The Kernel Manages Your Memory manybutfinite.com/post/how-t… Motherboard Chipsets and the Memory Map manybutfinite.com/post/mothe… Memory Translation and Segmentation manybutfinite.com/post/memor… CPU Rings, Privilege, and Protection manybutfinite.com/post/cpu-r…
All articles by Gustavo Duarte are excellent. They taught me the fundamentals of computers.
66
1
439
14,302
SekFook ☀️ retweeted
I'll be speaking about Streamling at Current next week!
1
5
220
SekFook ☀️ retweeted
How we improved bloom filters in parquet-rs [1], now adopted by ClickHouse [2]: pydantic.dev/articles/bloom-… [1]: github.com/apache/arrow-rs/p… [2]: github.com/ClickHouse/ClickH…
5
24
2
210
17,102
SekFook ☀️ retweeted
How I made $6K PnL in 30 days on $10K principal market making perps ($158m+ volume). The strat was entirely built by me and my quant, Claude (he won a national math competition in China). Last night I asked if you'd want a guide. Hundreds of you said yes, so here it is: HFT for Dummies. The honest timeline when I did it: - Days for basic harness and venue integrations. - Weeks to get it semi-competitive. - Months to really tune and get it properly profitable. This series can hopefully shortcut the learning curve for you. I've been writing trading bots since 2017. It's how I got into crypto (free market data!), and how I met my co-founder. Back then the barrier was high. You had to know how to code, to study data to find alpha, and to grind devops to have systems not blow up in production. Thankfully I taught myself Python and later Rust, but not everyone has a CS degree. Nowadays with LLMs, anyone can have a skilled quant in their pocket. I use it for data analysis, strategy tuning, research and alpha generation and infra optimisation. It's a ridiculous time saver. I'm extremely bullish on one-person quant shops. I think this will be a huge trend this next decade as finance comes on chain and market data and connectivity are accessible to anyone. I've already met many hobbyists who've made a living trading on e.g. Hyperliquid, enough so to quit their day jobs. What we'll be building A delta-neutral, reference-price market maker. Binance is where most price discovery happens. We stream its market data, use it as a reference price, and quote a bid and an ask around it on another venue. I'm using @Bulletxyz because it's the one I know best. Market making is the business of picking up pennies. Mine are under half a basis point per dollar. Enough pennies add up at the scale of millions of volume. The catch is speed. If the market moves and you're slow to update, someone lifts your stale quote and you're the exit liquidity. It's a fun game of algorithmic cat and mouse. On Bullet, takers get a 100ms speed bump. Why? It gives soon-to-be market makers like you a safety buffer so you don't get steamrolled by billion dollar firms with microwave towers. The goal The goal: tick to order sent in under 10ms. Stretch goal: under 1ms, which is very achievable if you're determined. We'll also focus on minimising jitter (randomness) because your slowest orders are the ones that will lose you the most pnl. Agenda: I'll aim to post one topic a day, going from easy wins, and getting progressively more deep in the weeds. If you work at any HFT firm this will all be elementary stuff, but hopefully it's helpful for newcomers. Saving seconds 1. Basic intro to algo-trading (this post) 2. Running a simple market maker from your laptop 3. Measure once, cut twice: telemetry and Amdahl's law 4. AWS: Infra and colocation Saving millis 5. Stop polling: websockets are your friend 6. Optimising order execution 7. How to not get rekt by API rate limits 8. Linux tuning: CPU pinning, IRQs and other nerd stuff Saving micros (diminishing returns, but fun) 9. Optimising the hot path with CPU profiling in Rust 10. AWS: the last mile 11. Bonus: nonces (and other DeFi quirks) I'll try share some open source code along with it. Don't expect to be beating Jump in the orderbooks just yet. It should be a good baseline that you can extend and take it as far as you want (you can take it pretty far!). Tomorrow: setting up a basic MM in Rust, the architecture of which will roughly follow the diagram attached below.
Would people be interested if I wrote up a guide on latency optimization and colocation tricks for perp exchanges?
71
54
9
1,054
124,621
quants, nerds and mathematicians thank me later... quantmemo.com/
41
315
16
2,897
228,239