关于编程语言的笑话有哪些
不知道大家有没有仔细看过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开始写起的都打发回去了
推荐阅读
- 过节■江苏省委省政府办公厅下发关于做好2021年元旦春节期间有关工作的通知
- |徐州市出台《关于优化创新创业生态系统 提升区域科技创新活力的实施意见》及实施细则
- 雨下|全球关于禁售燃油车只是理论上可行吗
- dart这编程语言现在发展怎么样了,语法与Java,c#很相似,甚至更简洁
- 关于用phpfsocket 写Post, 模拟http 报文怎样写入要传输的处理数据
- 智叔|很多家长还在整箱买:谈谈关于牛奶的17个真相警惕这些列入黑名单的“假牛奶”
- 关于微信小程序的思考:运营者该何去何从
- 关于人工智能虚拟人的一些问题
- 知乎上关于人生经验的介绍是否可能对青少年造成潜在危害
- 汽车知识|不该被忽视的“中国制造”,配7座十年不大修,不足5万反成笑话!