./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
9,037
./anderson retweeted
If you love gardening you can't miss these grafting techniques
57
907
70
5,418
561,601
./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,072
41,748
./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,418
./anderson retweeted
Rapid deployment of paracord in case of emergency
9
44
391
54,300
./anderson retweeted
"É O MALANDRO CARIOCA" VAI CARIOCA, VOTA NESSE VELHO AÍ
3
25
940
13,638
Nunca vi tanto desempregado por metro quadrado.
2,967
10,233
803
73,109
2,061,176
Compartilha ai galera!
tá desesperado, tadinho
2
241
1
1,096
9,614
./anderson retweeted
This is crime against API design.
191
148
52
3,890
194,067
Vocês estão se preparando?
37
378
19
2,315
49,898
Its magnificent
319
1,874
244
10,138
546,672
./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,410
615,504
2
5
58
1,436
./anderson retweeted
That's how I remember it
43
195
28
3,339
82,188
11
375
4
1,609
234,182
Tower of Hanoi - Recursion Visualization
14
231
13
2,096
387,678
./anderson retweeted
31-Bit Addressing. How a 2 GB DRAM is organized.
8
59
2
522
30,614
./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
288
72,706