Hi Ludovic,
> For the record, the various f32vector constructors behave inconsistently
> on browsers supporting the Float32Array type.
>
> Namely:
>
>primitivereturn type
>--
>make-f32vector Float32Array
>f32vectorvec
Hi Ludovic,
> > Namely:
> >
> >primitivereturn type
> >--
> >make-f32vector Float32Array
> >f32vectorvector
> >#f32 read syntax Float32Array
>
> And `f32vector?' may not always work as advertised:
>
> functi
Hi Sven,
> Hi all.
>
> In hop applicatons, URLs often end like this:
>
> ?hop-encoding=hop&vals=
>
> Where is an explanation how above should be encoded correctly?
> (Background: I want to pass values from a non-hop application to a hop
> service.)
>
> Are hop-encoding values other than "hop
> Thanks Manuel for your answers.
>
> One more:
>
> MS:
> > The latter [hop-encoding] is used internally by the Hop runtime system to
> > communicate between
> > clients and servers and between servers and servers. It relies on Bigloo's
> > serialization.
>
> I searched the hop index ( http:/
Hi Sven,
> If I run the ColorChooser example from
>
> http:///hop/test/
>
> it works as expected (in hop 2.4.1).
> But when I press the "Ok" button, the browser shows a client error
> in the browser:
>
> TypeError: cc.rgb is undefined
This error was due to a change in the Hop generated code. N
Hi Ludovic,
> On the client side, ‘equal?’ does not compare objects structurally as is
> the case on the server side:
>
> --8<---cut here---start->8---
> function sc_isEqual(o1, o2) {
> return ((o1 === o2) ||
> (sc_isPair(o1) && sc_isPair(o2)
>
> It appears that ‘hop_obj_to_string’ is non-deterministic:
>
> --8<---cut here---start->8---
> hop_obj_to_string(new Object({a: 3}))
> ⇒ "=D¬(=D(:"a.."
>
> hop_obj_to_string(new Object({a: 3}))
> ⇒"=DÌ(=DÍ(:"a.."
>
> hop_obj_to_string(new Object({a: 3}))
> Problem is that objects may have a different ‘hop_serialize_context_def’
> property, yet be otherwise equal at the Scheme level.
>
> Shouldn’t the above code skip ‘hop_serialize_context_def’, and perhaps
> ‘hop_serialize_context_key’?
I don't know. What is the meaning of equal? if the object are
> FYI I just committed this fix to the ‘2.5.x’ branch:
>
>
> changeset: 3378:042aab3880b5
> branch: 2.5.x
> tag: tip
> parent: 3373:80a747e66561
> user:Ludovic Courtès
> date:Tue Sep 17 11:07:02 2013 +0200
> summary: scheme2js: Assign named lambdas to a JS
Hi Ludovic,
> No I’m only concerned about ‘equal?’ for Scheme objects used on the
> client side.
>
> Shouldn’t ‘sc_isEqual’ skip special properties like
> ‘hop_bigloo_serialize_object’ does? That is:
>
> --8<---cut here---start->8---
>for( var p in item
Dear Masatake,
> The public repository makes it easier for people not at inria
> to contribute to HOP.
>
> Does being unavailable come from something strong policy?
> If it does not, please resume the public access.
You are absolutely right. This is an important matter.
The Hop repository can
HOP is a software development kit designed for the Web 2.0. It works
hand by hand with the browsers in order to enhance the capabilities of
the latters. It is designed for programming interactive web
applications such as web agendas, web galleries, music players,
etc. It is compatible with the maj
> Thank you. I successfully cloned the repository.
>
> I'm new to mercurial.
> How can I check out the branch(or tag?) which developers
> are working on now? My guessing is:
>
> $ hg checkout tip
>
> Is this correct?
If you want to switch to the development branch, use:
$ hg update 2.5.x
> Consider this example (assuming a Hop server is running on the same
> machine on port 9001, and another one on port 9002):
>
> --8<---cut here---start->8---
> (module foo
>~(js console))
>
> (define %server (hop-server-hostname))
> (define %port (hop-port
No I’m only concerned about ‘equal?’ for Scheme objects used on the
> client side.
>
> Shouldn’t ‘sc_isEqual’ skip special properties like
> ‘hop_bigloo_serialize_object’ does? That is:
>
>for( var p in item ) {
> if( p !== "hop_bigloo_serialize" &&
> p !== "hop_classname" &&
>
Hi Sven,
> I found out that hop 2.5 contains much more code for keep-alive
> connections. Cool.
> But are there also some documentation snippets or examples?
What kind of examples are you looking for? I probably have a few things to
share...
--
Manuel
> Yes, the problem does not occur when :host and :port are omitted, or
> when they refer to the current server.
The problem is now fixed. I have committed the fix. I will upload the
hop-2.5.0pre2 by the beginning of next week.
Thanks for your report.
--
Manuel
Hi Ludovic,
> This patch fixes ‘delete’, ‘filter’, etc. when running in -g mode
> on 2.5.x.
Argg. Yes. You are right. I had forgotten all these. Thanks for the patch
(now applied and committed).
Cheers,
--
Manuel
> Works for me, thanks!
Good to know. Thanks for your report.
--
Manuel
> Thanks for the quick reply.
>
> However, I’m using 2a1ddbc4 and the test case I posted still behaves the
> same. Am I missing something?
??? Are your sure? What about trying the latest version I have just
pushed (with the remq patch). It is stampped 21368abef71c. It really
think it solves the c
> diff -r 2a1ddbc46a89 share/hop-request.js
> --- a/share/hop-request.jsSat Oct 05 07:37:26 2013 +0200
> +++ b/share/hop-request.jsMon Oct 07 17:41:15 2013 +0200
> @@@ -598,7 +598,7 @@@
> /*-*/
> function hop_xdomain_onme
> Great. OK if I commit this patch?
No need, I did it. Thanks anyway.
--
Manuel
> BTW, it would be great to have a test suite. I imagine scheme2js could
> be tested by running JS code with Node.js or something like that.
...but the main problem is that the largest part of the scheme2js runtime
needs the browser functions.
--
Manuel
Hi Ludovic,
> The ‘service’ form returns a procedure, but ‘register-service!’ expects
> a ‘hop-service’ instance. The fact that ‘procedure-attr’ is used to
> link the two is an implementation detail, so users should probably not
> rely on it.
>
> Thus, I propose this patch to allow procedures a
Hi Sven,
> Is there any support for serving HEAD requests from a standard hop server?
> I see more and more HEAD requests in webserver logs.
Yes, it is supported by default.
By default HEAD requests are handled by the function HTTP-HEAD of src/init.scm.
Cheers,
--
Manuel
> Consider ‘i.sch’:
>
> --8<---cut here---start->8---
> (directives
>(export (class Bar
> (baz::int read-only
> --8<---cut here---end--->8---
>
> and ‘foo.hop’:
>
> --8<---cut here--
> But it does not seem to work for all pages, e.g.
>
> # curl --head http://hop.inria.fr/
> HTTP/1.1 500 Internal Server Error
> Cache-Control: no-cache
> Pragma: no-cache
> Transfer-Encoding: chunked
> Connection: keep-alive
> Content-type: text/html; charset=UTF-8
> Server: Hop
>
> Probably, yo
> When writing programs that can both run on server and client side, I'm
> confronted with an issue about locks (mutexes).
>
> On the server side, I have to protect some variables from concurrently
> running threads executing services. I use mutex-lock!/unlock! and
> with-lock for this purpose.
Hi Cyprien,
> More and more external JavaScript library functions takes JS objects
> as parameters, like for instance in Three.js:
>
> var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
>
> Translation such code in Hop is not always easy.
>
> The Hop documentation (JavaScript Ta
Dear Devon,
> Minor documentation typos.
>
> Peace
> --Devon
Thanks a million. I have now reported your corrections.
I apologize for not having been able to do this earlier.
Cheers,
--
Manuel
Dear Devon, Dear all Hop users,
> An example at
> http://hop.inria.fr/usr/local/lib/hop/2.4.2/weblets/home/articles/hop-lang/article.html
> contains the snippet :onclick ~(alert $(* 4 (atan 1))) which shows an
> approximation of pi
> but when I add a tilde :onclick ~(alert $(* 4 ~(Math.atan 1)))
Hi Devon,
> Here's a bug fix, plus a documentation change (which is very likely all
> wrong) and a typo correction.
>
> Peace
> --Devon
>
> diff -Bbdur dist/hop-2.5.0-pre1/share/hop-dom.js
> hack/hop-2.5.0-pre1/share/hop-dom.js
> --- dist/hop-2.5.0-pre1/shar
Hi Sven,
> I have a small documentation fix for http-response.wiki:
>
> The only field documented for http-response-string
> should be body (not string).
Yes.
Thanks for this report.
--
Manuel
Hi Ludovic,
> In filters.wiki, the manual notes that it is not possible to add filters
> at run time for security reasons.
>
> However, it is still possible to register services at run time, which
> seems to be comparable security-wise.
No I don't think it is equivalent. You can only define new
Hi Ludovic,
> 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-
> 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:
>
>
Hi Camile,
> 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,
Yes, it
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
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, charac
Hi Ludovic,
> 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...
Applied.
Thanks,
--
Manuel
Hi Ludovic,
> ‘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 ser
Hi Ludovic,
> The patch below adds a ‘Hop’ server-side form.
Thanks for the patch. I will not apply it immediately because it assumes
synchronous version of Hop calls only. It then introduces a discrepancy
between server-side and client-side code. With the changes needed for
integrating worker th
Hi Stefan,
Hum. This is weird As I'm using several Arch distros (x86 and x86/64) for
developing Hop and, of course, I have never faced this problem.
I will check what could be wrong and I come back to you as soon as possible.
Thanks anyhow for your report.
--
Manuel
ps: there is no dependency
Hi Stefan,
> building hop 3.00 pre2 under Arch Linux ends up with the following error
> (nodejs is installed in version 0.10.26):
> ..
> ../etc/Makefile.library:44: recipe for target 'o/console.o' failed
> make[2]: *** [o/console.o] Error 1
> make[2]: Leaving directory
> '/home/haawda/paketierun
Hi Ludovic,
> The patch below implements ‘for ... in’ loops in client-side code (in
> the js-to-js conversion.)
> ...
Absolutely.
I have applied this patch (at the same time I have implemented the
plain "for" loop that was also missing).
Many thanks.
--
Manuel
Hi Ludovic,
> (define (js-date-now this)
> - (current-seconds))
> + ;; Return a "time value" (Section 15.9.1.1.)
> + (quotient (current-microseconds) 1000))
Yes. On my side, I had already fixed this definition with
(*fl 1000. (elong->flonum (current-seconds)))
but your solution is bet
Hi Ludovic,
> --- a/runtime/websocket.scm
> +++ b/runtime/websocket.scm
> @@@ -469,16 +469,17 @@@
> (define (close)
>(with-access::websocket ws (%mutex %socket oncloses state)
>(synchronize %mutex
> - (when (pair? oncloses)
> -(set! state 'closing)
> -
Hi Sven,
> What is the recommended way to load a bigloo library like srfi1
> into the Hop REPL?
>
> > hop -g -L /usr/local/lib/bigloo/4.1a -l srfi1 --repl
> >
> *** ERROR:dynamic-load::
> Can't find library -- srfi1
You can either load th
Hi Sven,
> I upgraded from Hop 2 to Hop 3.
> When I started hop afterwards, it complained:
> ---
> "hop-enable-proxing-set!" is deprecated
> It has been replaced with "hop-enable-proxying-set!".Edit the
> file".../.config/hop/wizard.hop"
> ---
>
> The problematic set! is contained in hoprc.hop a
Hi Stefan,
> Hello,
>
> I understood Sven's question differently. He did not ask for a release
> roadmap,
> but for a recipe how to update a local hop installation from 2.5.1 to 3+ in
> a clean way.
>
> Sven, blame me if I am wrong.
You are probably right. Thanks for the clarification.
Hop 2
Hi Ben,
> Probably nothing critical, just a quick note. Latest hop doesn't compile
> whit a "libuv-less" bigloo installation and the --disable-libuv
> configure option. Is the option ignored?
>
> environment
> ubuntu 14.04.2
> bigloo: bigloo4.2a-alpha18Feb15, compiled with --disable-libuv
>
> th
Hi Ben,
> make exits with error for hop-3.0.0-pre13.
> I think this is because of a missing Makefile.misc in ./etc. I tried to
> include it manually but that didn't work either.
>
> Regard Ben
>
>
> errorlog:
>
> mkdir -p bin
> mkdir -p lib
> make -C scheme2js build
> make[1]: Entering directo
> Licensing discussions are boring and almost never productive. I hate it,
> but after thinking about it for a few days I have to ask. Does it have
> to be GPL, or could something less strict like LPGL also work?
>
> Because the way I see it, it is not possible to sell something that
> builds on h
Hi Everyone,
I have uploaded a new Hop version that, as far as I can tell, can be
installed without libuv. Disabling libuv breaks the nodejs compatibility
of the JavaScript part of Hop-3.0.0. If you are only interested in
using Hop with the Scheme programming, this won't be much of a problem.
Che
Hi Sven,
> Is there an easy way to include
> HTTP_USER_AGENT and HTTP_REFERER
> in Hop's log file?
>
> (Why am I asking?
> I'm trying to convert log files into the format of other web servers
> in order to apply some popular log analysis tools.)
Reading at the code in src/init.scm (the log-local-
Hi Sven,
Sorry for this late answer. I have bad time allocating sufficient time
to Bigloo and Hop these days. I won't expect any significant improvements
before the summer but I will try my best to left significant issues
unanswered.
> I tried today's beta of Hop.
> Compilation with option --dis
Hi Sven,
> File "node_stdio.js", character 2442
> Error: Implement me. Unknown stream file type!
>
> 1. \@toplevel, [string]@0
>
> An error has occurred in the Hop main loop, exiting...
Sorry about that. This was another mistake, which is now fixed. I'm
preparing a new tarball.
--
Manuel
Hi Sven,
> It would be a good default because it's (almost - see below) the standard
> called
> "Apache Combined Log Format".
Yes. I will change that at once.
> (The month part should be 3-letters (not 2 digits), if I read the
> specification
> correctly.)
Yes. I will fix that one also.
Cheers
Dear Kook,
> Je voulais tester (assez vite) le serveur, et j'ai voulu installer hop
> sur debian (avec docker).
> Après avoir ajouter la ligne du dépôt, et fait un apt-get update, j'ai
> eu ce message d'erreur :
> W: GPG error: ftp://ftp-sop.inria.fr squeeze Release: The following
> signatures
Hi Jerry,
> Is a version of hop that can be built with bigloo 4.2a in the works? Thank
> you,
Hop 3.0.0 is almost ready. With a little bit of luck, we will be able to
announce it this week. Very few things still need to fix. In meantime, the
hop-3.0.0-rc3 can be download at:
ftp://ftp-sop.inria
Hi Sven,
> The Chromium browser reported correctly that
> the hop server, when started in https mode,
> uses TLS 1.0, which is considered obsolete.
>
> Can we please switch to TLS 1.2?
I have done that but it will be only available when compiling Hop with
Bigloo4.2b.
Thanks for the suggestion.
Hi Sven,
> In hop-3.0.0-rc3, this works as expected. Great!
>
> I pass the following options to the hop server:
>
> hop --https-pkey --https-cert
> --https ...
>
> I tested this server with Firefox 41 as client browser.
Thanks for your own answer :-)
Regarding the JavaScript side, the hop
Excellent, Sven. Thanks for your report.
--
Manuel
Hi Sven,
> I am looking for shiny and elegant examples of using
> hop to hide/unhide parts of an otherwise static HTML
> page.
>
>
> Hidden state of the page:
>
> stable context 1
>
> <"Show details" button or similar>
> ---
> stable context 2
>
>
> Unhidden state of the page:
>
> stabl
Hi Sven,
> Compared to Apache, Hop's long log is suboptimal.
> Referer and user agent are only included if both are known,
> but there are interesting cases where only the user agent
> is known (e.g. when visiting the site for the first time,
> the referer part is suppressed, ...).
>
> Attached i
Hi Stefan,
> Hello,
>
> after updating bigloo to the version 4.3alpha from 11th May I had to
> disable ssl to compile hop. Otherwise I get the folowing:
>
> .[0m.[1;30mbigloo.[0m -O2 -fsharing -Wall -wslots -L
> /home/haawda/paketierung/meine_Pakete/hop-git/src/hop/lib/hop/3.0.0 -srfi
> bigloo
Hi Stefan,
This is due to an inconsistency between Hop and Bigloo. I'm working on the
problem which is normally solved but I still have to run the tests. This
is quite a long process (~2 hours) so I'm not able to upload the latest
versions right away. If every thing is correct, I will upload them
Hi Stefan,
Thanks for your support. I appreciate it.
The new Bigloo and Hop tarballs are now available on the web sites and
the Hop's github repository is also up-to-date.
Sincerely,
--
Manuel
Hi Laurent,
> Hi,
>
> In the Docker Registry I see a Bigloo image:
>
> calibertechnology/scheme-bigloo Bigloo scheme.
>
> Did anybody on the list ever use it? Is it commendable? I am looking for a
> Bigloo+Emacs image.
>
> Thanks for any hint.
We started building docker images Hop a few mon
Hi Sven,
> What is the status of hop-3.0.0-rc10.tar.gz ?
> Esp., is it compatible with bigloo4.3a-beta01Nov16.tar.gz ?
Yes. It is intended to be.
Normally, we are done with Bigloo 4.3a and Hop-3.0.0. As you know, we
have had to fix some remaining compilation problems with Bigloo recently
but as e
Hi Sven,
> The following error happened in a normal web server (no https),
> unfortunately such errors cannot be reproduced because they
> are caused by incorrect clients:
I'm not quite sure what you mean by "incorrect clients" however...
> *** ERROR:string->obj:
> Bots and scripts that crawl, test, attack ... your hop server.
> In any case, no humans browsing your hop pages :-)
Ah. I see.
> Great. I will test it.
I will make it available in a couple of minutes...
--
Manuel
Tamara Rezk, INRIA
Xavier Rival, ENS
Alejandro Russo, Chalmers University
Sukyoung Ryu, KAIST (PC-chair)
Alan Schmitt, INRIA
Manuel Serrano, INRIA (PC-chair)
Peter Thiemann, Univerity of Freiburg
Omer Tripp, Google
Tom Van Cutsem, Nokia Bell Labs
Eelco Visser, Delft University of Technol
HipHop
(a Hop DSL) I'm using the github continuous integration service that use
that very architecture. Following the exact same procedure should let you
build an operational Hop system. You can check it:
https://github.com/manuel-serrano/hiphop/blob/master/.travis.yml
Please let me kno
Dear Sven,
> Dear Hop'ers.
>
> What is the release plan for the new Hop versions 3.2 and 3.3?
> I have an older project based on Hop 3.1 that currently needs some
> maintenance.
> So, I am thinking about upgrading to 3.2 or 3.3.
Switch to 3.3. I would like to release it officially as soon as pos
Hi Sven,
> Hello.
>
> The new bigloo 4.4c-2 cannot compile Hop 3.4.4.
> Will there be a compatible version 3.4.5 or should I switch
> to Hop 3.5.0-pre1 (now or later)?
Yes. Now!
The version 3.5.0 is almost finished at last. Just minor pending problems
to be fixed and it will be released. I'm con
> Manuel, 2021-12-06 10:11:
> >> The new bigloo 4.4c-2 cannot compile Hop 3.4.4.
> >> Will there be a compatible version 3.4.5 or should I switch
> >> to Hop 3.5.0-pre1 (now or later)?
> > Yes. Now!
>
> Thanks, Manuel.
> This combination (Hop 3.5.0 and bigloo 4.4c-2) works fine for me.
Good and th
77 matches
Mail list logo