Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] [ANN] Lwt 2.2.0 released

11 views
Skip to first unread message

Jérémie Dimino

unread,
Dec 13, 2010, 10:36:12 AM12/13/10
to caml...@inria.fr
Hello,

The Lwt team is pleased to announce the release of Lwt 2.2.0. You can
download it at:

http://ocsigen.org/lwt/install

Here is a list of changes from the previous version (2.1.1):

* Bugfixes:
** Fix a bug with cancellable threads causing {{{Canceled}}}
exceptions to be raised randomly
** Fix a fd-leak in Lwt_io.open_connection
* {{{Lwt_unix}}} now use libev instead of select
* Add thread local storage support to {{{Lwt}}}
* Add backtrace support to {{{Lwt}}}. Now {{{Lwt}}} exceptions can
be recored by using the syntax extension with the {{{-lwt-debug}}}
command line switch.
* Allow blocking system calls to be executed in parallels
* Change the type of many functions of {{{Lwt_unix}}}, which now
return a {{{Lwt}}} thread
* Add functions {{{Lwt_unix.readable}}} and {{{Lwt_unix.writable}}}
* Add function {{{Lwt_io.is_busy}}}
* Add functions {{{Lwt_event.delay}}} and {{{Lwt_signal.delay}}}
* Add function {{{Lwt_term.render_update}}}
* Add function {{{Lwt_ssl.embed_socket}}}
* Add module {{{Lwt_bytes}}} defining operations on bigarrays
instead of strings
* Use bigarrays in Lwt_io instead of strings for the internal buffer.
Lwt_io.make now takes a function that uses a bigarray.
* Add module {{{Lwt_switch}}}

Enjoy!

--
Jérémie Dimino, on behalf of the Lwt team

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Gregory Bellier

unread,
Dec 16, 2010, 11:05:57 AM12/16/10
to Jérémie Dimino, caml...@inria.fr
I can't build lwt 2.2.0 while I successfully built 2.1.1

Here is the error I got (no such file or directory), followed by my
configuration :

+ ocamlfind ocamlc -c src/unix/lwt_unix_stubs.c
In file included from src/unix/lwt_unix_stubs.c:39:
src/unix/lwt_unix.h:28:16: error: ev.h: Aucun fichier ou dossier de ce type
Command exited with code 2.


Configuration:

pkg_camlp4_extend: ............................. /usr/lib/ocaml/camlp4
pkg_camlp4_quotations_o: ....................... /usr/lib/ocaml/camlp4
pkg_camlp4_lib: ................................ /usr/lib/ocaml/camlp4
ocamldoc: ...................................... /usr/bin/ocamldoc
pkg_threads: ................................... /usr/lib/ocaml
pkg_bigarray: .................................. /usr/lib/ocaml
pkg_unix: ...................................... /usr/lib/ocaml
Enhanced toplevel: ............................. false
SSL support: ................................... false
React helpers: ................................. false
build and install everything: .................. false
Text mode utilities: ........................... false
Unix support: .................................. true
Glib integration: .............................. false
Preemptive threads support: .................... true
Asynchronous unix functions: ................... true
OCamlbuild additional flags: ...................
Compile with ocaml profile flag on.: ........... false
Compile with ocaml debug flag on.: ............. true
Remove a directory.: ........................... rm -rf
Remove a file.: ................................ rm -f
suffix_program: ................................
is_native: ..................................... true
findlib_version: ............................... 1.2.4
PS documentation: .............................. $docdir
PDF documentation: ............................. $docdir
DVI documentation: ............................. $docdir
HTML documentation: ............................ $docdir
Documentation root: ............................ $datarootdir/doc/$pkg_name
Man documentation: ............................. $datarootdir/man
Locale-dependent data: ......................... $datarootdir/locale
Info documentation: ............................ $datarootdir/info
Read-only architecture-independent data: ....... $datarootdir
Read-only arch-independent data root: .......... $prefix/share
Object code libraries: ......................... $exec_prefix/lib
Modifiable single-machine data: ................ $prefix/var
Modifiable architecture-independent data: ...... $prefix/com
Read-only single-machine data: ................. $prefix/etc
Program executables: ........................... $exec_prefix/libexec
System admin executables: ...................... $exec_prefix/sbin
User executables: .............................. $exec_prefix/bin
Install architecture-dependent files in dir: ... $prefix
Install architecture-independent files dir: .... /usr/local
systhread_supported: ........................... true
default_executable_name: ....................... a.out
ext_dll: ....................................... .so
ext_lib: ....................................... .a
ext_asm: ....................................... .s
ext_obj: ....................................... .o
model: ......................................... default
native_c_compiler: ............................. gcc -Wall
-D_FILE_OFFSET_BITS=64 -D_REENTRANT
bytecomp_c_compiler: ........................... gcc -fno-defer-pop
-Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC
standard_runtime: .............................. /usr/bin/ocamlrun
standard_library: .............................. /usr/lib/ocaml
standard_library_default: ...................... /usr/lib/ocaml
ocaml_version: ................................. 3.11.1
ccomp_type: .................................... cc
architecture: .................................. amd64
system: ........................................ linux
os_type: ....................................... Unix
Package version: ............................... 2.2.0
Package name: .................................. lwt
ocamlbuild: .................................... /usr/bin/ocamlbuild
ocamlopt: ...................................... /usr/bin/ocamlopt.opt
ocamlc: ........................................ /usr/bin/ocamlc.opt
ocamlfind: ..................................... /usr/bin/ocamlfind

I: Running command 'ocaml discover.ml -ocamlc /usr/bin/ocamlc.opt -ext_obj .o'
testing for fd passing: available
testing for sched_getcpu: available
testing for affinity getting/setting: available

Sylvain Le Gall

unread,
Dec 16, 2010, 11:12:39 AM12/16/10
to caml...@inria.fr
I think you are missing libev package.

On Debian, you should install libev-dev package.

On 16-12-2010, Gregory Bellier <gregory...@gmail.com> wrote:
> I can't build lwt 2.2.0 while I successfully built 2.1.1
>
> Here is the error I got (no such file or directory), followed by my
> configuration :
>
> + ocamlfind ocamlc -c src/unix/lwt_unix_stubs.c
> In file included from src/unix/lwt_unix_stubs.c:39:
> src/unix/lwt_unix.h:28:16: error: ev.h: Aucun fichier ou dossier de ce type
> Command exited with code 2.
>

Regards,
Sylvain Le Gall

Jérémie Dimino

unread,
Dec 16, 2010, 11:13:37 AM12/16/10
to Gregory Bellier, caml...@inria.fr
On Thu, Dec 16, 2010 at 05:05:31PM +0100, Gregory Bellier wrote:
> I can't build lwt 2.2.0 while I successfully built 2.1.1
>
> Here is the error I got (no such file or directory), followed by my
> configuration :
>
> + ocamlfind ocamlc -c src/unix/lwt_unix_stubs.c
> In file included from src/unix/lwt_unix_stubs.c:39:
> src/unix/lwt_unix.h:28:16: error: ev.h: Aucun fichier ou dossier de ce type
> Command exited with code 2.

You need to install libev.

Cheers,

--
Jérémie

Gregory Bellier

unread,
Dec 16, 2010, 11:19:07 AM12/16/10
to Jérémie Dimino, caml...@inria.fr
2010/12/16 Jérémie Dimino <jer...@dimino.org>:

> On Thu, Dec 16, 2010 at 05:05:31PM +0100, Gregory Bellier wrote:
>> I can't build lwt 2.2.0 while I successfully built 2.1.1
>>
>> Here is the error I got (no such file or directory), followed by my
>> configuration :
>>
>> + ocamlfind ocamlc -c src/unix/lwt_unix_stubs.c
>> In file included from src/unix/lwt_unix_stubs.c:39:
>> src/unix/lwt_unix.h:28:16: error: ev.h: Aucun fichier ou dossier de ce type
>> Command exited with code 2.
>
> You need to install libev.

Ok. Maybe you should add it to the depedencies in your README file then.

Hans Ole Rafaelsen

unread,
Dec 16, 2010, 11:54:59 AM12/16/10
to Jérémie Dimino, caml...@inria.fr
Does this added requirement limit its portability to other platforms e.g.
Windows?

Thanks,

Hans

0 new messages