Hop (software)
Hop is a Lisp-like programming language by Manuel Serrano for web 2.0 and also the name of the server (server and proxy) that implements this language.[src] It is written in Bigloo Scheme.[src] It is a project funded by INRIA.[src]
Hop is a Lisp-like programming language by Manuel Serrano for web 2.0 and also the name of the server (server and proxy) that implements this language.[src] It is written in Bigloo Scheme.[src] It is a project funded by INRIA.[src] ==Language design== Hop is a stratified language, which means that a single program file contains instructions for both the server and the client.[src] The server executes CPU demanding computations and operations that require system privileges for accessing files or other resources.[src] The clients (of which there may be many such as browsers, cell phones, etc.) are dedicated to executing actions related to the programming of the graphical user interfaces.[src] (define-service (server-date) ; 1 (current-date)) ; 2 ( ; 4 ( ; 5 :onclick ~(with-hop ($server-date) ; 6 (lambda (h) (alert h))) ; 7 "Server time")) ; 8 The code snippet above illustrates a few concepts.[src] The 8 lines of code define a complete program.[src] Lines 1 and 2 result in a service definition on the server.[src] Lines 4 through 8 result in an HTML page complete with JavaScript functions.[src] It instructs a client (browser) to display a button with the label "Server time" and to send a request to the server when the user clicks on the button.[src] Hop automatically generates all the instructions needed for the communication between the client and the server.[src] Hop is based on Scheme.[src] Therefore, a Hop program is essentially a list of words and/or lists that start and end with parentheses.[src] For example "(HTML content)".[src] "HTML" is the function name and "content" is the function parameter.[src] Function names in Hop may contain characters other than letters and numbers.[src] For example " " is a valid name.[src] Therefore, the syntax of Hop looks very similar to HTML (by design).[src] The Hop expression "( content)" is similar to the HTML expression " content ".[src] HTML parameters start with a colon; for example ":onclick".[src] The $ character in "$server-date" indicates that the server should substitute the variable name "server-date" with the variable's value before sending the HTML to the client.[src] This is very similar to how ASP and JSP work.[src] The ~ character in ":onclick ~(...)" indicates that the client should process what is between the parentheses.[src] The "with-hop" function in "(with-hop (...) (...))" is a special function that delegates work to the server and takes two parameters.[src] The first parameter contains the request the client should send to the server asynchronously.[src] The second parameter contains the callback function that the client should invoke when the response arrives from the server.[src] "(lambda (h) (alert h))" is an anonymous function that takes a single input parameter "(h)", which contains the server response when the function is called.[src] "(alert h)" is the function body.[src] ==Issues== Given its recent introduction, Hop currently exhibits a number of weaknesses.[src] Security is weak.[src] It is an area of active research.[src] Network failures are currently handled through manually coded time-out and exception routines, this approach is labor-intensive and relatively unreliable.[src]
36 sentences · 36 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Hop (software)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/hop-software. Accessed 03 December 2026.
Chicago
"Hop (software)." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/hop-software.
APA
encyclopegia.org. (2026). Hop (software). Retrieved December 3, 2026, from https://encyclopegia.org/wiki/hop-software
Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON