Shritesh Bhattarai's Avatar

Shritesh Bhattarai

@shrite.sh

44
Followers
142
Following
16
Posts
24.07.2023
Joined
Posts Following

Latest posts by Shritesh Bhattarai @shrite.sh

Understanding the bin, sbin, usr/bin , usr/sbin split

Rob Landley wrote what I believe to be the most accurate historical retelling of how we ended up with a mess on the file system. That retelling also has a lesson at the end about bureaucracy :) lists.busybox.net/pipermail/bu...

14.03.2025 11:10 👍 68 🔁 18 💬 3 📌 1
Learn Wasm by building a simple compiler in JavaScript. No compiler expertise necessary. All the code is in the book; we'll take you through it step by step. Get your hands dirty and see for yourself what WebAssembly is all about.

Learn Wasm by building a simple compiler in JavaScript. No compiler expertise necessary. All the code is in the book; we'll take you through it step by step. Get your hands dirty and see for yourself what WebAssembly is all about.

Excited to announce the official launch of our online book, WebAssembly from the Ground Up! 🎉

It's the book we wish we'd had 3 years ago.

No messing with tools and frameworks. It's a hands-on guide to the core of Wasm: the instruction set and module format.

Link below. 👇

10.03.2025 13:19 👍 74 🔁 34 💬 2 📌 6
Porffor: Objects v2 Porffor's rewritten object implementation is now much faster and produces 2-5x smaller Wasm binaries when using objects!

I rewrote Porffor's object implementation completely; it is now much faster and makes Wasm binaries 2-5x smaller than before when using objects!

Porffor's current worst benchmark gets 30% faster with >4x smaller Wasm; almost on par with QuickJS with only ~1 month of work!

goose.icu/porffor-obje...

05.02.2025 19:05 👍 65 🔁 6 💬 3 📌 0
Preview
rewrite.md GitHub Gist: instantly share code, notes, and snippets.

Roc is re-writing from #rustlang to #ziglang gist.github.com/rtfeldman/77...

04.02.2025 17:47 👍 93 🔁 6 💬 18 📌 1

Freed up 439 GB from my laptop by running `cargo clean-all` and removing old Xcode Simulators and Device Supports.

01.02.2025 16:50 👍 1 🔁 0 💬 0 📌 0

Citizen Sleeper 2 is out. Side projects will remain (even more) untouched over the weekend.

31.01.2025 19:10 👍 1 🔁 0 💬 0 📌 0

Both my dog and I have dentist appointments today.

28.01.2025 22:25 👍 1 🔁 0 💬 0 📌 0
Preview
Add OPFS (Origin Private File System) Support by e1arikawa · Pull Request #1856 · duckdb/duckdb-wasm Description: This PR implements OPFS (Origin Private File System) support in the latest version of duckdb-wasm based on PR #1490. This allows database files to be read and written to the OPFS. API:...

duckdb-wasm now has OPFS support! This means that you can now persist a DuckDB database in the browser for a given origin. This will make caching & local operations much nicer!

github.com/duckdb/duckd...

15.01.2025 16:53 👍 30 🔁 6 💬 2 📌 1

Cheers. Now get ready to spend the next few weeks printing parts for the printer itself. I’m currently on my fifth plate of the AMS lite cover.

03.12.2024 19:55 👍 0 🔁 0 💬 1 📌 0

The result is much better on Bambu.

27.11.2024 15:16 👍 0 🔁 0 💬 0 📌 0

Do it!

26.11.2024 20:06 👍 0 🔁 0 💬 0 📌 0
Async and Await - The Rust Programming Language

My new chapter of the #Rust book on async and await is finally out on nightly—coming in 1.85! doc.rust-lang.org/nightly/book... I spent months planning, drafting, and rewriting this—and now it’s live! We’ll have more edits and improvements, but this is a huge step forward for learning async in Rust.

25.11.2024 18:42 👍 160 🔁 27 💬 7 📌 0

There’s a Black Friday sale going on 😉

26.11.2024 19:38 👍 1 🔁 0 💬 1 📌 0

new blog post going into depth on this problem: goose.icu/porffor-this/

26.11.2024 17:57 👍 16 🔁 2 💬 0 📌 2

Yup. My new filaments are still in shipment so I got some from a friend who had it out in the open in his back patio and it still printed great.

26.11.2024 18:21 👍 0 🔁 0 💬 0 📌 0

The latest 3D printers are crazy fast. I upgraded from a Creality Ender 3 Pro to a Bambu Lab A1. Print times for a Benchy went from 2 hours to 12 minutes and the printer itself did all the calibration.

26.11.2024 17:59 👍 16 🔁 0 💬 4 📌 0
Preview
Stabilize the 2024 edition by ehuss · Pull Request #133349 · rust-lang/rust This stabilizes the 2024 edition for Rust 1.85, scheduled to be released on February 20, 2025. 🎉 cc tracking issue: #117258 There is a fair amount of follow-up work after this that I am working on ...

It’s happening!!! 🎉🚀⚙️🦀 github.com/rust-lang/ru...

22.11.2024 20:45 👍 34 🔁 8 💬 0 📌 0

I started a local-first starter pack because I've been trying to find these people anyway: go.bsky.app/NirnP1W

06.11.2024 19:49 👍 24 🔁 4 💬 9 📌 1

I hope Apple continues to sell Pixelmator Pro / Photomator as Pro apps like Final Cut Pro / Logic Pro and not just absorb some features into Photos and sunset them.

01.11.2024 16:40 👍 0 🔁 0 💬 0 📌 0
An Xcode error that says “Command SwiftCompile failed with a nonzero exit code” for RemixView.swift

An Xcode error that says “Command SwiftCompile failed with a nonzero exit code” for RemixView.swift

Swift compiler just gave up and exited with a nonzero status compiling an async function with a loop. No errors, no messages. I solved it by rewriting the function with recursion but this is unacceptable for a 10 year old industrial language.

29.10.2024 22:20 👍 1 🔁 0 💬 0 📌 0

My experience with Ray Ban Meta: great headphones, convenient camera and good-enough AI assistant (when connected to a phone). Paired with a cellular Apple Watch, it has replaced my iPhone and AirPods when walking the dog.

29.10.2024 16:41 👍 0 🔁 0 💬 0 📌 0
Announcing Toasty, an async ORM for Rust | Tokio - An asynchronous Rust runtime Tokio is a runtime for writing reliable asynchronous applications with Rust. It provides async I/O, networking, scheduling, timers, and more.

Announcing Toasty, an async ORM for #rustlang

tokio.rs/blog/2024-10...

23.10.2024 21:48 👍 78 🔁 14 💬 10 📌 2

How hasn't anybody implemented multiple fonts inside terminal emulators?

10.11.2023 21:01 👍 0 🔁 0 💬 0 📌 0

Me advocating static typing: Haha fuck yeah!!! Yes!!
Me writing a proof in TypeScript that an array is non-empty: Well this fucking sucks. What the fuck.

17.10.2023 21:36 👍 0 🔁 0 💬 0 📌 0

Even with all the hype, WebAssembly is still underrated.

26.09.2023 20:50 👍 1 🔁 0 💬 0 📌 0

foreplay
whileplay
dowhileplay
rangebasedforeplay
gotoplay (considered harmful)

15.08.2023 23:35 👍 3 🔁 1 💬 0 📌 0

“if economics is real, how come i never make rational choices in my own self-interest?”

27.07.2023 00:16 👍 16 🔁 3 💬 0 📌 1

Hey, my vanity domain is actually useful here.

26.07.2023 01:24 👍 6 🔁 0 💬 0 📌 0