摘要: 编程语言最容易引起战争,战争的原因就是大家都站在自己的领域和项目的角度看待编程语言!如何选择编程语言呢?下面的文章或许给我们一些启迪!Choosing a Programming Language: So easy, a caveman can do ithttp://the-world-is.com/blog/1. IntroductionAbout a week or two ago, I found myself prompting Google and other search engines with questions like, “what is the best program 阅读全文
posted @ 2013-04-08 09:29 blockcipher 阅读(652) 评论(0) 推荐(0)
摘要: http://duartes.org/gustavo/blog/category/software-illustrated/page/2Motherboard Chipsets and the Memory MapI’m going to write a few posts about computer internals with the goal of explaining how modern kernels work. I hope to make them useful to enthusiasts and programmers who are interested in this 阅读全文
posted @ 2013-03-27 17:53 blockcipher 阅读(968) 评论(0) 推荐(0)
摘要: 摘自http://www.gosoa.com.cn/mysql-%E9%94%81%E8%A1%A8%E6%9C%BA%E5%88%B6%E5%88%86%E6%9E%90为了给高并发情况下的mysql进行更好的优化,有必要了解一下mysql查询更新时的锁表机制。一、概述MySQL有三种锁的级别:页级、表级、行级。MyISAM和MEMORY存储引擎采用的是表级锁(table-level locking);BDB存储引擎采用的是页面锁(page-levellocking),但也支持表级锁;InnoDB存储引擎既支持行级锁(row-level locking),也支持表级锁,但默认情况下是采用行级 阅读全文
posted @ 2013-03-01 16:02 blockcipher 阅读(197) 评论(0) 推荐(0)
摘要: Getting started with HeapyUsage exampleThe following example showsHow to create the session context: hp=hpy()How to use the interactive help: hp.doc, hp.doc.docHow to show the reachable objects in the heap: hp.heap()How to create and show a set of objects: hp.iso(1,[],{})How to show the shortest pat 阅读全文
posted @ 2013-02-25 11:21 blockcipher 阅读(791) 评论(0) 推荐(0)
摘要: 1,简介毕业答辩搞定,总算可以闲一段时间,把这段求职经历写出来,也作为之前三个半月的求职的回顾。首先说说我拿到的offer情况:微软,3面->终面,搞定百度,3面->终面,口头offer搜狗,2面,悲剧腾讯,1面,悲剧布丁移动,3面,搞定涂鸦游戏,3面,搞定友盟,3面->CEO面,搞定雅虎,4面->终面,搞定微策略,2面,悲剧人民搜索,3面->终面,搞定人人,2面+终面+Special面,搞定Google,7面,搞定求职经历分为定位、准备、简历、笔试和面试这五个部分,大家挑感兴趣的看就成。我的求职经历适用但不限于码农,不适用与企事业单位(据说是完全不同的考察标准和 阅读全文
posted @ 2013-02-20 09:47 blockcipher 阅读(327) 评论(0) 推荐(0)
摘要: 准备翻译从http://pl.atyp.us/content/tech/servers.html摘过来的文章Server DesignI actually wrote this ages ago – the individual chapters are still in the blog archive as posts in July/August of ’02 – and then made a separate document out of it. This version is just the same thing imported as a WordPress page. Am 阅读全文
posted @ 2013-02-18 15:54 blockcipher 阅读(377) 评论(0) 推荐(0)
摘要: beanstalk把监听socket加入了epoll,当客户端有连接时,在主循环sockmain中通过处理epoll事件完成对连接的处理。1. 客户端连接处理代码通过前面对主循环的分析可以看出,监听socket的回调处理函数为srvaccept(见如下函数)。通过分析h_accept可以看出,客户端连接的处理包括三个步骤:a.建立连接socket,并将连接设置为非阻塞;b.创建连接管理对象,c.将和客户端的连接加入epoll连接处理#监听服务回调函数,用作接受连接voidsrvaccept(Server *s, int ev){ h_accept(s->sock.fd, ev, s);} 阅读全文
posted @ 2013-02-17 17:23 blockcipher 阅读(372) 评论(0) 推荐(0)
摘要: 以后的分析都是基于beanstalk版本1.6版本的源码。1. 服务实例Serverbeanstalk中将一个监听实例抽象成为一个Server, 服务实例是监听指定地址(ip:port)的运行实例。结构如下:serverstruct Server { char *port; //端口 char *addr; //地址 char *user; //用户 Wal wal; //binlog文件 Socket sock; //监听socket连接 Heap conns; //连接堆};2.epoll抽象beanstalk对epoll相关的函数... 阅读全文
posted @ 2013-02-17 16:36 blockcipher 阅读(398) 评论(0) 推荐(0)
摘要: <rem_hr>Object Oriented Programming Oversold!OOP criticism and OOP problems The emperor has no clothes! Reality Check 101 Snake OOilUpdated: 8/27/2006OOPMythsDebunked:Myth: OOP is a proven general-purpose techniqueMyth: OOP models the real world betterMyth: OOP makes programming more visualMyt 阅读全文
posted @ 2013-02-17 15:20 blockcipher 阅读(340) 评论(0) 推荐(0)
摘要: "If you look back at where object orientation came from with Smalltalk-80 with message passing, and look at the current state of inheritance and things like that, have we gone down the wrong path?" This is the opening question of aQCon London 2010 interviewwith Joe Armstrong, the original 阅读全文
posted @ 2013-02-17 14:56 blockcipher 阅读(271) 评论(0) 推荐(0)