Pinned Tweet
Yup we won a hackathon just by building a todo list dapp!
Thank you my team @teelevelup @LongPh8 @hoc_tap @lgrd149 for making this possible.
Thrilled to announce my team won first place at the Sui Move Bootcamp Hackathon HCMC! 🚀 What an intense journey—diving deep into Move's object models, ptbs, and building real-world DApps. I have learn so much from the bootcamp.
#SuiMove
Nguyễn Khôi retweeted
🫡
Introducing tsrs: a Rust port of the TypeScript compiler 🦀
We are not forking TypeScript!
◆ In close collaborating with the TypeScript team
◆ Up to 8x faster than TS 7.0 & ~70% less memory
◆ Runs in WASM, so it works in your browser & on Workers
◆ Soon part of the Oxc toolchain
npx tsrs
blog.cloudflare.com/typescri…
Do you remember when you joined X? I do! #MyXAnniversary
It has been a journey. I started to use it as a normal curiousity user and search for sb. Time flies.
19
Nguyễn Khôi retweeted
DSA Preparation Roadmap (From Zero to OA Ready)
1. Sliding Window: 3, 76, 209, 424, 567, 904
2. Two Pointers: 11, 15, 16, 18, 42, 167
3. Fast/Slow Pointers (Linked List): 141, 142, 19, 876, 160, 234
4. Binary Search on Sorted Data: 33, 34, 35, 153, 162, 704
5. Binary Search on Answer: 875, 1011, 410, 774, 1283, 1482
6. Hashing / Frequency Maps: 1, 49, 128, 217, 242, 347
7. Prefix Sum / Running Sum: 303, 560, 724, 930, 974, 523
8. Difference Array / Range Updates: 370, 1094, 1109, 1893, 1943, 2381
9. Monotonic Stack: 739, 496, 503, 84, 85, 901
10. Monotonic Queue / Deque: 239, 862, 1425, 1438, 1499, 1696
11. Heap / Top K: 215, 347, 692, 703, 973, 1046
12. Intervals: 56, 57, 252, 253, 435, 452
13. Greedy Scheduling / Sorting: 45, 55, 406, 621, 763, 134
14. Linked List Manipulation: 21, 23, 24, 25, 92, 138
15. Tree DFS: 104, 112, 113, 543, 124, 226
16. Tree BFS / Level Order: 102, 103, 199, 515, 637, 116
17. BST Problems: 98, 99, 230, 235, 450, 700
18. Backtracking Basics: 46, 47, 77, 78, 90, 39
19. Backtracking with Constraints: 40, 17, 79, 131, 51, 52
20. Graph BFS / DFS: 200, 695, 733, 994, 1091, 1254
21. Topological Sort / DAG: 207, 210, 802, 1462, 1203, 2115
22. Union Find / DSU: 547, 684, 1319, 1579, 990, 1202
23. Shortest Path: 743, 787, 1514, 1631, 1334, 1976
24. MST / Graph Greedy: 1584, 1135, 1168, 1489, 778, 1102
25. Trie: 208, 211, 212, 648, 677, 1268
26. Bit Manipulation: 136, 137, 191, 338, 268, 190
27. 1D DP Basics: 70, 198, 213, 322, 279, 300
28. Knapsack / Subset DP: 416, 494, 518, 474, 1049, 879
29. Grid DP: 62, 63, 64, 221, 931, 120
30. String DP / Sequence DP: 1143, 72, 115, 583, 97, 1312
How to use this list?
- These numbers are Leetcode problem numbers
- Do 3 patterns at a time, not all 30 together.
- For each pattern, solve the first 2 to understand the idea, the next 2 to get repetition, and the last 2 to stretch yourself.
- After every pattern, write one reusable template from memory.
- Do not just “solve and move on.” Ask: what signal in the question pointed to this pattern?
- If you get stuck, revisit the same pattern after 3 to 4 days. Pattern recognition is built by spacing, not cramming.
Nguyễn Khôi retweeted
Concurrency is tough. but learning these will make it easy for u:
0. Thread Safety (race conditions)
1. Locks (Mutex, RW Locks)
2. Optimistic vs pessimistic locking
3. Lock-free/CAS (compare & swap)
4. Deadlocks (detection/prevention)
5. Thread pools
6. Futures & async
7. Backpressure (producer/consumer)
8. Context switching overhead
9. Event loops vs threads
Nguyễn Khôi retweeted
[GIVE AWAY POST]
Em Tina đang có 1 phần quà bên SCEX đang muốn giveaway cho 1 bạn bất kì trong bài viết này!
Thể lệ đơn giản thôi:
- Follow mình
- Cmt số bất kỳ từ 01-199
- Rt bài viết này
Mình là Affiliate BD partner chính thức của sàn nên nếu có nhu cầu affiliate với sàn SCEX ae hãy contact mình nhé 🥰
Chúc anh em may mắn
"Samrt humans figure out it fast"
SpaceX is actively hiring world-class engineers/physicists for SpaceXAI, even if you have zero prior experience in AI. Smart humans figure it out fast.
Please send an email with ~3 bullet points demonstrating evidence of exceptional ability to [email protected].
13
Nguyễn Khôi retweeted
Step-1: Learn Rust
Step-2: Understand ownership, borrowing & lifetimes
Step-3: Master memory safety, zero-cost abstractions & type system
Step-4: Build a CLI tool using Cargo
Step-5: Write a multithreaded server using async Rust with Tokio
Step-6: Read the Rust standard library source. question everything
Step-7: Build a production-grade backend (REST/gRPC, DB, caching, msging)
Step-8: Make it fast & safe (profiling & benchmarking)
Step-9: Eliminate bottlenecks with safety
Step-10: Ship it
Nguyễn Khôi retweeted
Algorithms by Jeff Erickson - one of the best algorithm books out there.
The illustrations make complex concepts surprisingly easy to follow. Highly recommend this.
jeffe.cs.illinois.edu/teachi…
Have they hired 3rd audit firm yet? This is such a basic bug!
Aftermath Finance lost $1.14M to an integer overflow bug. The kind of mistake covered in week one of every intro-to-programming course.
The fee was stored as u256 (always positive) but read elsewhere as signed (positive or negative). Pass a number close to the max, signed reading wraps it to a huge negative. Fee becomes rebate. Protocol pays you to trade.
Aftermath's perp source is private. Here's the exploit reconstructed from the on-chain trace:
1. Call create_integrator_info with u256 fee = 2^256 - 10^17 (looks like a huge positive number, reads as -10^17 signed)
2. Place matching limit and market orders between two of their own accounts
3. Each trade fires PaidIntegratorFees - protocol sends USDC to the integrator (attacker)
4. Atomic, repeatable, ~$79K profit per cycle
Final on-chain proof from the exploit tx:
PaidIntegratorFees event records:
- fees: 115792089237316195423570985008687907853269984665640563689698454007913129639936 (= -3.5×10^17 in signed i256)
- integrator_address: 0x1a65086c... (the attacker)
The protocol logged itself paying a wrapped-negative fee to the exploiter. Function signature on-chain confirms: clearing_house::create_integrator_info(Address, U256) with no bounds check.
The April pattern of missing parameter bounds:
- Singularity: oracle fee tier set to 42 (Uniswap only supports 100/500/3000/10000)
- Aftermath: u256 fee parameter wraps to negative when read as signed
- Scallop: spool created without last_index initialization
Same root cause across all three: setters that don't enforce the value range invariants the rest of the contract assumes. AI agents test boundary values automatically. Wrap a number, free money comes out.
Tx: 4pGQdfFG96Ghqj1xqkaeeAgMQCpttivdkgSRUGc6wVD8
18
Nguyễn Khôi retweeted
I paid $638 (X4) for @SuiPlay. Event attendees got it FREE. I never refunded. I held all 4 units. I defended this project. Now I'm sitting here feeling like the biggest fool in the room.
我宣布 最夯的周边是sui的游戏机
你没听错 就是免费参加活动 送游戏机
虽然领到了 但我很痛苦
可我是把0.8的sui卖了 500u一台买了三台
这台我也不会拆开,只会摆在家里祭奠我逝去的青春 😭
@CindyCreation @SuiNetwork
fricking cool bro
I trained a 12M parameter LLM on my own ML framework using a Rust backend and CUDA kernels for flash attention, AdamW, and more.
Wrote the full transformer architecture, and BPE tokenizer from scratch.
The framework features:
- Custom CUDA kernels (Flash Attention, fused LayerNorm, fused GELU) for 3x increased throughput
- Automatic WebGPU fallback for non-NVIDIA devices
- TypeScript API with Rust compute backend
- One npm install to get started, prebuilt binaries for every platform
Try out the model for yourself: mni-ml.github.io/demos/trans…
Built with @_reesechong. Check out the repos and blog if you want to learn more.
Shoutout to @modal for the compute credits allowing me to train on 2 A100 GPUs without going broke
cc @sundeep @GavinSherry
1
26
Nguyễn Khôi retweeted
I know you're all getting mighty tired of seeing typography on your timeline today!
But here's a pretext.js demo that (hopefully) isn't a crime against justification and indentation.
This is acctually a dillemma when you have to use llm to speedup your work but also have to stay sharp at the same time.
Cursor’s $200/month actually costs them ~$5,000
>Raise VC money
>Burn it subsidizing your usage
>Get developers addicted to AI coding
>Then one day maybe they will charge what it actually costs
You're not a customer right now. You're a user being onboarded into dependency.
The $200 price tag is temporary. The habit they're building in you is permanent.
Readers added context they thought people might want to know
The referenced $200/month plan belongs to Anthropic, not Cursor. Cursor performed the analysis, but the ~$4800/month/user loss is Anthropic’s
See the screenshot in the quoted post: x.com/dhruvmakes/sta…
1
21





































