avrl ☘

17.5K posts

avrl ☘ banner
avrl ☘

avrl ☘

@avrldotdev

Backend dev | I love to write | Open Source Contributor Medium: https://t.co/mtXbyXMyq0

192.168.29.72 Katılım Kasım 2024
313 Takip Edilen7.2K Takipçiler
Sabitlenmiş Tweet
avrl ☘
avrl ☘@avrldotdev·
one of the best articles on why undo/redo is so complex. it covers: - possible approaches - ropes as a data structure - operations on ropes - structural sharing & immutability - optimisations (cursor) - other impl's: piece table, gap buffers & finger trees do save & comment!
avrl ☘@avrldotdev

x.com/i/article/2071…

English
3
0
14
1.9K
Ojas Sharma
Ojas Sharma@OjasSharma276·
Whose advice would you take: someone who failed multiple times or someone who succeeded on the first try?
English
13
0
31
1K
avrl ☘
avrl ☘@avrldotdev·
@ramxcodes I also need to do this, smaller and byte sized exercise to keep me in the game.
English
0
0
0
62
Ram
Ram@ramxcodes·
It took me 35 minutes to implement debouncing in TS without AI. It took me 54 minutes to implement array flattening or the array.flat method from scratch but it was good. I’m like no ai. It’s almost like you know what you’re doing, but just can't write it. Now I need suggestions from you guys should i make videos on problems I’m solving? With good depth eg- for debouncing you need to learn: This Apply Callback Event loop architecture timeout closure and spread
English
28
1
183
5.6K
Ojas Sharma
Ojas Sharma@OjasSharma276·
In 12th grade, I had a really good friend. We both didn't do well in JEE. I joined a tier-3 private college, while he took a drop year. During his drop year, he would often tell me that he was aiming for IIT Delhi or any IIT for CSE. I assume things didn't go as planned because, a year later, he joined the same college as me. Ironically, he became my junior. But that's where our paths started to look very different. He became the president of some amazing clubs, built incredible hardware projects, made drones, and won hackathons. Watching his journey made me realize something important. I always blamed my college for not offering enough opportunities, but he proved me wrong. Sometimes, the limiting factor isn't the college. It's what we choose to do with the opportunities that are already there.
English
8
1
85
2.9K
Isha
Isha@ishadotio·
i tried recording an intro video today, failed miserably
English
8
0
32
763
Dark Goldenrod
Dark Goldenrod@Dark_Goldenrod·
That's a set union. To union 2 sets quickly ( and eventually n sets) 1. Allocate an array, results, sizeof len(set1) + len(set2) 2. Generate a hashmap of the smaller set (call it set1) 3. While generating the hashmap, copy all values which aren't duplicates in set1 into results (you will know this based on if the hash key collides and the value is already loaded: skip, otherwise add) 4. Iterate over all members of larger set, set2. If the hash of the item is NOT PRESENT in hashmap1, add it to results. 5. realloc results list to now calculated size 6. Return unique union, and apply against the next set. This will be a few ms per set you need to merge. As far as I am aware, there is no faster approach.
English
1
0
6
874
avrl ☘
avrl ☘@avrldotdev·
Expedia rejected coz I couldn't answer this question: How would you design a distributed deduplication engine that ingests multiple lists each with 100k+ items, dedupes them in <2s & returns a single combined list?
English
27
2
154
27.3K
avrl ☘
avrl ☘@avrldotdev·
@BertoldVdb We need to build it for scale, 100k was just a number, they needed an engine to handle all kinds of load and distributedness
English
0
0
0
133
BertoldVdb
BertoldVdb@BertoldVdb·
@avrldotdev 100K is not a lot. Can't you just insert them into a hashmap (does the dedupe) and then forward the locally deduped lists to a central node doing the same operation to make the final list?
English
1
0
1
146
Ritesh Roushan
Ritesh Roushan@devXritesh·
System Design Interview Question: You're building a Zoom-like video conferencing platform for enterprises. Requirements : Support 1 million concurrent participants globally. Meetings can have up to 500 participants. Users should automatically connect to the nearest region for low latency. If a regional data center fails, meetings must continue with minimal disruption. Support screen sharing, chat, recording, and real-time captions. Video quality should automatically adapt to changing network conditions. End-to-end latency should stay below 200 ms. How would you design the architecture? Explain your High-Level Design 👇
Ritesh Roushan tweet media
English
9
2
17
1.1K
Raunak
Raunak@capsraunak·
aj mera dimag ka khrb hai , koi toh aj sunega mere se ladai krne ka mood hai bc aj mera ajao mkc , gande khol ke rakh dunga sabki
Indonesia
5
0
3
159
avrl ☘
avrl ☘@avrldotdev·
@bit2swaz Unrelated but i saw your project engram on instagram on a page posting on ai projects from github. So congrats :)
English
1
0
3
67
aditya.
aditya.@bit2swaz·
fuck man kal se firse classes. but ykw even tho classes are boring and pretty much just end up fucking the day, i like how busy i am throughout the day. like there's never a moment's hestitation as to "should i work now???" because i know on the days ive got my classes i barely get any time to work, so whatever time i do get, i'd much rather spend it on working over pretty much whatever the fuck else i can do. + you get to meet and interact w loads of people between classes and breaks, even if it's just a simple "wassup wassup". good stuff back to work ^^
English
4
0
24
974
Tibo
Tibo@thsottiaux·
Morning. The last 48 hours of Codex and ChatGPT Work have been intense! Three important updates: - Temporarily removing the 5 hour usage limit restriction for all Plus, Business and Pro plans - Rolling out changes that will make GPT 5.6 Sol more efficient across the board and that will be reflected in less usage being used so that it can take you further. Exact impact to be quantified and shared - We hit 6M active users, and are landing a usage reset in the next hour Go do things
English
2.6K
1.8K
22.8K
3.1M
avrl ☘
avrl ☘@avrldotdev·
top five vanity metrics that're useless now: > github stars > github activity > lines of code > leetcode/cf rank > tokens burnt per day
English
25
1
59
2.9K
avrl ☘
avrl ☘@avrldotdev·
@DonaldBough It is async but near realtime based on the size to dedupe. After a limit, do it in background & return the result later
English
0
0
1
218
Donald Bough
Donald Bough@DonaldBough·
@avrldotdev Just ran through the full question w/ChatGPT grilling me for 30 minutes: - 2s SLA is a trap. Assume 100 file paths per request, each with up to 500k rows per file, avg row of 500 bytes, then network speed for 25GB in 2s isn’t realistic - Assuming async job, it was map reduce
English
1
0
1
259
avrl ☘
avrl ☘@avrldotdev·
@The_AtulMishra Ofc thats given, but they needed a basic idea before pinning down ghe details
English
0
0
0
243
Atul Mishra
Atul Mishra@The_AtulMishra·
@avrldotdev I'd push back on the question — ask for QPS, data skew, and exact vs approx dedup before sketching diagrams.
English
1
0
0
303
avrl ☘
avrl ☘@avrldotdev·
@zakiindra_ Bloom filters are not reliable for deduping.
English
0
0
0
271
.
.@zakiindra_·
@avrldotdev Local bloom filter to create single list with unique items in each node, then bloom filter to combine multiple lists across nodes into global single unique list.
English
1
0
0
301