duangsuse::Echo
719 subscribers
4.28K photos
130 videos
583 files
6.49K links
import this:
美而不丑、明而不暗、短而不凡、长而不乱,扁平不宽,读而后码,行之天下,勿托地上天国。
异常勿吞,难过勿过,叹一真理。效率是很重要,盲目最是低效。
简明是可靠的先验,不是可靠的祭品。
知其变,守其恒,为天下式;穷其变,知不穷,得地上势。知变守恒却穷变知新,我认真理,我不认真。

技术相干订阅~
另外有 throws 闲杂频道 @dsuset
转载频道 @dsusep
极小可能会有批评zf的消息 如有不适可退出
suse小站(面向运气编程): https://WOJS.org/#/
Download Telegram
https://github.com/kelseyhightower/nocode/issues/3#issuecomment-363611612

The no code framework is extremely flexible, and you can actually write unit tests with no code as well. Many very large projects apparently implement all of their unit tests using no code.
https://github.com/kelseyhightower/nocode/issues/1705

████████████████
████████████████
███████
████████████████
████████

██████
████████
█████
████████████

███████████████████
███████████████████


https://github.com/kelseyhightower/nocode/issues/1987#issuecomment-368089562

That's the point!

By writing no code, we save them a lot of precious data space!!!

https://github.com/kelseyhightower/nocode/issues/717
B ͑̎űͤt̑̽ ͣ̚ ͯ̓ ͯ̚ ́͑wͬ̑ ҉̵͠h̑̉ỹ͌?ͪ̚ ̪ ͑ͬ ͣ̄W̃̌hͤͭy̓͗ ̠̗ ̑̎ ͑ͩW̄͗ ̉ͥOͭ͌ ͆̚Uͣ͋ ҉҉̶͝L̇̋D̽ ̐̇ ̑̌y͒͒҉͉̠ȍ͗ȕ̈ ̰ ̯ ̫̹ ̇̈́d́̈o͋ͧ ͯͩ ͬͤt͑̋ ͨͤ҉͡͞hͥ͗҉̷̡āͣ ̉̀҉̸͉t͊͐ ̼͉?ͯ̀ ̔͋ ̈́͟

Aͭ̽̾̏ͨ͋̃̚͘҉̷͉͓͓̦̘̞̬͖̜̕ ̠̭̟̯̹A͒ͦ̓̚ ͣ͛ͮ̂̐ͣ̉̾̋́̈́̌̔͢͏̢͈͞ ̥͙̲̺͔̥Ä̵̰̲̱̭͕́͆͑̽̀̀̽̅̎̂̍̈͢͠ ͓ͅǍ͊̌ͬ̓ͦ͏̷̧̭̣̭̥͔͍̯̙̩̻̪̤̗͢ ͎̼͖Á̐ͨͣ̉̔̔̚ ̵̡̢̯͕͔̬̗̜̟̫̬̲͚͚͑ͫͯ́͑̕͡ͅȀ̡̱̯͓̱̐̉́͛͑Aͫͫ̅́ͫ̏͆͑ ͖̹̗͎͛͌̍ͪ̆ͤ̃̚͜A̶͓͎ͭͤ͊́́̚ ̖̱͚̟͖̼͎̥À̡̧̢͚̤̺̜͖̺̄̆̉̐̍ͨ̅͆̏ͥͥ̍͒̚̚ͅA̒͌̍̃̋ ͋͛͒̏̎ ̸̴̼̯͉̯͚͉̯͇̲͕̺̼͗͛̓̅ͬͤͬ͜͞A̢̡̠̟͈̺̦̟̩̣̓͂̀͊̒̏̂͌͗͗ͫ̅̎̒͞ͅÁ͈̮̻̺̜̠̯̤́ͩͯ͜A̷̢̞̠̝̟͚͕̤̫̟ͫ̓̐͋͂͂ͫA̢̛̻̦̺̰̝̞̣̗̰͚͈̍ͩ̇ͭ̃ͅ ̫ͅA̷̖͈̲̙͕̫̤̼̩̖̙͚̜̓̓͑̽̎̅ͫ̓̂̄͒ͭ̔͌ͪͥ͝A̐ͪ͂ ̶ͥ̌̋̋̾͑̓̎҉̖͓̝ͅA̅̎ͬ̐͂͑ ͪ̋ͧ̇̂ ̶͋ͯ̋̂͏͉̱̖̤̲̗͙̪̦̰͔̱A̵̘̯̟̝̻̦͓͔̗̹ͧͯ̔̆̎̄ͮ͂͊̽̂̌́̀͝͝ͅA̷̡͖̫̰̗̞͕̤̪̖͈͍̤̻̫ͮ̎̉ͤͣ͆͌̒ͥ̾͢͢͜Aͤ̑ ̡̭̻͔̹̮̬̫̞̰͚͙͔͎̻̺͈̮̪ͧͯ͑̕͟͟Ä̷̻̤͔̗͐̑̐ͫ̃̉́̀̚͢͟ ̮͈̟͖̣͔̰̹̘̦̘͍ͅA̒͛͊̈͒ͩͦ ̆ ̨̧̧͔͕̜͙͎͊͑͋͛̒̽ͦ͘A ̡̲͕͉͖͈͈̘̺̎ͪͤͬ̒͋̅ͭ͒ͭͯ̍̾ͯ̇̀̕͜Ą̶̢̯̦̞̩̻͓̮̱̮̲̗̞͚ͫͥͥ̈͢͢ͅǍ͛ ̨̧͉͇͓̼̬̞ͫ̓̽̀͞ ̟͚̞̥͚̞͚̭A͑̀ͬ͒͊ͦ̀ͫͤ̽͊ ̧̫̗̝̞̘͓̥̘̦͇̭̼͉͎͇̦̼̫ͮ̓͒͌͑̈́͞Â̍ͩ̂͒ͨ̓ ̵̞̫͈̺͎̝̝͈͌ͮ͡Á̷ͣ́̏̓̑ͮ̚͏̝̖̭̣͓͈͓̗͇Aͪ̎ͪ̈ͪ̋ͩ͆̌҉҉̤̙͚̩̻̹͇̘̞̻̤̝̠͔̯͇̯A̡͈̜̦̦͔̠̠̓͑̈́̈́ͨ͊̇͑͊ͥ̈̍̌͗͛͗͂͆͢A̎ ̨̣̱̺̜͇͕̗ͧͤ̋̀͜Ä̵́ͨ̂̑͋̏̅͗͏̶̨̖̲̺̣̺͖ͅͅA ͣ̎̆͒͘͡҉҉̟̼̞̻̩̤͇A̽ͩ̔̀ͣ̄ͧ̄̍̌̀ͦ̀͑̀̂ ҉̶̴̡͉̥̯̞̲̪̠̦̦̰͟ ̜͙Ȃ͊ͮ̄̀ ̬̯͓̗̦̙̺̩͓̫̽͊ͩͦ̐͛ͣ̀͢A͉̰̖̩̼͙̮̬̝͈̤͍ͩ͗̈́ͯ́̕̕͞Ḁ̵̴̛̩̱͈̼̬̯̭̭̈̽ͣ̌͢A̸̞̱̹͔͔̟͕͍̅̑̎ͪͦ͛̒̕͞A͊̇ͤ̾̋ͣ̒ͭ̍ͦ͜͝҉͕̲̦̠͚̣A̴̡͈̞̣͇̲̙̻̲̐̾͗̐̄̏̎ͦ̽̈ͭͫ͟͠Ȃͣͤ̀̓̀ͣ̚ ̔̆̓̉ͣͨ͊̀͏̝̖͎̗̗͚̯͕̭̞͍̼̜͘͢͞͡Aͦ ̉̐͌̽ͫ̋̽͌ͫ͑̒̾̀̇̌̌͊͘҉̴͠ ̻͈̗͉̤͕̫̜̟͕͙͕̙͇

🤣
This media is not supported in your browser
VIEW IN TELEGRAM
#mark

premature optimization is the root of all evil

哦哦哦哦哦哦哦哦原来这话是 Knuth 说的
🌚????
Forwarded from LWL 的基地台
我是不是对 htop 有什么误解……?
LWL 的基地台
我是不是对 htop 有什么误解……?
因为它现在挂起了啊,其实之前写的 E2IM,一个请求 root 权限的 AlertDialog 我也不应该跑 while 空循环的,这样空转很无聊,我应该用 notify()wait() (... 貌似 #Java
它没有骗你,不是所有程序员都和 duangsuse 一样糟糕
特别羡慕那些高级的 C 程序员呢,什么都知道,duangsuse 这样一知半解,PHP 都不会
duangsuse 是暂时无法理解文件系统和内核驱动的事情、ring0 和处理器特性方面也不是很了解,之前连 AVX 都不知道,现在也才只记得不是一个平台扩展呢
现在可以用内联汇编写 Hello world 了吗?duangsuse 试试
duangsuse::Echo
现在可以用内联汇编写 Hello world 了吗?duangsuse 试试
#include <stdio.h> 

/* inline */ void printf_asm(char *message) {
const char *fmt = "%s";
int i;

__asm__ volatile
(
""
);

__asm__ volatile
(
"call printf"
);
}

int main(int argc, char *argv[]) {
printf_asm("Hello, world!");
}


[DuangSUSE@duangsuse]~/Projects% gcc hello_asm.c
[DuangSUSE@duangsuse]~/Projects% ./a.out
Hello, world!%

... 不行,这也太作弊了 😶 不能这样!!!
连标准函数调用都不会呢!
头晕
#include <stdio.h> 

/* inline */ void printf_asm(char *message) {
const char *fmt = "%s\n";
int dummy;

__asm__ volatile
(
"push %[msg]\n\t"
: "=r" (dummy)
: [msg] "b" (message)
);

__asm__ volatile
(
"push %[fmt]\n\t"
: "=r" (dummy)
: [fmt] "b" (fmt)
);

__asm__ volatile ("call printf");
}

int main(int argc, char *argv[]) {
printf_asm("Hello, world!");
}

zsh: segmentation fault (core dumped) ./a.out

哭哭