Bartosz Sypytkowski's Avatar

Bartosz Sypytkowski

@horusiath.bsky.social

Yrs/Yjs core dev team. Interested in distributed systems, databases and CRDTs. Blogging: https://www.bartoszsypytkowski.com

657 Followers  |  74 Following  |  235 Posts  |  Joined: 01.07.2023  |  1.8525

Latest posts by horusiath.bsky.social on Bluesky

Task: "this function should work with any type that can return a &T".

Rust: let me educate you on Deref, Borrow and AsRef. But if your type is hidden behind Rc<RefCell<T>>, Arc<Mutex<T>> or Arc<RwLock<T>>, you'll need to play a 5D chess match against your compiler to make it work.

16.10.2025 05:24 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Sorry. I'm just preparing myself for that role very soon and trying to figure myself a way out between different (often contradictory) advices.

15.10.2025 08:16 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

From what I've heard this is not actually a good thing. Basically a sleep-induced starvation at that age.

15.10.2025 03:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Have anyone tried to implement Rope data structure over persistent key-value storage?

14.10.2025 03:11 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Some thoughts back from the vacation on African dessert: current world of software expects you to be permanently online and that sucks really badly.

Even my music app and video player first hangs for a minute trying to connect before giving up and letting me work on it. This is unacceptable.

13.10.2025 04:45 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Agree on deeply disturbing 😜

11.10.2025 06:00 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Why bother to read something nobody could be bothered to write?

07.10.2025 05:39 β€” πŸ‘ 307    πŸ” 21    πŸ’¬ 1    πŸ“Œ 1

put another way: i don't want your dataβ€”not just from an ideological "users should be in control" perspective, but from a pragmatic "this makes my app harder and more expensive to run" perspective

we've been so focused on making it easy to scale up that we've accidentally made it hard to scale down

05.10.2025 15:47 β€” πŸ‘ 64    πŸ” 7    πŸ’¬ 3    πŸ“Œ 2

Yes. Thank you :)

03.10.2025 18:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Apache Cassandra | Apache Cassandra Documentation

I'm looking up for papers about on-disk trie/radix/prefix tree-based key-value stores. I've heard about Cassandra switching some time ago (cassandra.apache.org/_/blog/Apach...). Are there any other good insights into these data structures?

03.10.2025 10:13 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Idea: have a Rust bytes::Bytes<T> variant, where T describes how to interpret its binary content, ie.:

- Bytes<Utf8>
- Bytes<Lz4<T>>
- Bytes<ZerocopyStruct>

this way we also never assign incompatible data like `Bytes<Lz4<T>> => Bytes<T>`.

02.10.2025 05:52 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

My main purpose for immutable data types is to use them together with compare-and-swap.

From what I've seen, a lot `im` API is internally immutable but uses `&mut self` for user-facing methods. Additionally the target structures are not register-sized, so I need extra allocs and checks.

29.09.2025 18:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Looking at the state of cargo crates related to immutable/persistent data structures (some having < 300 downloads, most not updated for 3+ years), I'd say that this domain pretty much died in Rust ecosystem.

29.09.2025 16:55 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

My favourite part of Akira is that its portrait of the fallen, post-apocalyptic youth looks basically the same as in a regular US high-school drama from the 90's.

29.09.2025 07:54 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Well, depends heavily if you have or don't have the money. If you fund your venture out of your own pocket you better have a very good reason for spending a sum of money PER YEAR for which you can establish an entire elementary and high school in Europe including building the campus.

28.09.2025 20:26 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

You can easily find stores to buy alcohol 24h/day, yet pharmacies with such availability are so rare...

27.09.2025 03:09 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

New level unlocked: copilot autocomplete started adding features that don't exist in the language (in my case: adding function params with default values in Rust :) ).

23.09.2025 11:12 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

It sounds like you've just became the world's most micromanaging team leader in charge of a group of irredeemable juniors. Not really an envious place to be in tbh.

23.09.2025 10:42 β€” πŸ‘ 9    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Ok, so iPhone Air has bad battery, doesn't support physical SIM cards or 5G. And USB 2.0 charging port... Who is this shit made for?

23.09.2025 06:43 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Reading HN comments on "Why Local-First Apps Haven't Become Popular?" to discover that 90% of the readers don't understand what local-first (or local-only tbh) actually implies.

22.09.2025 15:37 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
SIMD Within a Register: How I Doubled Hash Table Lookup Performance | MALTSEV.SPACE It started with a simple thought: four bytes in a hash table bucket look just like an integer. Luckily, this one idea led to a deep dive into bit-twiddling and a 2x performance boost.

SIMD Within a Register: How I Doubled Hash Table Lookup Performance

Learned about SWAR the first time in the one-billion row challenge. Nice explanation including benchmarks.

20.09.2025 12:56 β€” πŸ‘ 16    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0

Fuck me this is bleak.
But please, do continue to use GenAI slop thumbnails for your YouTube videos, or your album art, or your book covers or whatever else. I'll continue to refuse to watch/listen/read any of them, knowing already they're not worth the time & that you're a disappointing lazy hack.

18.09.2025 09:14 β€” πŸ‘ 4017    πŸ” 1910    πŸ’¬ 44    πŸ“Œ 92

While atm. bitchat already supports BLE, there are also plans for WiFi Direct and... low-bandwidth ultrasonic communication in case when you wanted to chat in environment where radio signal is jammed or dangerous: github.com/permissionle...

18.09.2025 06:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Hosting a WebSite on a Disposable Vape Someone's trash is another person's web server.

Hosting a website on a disposable vape bogdanthegeek.github.io/blog/project...

15.09.2025 13:06 β€” πŸ‘ 360    πŸ” 83    πŸ’¬ 14    πŸ“Œ 22

I tried to watch National Geographic movies on youtube, but with my current level of ADHD, these are barely watchable.

They're 40+min videos that hide maybe 10-15min of actual content. The rest is just repeating the same facts and building shock/suspension narrative.

15.09.2025 09:27 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

As for claims of "X hours of video". What sucks up my battery the most during trips is taking photos: which automatically triggers HDR + AI "enhancements" I didn't ask for. You can turn them off, but they can go back on randomly after updates.

10.09.2025 06:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Why would I care if new iPhone is even thinner, when I still need to somehow sit with 6.5'' titanium rectangle in my pocket?

10.09.2025 02:03 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I understand that's better UX than Git, but fundamentally jj is missing features that I think should be part of VCS repo:
- issue tracker
- code review
- repo navigation that doesn't turn into bash hackathon

08.09.2025 07:27 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

TIL that Fossil (SQLite internal version control system build on top of SQLite) has a chat feature - which supports Markdown syntax including table and diagrams rendering: fossil-scm.org/home/doc/tru...

08.09.2025 07:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Tbh. I wanted to move my private repos out of Github. And as I'm on that, I'd like to give some other vcs a chance - I think, I'll go with Fossil.

08.09.2025 05:34 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 3    πŸ“Œ 0

@horusiath is following 20 prominent accounts