cyt
以前写过一篇qu的介绍blog(见http://www.cppblog.com/cyt/archive/2005/10/08/579.html)。
现在语言已经出到1.21.03版本。当然,其进步也已经不少。主页在:http://centrin.net.id/~marc/

1、语言对象丰富了很多。因为不记得以前有多少种了,所以也说不清究竟多了多少。不过现在看内部支持的类型列表,明显比以前多了。例如Socket、Thread、Weak、Proc等等。

2、支持嵌入HTML,例如:
pragma html

options = [foo:1, bar:2, baz:3]

<FORM ACTION="/foo" METHOD="POST">
    
<SELECT NAME="choice">
    for k, v in options
        
<OPTION VALUE=v>(\k)</OPTION>
    ;;
    
<INPUT TYPE="submit" VALUE="Send">
    
</SELECT>
</FORM> 

3、提供了 JIT engine,就是用上次介绍过 GNU Lightning。换句话说,代码可以翻译为汇编代码,可以在x86, SPARC and PowerPC等机器上执行。变成汇编,其性能提高多少可想而知。qu自己也列出了其性能比较:http://centrin.net.id/~marc/performance.html

4、提供一种validators技术,动态类型语言的数据类型灵活多变,所以类型校验显得比较重要。例如:
sub Message (x)
    
return x is String and x and not x.isspace ? x.capitalize : false
;;

sub hello (s: Message)
    println (
'Hello ', s) # guess what it prints!
end sub
Message看起来好像是一个函数的样子,但它可以用来验证变量的类型。保证传入hello函数的参数s,必须要满足Message(s)返回true。

5、灵活的语法,特别是支持lambda语法。喜欢ruby的估计也会喜欢这个
= sub (x) return x.len > 3 ;;
= lambda (x) x.len > 3
= {|x| x.len > 3}
= {|x| yield i for i in x}

反正主页上列出了很多很多吸引人的Features。不过具体实用性如何,我就不知道了。暂时看不到有什么著名的成功案例。不过语言真的是越来越吸引了。
posted on 2006-04-14 23:09 cyt 阅读(2443) 评论(19)  编辑 收藏 引用 所属分类: Work
Comments
  • # re: 新版本的Qu
    灵感之源
    Posted @ 2006-04-19 21:26
    “4、提供一种validators技术”

    语法很明显是参考了BASIC :)

      回复  更多评论   
  • # re: 新版本的Qu
    cyt
    Posted @ 2006-04-21 21:53
    感觉上就是大杂烩,估计作者是把各种语言自己喜欢的部分都综合起来。不过反而显得没有自己的风格。  回复  更多评论   
  • # re: 新版本的Qu
    qindebu
    Posted @ 2006-04-24 13:57
    对这个也比较感兴趣,想研究一下Lightning,多多交流  回复  更多评论   
  • # re: 新版本的Qu
    qindebu
    Posted @ 2006-04-24 13:59
    q_debu@hotmail.com  回复  更多评论   
  • # re: 新版本的Qu
    fang
    Posted @ 2006-05-23 10:37
    java,ruby,php,python,perl,tcl在web开发也比较完善了,如果让人再学一个Qu,恐怕有点力不从心. 不过也许在特殊应用中能应用.  回复  更多评论   
  • # re: 新版本的Qu[未登录]
    tony
    Posted @ 2007-08-22 09:00
    有谁知道嵌入式微秒一级的内存数据库eXtremeDB,据说超强 望前辈指点

    jiangyongfei111@eyou.com

      回复  更多评论   
  • # re: 新版本的Qu
    StephensonKarla33
    Posted @ 2010-07-23 23:13
    Have no a lot of cash to buy a building? Don't worry, because that's available to receive the <a href="http://bestfinance-blog.com">loan</a> to resolve all the problems. Therefore take a term loan to buy all you want.   回复  更多评论   
  • # re: 新版本的Qu
    free essays
    Posted @ 2010-07-25 06:56
    There are extraordinary tips about the way to have the academic grade. Thus, students should know the idea referring to this good topic and write the well done europe essay paper. The another way is to search for the reliable good essay writing service and just order term paper in web. We hope this will help.   回复  更多评论   
  • # re: 新版本的Qu
    mp3 ringtones
    Posted @ 2010-07-30 18:55
    You share a kind of really good stuff! We opine, it should be compared with unique cellphone ringtones in the get ringtones providers.   回复  更多评论   
  • # re: 新版本的Qu
    essays online
    Posted @ 2010-08-01 17:54
    I do not stake that you can write good enough essays, but, essays online service is able to make that better.   回复  更多评论   
  • # re: 新版本的Qu
    Paper writing service reviews
    Posted @ 2013-04-10 16:17
    Don’t have the faintest idea which writing centre to choose to obtain assistance from? Glance over OvernightEssay testimonials, and reach a good choice.  回复  更多评论   
  • # re: 新版本的Qu
    this site
    Posted @ 2013-04-10 16:18
    Thank you, it's very amazing description about this good topic it might be very kind for students. Recently i needed resume service (marvelousresume.com). To my adroitest surprise, resume was worthy the price I paid for it.  回复  更多评论   
  • # re: 新版本的Qu
    SamedayEssay testimonials
    Posted @ 2013-05-22 12:12
    When it's quite complicated for you to understand at what online writing services buy essay papers, look over essay writing service review best-writing-services.com which will assist you to make a deal with really reliable organization.  回复  更多评论   
  • # re: 新版本的Qu
    BuyEssay rewiew
    Posted @ 2013-09-21 13:16
    Thanks to full custom essay writing services reviews (essaysreview.com), I managed to make a deal with the reliable online essay writing service to buy custom papers at. Today, if I need immediate writing services, I know where to go so that get the first-rate writing materials I am looking for.  回复  更多评论   
  • # re: 新版本的Qu
    this link
    Posted @ 2013-09-21 13:16
    Have no clue which company to select to receive assistance from? Look over WritingsCentre testimonials, and come to a judicious decision.  回复  更多评论   
  • # re: 新版本的Qu
    Web site
    Posted @ 2013-09-21 13:27
    Are you searching for resume services? Still ignorant of which company to choose for buying resume? Go to this site. Here you can read CV sample or buy resumes from certified resume writers.  回复  更多评论   
  • # re: 新版本的Qu
    home page
    Posted @ 2013-09-21 13:31
    Are you searching where to buy resume paper or where to get resume templates and excellent CV writing? Or you just would like to buy resumes from professional resume writers? Only get in touch with Resume company.  回复  更多评论   

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理