112 subscribers
34 photos
35 links
How to code?
@Lazymio
Download Telegram
https://github.com/desktop/desktop/issues/12978

Holly shit! Apple 又毁了我一天。

TLDR:Bug Sir以后的macOS,在有MAP_JIT的情况下fork会很慢,具体有多慢呢,Linux上0.0004us而macOS需要0.06us,也就慢150倍吧。使用posix_spawn可以绕开bug,受影响的应用包括libuv,electron等,目前尚未完全修复。

PS:在Intel mac上 hardened runtime 并不是强制的,也就是说可以直接不用 MAP_JIT 绕开,而 M1 mac 目前没有办法。
给自己项目打个广告

我们的项目 Qiling 参加了 Google Summer of Code 2022,用人话说就是 Google 掏钱支持你暑期给开源项目做贡献,大概四五月开始报名,报名后需要根据 Idea 提 Proposal 然后跟着 Mentor 写项目,但是一般二三月就开始找Idea了,我们项目目前的 Idea 在这里:https://github.com/qilingframework/qiling/discussions/1083

工资补贴见:https://developers.google.com/open-source/gsoc/help/student-stipends
How2Code pinned «今日冷知识:Java的泛型是图灵完全的。 Reference: https://dl.acm.org/doi/10.1145/3093333.3009871»
https://stackoverflow.com/questions/50605/signed-to-unsigned-conversion-in-c-is-it-always-safe

本身不算什么新鲜的事情,但是真正有趣的是只有g++报了这个warning
~ > cat /tmp/test.c
#include "stdio.h"
#include "stdlib.h"
inline int test(){
return 1;
}

int main(){
if (test()) {
printf("test\n");
}
}
~ > gcc /tmp/test.c -o /tmp/test
/usr/bin/ld: /tmp/ccwgqM5z.o: in function `main':
test.c:(.text+0xe): undefined reference to `test'
collect2: error: ld returned 1 exit status



这就是C语言吗.jpg

Explanation
To incoming English speakers: I don't plan to release any English contents in this channel though you might find equivelant posts in my English blog: https://blog.lazym.io. I appreciate your interests in my channel.
How2Code pinned «To incoming English speakers: I don't plan to release any English contents in this channel though you might find equivelant posts in my English blog: https://blog.lazym.io. I appreciate your interests in my channel.»
Forwarded from Lazymio
dockerd/containerd-shim-runc-v2 这两个进程占用大量CPU有人有经验吗,我就起了一个container占用1个核心,这俩进程直接吃了大概8个核心
Forwarded from Lazymio
搜不到啥信息
Forwarded from Lazymio
哦我艹 是因为程序输出到stdout/stderr的垃圾太多了
Forwarded from Lazymio
一个小时喷了500G的垃圾数据
Forwarded from Lazymio
还好磁盘满了提醒我了,不然感觉要检查更久了(