Java

共 8 篇文章。

OpenJDK on FreeBSD

• Development

Maho今天正式commit了 OpenJDK 的port,表面上看这是一小步,但在我看来这却是一项历史性的进步,因为终于可以不再受到之前那个 click-through 许可证的限制了(也就是说,可以几乎没有任何限制地随光盘,或者通过网站提供可用的jdk源代码和二进制版本了)。

阅读全文… ( 本文约 147 字,阅读大致需要 1 分钟 )

一个job offer

• HR Information

要求:someone who’s going to change his job, or simply a free lancer。

there’s a redemption (點數換贈品) system to be implemented. if he/she wants to work on site, there’re offices in sh/bj. please mail CV to cpyang [at] gmail.com.

阅读全文… ( 本文约 366 字,阅读大致需要 1 分钟 )

4个程序员的一天zz

• Shared Chaos

From: https://www.cnblogs.com/linkcd/archive/2005/07/19/196087.html

【声明:本文没有贬低某个编程语言的意思】

你,一个DotNet程序员,刚刚加入一个新项目组。除了你之外,其他的成员包括:Ceer,一直从事C项目的程序员,他刚刚转入C#不到一个月;Jally,整天抱着本Design Pattern(没错,就是GoF的那本)在啃的前Java程序员;以及Semon,你对他完全不了解,只是听PM介绍说他是搞Scheme的(传说中的第二古老的语言LISP的方言之一)。不过你也没在意,毕竟计算机这玩意,老东西是不吃香的。

周一,刚打开电脑,老板就跑到你们组的办公座面前:“好吧,伙计们,现在有个function需要你们来搞定。具体是这样的:用户输入2个数,并输入一个操作符。你根据输入的情况来得出相应的运算结果。”

Example:Foo(+, 1, 2) = 3; Foo(*, 3, 6) = 18; Foo(/, 2, 4) = 0.5

Ceer最先作出反应:简单嘛,判断一下输入的操作符就好了。说着,他很快在白板上写出如下代码:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
public class CStyle_Calculator
{
    static public double Foo(char op, double x, double y)
    {
        switch(op)
            case '+': return x + y; break;
            case '-': return x - y; break;
            case '*': return x * y; break;
            case '/': return x / y; break;
            default: throw new Exception(”What the Hell you have input?");
    }
}
阅读全文… ( 本文约 2435 字,阅读大致需要 5 分钟 )

令人呕吐的Java DK

• Development

一直以为自己能够调试所有的程序,因为我一直以能够不依赖IDE调试,用一组assert,printf就能改掉别人花几个礼拜也没办法track down的东西,然而今天JDK让我折服了,用Java写的程序,如果没有IDE,简直就不具备可调试性!

阅读全文… ( 本文约 984 字,阅读大致需要 2 分钟 )

Profile-based compile optimization

• Development

junsu has pointed out that gcc has the ablity to do profile, record the data and optimize the generated code according to the data. The nearest compiler guru I can visit is Prof. Husheng LIAO (sorry, the link here is not available to the Internet at the time writing, but this is hopefully to be changed soon) who recently concentrate his research in optimization for the Java Language Compiling process.

Further information will be available here soon.

参与评论