Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ANN] lazy.rb 0.1

Reply
Thread Tools

[ANN] lazy.rb 0.1

 
 
MenTaLguY
Guest
Posts: n/a
 
      11-06-2005
--=-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:ivergenceError, 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:ivergenceError, so they can be distinguished from
exceptions raised by strict code (the original exception can be
obtained via Lazy:ivergenceError#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:ivergenceError?

* Should the wrapper role of Lazy:ivergenceError 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)

iD8DBQBDbVDvcUNIGiXCc4MRAnSUAJ0fAxiDUbWpWLXlDHql9D LPCIwlQQCgtkdn
opYoAyynvHohrzeNzfZy1D8=
=EXZ/
-----END PGP SIGNATURE-----

--=-lkbWGMJis2tDKAHkjuqM--


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



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