??xml version="1.0" encoding="utf-8" standalone="yes"?>神马午夜久久,japansex久久高清精品,97se视频在线观看http://www.aygfsteel.com/sakis/t踏实实学技术,认认真真做研I?/description>zh-cnMon, 16 Jun 2025 20:03:41 GMTMon, 16 Jun 2025 20:03:41 GMT60关于MySql5的“data too long for column”错?/title><link>http://www.aygfsteel.com/sakis/archive/2006/07/14/58242.html</link><dc:creator>Duran's technical life</dc:creator><author>Duran's technical life</author><pubDate>Fri, 14 Jul 2006 11:12:00 GMT</pubDate><guid>http://www.aygfsteel.com/sakis/archive/2006/07/14/58242.html</guid><wfw:comment>http://www.aygfsteel.com/sakis/comments/58242.html</wfw:comment><comments>http://www.aygfsteel.com/sakis/archive/2006/07/14/58242.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.aygfsteel.com/sakis/comments/commentRss/58242.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/sakis/services/trackbacks/58242.html</trackback:ping><description><![CDATA[从MySql5中运行本地脚本创建数据库Q当插入中文字段时发生“data too long for column”错误。上|一查,发现多字节用户大都碰C(jin)q种情况。google搜烦(ch)|上的解x(chng)法大都是要将数据库的~码方式为GBK或UTF8Q可我在安装MySql时就选择?jin)UTF8格式。原来错误原因是本地的脚本文件不是UTF8~码的,用记事本或UltraEdit编码{为UTF8后问题解冟뀂再ơ强调,JSP面Q数据库联接接方式,数据库创建,…,都须一致用UTF8~码Q?br /><br />BTWQMySql最q借着Web2.0的浪潮风头很劲啊Qtechn oratiQ好像这几天被GFW filter?jin)?j)QflickrQdel.icio.us{一批网站都是用?jin)MySql。MySqlq(sh)门在首页开?jin)一大块来炫耀?img src ="http://www.aygfsteel.com/sakis/aggbug/58242.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/sakis/" target="_blank">Duran's technical life</a> 2006-07-14 19:12 <a href="http://www.aygfsteel.com/sakis/archive/2006/07/14/58242.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Swing, Eclipse3.2 and Mattise4Eclipsehttp://www.aygfsteel.com/sakis/archive/2006/07/13/58063.htmlDuran's technical lifeDuran's technical lifeThu, 13 Jul 2006 14:17:00 GMThttp://www.aygfsteel.com/sakis/archive/2006/07/13/58063.htmlhttp://www.aygfsteel.com/sakis/comments/58063.htmlhttp://www.aygfsteel.com/sakis/archive/2006/07/13/58063.html#Feedback0http://www.aygfsteel.com/sakis/comments/commentRss/58063.htmlhttp://www.aygfsteel.com/sakis/services/trackbacks/58063.htmlInstalled JDK6 (Mustang) beta and Eclipse3.2 . As Sun promised , Swing library, especially the (tng)WindowsLookAndFeel feels much better. It’s hard to tell the difference between a Swing drawn window and a WINXP native window. Developing Java desktop applications is worth considering. Mattise, a free easy-to-use WYSIWYG Swing UI designer, is the only reason for many to use the tedious NetBeans. Recently, Genuitec provided Matisse4Eclipse, which is (tng)an implementation of Matisse that integrates its functionality into MyEclipse Workbench to enable the easy creation of Swing applications with Eclipse. So the only reason to use NetBeans has gone.

]]>
BACKING BLOGJAVAhttp://www.aygfsteel.com/sakis/archive/2006/07/13/58062.htmlDuran's technical lifeDuran's technical lifeThu, 13 Jul 2006 14:14:00 GMThttp://www.aygfsteel.com/sakis/archive/2006/07/13/58062.htmlhttp://www.aygfsteel.com/sakis/comments/58062.htmlhttp://www.aygfsteel.com/sakis/archive/2006/07/13/58062.html#Feedback0http://www.aygfsteel.com/sakis/comments/commentRss/58062.htmlhttp://www.aygfsteel.com/sakis/services/trackbacks/58062.html我的MSN space上?img src ="http://www.aygfsteel.com/sakis/aggbug/58062.html" width = "1" height = "1" />

]]>
[W记]事务处理http://www.aygfsteel.com/sakis/archive/2005/09/09/12532.htmlDuran's technical lifeDuran's technical lifeFri, 09 Sep 2005 05:09:00 GMThttp://www.aygfsteel.com/sakis/archive/2005/09/09/12532.htmlhttp://www.aygfsteel.com/sakis/comments/12532.htmlhttp://www.aygfsteel.com/sakis/archive/2005/09/09/12532.html#Feedback1http://www.aygfsteel.com/sakis/comments/commentRss/12532.htmlhttp://www.aygfsteel.com/sakis/services/trackbacks/12532.html@title [W记]事务处理

#1 Transaction Propagation Behavior
Required:Excute within a current tx, create a new one if none exists.
Supports: Excute within a current tx, execute without a tx if none exsits.
Mandatory: Excute within a current tx, throw an exception if none exists.
Requires New: Create a new tx and excute within the tx, suspend the current tx if one exists.
Not Supported: Excute without a tx, suspend the current tx if none exsits.
Never: Excute without a tx, throw an exception if a tx exsits.

#2 Transaction Isolation Level[1]
#2.1 Concurrent Problem
Dirty Reads: 脏读Q脏数据指已更新Q还没提交的数据Q。事务T1dC务T2中的脏数据?/FONT>

Unrepeatable Reads: 不可重复诅R事务T1(g)索到某行后,事务T2更新q提交了(jin)该行Q若事务T2再次(g)索该行,则会(x)看到不一L(fng)l果?/FONT>

Phantom Reads: 虚读。事务T1(g)索到W合某条件的行集后,事务T2插入q提交了(jin)满该条件的新行Q若事务T2再次按该条g(g)索,则会(x)看到以前不存在的行“Phantom”?/FONT>

#2.2 Isolation Level
+---------------+-------+------------------+-----------+
|Isolation Level|Phantom|Unrepeatable Reads|Dirty Reads|
+---------------+-------+------------------+-----------+
|Read Uncommited|   Y   |         Y        |     Y     |
+---------------+-------+------------------+-----------+
|Read Commited  |   Y   |         Y        |     N     |
+---------------+-------+------------------+-----------+
|Repeatable Read|   Y   |         N        |     N     |
+---------------+-------+------------------+-----------+
|Serializable   |   N   |         N        |     N     |
+---------------+-------+------------------+-----------+

#3 Timeout

#4 ReadOnly Transaction
只读事务保证?jin)多条查询SQL的在事务U别的读一致性。JDBC和数据库?x)对只读事务做一些优化?/FONT>

[1] C.J.Date, An Introduction to Database Systems 7th.



]]>
iteration::two Cairngorm 0.99 开发指?/title><link>http://www.aygfsteel.com/sakis/archive/2005/09/07/12342.html</link><dc:creator>Duran's technical life</dc:creator><author>Duran's technical life</author><pubDate>Wed, 07 Sep 2005 13:49:00 GMT</pubDate><guid>http://www.aygfsteel.com/sakis/archive/2005/09/07/12342.html</guid><wfw:comment>http://www.aygfsteel.com/sakis/comments/12342.html</wfw:comment><comments>http://www.aygfsteel.com/sakis/archive/2005/09/07/12342.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/sakis/comments/commentRss/12342.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/sakis/services/trackbacks/12342.html</trackback:ping><description><![CDATA[<P><FONT face="Courier New" size=2>iteration::two Cairngorm 0.99 开发指?BR>@author <A href="mailto:notifyAll@hotmail.com">sakis</A><BR>@version 0.1</FONT></P> <P><FONT face="Courier New" size=2>#0<BR>MXML优点Q用方便,XML代码z易?BR>~点Q事件、函数、界面描混在一赗程序规模大?jin)难于开发维护?/FONT></P> <P><FONT face="Courier New" size=2>#1<BR>Cairngorm框架是iterationtwo推出的号U基于JEE Best Practice的FlexE序开发的light-weight framework??light-weightq个词还真是行?。目前最新版本ؓ(f)0.99?/FONT></P> <P><FONT face="Courier New" size=2>Cairngorm的结构如下:(x)<BR>org<BR>└─nevis<BR>    └─cairngorm<BR>        ├─application<BR>        ?nbsp;     CairngormApplication.as<BR>        ?BR>        ├─business<BR>        ?nbsp;     Responder.as<BR>        ?nbsp;     ServiceLocator.as<BR>        ?BR>        ├─commands<BR>        ?nbsp;     Command.as<BR>        ?nbsp;     SequenceCommand.as<BR>        ?BR>        ├─control<BR>        ?nbsp;     Event.as<BR>        ?nbsp;     EventBroadcaster.as<BR>        ?nbsp;     FrontController.as<BR>        ?BR>        ├─model<BR>        ?nbsp;     ModelLocator.as<BR>        ?BR>        ├─view<BR>        ?nbsp;     ViewHelper.as<BR>        ?nbsp;     ViewLocator.as<BR>        ?BR>        └─vo<BR>                ValueObject.as</FONT></P> <P><BR><FONT face="Courier New" size=2>#2<BR>下面l大家简单介lCairngorm的实现思\?/FONT></P> <P><FONT face="Courier New" size=2>#2.1<BR>Command/FrontControllerEvent与Viwe分离?BR>FrontController实现Singleton模式(以下写ؓ(f)SP)。所有自定义的Command在要在FrontController构造函C实例化ƈ以关联数l的方式注册FrontController#addCommand(eventType:String, commandInstance:Command)。EventBroadcaster实现SP。Eventcȝl构为{type:eventType, data:eventData}。我们通过EventBroadcaster#broadcastEvent(eventType:String, eventData:Object)发布Event。Event发布?与eventType对应的command instance执行Command#execute(event:Event)?/FONT></P> <P><FONT face="Courier New" size=2>BTWQ在Cairngorm的源码中QeventType、commandName、eventNameL(fng)Q我l一用eventType?/FONT></P> <P><FONT face="Courier New" size=2>#2.2<BR>ServiceLocatorRemote Service声明与View分离?BR>ServiceLocator实现SP。在Cairngorm的demo中,又通过Delegate对象解除Command/Responder和ServiceLocator之间的依赖。这个Delegate做的事情其实意义不大Q就是调用ServiceLocator中的MethodQ设|莫个Responder为相应远E方法的handler。个得无谓地增加?jin)代码量Q而且Delegate对象也没实现SPQ也是说我们每ơ调用一ơRemote Service中的MethodQ都要new一个Delegate对象Q实在浪贏V?/FONT></P> <P><FONT face="Courier New" size=2>#2.3<BR>ViewLocator/ViewHelperViewQMXMLQ中Ҏ(gu)的function与View分离?BR>ViewHelper有点意思,当一个ViewHelper在某个MXML面中声明时Q如<view:LoginViewHelper id="loginViewHelper" /><?xml:namespace prefix = view /><view:LoginViewHelper id=loginViewHelper></view:LoginViewHelper>。ViewHelper能自动取得所在MXML对象的引用,q过ViewLocator#register(id, this:ViewHelper)自w注册到ViewLocator中。ViewLocator实现SP。借助ViewLocator/ViewHelper,我们可以方便的调用不同MXML面中的Ҏ(gu)?/FONT></P> <P><FONT face="Courier New" size=2>#2.4<BR>ModelLocator是一个marker interfaceQ程序中Model可以攑֜某个ModelLocator方便调用?/FONT></P> <P><FONT face="Courier New" size=2>#2.5<BR>ValueObject也是一个marker interface, 基本不需要?/FONT></P> <P><FONT face="Courier New" size=2>#3<BR>Cairngorm.99l我们开发FlexE序提供?jin)很不错的架构模?M/V/C/Remote之间可以做到完全解构。但在实际开发时没有必要L,代码l构清晰有活力就好?/FONT></P><img src ="http://www.aygfsteel.com/sakis/aggbug/12342.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/sakis/" target="_blank">Duran's technical life</a> 2005-09-07 21:49 <a href="http://www.aygfsteel.com/sakis/archive/2005/09/07/12342.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Hibernate一对一兌实用介绍http://www.aygfsteel.com/sakis/archive/2005/09/06/12200.htmlDuran's technical lifeDuran's technical lifeTue, 06 Sep 2005 05:16:00 GMThttp://www.aygfsteel.com/sakis/archive/2005/09/06/12200.htmlhttp://www.aygfsteel.com/sakis/comments/12200.htmlhttp://www.aygfsteel.com/sakis/archive/2005/09/06/12200.html#Feedback2http://www.aygfsteel.com/sakis/comments/commentRss/12200.htmlhttp://www.aygfsteel.com/sakis/services/trackbacks/12200.htmlHibernate一对一兌实用介绍

#0
书和文档上写的都不是Ҏ(gu)楚的。自p下来?/FONT>

#1 Using a PK association

#1.1 POJO with XDolclet annotation
public class Customer {
 /**
  * @return Returns the shoppingCart.
  * @hibernate.many-to-one cascade="delete" column="shopping_cart_id"
  *  unique="true" foreign-key="FK_SHOPPING_CART__CUSTOMER"
  */
 public ShoppingCart getShoppingCart() {
  return shoppingCart;
 }
}

public class ShoppingCart {
 /**
  * @return Returns the customer.
  * @hibernate.one-to-one property-ref="shoppingCart"
  */
 public Customer getCustomer() {
  return customer;
 }
}

property-ref="shoppingCart" 告诉Hibernate ShoppingCart#customer和Customer#shoppingCart是反向的关系。所以Hibernate知道如何从ShoppingCart#getCustomer中检索到相应的customer对象。取出某个Customer对象ӞHibernate?x)生成DEBUG SQL:324 - 3中的SQL语句?/FONT>

#1.2 HBM
Customer.hbm.xml
<many-to-one
    name="shoppingCart"
    class="ShoppingCart"
    cascade="delete"
    outer-join="auto"
    foreign-key="FK_SHOPPING_CART__CUSTOMER"
    column="shopping_cart_id"
/>

ShoppingCart.hbm.xml
<one-to-one
    name="customer"
    class="Customer"
    cascade="none"
    outer-join="auto"
    constrained="false"
    property-ref="shoppingCart"
/>

#1.3 SCHEMA SQL
create table CUSTOMER (
    ID bigint generated by default as identity (start with 1),
    SHOPPING_CART_ID bigint,
    primary key (ID)
)

create table SHOPPING_CART (
    ID bigint generated by default as identity (start with 1)
    primary key (ID)
)

alter table CUSTOMER
    add constraint FK_SHOPPING_CART__CUSTOMER
    foreign key (SHOPPING_CART_ID)
    references SHOPPING_CART

#1.4 Query SQL
DEBUG SQL:324 - 1
select customer0_.ID as ID, customer0_.SHOPPING_CART_ID as SHOPPING2_3_, customer0_.USERNAME as USERNAME3_, customer0_.PWD as PWD3_
from CUSTOMER customer0_
where customer0_.USERNAME=? and customer0_.PWD=?

DEBUG SQL:324 - 2
select shoppingca0_.ID as ID0_, shoppingca0_.TOTAL as TOTAL8_0_
from SHOPPING_CART shoppingca0_
where shoppingca0_.ID=?

DEBUG SQL:324 - 3
select customer0_.ID as ID1_, customer0_.SHOPPING_CART_ID as SHOPPING2_3_1_, customer0_.USERNAME as USERNAME3_1_, customer0_.PWD as PWD3_1_, shoppingca1_.ID as ID0_, shoppingca1_.TOTAL as TOTAL8_0_
from
 CUSTOMER customer0_
 left outer join
 SHOPPING_CART shoppingca1_
 on customer0_.SHOPPING_CART_ID=shoppingca1_.ID
where customer0_.SHOPPING_CART_ID=?


#2 Using a FK association

#2.1 POJO with XDolclet annotation
public class Customer {
 /**
  * @return Returns the shoppingCart.
  * @hibernate.one-to-one cascade="delete"
  */
 public ShoppingCart getShoppingCart() {
  return shoppingCart;
 }
}

public class ShoppingCart {
 /**
  * @return Returns the id.
  * @hibernate.id generator-class="foreign"
  * @hibernate.generator-param name="property" value="customer"
  */
 public Long getId() {
  return id();
 }

 /**
  * @return Returns the customer.
  * @hibernate.one-to-one constrained="true" foreign-key="FK_CUSTOMER__SHOPPING_CART"
  */
 public Customer getCustomer() {
  return customer;
 }
}

constrained="true" 告诉Hibernate ShoppingCart的PKq应该是一个FKQ这个FK引用Customer的PK。还需要多做一点工作,声明ShoppingCart的PK生成{略是foreignQ对应ShoppingCart#customer。这和上面一句话不是一个意思嘛QFT~~

#2.2 HBM
Customer.hbm.xml
<one-to-one
    name="shoppingCart"
    class="ShoppingCart"
    cascade="delete"
    outer-join="auto"
    constrained="false"
/>

ShoppingCart.hbm.xml
<id
    name="id"
    column="id"
    type="java.lang.Long"
>
    <generator class="foreign">
 <param name="property">customer</param>
    </generator>
</id>

<one-to-one
    name="customer"
    class="Customer"
    cascade="none"
    outer-join="auto"
    constrained="true"
/>

#2.3 SCHEMA SQL
create table CUSTOMER (
    ID bigint generated by default as identity (start with 1),
    primary key (ID)
)

create table SHOPPING_CART (
    ID bigint not null,
    TOTAL integer,
    primary key (ID)
)

alter table SHOPPING_CART
    add constraint FK_CUSTOMER__SHOPPING_CART
    foreign key (ID)
    references CUSTOMER

#2.4 Query SQL
DEBUG SQL:324 -
select customer0_.ID as ID, customer0_.USERNAME as USERNAME3_, customer0_.PWD as PWD3_
from CUSTOMER customer0_
where customer0_.USERNAME=? and customer0_.PWD=?

DEBUG SQL:324 -
select shoppingca0_.ID as ID0_, shoppingca0_.TOTAL as TOTAL8_0_
from SHOPPING_CART shoppingca0_
where shoppingca0_.ID=?

q个“真正”的one-to-one的好处是条兌SQL语句Q看C(jin)吗?



]]>
Avoid tomcat "out of memory" errorhttp://www.aygfsteel.com/sakis/archive/2005/08/12/9982.htmlDuran's technical lifeDuran's technical lifeFri, 12 Aug 2005 09:38:00 GMThttp://www.aygfsteel.com/sakis/archive/2005/08/12/9982.htmlhttp://www.aygfsteel.com/sakis/comments/9982.htmlhttp://www.aygfsteel.com/sakis/archive/2005/08/12/9982.html#Feedback0http://www.aygfsteel.com/sakis/comments/commentRss/9982.htmlhttp://www.aygfsteel.com/sakis/services/trackbacks/9982.html2  In \Program Files\Apache software Foundation\Tomcat 5.0\bin\catalina.bat, in the last section immediately after "rem Execute Java with the applicable properties", insert this line, set CATALINA_OPTS=-mx1024m. Save the file.

]]>
HelloWorldhttp://www.aygfsteel.com/sakis/archive/2005/08/09/9631.htmlDuran's technical lifeDuran's technical lifeTue, 09 Aug 2005 01:38:00 GMThttp://www.aygfsteel.com/sakis/archive/2005/08/09/9631.htmlhttp://www.aygfsteel.com/sakis/comments/9631.htmlhttp://www.aygfsteel.com/sakis/archive/2005/08/09/9631.html#Feedback0http://www.aygfsteel.com/sakis/comments/commentRss/9631.htmlhttp://www.aygfsteel.com/sakis/services/trackbacks/9631.html在google里敲?jin)“HelloWolrd”,再点“手气不错”,出来?jin)这样一个页面:(x)http://www2.latech.edu/~acm/HelloWorld.shtml

Hello World!

Welcome to the ACM "Hello World" project. Everyone has seen the Hello World program used as a first exposure to a new language or environment. We are attempting to collect examples for as many languages and related programming environments (shells etc.) as possible.


Aproximate number of examples:204     <----wow~~~
This page has been accessed 33274 times.
Last updated: January 20, 2005   


看看C的,l典HelloWorld
#include <stdio.h>
main()
{
  for(;;)
      {
          printf ("Hello World!\n");
      }
}


q也是HelloWolrdQ!
a 1986 entry from Bruce Holloway:

#include "stdio.h"
#define e 3
#define g (e/e)
#define h ((g+e)/2)
#define f (e-g-h)
#define j (e*e-g)
#define k (j-h)
#define l(x) tab2[x]/h
#define m(n,a) ((n&(a))==(a))

long tab1[]={ 989L,5L,26L,0L,88319L,123L,0L,9367L };
int tab2[]={ 4,6,10,14,22,26,34,38,46,58,62,74,82,86 };

main(m1,s) char *s; {
    int a,b,c,d,o[k],n=(int)s;
    if(m1==1){ char b[2*j+f-g]; main(l(h+e)+h+e,b); printf(b); }
    else switch(m1-=h){
        case f:
            a=(b=(c=(d=g)<<g)<'<g)<<g;
            return(m(n,a|c)|m(n,b)|m(n,a|d)|m(n,c|d));
        case h:
            for(a=f;a=e)for(b=g<<g;b<n;++b)o[b]=o[b-h]+o[b-g]+c;
            return(o[b-g]%n+k-h);
        default:
            if(m1-=e) main(m1-g+e+h,s+g); else *(s+g)=f;
            for(*s=a=f;a<e;) *s=(*s<<e)|main(h+a++,(char *)m1);
        }
}

曄最短的HelloWorldQ?A href="mailto:Jari.Arkko@lmf.eua.ericsson.se">Jari.Arkko@lmf.eua.ericsson.seQ?BR>jar.1.c
char*_="Hello world.\n";

ln -s /dev/tty jar.1.o
cc -c jar.1.c



现在最短的HelloWorld QJyrki HolopainenQ?BR>";main(){puts("Hello World!");}char*C=".c  
char*_=__FILE__;



]]>
深圳Q实?fn)开?/title><link>http://www.aygfsteel.com/sakis/archive/2005/07/14/7713.html</link><dc:creator>Duran's technical life</dc:creator><author>Duran's technical life</author><pubDate>Thu, 14 Jul 2005 10:07:00 GMT</pubDate><guid>http://www.aygfsteel.com/sakis/archive/2005/07/14/7713.html</guid><wfw:comment>http://www.aygfsteel.com/sakis/comments/7713.html</wfw:comment><comments>http://www.aygfsteel.com/sakis/archive/2005/07/14/7713.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/sakis/comments/commentRss/7713.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/sakis/services/trackbacks/7713.html</trackback:ping><description><![CDATA[<P>抵达深圳<BR><BR>在中国改革开攄贞操牌坊Q更加强烈感受了(jin)GCD领导下的中国特色的社?x)主义和谐社会(x)。罗湖区1w的小套间Q随处可见benz和BMW。晚上去吃v鲜,一盘盘的叫不上名来Q味道倒是鲜美:-)<BR><BR>实习(fn)W一?BR><BR>XX信息公司研发部实?fn)员工登讎ͼ领工卡,认识l员Q了(jin)解项目情况,做了(jin)一天需求分析,easy。在公司里写E序的感觉和学校不大一P一边写一边就能听到boss在隔壁办公室训斥某h。小的不满Q液晶显C器不多Q自然轮不到我。小小的不满:(x)QQ不能用就了(jin)Qmsn好像都不能用?BR></P><img src ="http://www.aygfsteel.com/sakis/aggbug/7713.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/sakis/" target="_blank">Duran's technical life</a> 2005-07-14 18:07 <a href="http://www.aygfsteel.com/sakis/archive/2005/07/14/7713.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>八卦http://www.aygfsteel.com/sakis/archive/2005/06/17/6280.htmlDuran's technical lifeDuran's technical lifeFri, 17 Jun 2005 04:31:00 GMThttp://www.aygfsteel.com/sakis/archive/2005/06/17/6280.htmlhttp://www.aygfsteel.com/sakis/comments/6280.htmlhttp://www.aygfsteel.com/sakis/archive/2005/06/17/6280.html#Feedback1http://www.aygfsteel.com/sakis/comments/commentRss/6280.htmlhttp://www.aygfsteel.com/sakis/services/trackbacks/6280.html性能比较QJava全面越C++Q?/A>
q样的八卦炒作脓(chung)也能在java.csdn.net上置Ӟ真是无语?jin)~我只惛_csdn_(d)(x)“你太差?jin)!?BR>《程序员》每期都?x)买Q是因ؓ(f)我没的选择。作Z本技术刊物,《程序员》不是保持中立,而是掺杂?jin)太多的商业立场和利益。高水^的文章也有,但远q不够。该杂志一ȝ感叹没有Ҏ(gu)Q说《DDJ China》“几乎是一个合格的Ҏ(gu)?jin)”。说的极端和刻薄一点,《DDJ》是软g开发的学术刊物Qcsdn、《程序员》只能算是程序员的娱乐新L志?/P>

q是一个v名“周星星”的同学对原文的评论?BR>周星?发表?005-06-16 5:01 PM 
“很明显QC++的编译器不如java的JIT和HotSpot~译器,因ؓ(f)JIT和HotSpot~译器能针对CPU指o(h)集进行h优化、能在运行时Ҏ(gu)使用频率对methodq行内联和优化。而C++的静(rn)态编译器永远也做不到q些?
--- 无知?jin)吧Q现存(sh)世的C++~译器,无论是VC++Q还是Intel C++Q还是g++Q都能针对特定CPUq行优化Q而Java的所谓动态优化只是做?jin)部分(不是全部QC++?rn)态优化的工作Q事实上Q真正的动态优化不是Q何一个高U语a所能做到的QC++不能QC不能QJava更不能,必须内嵌汇编才能做到q一炏V?

“JDK1.0Ӟjava的速度是C++?0?0分之一。而到?jin)jdk1.4Ӟjava的性能则是C++的三分之一?倍(通常C++是java?.2倍到1.5倍)(j)。可惜这分报告没有jdk1.4以后的数据,而后面的报告我们看到在jdk1.4.2Ӟjava性能全面过C++。?
--- 有个10岁的孩子对?0母亲_(d)(x)?q前我的q龄是妳?/21Q我现在的年龄是妳的1/3Q随着q种势的发展,在未来我的年龄就可以过妟뀂?
Java的速度也许可以接近C++Q但永远不可能达到C++一样快Q更不可能超qC++Q因释程序必要求原生程序来解释执行Q所以永q达不到一L(fng)速度?

“Java写的数据库的性能是C++写的数据库性能的近600倍!?
--- 天方夜KQ如果真的这PMS SQLZ么不用Java来编写,OracleZ么不用Java来编写,MySQLZ么不用Java来编写?

“伯克利大学和Lawrence伯克利国家实验室的一份报告证明:(x)IBM的JDK比GCC更快?
--- 伯克利大学真的有q个报告吗?真是h伯克利的威名Q把JDK和GCC攑֜一hQ如同把“长度”和“重量”这两种不同性质的东西放在一h?

“用Ujava写的JDK底层要比用C++写JDK底层要快?
--- 晕,“纯java写的JDK”,教你Java的老师被你气蟩g(jin)?/P>

]]>
վ֩ģ壺 | | | | | Ͻ| | | | | | | | | | | ɽ| ̫| | | | | | Ϫ| | | ۷| ˴| Դ| | ̨| | | | | | ̫| Ӫɽ| | | |