摘要: 1.安装emacs-24.x版本,http://emacsformacosx.com/2.编辑~/.emacs.d文件夹下 init.el文件,安装插件,(我试验下来,最小化安装clojure-mode,nrepl即可实现编辑和简单)配置:(require 'package)(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))(package-initialize)或(require 'package)( 阅读全文
posted @ 2013-04-12 19:22 Colin_Ye 阅读(730) 评论(0) 推荐(0) 编辑
摘要: Working with shared mutable state is a huge burden that requires us toendure added complexity and the accompanied greater chances of error.When refactoring code, look out for some common concurrency-relatedmistakes:• Don’t create threads from within constructors; instead, create them instatic factor 阅读全文
posted @ 2012-02-24 10:08 Colin_Ye 阅读(225) 评论(0) 推荐(0) 编辑
摘要: • Manage a pool of threads• Easily schedule tasks for concurrent execution• Exchange data between concurrently running threads in a thread-safemanner• Gain fine-grained synchronization• Benefit from better concurrent performance using concurrent datastructuresAlthough the newer API helps in a number 阅读全文
posted @ 2012-02-24 09:58 Colin_Ye 阅读(165) 评论(0) 推荐(0) 编辑
摘要: We can’t avoid dealing with state, but we have three options:• Shared mutability• Isolated mutability• Pure immutabilityThough we’re used to shared mutability, we should avoid it as much aspossible. Eliminating shared mutable state is the easiest way to avoid synchronizationwoes. It takes us far mor 阅读全文
posted @ 2012-02-21 11:21 Colin_Ye 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Here are the ways to reap the benefits of multicore processors:• We have to divide the application into multiple tasks that can be runconcurrently.• We should choose at least as many threads as the number of cores,provided the problem is large enough to benefit from those many threads.• For computat 阅读全文
posted @ 2012-02-21 11:09 Colin_Ye 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 本文信息和数据出自hyperpolyglot,将当前主流编程语言分为11个大类,分别为:解释型(PHP,Perl,Python,Ruby,Tcl,Lua,JavaScript,Io)、操作系统自动化型(POSIX Shell,AppleScript,PowerShell)、C++风格(C++,Objective C,Java,C#)、Pascal风格(Pascal,Ada,PostgreSQL,MySQL)、Lisp类(Common Lisp,Scheme,Clojure,Emacs Lisp)、类型推理类(Standard ML,OCaml,Scala,Haskell)、声明型(Prolog 阅读全文
posted @ 2012-02-02 10:40 Colin_Ye 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 使用电脑人几乎没有人不知道CPU,每个人都能说出一些关于CPU的知识。那么你看到过CPU内部是什么样子的吗?下面可以让各位一探CPU内部秘密。(1)CPU的基本结构:CPU一般包括三部分:基板、核心、针脚 如上图,目前的CPU一般就是就是包括三个部分:基板、核心、针脚。其中基板一般为PCB,是核心和针脚的载体。核心和针脚,都是通过基板来固定的,基板将核心和针脚连成一个整体。核心,内部是众多的晶体管构成的电路。如上图,在核心放大图片中,可以看到不同的颜色的部分,同一个颜色代表的是为实现一种功能而设计的一类硬件单元,这个硬件单元是由大量的晶体管构成的。不同的颜色代表不同的硬件单元。需要注意的是,在 阅读全文
posted @ 2011-07-07 16:00 Colin_Ye 阅读(4137) 评论(0) 推荐(0) 编辑
摘要: 想做1.学习一门新的编程语言(Learn a new programming language)学习一门新的编程语言将有助于你开拓新的思维方式,特别是当你使用不熟悉的语言时,你将学习到很多种思维方法应用到语言中。而所学习到的新思维方式,你可以运用在你所熟知的语言中。甚至有时你会使用新学的语言进行你的重要项目。提供学习经验包含:Lisp(Schemeis good),Forth,PostScriptorFactor(stack-oriented programming languages),J(wonderfularray programming language),Haskell(strong 阅读全文
posted @ 2011-07-06 15:23 Colin_Ye 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 关于大型机的入门介绍一、什么是大型机 大型机(mainframe)这个词,最初是指装在非常大的带框铁盒子里的大型计算机系统,以用来同小一些的迷你机和微型机有所区别。虽然这个词已经通过不同方式被使用了很多年,大多数时候它却是指system/360 开始的一系列的IBM计算机。这个词也可以用来指由其他厂商,如Amdahl, Hit...一、什么是大型机大型机(mainframe)这个词,最初是指装在非常大的带框铁盒子里的大型计算机系统,以用来同小一些的迷你机和微型机有所区别。虽然这个词已经通过不同方式被使用了很多年,大多数时候它却是指system/360 开始的一系列的IBM计算机。这个词也可以用 阅读全文
posted @ 2011-06-16 18:10 Colin_Ye 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 最近隔壁开始恶意中伤机器买来就已经S-OFF的朋友们的机器。我实在看不下去了。站出来发表一个说明。什么是S-OFF?S代表 Security Lock安全锁,保护锁的意思。S-OFF就是保护关。S-ON就是保护开Secure Lock 就是安全锁。是硬件设计商用于保护自己固件不被刷写而设计的安全锁。如果这个安全锁是关闭的,那么对手机内的闪存芯片的刷写保护就关闭了。言外之意就是可以随便刷ROM了。而S-ON就是安全锁打开了。手机被写保护了。HTC的机器在用RUU刷机的时RUU会将安全锁暂时关闭。然后就可以刷HTC自己的ROM。而HTC的HBOOT还有签名验证。所以没有HTC签面的ROM在刷机的时 阅读全文
posted @ 2011-06-10 17:41 Colin_Ye 阅读(491) 评论(0) 推荐(0) 编辑