Professional Web Applications Themes

ruby-dev summary 22877-23014 - Ruby

Hi all, This is a summary of ruby-dev mailing list in these days. [ruby-dev:22859] Re: [ruby-talk:91705] io/nonblock Nobuyoshi Nakada suggested new methods for nonblocking I/O: * IO#nonblock? * IO#nonblock = flag * IO#nonblocking(flag) { .... } * IO#nonblock { .... } * IO#nonblock TANAKA Akira is opposed to this idea, because: * Nonblocking IO is not useful in most cases. * Nonblocking flag is inherited to child processes, that is very dangerous. He also suggested alternative solution, "stdio-sensitive sysread". This issue is still open. [ruby-dev:22877] Process.spawn & IO.popen without shell Nobuyoshi Nakada proposed a new method Process.spawn. This method offers ...

  1. #1

    Default ruby-dev summary 22877-23014

    Hi all,

    This is a summary of ruby-dev mailing list in these days.


    [ruby-dev:22859] Re: [ruby-talk:91705] io/nonblock

    Nobuyoshi Nakada suggested new methods for nonblocking I/O:

    * IO#nonblock?
    * IO#nonblock = flag
    * IO#nonblocking(flag) { .... }
    * IO#nonblock { .... }
    * IO#nonblock

    TANAKA Akira is opposed to this idea, because:

    * Nonblocking IO is not useful in most cases.
    * Nonblocking flag is inherited to child processes,
    that is very dangerous.

    He also suggested alternative solution, "stdio-sensitive sysread".

    This issue is still open.

    [ruby-dev:22877] Process.spawn & IO.popen without shell

    Nobuyoshi Nakada proposed a new method Process.spawn.
    This method offers portable interface to spawn processes asynchronously.

    e.g.
    Process.spawn "ls -l /"

    He also suggested that IO.popen should invoke processes without
    shell interaction e.g. IO.popen directly calls command if the first
    argument is an Array, as well as #exec does.

    # `*' is not expanded
    IO.open(["/bin/ls", "*"], "r")

    Matz agreed with these ideas.

    [ruby-dev:22911] core dump with /#{Thread.pass}/o

    TANAKA Akira reported that /#{Thread.pass}/o causes segmentation fault.
    The ruby interpreter edits an internal syntax tree when /#{...}/o is
    seen, the value of /#{...}/o can be unexpectable with multithreads.
    This problem is already discussed in [ruby-dev:11650] and [ruby-dev:21614],
    and it is needed to make Mutex class builtin.

    Akira committed temporary fix, but this issue is still open.

    [ruby-dev:23002] drb/eq causes unexpected assertion fail

    Kazuhiro Nishiyama reported that drb's unit test failed at
    test_drb.rb:5: test_05_eq. This problem is caused by the difference
    of drb/eq.rb load order.

    Masatoshi Seki, the author of drb, noted that he is thinking to require
    drb/eq.rb by default.


    -- Minero Aoki

    ruby-dev summary index:
    http://i.loveruby.net/en/ruby-dev-summary.html


    Minero Guest

  2. #2

    Default Re: ruby-dev summary 22877-23014

    il Thu, 26 Feb 2004 18:25:30 +0900, Minero Aoki <net>
    ha scritto::
     


    yuhu!
    I always wanted this, even If I thought that should go in Kernel, like
    fork() and exec(). Why this goes in Process ?




    gabriele Guest

  3. #3

    Default Re: ruby-dev summary 22877-23014

    Hi,

    At Thu, 26 Feb 2004 20:34:48 +0900,
    gabriele renzi wrote in [ruby-talk:93740]: 
    >
    > yuhu!
    > I always wanted this, even If I thought that should go in Kernel, like
    > fork() and exec(). Why this goes in Process ?[/ref]

    Well, rather I'll feel nice if there are also those two in
    Process. Which is better, or both?

    --
    Nobu Nakada


    nobu.nokada@softhome.net Guest

Similar Threads

  1. ruby-dev summary 21730-21822
    By Minero Aoki in forum Ruby
    Replies: 0
    Last Post: November 6th, 10:48 AM
  2. [ANN] ruby-dev summary index
    By Minero Aoki in forum Ruby
    Replies: 2
    Last Post: October 22nd, 10:08 AM
  3. ruby-dev summary 21531-21607
    By Kazuo Saito in forum Ruby
    Replies: 0
    Last Post: October 15th, 12:07 PM
  4. ruby-dev summary 20941-21133
    By TAKAHASHI Masayoshi in forum Ruby
    Replies: 0
    Last Post: August 7th, 06:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139