2005年06月25日

发现j2me wtk也可以用linux,这样就可以转换到ubuntu linux平台了,不用winxp这个东东(当然除了网上银行). 以前也实验过许多linux发行版,如rh7/8/9, fc1/2, mandrake, debian,也用过freebsd 4.8, 各有各得好处,但是同样有麻烦之处,比如rh/fc/md的rpm依赖问题。debian的内核过老等问题。这些本不是问题,只是需要时间,而本人比较懒,主业也不是操作系统配置等等问题,只是尝鲜而已,所以时间一久就没了动力,加上自己用的电脑不固定,就没有形成习惯。 ubuntu使我有点认识到可以生活在linux的世界中,也许freebsd更好,不过不想什么都自己配置了。

为什么不能把linux当作一种时髦的咚咚? 演艺界今天f4,明天Jay的你方唱罢我登场, linux发行版的发展也这样,rh/fc/md/db等也不断成为焦点,变换角色,当然不必认为是没有意义的空耗精力,这种观点似乎应该是我们上一辈的人所普遍持有的,而我们这一代人和下一代人(似乎就比我们晚了几年而已)不应该持抵触的情绪,而能参与者为佳。

2005年06月15日

 I was building a jabber gateway using python and twisted via HTTP protocol, it was able to run after many bug fixes. The memory cost on a dule-cpu machine with 2g memory is resonable (about 8%) when the users number over 300, but unfortunately then the cpu usage rose to 48-90%, that leads to the obvious slowdown of client reactions. I don’t think it is the problem of programing logic. So I decide to use psyco JIT compiler to have a trial.
 I haven’t used the psyco module on python before, so I cannot be certain of its performence. But what is amazing after I have downloaded and intalled it is that the cpu usage ranks down to 1/5-10 of original value.(5-8%). That is a greate performance shift especially when the memory cost doesn’t rise. All the works I took to add psyco in my codes are a few lines as :
try:
    import psyco
    psyco.full()
except ImportError:
    print ‘psyco module not found’
    pass
 
 Psyco is rather a magic works, I think. The java JIT I have met before doesn’t give me such a supprise. I’ll try to study it to learn the principle of Just in time compiler and try to migrate it into other dynamic languages such as ruby.


 

2005年06月14日

An agent has actions, communication and knowledges, thus handling them are the key beheaviors of agent development.
  The actions of usual agent system is defined in programming languages, such as Java, Agent’tcl, …. those languages are mostly imperical and used for executing but not expression. On the countary , those expressing languages are not suitable for doing somthing real. My idea is that: the beheaviors of agents can be defined via the Petri Net system. a petri net system is a modeling language that describes concurrent system using direct Images. I have already made a software to draw a petri net and made it runnable. To intergrate it seems easy.
  The knowledge an agent owns can be hold in the form of KIF(knowledge interchange format), My rete system is just right to do this tasks.
  The communication sub system of agent has not been study fully before, seems the ACL is OK. It should be the next job I have to do .
  The current tasks is to combine action defination and knowledge expression to make a real system, the highland transport simulation. so that the convince can be given to my boss so that more investigation be heapped on the MAS. 
 

2005年06月10日

 My zerorule project has been approved by sourceforge yesterday. By now I have two projects launched on the sourceforge, another one is webfruits, which is an AOP based web development framework, but it has not been updated for at least 2 years. My plan on it is to migrate its platform from python cgi to mod_python which is much faster than the cgi counterpart.
  With the zerorule project registered, my work on adding list data structure has been nearly finished, and I have commited the source codes into the cvs, so the source codes can be checked out easily. Hope the expert system is of much uses in my future projects and other persons’ projects.

  Next step on this projects would be to add extensible mechanism on this language, the interaction with python language or other languages should be made easy, for example, python functions can be added to print message, open a file, etc. The project itself is a closed world until the interface is set up. To take use of python’s or other language’s capacity would be the ES’s distinctive feature.
 

2005年06月07日

Usual intelligent systems, such as clips system, lisp language, prolog language have an advanced data structure support, at least the LIST type should be involved in the gramma and semantics level. That’s what my rete expert system is short of, so I need to add list support into it. The management of rule database need not be touched. But the match function have to be rewritten, so does the language interface parser. The list support will be added in several days if  sourceforge.net’s censorship comes out , whether the result is denial or acceptance.

  Today I have moved the CAS sytem: Maxima’s interface to my favoriate editor: GNU Emacs, The migration is rather easy, both maxima and emacs are GNU software and use lisp language. I need only copy some .el files into the site-lisp folder under emacs installation folder and setq some init variables in .emacs. then M-x maxima works.
  In my works of logisitic operational research, I need a  good computing platforms for both symbolic computing, formula reduction and numerical computing, it should be easy to extend, rich for expression. Maxima satisfy those criterias well, so it is my choice.
  After I learn how to write lisp extensions and maxima modules , I would like to migrate my RETE expert system into maximaand try to add machine learning functionalities here. this platform will be turned into my major working environment. Hope it make me more productive.
 

2005年06月06日

  After reading the RETE algorithm which can promote the perfermence of forward-chained rule reasoning system last friday (3rd June 2005),  I suddenly met with an idea to write a little Expert system using RETE algorithm. Yes, there are some other expert systems, such as clips, Jess… But I think the most familiar tools is the one that is written by ones own.
  I spent last weekend (4th and 5th June) writting about that, everything went on smoothly. Of cource the language I choose is the powerful python. Today a simple CLI based rule engine emerged with version 0.1.0, You can add facts, define rules and execute queries. It has a simple syntax like clips, so the learning curve is assumed to be flat.
  I registed a project named zerorule at sourceforge.net 
, the registration page have been submitted , hope that it passes the censorship, or I’ll have to submit it elsewhere if it failes.
  I hope the software be fully used in small business reasoning and personal knowledge management(The same role as KIF).I’ll try to apply it in my logistic  projects to look at what a role rule engines plays.
  Now this tool is difficult to be applied in large reasoning systems without optimizations because the large memory cost of RETE algorithm. The next things about it are:
  1: Optimization on perfermance, especially the memory usage.
  2: Rich user interface
  3: Libraries functionalities.

 It is the first time I come here,  I need to record somthing on the web to remind me my being in the world.

I have written somthing at the the blog of csdn.net. But it tends to crash while it uses the same blog package as  that of donews.net , so I move here.  Wish it  stable enough.

The primary audience of my blog is just me. But any other persons are welcomed, I really longed for communication with many friends. It is rather a happy action to make friends with kind persons