Ludovic Courtès | 13 May 11:04 2014
Picon
Picon

[PATCH 3.0.x] Implement 'for ... in' loops in client code

The patch below implements ‘for ... in’ loops in client-side code (in
the js-to-js conversion.)

Before that, the ‘for’ loop in the tilde block in:

--8<---------------cut here---------------start------------->8---
service foo () {
    return <HTML> {
	<BODY> {
	    "foo",
	    ~{ var y = { a: 1, b: 2 };
	       console.log ("hello", y);
	       for (var x in y) { alert (y[x]); }
	     }
	}
    }
}
--8<---------------cut here---------------end--------------->8---

would be compiled down to just "J2SForIn".

Ludo’.

Attachment: text/x-patch, 884 bytes
Ludovic Courtès | 2 May 15:10 2014
Picon
Picon

[PATCH 3.0.x] Preliminary implementation of the Node.js Timer API

The patch below implements the ‘Timer’ class like that of Node.js, but
in a hacky way: the right thing would probably be to (1) use
‘setitimer’, and (2) use the new “worker” threads to run the callback.

With this patch I can use ‘setTimeout’, but ‘setInterval’ doesn’t work
(the callback is called only once.)

Comments?

Thanks,
Ludo’.

Attachment: text/x-patch, 4200 bytes
Ludovic Courtès | 2 May 11:44 2014
Picon
Picon

[PATCH 3.0.x] ‘Date.now’ returns a valid “time value”

The patch below fixes ‘Date.now’ to return a “time value”–i.e., a number
of milliseconds.

Thanks,
Ludo’.

Attachment: text/x-patch, 599 bytes
Ludovic Courtès | 28 Apr 17:18 2014
Picon
Picon

[PATCH] Gracefully handle WebSocket disconnections

This patch ensures that the ‘onclose’ procedure of a WebSocket is called
only once, and also fixes a segfault (due to calling (socket-close #f).)

Thanks,
Ludo’.

Attachment: text/x-patch, 1048 bytes
Ludovic Courtès | 25 Apr 17:10 2014
Picon
Picon

[PATCH] Add ‘websocket-send-text’ procedure

This patch adds a ‘websocket-send-text’ procedure.  (I’m not sure if
there are factorization opportunities.)

Thanks,
Ludo’.

Attachment: text/x-patch, 4424 bytes
Stefan Husmann | 18 Apr 18:17 2014
Picon

Build error

Hello,

building hop 3.00 pre2 under Arch Linux ends up with the following error (nodejs is installed in version 0.10.26):

[0mbigloo -O2 -fsharing -Wall -wslots -L
/home/haawda/paketierung/maintained_by_me/hop-devel/src/hop-3.0.0-pre2/lib -srfi
bigloo-compile -srfi enable-ssl -srfi enable-threads -srfi enable-avahi -srfi enable-upnp -cc gcc
-copt "-O3 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -I/usr/lib/bigloo/4.2a -fPIC" -srfi hop-dynamic  -copt -fPIC -L
/home/haawda/paketierung/maintained_by_me/hop-devel/src/hop-3.0.0-pre2/lib -srfi
bigloo-compile -unsafe -safee -c slider.scm -o o/slider.o
bigloo -O2 -fsharing -Wall -wslots -L
/home/haawda/paketierung/maintained_by_me/hop-devel/src/hop-3.0.0-pre2/lib -srfi
bigloo-compile -srfi enable-ssl -srfi enable-threads -srfi enable-avahi -srfi enable-upnp -cc gcc
-copt "-O3 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -I/usr/lib/bigloo/4.2a -fPIC" -srfi hop-dynamic  -copt -fPIC -L
/home/haawda/paketierung/maintained_by_me/hop-devel/src/hop-3.0.0-pre2/lib -srfi
bigloo-compile -unsafe -safee -c tree.scm -o o/tree.o
bigloo -O2 -fsharing -Wall -wslots -L
/home/haawda/paketierung/maintained_by_me/hop-devel/src/hop-3.0.0-pre2/lib -srfi
bigloo-compile -srfi enable-ssl -srfi enable-threads -srfi enable-avahi -srfi enable-upnp -cc gcc
-copt "-O3 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -I/usr/lib/bigloo/4.2a -fPIC" -srfi hop-dynamic  -copt -fPIC -L
/home/haawda/paketierung/maintained_by_me/hop-devel/src/hop-3.0.0-pre2/lib -srfi
bigloo-compile -unsafe -safee -c file.scm -o o/file.o
bigloo -O2 -fsharing -Wall -wslots -L
/home/haawda/paketierung/maintained_by_me/hop-devel/src/hop-3.0.0-pre2/lib -srfi
bigloo-compile -srfi enable-ssl -srfi enable-threads -srfi enable-avahi -srfi enable-upnp -cc gcc
-copt "-O3 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -I/usr/lib/bigloo/4.2a -fPIC" -srfi hop-dynamic  -copt -fPIC -L
(Continue reading)

Ludovic Courtès | 7 Apr 17:58 2014
Picon
Picon

[PATCH 3.0.x] Add ‘Hop’ server-side form

The patch below adds a ‘Hop’ server-side form.

Thanks,
Ludo’.

Attachment: text/x-patch, 1929 bytes
Ludovic Courtès | 3 Apr 16:06 2014
Picon
Picon

[PATCH 3.0.x] Fix ‘service-resource’ for HopScript

‘service-resource’ returns #f for services created from HopScript with
the ‘service’ form.  The patches below fix that.

The first patch makes sure ‘the-loading-file’ returns a valid file name
for HopScript files.

The second patch initializes the ‘resource’ field of services
instantiated with HopScript, like ‘define-service’ does.

Thanks,
Ludo’.

Attachment: text/x-patch, 678 bytes
Attachment: text/x-patch, 1244 bytes
Ludovic Courtès | 1 Apr 11:08 2014
Picon
Picon

[PATCH 3.0.x] Date.getTime returns non-zero milliseconds

The patch below changes ‘Date.getTime’ in the hope that the last three
digits would be non-zero.

Unfortunately it turns out that ‘date-nanosecond’ returns zero, so...

:-)

Ludo’.

Attachment: text/x-patch, 850 bytes
Manuel.Serrano | 5 Feb 07:04 2014
Picon
Picon

Re: hop-2.5.0-rc2

Hi Devon,

> Hop-2.5.0-rc2 build fails on Snow Leopard.
> 
> 		Peace
> 			--Devon
> 
> P.S. Transcript with ellipses for boring parts elided
> 
> $ cd ~/hack/hop-2.5.0-rc2
> 
> $ ./configure
> ** Configuration summary **
>
> ...
> 
> File "read.scm", line 1061, character 37014:
> #	    (let ((mpath (evmodule-path module)))
> #	                 ^
> *** ERROR:<anonymous:4746>
> Unbound variable -- evmodule-path
> 1 error occured, ending ...
> make[1]: *** [o/read.o] Error 255
> make: *** [lib] Error 2
> 
> $ bigloo -version
> Bigloo (4.1a)
> 
> $ system_profiler | grep -i 'Mac OS\|Darwin'
>       System Version: Mac OS X 10.6.8 (10K549)
(Continue reading)

Manuel.Serrano | 4 Feb 18:29 2014
Picon
Picon

hop-2.5.0-rc2

Dear Hop users,

It is now time to release the version 2.5.0. The -rc2 is now available.
Unless someone reports a serious problem it will be officially released
by the beginning of next week. Thanks in advance for giving this
"release candidate" version a try.

Sincerely,

--

-- 
Hop Inria team


Gmane