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

Camille d’Alméras | 3 Feb 16:21 2014

Standalone scheme2js ?

Hello list,

For dabbling purposes, is it still possible to perform scheme to 
javascript conversion without using the whole Hop package ? If so, could 
you give me pointers on how (I successfully compiled Hop), and if not, 
would you consider resurrecting scheme2js ?

Thank you,

Camille d'Alméras

Hanson, Timothy | 24 Jan 15:52 2014
Picon

newby install question

I am intrigued by Hop and would like to try it out, but have run into

a problem i'm not sure how to solve (or what the best approach would be.)

 

I'm using ubuntu 13.10.

 

I noticed bigloo is a prerequisite, so I installed it first (4.0b).

That worked fine.

 

when I try to install hop i get an error (a few more details at the

bottom of this mail). in particular at the "make" step I get

 

  runtime/exporter: error while loading shared libraries:

libbigloo_s-4.0b.so: cannot open shared object file: No such file or

directory

 

I note

  tbh <at> tbh-HP-EliteBook-2570p:~/DevelopmentTools/hop-2.4.2$ ls -al

/usr/local/lib/libbigloo_s-4.0b.so

lrwxrwxrwx 1 root root 31 Jan 24 09:25

/usr/local/lib/libbigloo_s-4.0b.so -> bigloo/4.0b/libbigloo_s-4.0b.so

 

which looks wrong: the link is to a relative path which perhaps right

while i was building bigloo but is now wrong when i'm trying to build hop.

 

perhaps I didn't install bigloo correctly? (I just did

  ./configure

  make

  sudo make install

).

 

i'd appreciate any pointers if someone has time.

 

cheers,

 

Tim Hanson

 

 

 

tbh <at> tbh-HP-EliteBook-2570p:~/DevelopmentTools/hop-2.4.2$ ./configure

** Configuration summary **

 

Release:

  hop release number.................... 2.4.2 1

  bigloo................................ bigloo (4.0b)

  backend............................... native

  link.................................. dynamic

  devel mode............................ product

 

Optional features:

  multi-threading....................... yes

  https support......................... no

  zeroconf.............................. no

 

Directories where Hop will be installed:

  etc directory......................... /usr/local/etc

  bin directory......................... /usr/local/bin

  lib directory......................... /usr/local/lib

  share directory....................... /usr/local/share/hop

  man directory......................... /usr/local/man/man1

  weblets directory..................... /usr/local/lib/hop/2.4.2/weblets

  contribs directory.................... /usr/local/share/hop/contribs

 

Internals:

  bigloo compilation flags.............. -O2 -fsharing -Wall -wslots

-L $(BUILDLIBDIR) -srfi bigloo-compile -srfi enable-threads -srfi

enable-upnp

  runtime compilation flags............. -unsafe -safee

  mime types............................ /etc/mime.types

  default JavaScript mime type.......... application/x-javascript

  default CSS mime type................. text/css

tbh <at> tbh-HP-EliteBook-2570p:~/DevelopmentTools/hop-2.4.2$ make

mkdir -p bin

mkdir -p lib

make -C scheme2js build

make[1]: Entering directory

`/home/tbh/DevelopmentTools/hop-2.4.2/scheme2js'

runtime/exporter --scheme2js-modules --constant --module runtime

--ignored-prefixes '("sc_" "sci_")' -o runtime/runtime.sch

runtime/runtime.js

runtime/exporter: error while loading shared libraries:

libbigloo_s-4.0b.so: cannot open shared object file: No such file or

directory

make[1]: *** [runtime/runtime.sch] Error 127

make[1]: Leaving directory

`/home/tbh/DevelopmentTools/hop-2.4.2/scheme2js'

make: *** [scheme2js] Error 2

 

tbh <at> tbh-HP-EliteBook-2570p:~/DevelopmentTools/hop-2.4.2$ ls -al

/usr/local/lib/libbigloo_s-4.0b.so

lrwxrwxrwx 1 root root 31 Jan 24 09:25

/usr/local/lib/libbigloo_s-4.0b.so -> bigloo/4.0b/libbigloo_s-4.0b.so

 

 

Tim Hanson
Entwickler, Portalbetrieb, FEM-Technik
F.A.Z. Electronic Media GmbH
 www.faz.net

 

Hellerhofstraße 2-4 | 60327 Frankfurt am Main
Telefon +49 69 7591-2858 | Fax +49 69 7591-802858
E-Mail:
t.hanson <at> faz.de

Amtsgericht Frankfurt am Main, HRB 30912
Geschäftsführer Dr. Ernst Peters, Thomas Schultz-Homberg

 

Ludovic Courtès | 7 Jan 15:47 2014
Picon
Picon

[PATCH] ‘hop_typeof’ recognizes JS functions

Currently ‘hop_typeof’ doesn’t work as expected for functions:

--8<---------------cut here---------------start------------->8---
hop_typeof (function bar(){ return true; })
=> "object"
--8<---------------cut here---------------end--------------->8---

This patch should fix it:

Attachment: text/x-patch, 501 bytes

OK to apply?

Ludo’.
Ludovic Courtès | 7 Jan 15:25 2014
Picon
Picon

Truth value

Hi,

Conditions are explicitly compared against the JS ‘false’ value:

--8<---------------cut here---------------start------------->8---
$ echo  '(if foo (tprint "yes") (tprint "no"))' | hopc -j -
/* scheme2js generated file Tue Jan  7 15:21:45 2014 */
"use strict";

if ((foo !== false)) {
(hop_tprint("stdin", false, (sc_list("yes"))));
}
else {
(hop_tprint("stdin", false, (sc_list("no"))));
}
--8<---------------cut here---------------end--------------->8---

This differs from JS semantics where several values evaluate to false
when used as conditions.

Among these, ‘null’ may be worth considering as false: it seems to be a
common idiom to have JS functions that return ‘null’ to indicate
failure.

WDYT?

Thanks,
Ludo’.

Sven Hartrumpf | 27 Dec 16:34 2013
Picon
Picon

hop running in https mode

Hi all.

Is anybody running hop in https mode?
If so, are there any pitfalls with the certificate?

I am asking because my hop server (2.4.2) finds the certificate
and the private password in the right directories, but
the first request from a web browser just shows a timeout
in the browser and nothing in the hop server output.
Firefox reports the connection as protected by a TLS certificate:
"TLS_RSA ... 256bit"
How to increase debug output for such cases?

Ciao
Sven

Ludovic Courtès | 21 Nov 18:13 2013
Picon
Picon

‘take’ doesn’t validate its arguments

Here’s the problem:

--8<---------------cut here---------------start------------->8---
(module foo (library srfi1))
(take '(a b) 3)
--8<---------------cut here---------------end--------------->8---

and:

--8<---------------cut here---------------start------------->8---
$ hop t.hop
Segmentation violation
    1. eval, t.hop:1
--8<---------------cut here---------------end--------------->8---

Thanks,
Ludo’.


Gmane