developus mediocrus
65 subscribers
753 photos
225 videos
13 files
202 links
Just a mediocre dev trying to build a career in tech
Download Telegram
Hey man
Ur references are sick bro
Totally sick man
Let me talk about something obvious but with a bit of quantification...

Theoretically, both arrays and linked lists take O(n) time to traverse, but here's what actually happens when you benchmark by summing 100k integers

- Array: 68,312 ns
- Linked List: 181,567 ns

Summing an array is ~3x faster than LinkedList. Same algorithm, same complexity, but wildly different performance.

The reason is cache behavior. When you access array[0], the CPU fetches an entire cache line (64 bytes), which includes array[0] through array[15]. The next 15 accesses are essentially free. Arrays hit the cache about 94% of the time.

Linked lists suffer from pointer chasing. Each node is allocated separately by malloc(), scattered randomly in memory. Each access likely requires a new cache line fetch, resulting in a 70% cache miss rate.

This is a good example of why Big O notation tells only part of the story. Spatial locality and cache-friendliness can make a 2-3x difference even when the theoretical complexity is identical.

I am sure you would have known this, but this crude benchmark quantifies just how fast cache-friendly algorithms can be.

Hope this helps.
Back in 9th grade i tried to make an animation by drawing a picture slightly differently multiple times ... using ms paint

There weren't enough drawings i made so it was a bad animation
Back then i also created subtitle files for one of my fav cartoon network shows: Angelo Rules. They were in Amharic and they were so perfect. I just opened notepad and edited an srt file, by autistically tracking the timestamps in the video
Meanwhile me now: "what if i cut my hair using the knife?πŸ€”"


(p.s. it's much harder to cut a strand of hair than it is to cut potatoes or bread)
Saw a key and peele vid where bro says
>some idea
>nah bro that's like lightning in a bottle
>well i got lightning in a bottle *shows lightning in a bottle*

Goofy ahh humor
This media is not supported in your browser
VIEW IN TELEGRAM
αˆαŠ•αˆ ነገር αŠ α‹­αŠ¨αˆ°α‰΅αˆα’
πŸ₯°1😁1
i be mad why goland doesn't have the () around the if condition, and then make this kind of mistake myself.
golang*
I went to this workspace at Bole, thinking it would be cheap

α‰₯αˆ¬αŠ• α‰°αŒ‹αŒ₯αŠ©πŸ’€
😁3
developus mediocrus
dart btw. i'm cooking up sth
Introducing: which-port. A simple Flutter app for linux desktop for freeing occupied ports. Are you tired of seeing messages like "port 3000 is already in use"? Now you can simply track which process is holding the port, an kill it, so that you can use the port as you wish.

Check out the soure code on Github: (don't forget to leave a star :) )
https://github.com/Dechie/which-port
πŸ”₯2⚑1
developus mediocrus
Introducing: which-port. A simple Flutter app for linux desktop for freeing occupied ports. Are you tired of seeing messages like "port 3000 is already in use"? Now you can simply track which process is holding the port, an kill it, so that you can use the…
Also i learned that Dart has powerful capabilities when it comes to dealing with OS stuff. You can use pure dart to create new processes, kill them, or manipulate them.

You can literally call commands like cat and ls with dart.

Underrated language fr
Forwarded from Mickey's outlet
There a tool to translate normal text to LinkedIn text. πŸ˜‚
😁2
It's FOSS
MidnightBSD is not taking any chances with age verification. πŸ˜² https://itsfoss.com/news/midnightbsd-age-verification/
The state of California in USA and Brazil are aggressively enforcing age verification laws, even asking Ubuntu OS to build it in (in a way that affects all Linux distros).

This BSD based OS has protested against them.
I swear one day I will be an Artix user.

I already have it in vm. I just gave up on it because installing flutter without systemd is unbearably difficult