Ê×Ò³ ÉÏÒ»Ò³1ÏÂһҳβҳ

    erlang module pg2

¡¶ÇáËÉʵÏÖ¿ÉÉìËõÐÔ£¬ÈÝ´íÐÔ£¬ºÍ¸ºÔØƽºâµÄ´ó¹æÄ£¶àÈËÔÚÏßϵͳ¡·Ò»ÎÄÀïÃæ¶Ô¡°ErlangµÄ·Ö²¼Ê½½ø³Ì×é(Distributed Named Process Groups)¡±´ó´µÌØ´µ£¬¾ÍÊÇ˵µÄpg2Õâ¸ömodule¡£ÎĵµÄÇÀïËäȻдÁËÖ§³Ö·Ö²¼Ê½½Úµã£¬µ«ÊDz¢Ã»ÓÐ˵ÈçºÎÈçºÎ£¬Ö»ÌṩÁËÒ»¸öjoin(Name, Pid)¡£

...

    ErlangÍøÂç±à³Ì-packet²ÎÊý

gen_tcp:listen(Port, Options)£¬Options Ϊһ¸ö²ÎÊýÁбí

֮ǰ½éÉܹý {active, Boolean} Õâ¸ö opt£¬ÏÖÔÚ½éÉÜһϠ{packet, PacketType}

ÒýÓÃ

    {packet, PacketType} (TCP/IP sockets)
    Defines the type of packets t...

    Erlang µÄ·Ö²¼Í¨Ñ¶°²È«²ßÂÔ

ErlangµÄ·Ö²¼Ê½Í¨Ñ¶°²È«²ßÂÔ£¬¿ÉÒÔ¹é½áΪ All or None¡£Òª²»ÓµÓÐÈ«²¿µÄȨÏÞ£¬Òª²»¾ÍÍêȫûÓС£
ËüµÄ½Úµã°²È«ÉèÖã¬ÊÇͨ¹ýÒ»¸ömagic cookieÀ´ÊµÏֵġ£Õâ¸öÎļþĬÈϷŵ½
$HOME/.erlang.cookie £¬ÎļþÄÚÈÝÊÇ×Ö·û´®¡£
µ±ÆôÓ÷ֲ¼Í¨Ñ¶µÄʱºò£¬Õâ¸ömagic cookie¾ÍºÜÖØÒª...

    ¶Á¡¶Ì¸·Ö²¼Ê½ÍøÂç³ÌÐòÉè¼Æ¡·£¬Ë¼Erlang

1.ÍøÂçÊý¾ÝµÄÊÕ·¢µÄÉè¼Æ·½Ê½
ÎÄÖÐ˵£º

ʹÓÃselect£¬Ò»¸öÏß³ÌרߺÔðËùÓеÄÁ¬½ÓµÄ½ÓÊܺͷ¢ËÍ

ͨ³£ÔÚ¸ßÐÔÄܵķþÎñÆ÷³ÌÐò ÔòʹÓõÄÊǵڶþÖÖ·½Ê½£¬Õ¼ÏµÍ³×ÊÔ´ÉÙ£¬¶øÇÒÐÔÄÜÒ²ºÜºÃ¡£´ËÍ⣬Á÷Ë®Ïß¼¼ÊõÊÇÄ¿Ç°cpuÖÐ×î»ù±¾µÄ¼¼ÊõÖ®Ò»£¬Èô½«´ËÓÃÓÚÍøÂç³ÌÐòÉè¼Æ£¬Ò²¿ÉÒÔ...

    ¹«²¼ mryufeng ͬѧµÄ Erlang ÃØóÅ

ÉÏ´Î˵Çë mryufeng ͬѧ¶àддÑо¿Ðĵ㬻¹ÍÆ˵²»´ó°®Ð´³¤¶«Î÷¡£¸ô²»Á˼¸Ì죬Åܵ½ËûµÄ blog ÉÏÒ»¿´£¬¹Ô¹ÔÁúµÄ¶«£¡ÕûÁËÒ»´ó¶ÑÃØóÅ£¬Ô­À´ÊÇÒª²Ø˽£¡Ëµ²»µÃ£¬¶ÔÓÚÕâÑùͬ־£¬Ö»Äܾ¾³öÀ´Ê¾ÖÚÁË¡£×¢Ò⣬ÒÔÏÂÄÚÈÝÈ«²¿ÊÇ¡°º£Ôô°æ¡±£¬Î´¾­×÷ÕßÃ÷ȷͬÒ⣬ÇëÉ÷È룡
1, erl CTRL...

    erlang ÍøÂçµ÷ÓÅʵս

ǰЩÌì¸øecho_serverдÁ˸ö·Ç³£¼òµ¥µÄÁ¬½ÓѹÁ¦²âÊÔ³ÌÐò,
ÏÂÔØ: stress_test.erl


-module(stress_test). 
 
-export([start/0, tests/1]). 
 
start() -> 
    tests(12345). 
...

    Unit Test in Erlang

Erlang±»³Æ×÷ÊÇ¡°¹¤Òµ¼¶µÄÓïÑÔ¡±£¬ÔÚ²âÊÔÁìÓò£¬ÀíÓ¦ÊÇÓÐÏ൱³ÉÊì¶ÈµÄ¡£¶ø£¬JoeÀÏÏÈÉú±¾ÈË£¬Ò²ÊdzçÉС°ÄòâÊÔ½á¹û˵»°¡±µÄÈË£¨ÔÚ ¡¶Programming Erlang¡·ÊéÖУ¬ÉÏÀ´¾Í¸ã²âÊÔ£¬È»ºóÔÙ¿ª½²µÄÀý×ӱȱȽÔÊÇ£©¡£¾ÍÁ¬ Erlang/OTP ±¾ÉíµÄ´úÂëÖÊÁ¿Ò²ÊÇÓÐÑÏÃܵIJâÊÔ×÷Ϊ±£ÕϵÄ...

    Erlang: Let¡¯s talk to java

ÊÔÁËһϴ«ËµÖÐµÄ JInterface £¬Ê¹Óà OtpErlang.jar µÄÕû¸ö¹ý³ÌÆäʵ·Ç³£¼òµ¥£¬Ëƺõ±È JMS µÄ³ÌÐò¶¼¼òµ¥¡£
Ê×ÏÈ£¬ÎÒÃÇÒªÓà java ʵÏÖµÄԭʼ erlang ³ÌÐòÈçÏ£¬Ã»´í£¬¾ÍÊǾ޼òµ¥µÄ echo £¬ÎÒÃǵÄÄ¿±êÊÇÒª°ÑËüÓà java À´¸Äд£¬²»½öд·þÎñ¶Ë£¬Ò²ÒªÐ´¿Í»§¶Ë¡£
ÏÂÔØ: ech...

    ÇáËÉʵÏÖ¿ÉÉìËõÐÔ£¬ÈÝ´íÐÔ£¬ºÍ¸ºÔØƽºâµÄ´ó¹æÄ£¶àÈËÔÚÏßϵͳ

¼ò½é£º

±¾ÎÄÒÔÎÒµÄOpenPokerÏîĿΪÀý½éÉÜÁíÒ»ÖÖ¹¹½¨´ó¹æÄ£¶àÈËÔÚÏßϵͳµÄ·½°¸¡£OpenPokerÊÇÒ»¸ö´óÐͶàÈËÆË¿ËÍøÓΣ¬ÄÚ½¨Ö§³ÖÁËÈÝ´íÄÜÁ¦£¬¸ºÔØƽºâºÍÎÞÏÞÖƵĹæÄ£´óС¡£OpenPokerµÄÔ´´úÂë×ñÑ­GPLЭÒé¿ÉÒÔ´ÓÎÒµÄÍøÕ¾ÏÂÔØ£¬´óÔ¼°üº¬Ò»ÍòÐдúÂ룬ÓÐÈý·ÖÖ®Ò»ÊÇÓÃÀ´²âÊÔ...

    º¯Êýʽ±à³ÌÁíÀàÖ¸ÄÏ

³ÌÐòÔ±ÍÏí³³ÉÐÔ£¬Ã¿Ììµ½Á˰칫ÊÒºó£¬ÅÝ¿§·È£¬¼ì²éÓÊÏ䣬ÔĶÁ RSS feed£¬µ½¼¼ÊõÕ¾µã²éÔÄ×îеÄÎÄÕ£¬ÔÚ±à³ÌÂÛ̳µÄÏà¹Ø°æÃæä¯ÀÀ¹«¹²ÌÖÂÛ£¬²¢Ò»´Î´ÎµØË¢ÐÂÒÔÃ⩵ôÒ»ÌõÐÅÏ¢¡£È»ºóÊÇÎç·¹£¬»ØÀ´ºó¶¢ÁËIDEû¼¸·ÖÖÓ£¬¾ÍÔٴμì²éÓÊÏ䣬µ¹¿§·È¡£×îºóÔÚ²»Öª²»¾õÖУ¬½áÊøÁËÒ»Ìì...

    Ä¿Ç°Ö§³ÖErlangÓï·¨µÄ¿ª·¢»·¾³

¿´µ½ÓÐÈË̸¼°¿ª·¢»·¾³¡£ok£¬ÎÒÃǾÍÀ´Å̵ãÒ»ÏÂÄ¿Ç°ÊÐÃæÉÏÄܹ»¼ûµ½µÄ£¬Ö§³Ö Erlang Óï·¨µÄ IDE/Editor £¬ÆäÖУ¬IDEÓУº

    1 ¼ÓÄôóµÄ CaoYuan £¨»ªÈËŶ£©¿ª·¢µÄ ErlyBird £¨for NetBeans£©

    2 ´óÃû¶¦¶¦µÄ ErlIDE £¨for Eclip...

    ¶Á¡¶Ì¸·Ö²¼Ê½ÍøÂç³ÌÐòÉè¼Æ¡·£¬Ë¼Erlang

Ô­ÎĵØÖ·£ºavindev.javaeye.com
Ô­ÎÄ×÷ÕߣºAvinDev
163µÄzhousenдÁ˼¸ÆªÎÄÕ£¬¡¶Ì¸·Ö²¼Ê½ÍøÂç³ÌÐòÉè¼Æ¡·
µÚһƪ£¬µÚ¶þƪ£¬µÚÈýƪ
¼òµ¥Ì¸Ì¸¸ÐÏë¡£
1.ÍøÂçÊý¾ÝµÄÊÕ·¢µÄÉè¼Æ·½Ê½
ÎÄÖÐ˵£º

ʹÓÃselect£¬Ò»¸öÏß³ÌרߺÔðËùÓеÄÁ¬½ÓµÄ½ÓÊܺͷ¢ËÍ

ͨ³£ÔÚ¸ßÐÔ...

    ¹«²¼ mryufeng ͬѧµÄ Erlang ÃØóÅ

    ÉÏ´Î˵Çë mryufeng ͬѧ¶àддÑо¿Ðĵ㬻¹ÍÆ˵²»´ó°®Ð´³¤¶«Î÷¡£¸ô²»Á˼¸Ì죬Åܵ½ËûµÄ blog ÉÏÒ»¿´£¬¹Ô¹ÔÁúµÄ¶«£¡ÕûÁËÒ»´ó¶ÑÃØóÅ£¬Ô­À´ÊÇÒª²Ø˽£¡Ëµ²»µÃ£¬¶ÔÓÚÕâÑùͬ־£¬Ö»Äܾ¾³öÀ´Ê¾ÖÚÁË¡£×¢Ò⣬ÒÔÏÂÄÚÈÝÈ«²¿ÊÇ¡°º£Ôô°æ¡±£¬Î´¾­×÷ÕßÃ÷ȷͬÒ⣬Çë...

    ErlangÓëJAVAµÄ½»»¥²Ù×÷

ÊÔÁËһϴ«ËµÖÐµÄ JInterface £¬Ê¹Óà OtpErlang.jar µÄÕû¸ö¹ý³ÌÆäʵ·Ç³£¼òµ¥£¬Ëƺõ±È JMS µÄ³ÌÐò¶¼¼òµ¥¡£
Ê×ÏÈ£¬ÎÒÃÇÒªÓà java ʵÏÖµÄԭʼ erlang ³ÌÐòÈçÏ£¬Ã»´í£¬¾ÍÊǾ޼òµ¥µÄ echo £¬ÎÒÃǵÄÄ¿±êÊÇÒª°ÑËüÓà java À´¸Äд£¬²»½öд·þÎñ¶Ë£¬Ò²ÒªÐ´¿Í»§¶Ë¡£
ÏÂÔØ: ech...

    Erlangµ¥Ôª²âÊÔ Unit Test in Erlang

    Erlang±»³Æ×÷ÊÇ¡°¹¤Òµ¼¶µÄÓïÑÔ¡±£¬ÔÚ²âÊÔÁìÓò£¬ÀíÓ¦ÊÇÓÐÏ൱³ÉÊì¶ÈµÄ¡£¶ø£¬JoeÀÏÏÈÉú±¾ÈË£¬Ò²ÊdzçÉС°ÄòâÊÔ½á¹û˵»°¡±µÄÈË£¨ÔÚ ¡¶Programming Erlang¡·ÊéÖУ¬ÉÏÀ´¾Í¸ã²âÊÔ£¬È»ºóÔÙ¿ª½²µÄÀý×ӱȱȽÔÊÇ£©¡£¾ÍÁ¬ Erlang/OTP ±¾ÉíµÄ´úÂëÖÊÁ¿Ò²ÊÇÓÐÑÏ...

    erlangÍøÂç±à³ÌµÄ¼¸¸öÐÔÄܵ÷ÓźÍ×¢Òâµã

ǰЩÌì¸øecho_serverдÁ˸ö·Ç³£¼òµ¥µÄÁ¬½ÓѹÁ¦²âÊÔ³ÌÐò,
´úÂë 

-module(stress_test).  
  
-export([start/0, tests/1]).  
  
start() ->  
  &...
Ê×Ò³ ÉÏÒ»Ò³1ÏÂһҳβҳ