关于编程语言的笑话有哪些

不知道大家有没有仔细看过Linux上面对于accept(2)的解释。里面一段话介绍了socklen_t的由来。鉴于大家懒得找,我粘贴上来。The third argument of accept() was originally declared as an int * (and is that under libc4 and libc5 and on many other systems like 4.x BSD, SunOS 4, SGI); a POSIX.1g draft standard wanted to change it into a size_t *, and that is what it is for SunOS 5. Later POSIX drafts have socklen_t *, and so do the Single Unix Specification and glibc2. Quoting Linus Torvalds:"_and_ sane library must have "socklen_t" be the same size as int. Anything else breaks any BSD socket layer stuff. POSIX initially did make it a size_t,and I (and hopefully others, but obviously not too many) complained to them very loudly indeed. Making it a size_t is completely broken, exactly because size_t very seldom is the same size as "int" on 64-bit architectures, for example. And it has to be the same size as "int" because that’s what the BSD socket interface is. Anyway, the POSIX people eventually got a clue, and created "socklen_t".They shouldn’t have touched it in the first place, but once they did they felt it had to have a named type for some unfathomable reason (probably somebody didn’tlike losing face over having done the original stupid thing, so they silently just renamed their blunder)."
■网友
问:如何得到一段随机字符串?答:读取一个perl脚本
■网友

关于编程语言的笑话有哪些

刷题刚好看到这个,不知道算不算?

■网友
C程序员写程序出了个bug,就丢掉了核心(core dumped);Lisp程序员写程序出了个bug,就拯救了世界(world saved)。
■网友
Why Java programmers wear glasses?
Because they can\u0026#39;t see sharp(C sharp)。
——为什么JAVA程序猿戴眼镜?
——因为他们不会C#(谐音see sharp,目光敏锐)。

■网友
面试官:听说你会Coq,那你用Ocaml写段快排
【关于编程语言的笑话有哪些 】 然后把从Ocaml开始写起的都打发回去了


    推荐阅读