
👨💻 Full Stack + Web3 Dev | ⚛️ React | 🐹 Rust | Blockchain | web tech & decentralized systems
bangalore
Joined June 2022
- Tweets34
- Following364
- Followers27
- Likes374
Arun retweeted
If you can write CSS, you can write GSS { ● }
I've been dreaming of this for years: a language to build 3D scenes like you write CSS. Selectors, cascade, :hover, keyframes… compiled to one GPU shader.
Meet GSS: GPU Style Sheets.
gss-lang.dev
#shader #glsl #gss
Arun retweeted
scriptc now compiles itself
The compiler that turns your TypeScript into native executables can now turn its own TypeScript into a native executable
Arun retweeted
📦 upm is a new package manager from @_pi0_. It’s written in TypeScript and fits in ~250 KB. It uses Node.js built-ins to compete on install speed, has a #JavaScript API, and can install from npm, pnpm, and Bun lockfiles.
A zippy experiment with Node.js: socket.dev/blog/upm-package-…
Day 2 of building ts-rust 🦀
Started with the basic types today.
Working through things like string, number, boolean, null, undefined and how they flow through the type checker.
Feedback and contributions are welcome.
github.com/arun-murali0/ts-r…
Day 2 of building ts-rust 🦀
Started with the basic types today.
Working through things like string, number, boolean, null, undefined and how they flow through the type checker.
Feedback and contributions are welcome.
github.com/arun-murali0/ts-r…
Arun retweeted
One surprising lesson @JasonSeibel and I learned while building @pgrustdb is the importance of arena memory allocators
Postgres uses arena allocators to allocate memory. When Postgres performs an operation, it creates an array, and every allocation goes through it. When Postgres finishes the operation, it frees the entire array. We thought this was done to make memory management simpler
We initially replaced the way Postgres did it with Rust lifetimes because it was much simpler
It turns out this was 2x slower because allocating and freeing memory in bulk is so much faster than freeing objects one at a time. Now we make sure all of our allocations are done in an arena, similar to how Postgres does to match Postgres on performance when it comes to allocating memory
boxd in 60 seconds
a whole linux machine that boots in under 10ms
composable: set it up once with your tools and data, then spin up as many as you need
fork it mid run, let it hibernate, wake it on traffic, share it with your team
one line to install: curl -fsSL boxd.sh/downloads/install.sh | sh
Been playing around with building a TypeScript type checker in Rust on top of Oxc.
Still early, just exploring and learning. Feedback and contributions are welcome.
github.com/arun-murali0/ts-r…
Been playing around with building a TypeScript type checker in Rust on top of Oxc.
Still early, just exploring and learning. Feedback and contributions are welcome.
github.com/arun-murali0/ts-r…
Arun retweeted
I've been f--king with JavaScript since '97
I definitely didn't expect it to end up everywhere, especially on the server in any serious capacity
But here we are. JS is everywhere. And now it has another advantage: LLMs know it *really* well
I love Rust. Tbh I love working with pretty much any language. But there's also something incredibly useful about having an "everything language" across the stack, ecosystem and now AI tooling too
I want to see JS/TS keep evolving. I want to see it succeed. And I think part of that means seriously exploring what static JavaScript looks like
If you're passionate about this too, come share your ideas, give feedback and report bugs:
github.com/vercel-labs/scrip…
Let's make production-grade static JS on the server safe, reliable and the right choice for a whole class of workloads
Arun retweeted
Happy to introduce Motion Panels.
A React library for resizing and toggling panels with animations.
It has a similar API to react-resizable-panels but with the addition of Motion.
Arun retweeted
System Design Concept diagrams of the week.🚀
1. Rate Limiting
2. CRON Jobs
3. Load Balancers and Load Balancing Algorithms
4. Pub-Sub
5. Message Queues
I’ve been posting 1 system design concept every day.
Interested in learning system design? Follow along.
Arun retweeted
what if you could also visualize data flow within a React app?
When my React code gets unwieldy, I grab pen and paper and draw the component tree by hand, both parents (structure) and owners (data flow). Playing around with a tool that uses @aidenybai's bippy to draw both tree live, from any running React app, in the style of my blog diagram
Arun retweeted
i spent way too long learning system design the wrong way.
reading articles. watching videos. still freezing on whiteboard questions.
so i built Antimetal
→ drag & drop canvas to actually build architectures
→ failure simulations before you ever ship
→ 67 lessons, soup to nuts
and many more ....
we're live. go build something.
Link in the comment
Arun retweeted
🛠️ Comparing Mutex, RwLock, and Atomic Variables in Rust 🦀
Concurrency can be tricky, but Rust provides strong tools to manage it safely, such as Mutex, RwLock, and atomic types like AtomicUsize. Let's take a look at some examples to compare them!
1️⃣ Mutex: Exclusive Access
- A Mutex ensures only one thread accesses a shared resource at a time. It’s perfect for mutable data that can't be accessed concurrently.
Pros: Easy to use.
Cons: Locks the data entirely, blocking all access.
2️⃣ RwLock: Read-Write Lock
- An RwLock allows multiple readers or a single writer. Ideal when reads are frequent and writes are rare.
Pros: More efficient when reads dominate.
Cons: More complex and slightly slower than Mutex.
3️⃣ Atomic Variables: Lock-Free Concurrency
Atomic types like AtomicUsize provide fast, low-level access for simple numeric data.
Pros: Very fast, no locking.
Cons: Limited to basic operations, harder to use safely.
💡 When to Use What?
- Mutex: Complex, mutable data needing exclusive access.
- RwLock: Read-heavy workloads with infrequent writes.
- Atomic: Simple numeric values with high concurrency needs.
Getting a good grasp of these tools is key to achieving safe and efficient concurrency in Rust. Which one do you find yourself using the most? I'd love to hear your thoughts! 👇 #RustLang #Programming
Arun retweeted
🦀 Rust Traits You Should Know: Drop, Deref, and AsRef 🔧
Rust’s trait system is incredibly powerful! Let's look at three essential traits that enhance memory management and flexibility in Rust: Drop, Deref, and AsRef.
1️⃣ Drop Trait: Clean Up Resources
- The Drop trait allows you to customize what happens when a value goes out of scope. It's useful for releasing resources or cleaning up data.
2️⃣ Deref Trait: Smart Pointer Dereferencing
- Deref allows you to override the * (dereference) operator, enabling smart pointers to act like references. For example, Box uses Deref to allow access to the value it points to.
3️⃣ AsRef Trait: Flexible References
- AsRef is perfect for converting between types in a way that’s efficient. It provides a way to get a reference of a specific type, which is useful in APIs that accept multiple input types.
That’s a wrap! 🎉 With Drop, Deref, and AsRef, you can take control of cleanup, make smart pointers feel intuitive, and create flexible, efficient APIs. Mastering these traits will make you a better Rustacean! 🦀
#RustLang #Programming #RustTraits #Rust






























