自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 谁是initiating loader

《深入Java虚拟机》第二版(很老的那本,Bill Venners写的,有中文翻译那本)第八章讲解类加载器用了个[url=http://www.artima.com/insidejvm/ed2/linkmod3.html]Cindy、Mom、Grandma的例子[/url]。但那个例子是错的。[url=http://mail.openjdk.java.net/pipermail/jdk6-dev/...

2011-10-15 21:41:34 174 1

原创 .NET类型的全限定名称不表现variance

链接:装配脑袋:[url=http://www.cnblogs.com/Ninputer/archive/2009/08/27/typename_parser.html]手工解析.NET完全限定类型名称[/url] 想起CLR 2.0开始支持variance,在MSIL里声明泛型接口或者委托时可以在泛型参数前加上+或者-来表示covariance和contravariance。全限定名称里包...

2009-09-08 13:53:38 348

原创 Java表达式的常量折叠

[url=http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.28]Java语言规范15.28[/url]规定了Java的常量表达式可以表示原始类型或者字符串;它们不但可以由纯粹的字面量构成,还可以包含能在编译时确定结果的运算,包括+、-、~、!、*、/、%、、>>>、、=、==、!=、&、|、^、&&...

2009-09-02 11:04:57 165

原创 快排的诡异之处

如果in-place做quick sort,选择放置pivot的位置会影响到代码细节。 同样的实现方式,选择第一个元素为pivot时,恢复pivot位置就得以hi为准。 [code="java"]public class TestQuickSort { public static void main(String[] args) { int[] arr = { 1, 4, ...

2009-09-02 02:20:12 102

原创 Windows Mobile开发资源链接帖

[url=http://msdn.microsoft.com/en-us/windowsmobile/default.aspx]Windows Mobile Developer Center[/url] [url=http://www.microsoft.com/downloads/details.aspx?FamilyID=06111A3A-A651-4745-88EF-3D48091A3...

2009-09-01 23:22:29 92

几种排序算法的对比

[quote][b]Programming: Sort Testing[/b] Your task this week is to implement four sorts, and do experiments to see how fast they run for different sizes and types of input data sets. The sorts are: ...

2008-03-24 20:27:47 121

字符串变异的演示

[quote][b]Programming: String Mutation[/b] Richard Dawkins, in his book The Blind Watchmaker, explains his much-debated experiment known as the weasel program. This algorithm is designed to show th...

2008-03-24 20:12:28 172

生日悖论的模拟

[quote][b]Programming: The Birthday Paradox[/b] There's a parlor trick known as the Birthday Paradox where in any group of 23 or more people, chances are more than 50% that some two people have the...

2008-02-03 21:54:29 407

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除