[ANN] lazy.rb 0.1

Discussion in 'Ruby' started by MenTaLguY, Nov 6, 2005.

  1. MenTaLguY

    MenTaLguY Guest

    --=-lkbWGMJis2tDKAHkjuqM
    Content-Type: text/plain
    Content-Transfer-Encoding: quoted-printable

    Version 0.1 of lazy.rb is out, yet again offering lazy evaluation in
    Ruby, but with a new version number.

    Along with the spiffy new version number, you get:

    * Lazy::DivergenceError, which is raised if a lazy computation diverges

    * saner exception handling:

    + exceptions in lazy computations could have confusing
    effects before; this version preserves the once-and-only-once
    evaluation policy, even in the presence of exceptions

    + exceptions raised while evaluating lazy computations are wrapped
    in Lazy::DivergenceError, so they can be distinguished from
    exceptions raised by strict code (the original exception can be
    obtained via Lazy::DivergenceError#reason)

    * nearly seamless implicit evaluation, thanks to Pit Capitain

    * a few more paragraphs of documentation

    The web site (such as it is) is now here:

    http://moonbase.rydia.net/software/lazy.rb/

    The script is here:

    http://moonbase.rydia.net/software/lazy.rb/0.1/lazy.rb

    The documentation is here:

    http://moonbase.rydia.net/software/lazy.rb/0.1/doc/

    I have some questions, also.

    * Would you all prefer "promise" or "lazy" for the promise-constructor
    function?

    * Should exceptions resulting from an explicit call to force() be
    unwrapped from their Lazy::DivergenceError?

    * Should the wrapper role of Lazy::DivergenceError be separated into
    a different exception class?

    -mental

    --=-lkbWGMJis2tDKAHkjuqM
    Content-Type: application/pgp-signature; name=signature.asc
    Content-Description: This is a digitally signed message part

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.1 (GNU/Linux)

    iD8DBQBDbVDvcUNIGiXCc4MRAnSUAJ0fAxiDUbWpWLXlDHql9DLPCIwlQQCgtkdn
    opYoAyynvHohrzeNzfZy1D8=
    =EXZ/
    -----END PGP SIGNATURE-----

    --=-lkbWGMJis2tDKAHkjuqM--
    MenTaLguY, Nov 6, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken Pu
    Replies:
    3
    Views:
    671
    Steven D'Aprano
    Jan 16, 2009
  2. Boris Borcic
    Replies:
    0
    Views:
    547
    Boris Borcic
    Jan 16, 2009
  3. Boris Borcic
    Replies:
    0
    Views:
    545
    Boris Borcic
    Jan 16, 2009
  4. MenTaLguY

    [ANN] lazy.rb

    MenTaLguY, Nov 4, 2005, in forum: Ruby
    Replies:
    7
    Views:
    86
    Devin Mullins
    Nov 5, 2005
  5. MenTaLguY

    [ANN] lazy.rb 0.2

    MenTaLguY, Dec 11, 2005, in forum: Ruby
    Replies:
    1
    Views:
    136
    Ezra Zygmuntowicz
    Dec 11, 2005
Loading...

Share This Page