my friggin body derived joy from neither carbs nor oil nor protein, but solely from the fact that i used to eat whatever i want whenever i want without checking any nutrient facts and doing any math. I guess that's what you call "youth" in english
middle age is standing in front of supermarket food shelf, grabbing food, checking nutrient facts, putting food back, then going home and start weeping about the cruelty of life
now i see there's a real haskell elephant in the room (not crypto not defense sector). i do not want to point finger at specific person or project, will probably explain it a bit if i quit programming and raise ducks as my next job
software engineering strategy: make the program crash and dump core cleanly and early.
fun fact: signed overflow can be made to crash 100% of the time in a substantive code base with nearly zero (gcc) to immeasurably low overhead (clang). and then you don't have to think about it doing unpredictable UB ever again.
simply pass: -fsanitize=signed-integer-overflow -fsanitize-undefined-trap-on-error to the compiler
i've just finished 3 body problem (netflix adaption) and as someone who read the original novel series in chinese, i enjoy most parts of the show. a few scenes that i like or dislike (spoiler alert)
after the eto-operated ship was sliced to pieces by nanofibers, the hard drive with human-alien communication record was thankfully preserved. and then Auggie walked among the ruins and she saw a little girl's foot cut off by the nanofibers she has created. most impressive scene so far; Auggie plays the role of 汪淼 (Wang Miao) but i believe she'll also play a large part of role of 程心 (Cheng Xin) whose conflict with Wade will become the backbone of later parts of the whole story.
Cheng Xin is a widely disliked character in chinese internet, perceived as the woman who ruined the human civilization. the first season of the show hasn't made it clear who plays Cheng Xin, but my personal guess is it's spread on Jin Cheng and Auggie. Jin Cheng's part is receiving a star from Will as a gift; Auggie will play the symbol against Wade.
the show makes a good narrative about why Auggie is against Wade. she's repeatedly traumatized by her own work; first came the countdown in her retina, then her work was used to massacre the eto, children included. one can of course mumble something something "war" and "greater good" and i'd make the same decisions if i were in Wade's position. however Auggie's empathy truly stands out and i really like it.
another sets of scenes i like: Will staying at the beach and waits for his death due to terminal stage cancer. Jin Cheng (his crush) goes to visit him and folded a pair of paper boats and drifted it into the sea, saying "it's us!"
and later on, when Will proceeded with his euthanasia, his death bed visions is he riding a paper boat sailing into the unknown.
the show makes good usage of the "paper boat" ingredient to create pretty moving scenes. and "paper boat" will definitely come back in future seasons, since the secret to light-speed interstellar traveling will use it as a metaphor. it's a part of the original novel, so scene like this will also make me chuckle: the screenwriters did their lesson.
i also like Saul who plays the part of 罗辑 (Luo Ji) the wallfacer. needless to say, the chinese internet dislikes Saul because 1. he's black 2. he smokes weed
so they consider Saul to be something something "political correctness" or "white-left" or whatever.
it would be a waste of keystrokes to explain their anti-black (plain racist) mood so i'll skip this part. i don't do weed myself but even in the original story, Luo Ji used to be a hipster before he was elected as a wallfacer. so this part is pretty real.
the show does a good job describing Saul's friendship with Will as well as the rest of oxford folks. the conversation between Saul and Will before Will passes away made me shed a few drops of tears literally. how many of you have a homie like Saul that will care about you till your final moments, but also respect your free will? i don't.
they are actually not my favorite scenes tbh. the tsinghua university building models are very real, real enough to trigger my ptsd. it's impressive they managed to find enough asian extras! the chinese historical buildings are in general modeled in a highly accurate manner, except one thing that ruins it all: fonts.
the fonts of the commie propagandas are 21st century simplified chinese fonts at first sight !!!!!!!
another thing that ruins those cultural revolution scenes is actor lines. the mandarin they speak compared to the actual thing is like comparing panda express to actual chinese food. it's just marginally better than what you get from google translate result from original english lines and i'm damn sure it's translated from english.
now, chinese netizens are also accusing the show to 辱华 (insult china) & 反华 (anti china) because it used a few minutes to describe the typical brutality in cultural revolution. which for obvious reasons cannot be shot in tencent's version of tv show adaption.
the narrative about cultural revolution is still tightly controlled by the commie regime back there, enforced by first class censorship. i don't want to elaborate on this topic here, just to say it's nice to see it resurface on the screens once in a while. bonus nice for seeing bootlicking motherfuckers being pissed off by it
for the past few days i've been adding asan support to #ghc rts. motivation: the rts is a c monolith that does complex memory management, segfaults are very rare but they do occur sometimes as people reach for help in issue tracker and matrix channel. so i'm really hoping the rts development workflow can be backed by sanitizers and fuzzers to make this monolith more rock solid than it currently is.
it's not as simple as spraying -fsanitize=address and voila you have useful reports. most interesting allocations in the rts does not go through the asan-intercepted malloc calls. so other than building rts with asan, i also need to add explicit poisoning logic here and there to declare certain regions of memory must not be accessed after this point.
it's like watching a rising tide as more poisoning is added and asan checks a finer granularity of the ghc heap. so far asan already checks the entire block allocator, so even if a block's address space hasn't been decommitted, loading/storing a freed block will immediately trap. good/bad news: this isn't sufficient to find use-after-frees in the testsuite yet! asan does find a memory leak at rts shutdown time though that's pretty trivial.
他妈的终于破解了困扰我一个多星期的win10电脑粘贴突然失效的鬼问题,大概一周前开始出现截图软件snipaste闪退并电脑无法粘贴的情况,我以为是snipaste的问题卸载了重装了但还是没用,又在终端echo off | clip清空粘贴板它竟然回我一个Access is denied你以为你是谁啊,又是在services.msc里关停所有windows服务重启,怎么都弄不好都想要重装系统了,这个问题太硬伤影响我所有日常办公和科研的使用,一大行代码必须手打比杀了我还难受。最后!最后发现竟然只是因为我在上网课,要使用机构自带的加密视频播放器,这个播放器的进程自带锁粘贴板的功能,把播放器一关全解决了。。。。。。。
also he is very good at offering spiritual comfort in unusual ways.
"aren't you bothered by nihilism, if not to say depression, when you get back to your day job and type code and you see stochastic parrots getting more capable on a daily basis, and makes you wonder if anything you create today has any significance ...."
"but you live in france."
"wut?"
"as a software engineer. yes you don't get rich that way but you're the high water mark already."
"what water?"
"by the time this rising tide gets to your waist, your french countrymen would have already started a revolution for real"
have been discussing game engine and server and ecs stuff with homie after our self hosted palserver crashed for a second time in a day. and then he showed me a siggraph23 paper that implements an ecs in a gpu for a game backend...with a repo i starred long ago but never bothered to take a closer look