./anderson (@alsmoreira) header
./anderson (@alsmoreira) profile picture

404 Not Found

Recife - PE - Brasil
Joined April 2012
Photo by ./anderson (@alsmoreira)Photo by ./anderson (@alsmoreira)Photo by ./anderson (@alsmoreira)Photo by ./anderson (@alsmoreira)Photo by ./anderson (@alsmoreira)Photo by ./anderson (@alsmoreira)Photo by ./anderson (@alsmoreira)Photo by ./anderson (@alsmoreira)Photo by ./anderson (@alsmoreira)Photo by ./anderson (@alsmoreira)
./anderson retweeted
Waveshare's tiny ESP32-S31-Zero packs a 320 MHz dual-core RISC-V processor, Wi-Fi 6, Bluetooth 5.4, and up to 32MB of PSRAM. hackster.io/news/waveshare-l…
5
13
1
189
8,804
./anderson retweeted
If you love gardening you can't miss these grafting techniques
57
910
70
5,416
559,797
./anderson retweeted
FAT32, the file system your USB sticks and SD cards have been quietly putting up with since the 90s, is getting up to a 265x speedup in Linux 7.4. And the fix is basically "stop doing it one at a time." Matheus Alves de Almeida from UFRGS in Brazil noticed that when you preallocate space on FAT (fallocate with FALLOC_FL_KEEP_SIZE), the kernel grabbed clusters one by one in a while loop. On a sync mount, that means writing the FAT table back to disk for every single cluster. Tens of thousands of tiny trips to the disk just to reserve a few megabytes. His patch swaps the loop for a single fat_add_clusters() call. Net change in fs/fat/file.c: +4 lines, -6 lines. The numbers: sixteen 16 MiB files with 4 KiB clusters on a sync mount went from 92.489 seconds to 0.348 seconds. Even without sync, it's 5x to 19x faster. In his words: "The improvement is especially large on synchronous mounts, where the new code can batch FAT updates instead of synchronously handling each cluster allocation separately." It won't make ordinary file copies faster. It's preallocation only, so think embedded devices, cameras and anything that reserves space up front. Andrew Morton sent it to Linus in his non-MM pull, and it's now in Linux 7.4.
11
99
7
1,071
41,697
./anderson retweeted
In September 1992, Unicode had a problem on Unix. Storing characters as 16-bit values could introduce zero bytes that C programs mistook for string terminators. Earlier encodings had compatibility problems of their own. One evening, Ken Thompson and Rob Pike went to a diner in New Jersey. Thompson sketched a new encoding on a paper placemat. ASCII stayed exactly as it was. Other characters used multiple bytes, without accidentally introducing null bytes or Unix path separators. They went back to Bell Labs and started coding. By Friday, their Plan 9 operating system was running entirely on the new encoding. They called it UTF-8. Today, it powers over 99% of websites with known character encodings.
34
156
28
1,605
76,365
./anderson retweeted
Rapid deployment of paracord in case of emergency
9
44
391
54,257
./anderson retweeted
"É O MALANDRO CARIOCA" VAI CARIOCA, VOTA NESSE VELHO AÍ
3
25
941
13,635
Nunca vi tanto desempregado por metro quadrado.
2,969
10,240
803
73,170
2,060,244
Compartilha ai galera!
tá desesperado, tadinho
2
241
1
1,097
9,611
./anderson retweeted
This is crime against API design.
191
149
52
3,894
194,023
Vocês estão se preparando?
37
380
19
2,316
49,879
Its magnificent
321
1,877
244
10,144
546,439
./anderson retweeted
Say HELLO to my little friend, Task Manager OG! I'm please to announce the immediate availability of the MacOS version of TMOG today; Windows support will follow shortly, so follow for the update! TMOG is a free application; I may do a Pro version at some point, but everything here is and will remain free. Get the beta: tmog.org/
333
420
105
4,408
615,316
2
5
58
1,436
./anderson retweeted
That's how I remember it
43
195
28
3,344
82,176
11
376
4
1,610
234,118
Tower of Hanoi - Recursion Visualization
14
231
13
2,098
387,655
./anderson retweeted
31-Bit Addressing. How a 2 GB DRAM is organized.
8
59
2
523
30,607
./anderson retweeted
the reason C is still goated: it has exactly one abstraction layer between your code and the hardware every other language adds 2, 5, 10 layers sqlite, nginx, redis, linux, git all written in C that is not random
30
20
10
287
72,706