Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
从Py2Erl开始的半天搜索
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeff Xiong  
View profile   Translate to Translated (View Original)
 More options Oct 23 2007, 11:17 am
From: "Jeff Xiong" <gigix1...@gmail.com>
Date: Tue, 23 Oct 2007 23:17:33 +0800
Local: Tues, Oct 23 2007 11:17 am
Subject: 从Py2Erl开始的半天搜索
(erlang-china的列表是要最终迁移成ecug吧?讨论的邮件还有必要抄送旧列表一份吗?)

今天上午,尝试用ErlyWeb做一个petstore,最终被击败了。CaoYuan的blog帮了很大忙:
http://blogtrader.net/page/dcaoyuan/entry/from_rails_to_erlyweb_part2

结论:ErlyWeb在开发便利性方面距离Rails不是一点半点。尤其是view可用的工具太少,有太多东西要从头做起。用来做web前端,不仅有高射炮打蚊 子之嫌,而且颇费劲。不靠谱。

中午写InfoQ的这个报道,其间看了一遍"Py2Erl"那个讲稿,兴趣起来了。
InfoQ报道:http://www.infoq.com/cn/news/2007/10/cn-erlounge-ii
讲稿:http://www.erlang.org.cn/ecug/071013-erlparty2/071014-py2erl/

找到了Stackless Python,写了一段小程序。好玩,靠谱。
Stackless Python:http://www.stackless.com/
抄一段小程序:http://gigix.thoughtworkers.org/2007/10/23/is-stackless-python-the-way
有人做了benchmark,差强人意吧
http://muharem.wordpress.com/2007/07/31/erlang-vs-stackless-python-a-...

函数式编程,现在已经不成其为卖点了。Erlang最吸引我的是"那种"对并发程序设计的建模方式。从stackless那里看到,原来这个模式叫Actors
Model,有年头。
C2的解释:http://c2.com/cgi/wiki?ActorsModel
这篇文章非常好看:http://www.cypherpunks.to/erights/history/actors/AIM-410.pdf
这篇也好看,就是太玄虚了点:http://www.cypherpunks.to/erights/history/actors/AIM-691.pdf

好吧……Ruby咋样呢?继续人肉搜索……要说Ruby(和/或Python)社区从Erlang那里得到什么,直接转过去是可能性不大滴,主要还是(1)学习 人家的先进思想;(2)混合语言编程。Ruby在这方面的努力,包括Ruby-Erlang
bridging和自己实现Actors Model。
Erlectricity是一个bridge:http://code.google.com/p/erlectricity/
Rebar是另一个bridge,成熟度更低:http://rubyisawesome.com/2007/4/30/calling-erlang-from-ruby-teaser
Omnibus实现了Actors
Model,成熟度也很低:http://groups.google.com/group/ruby-talk-google/browse_frm/thread/ec4...

拿着Omnibus玩了一会儿。这个语法写出来就等而下之了。看了看源代码,没有什么奇妙的,只是把Thread封装了一下而已。(这里有一个问题:谁知道fu ture是什么概念呢?)
又搞了一段小程序:http://gigix.thoughtworkers.org/2007/10/23/is-concurrent-ruby-better

听说Ruby 1.9要加入一个叫做Fiber的东西。这个,把语法糖扔掉以后,和Omnibus基本上同一回事……
http://www.infoq.com/news/2007/08/ruby-1-9-fibers

还有一个围绕着Ruby线程模型的讨论。GIL会对并发编程造成什么影响呢?没认真去想。
http://www.infoq.com/news/2007/05/ruby-threading-futures

以上。

--
Jeff Xiong
Software Journeyman - http://gigix.thoughtworkers.org
Open Source Contributor - http://rubyworks.rubyforge.org
Technical Evangelist - http://www.infoq.com/cn/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mryufeng  
View profile   Translate to Translated (View Original)
 More options Oct 23 2007, 12:45 pm
From: mryufeng <mryuf...@gmail.com>
Date: Tue, 23 Oct 2007 16:45:15 -0000
Local: Tues, Oct 23 2007 12:45 pm
Subject: Re: 从Py2Erl开始的半天搜索
感觉还是先把erlang的特性玩好比较是在。 erlang好多部署 维护方面的特性可以深入挖下。

http://mryufeng.javaeye.com

On 10月23日, 上午11时17分, "Jeff Xiong" <gigix1...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zoom. Quiet  
View profile   Translate to Translated (View Original)
 More options Oct 23 2007, 8:48 pm
From: Zoom.Quiet <zoom.qu...@gmail.com>
Date: Wed, 24 Oct 2007 08:48:32 +0800
Local: Tues, Oct 23 2007 8:48 pm
Subject: Re: [ECUG:105] 从Py2Erl开始的半天搜索
On 10/23/07, Jeff Xiong <gigix1...@gmail.com> wrote:
> (erlang-china的列表是要最终迁移成ecug吧?讨论的邮件还有必要抄送旧列表一份吗?)

不是的,原有的继续,只是功能化,专门进行技术讨论,
社区建议的到 ecug;
项目協商的到 ecug-core
;)

这方面比较小白,研究!感谢介紹!

其实erlang 的美妙在于可工业化应用的 FP 格局;
FP<->分布<->面向进程
三者融合后,才有热部署,迸发响应能力等等糖果的;
使用 erlang 对并发的支持,并不是唯一的选择理由;
可以在服务永续的情况下安全的不断升级服务内容;
这才是 erlang 比其它任何框架 牛X 的地方哪!!!

> 好吧……Ruby咋样呢?继续人肉搜索……要说Ruby(和/或Python)社区从Erlang那里得到什么,直接转过去是可能性不大滴,主要还是(1)学习 人家的先进思想;(2)混合语言编程。Ruby在这方面的努力,包括Ruby-Erlang
> bridging和自己实现Actors Model。

[...]
--
'''Time is unimportant, only life important!
过程改进即是开始促生可以产生靠谱的人的组织!
'''http://zoomquiet.org
blog  @ http://blog.zoomquiet.org/pyblosxom/
wiki  @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
scrap @ http://floss.zoomquiet.org
share @ http://share.zoomquiet.org
douban@ http://www.douban.com/people/zoomq/
好看簿 @ http://zoomq.haokanbu.com/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
You can get the truely Freedom 4 software.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google