Hop (software)

Hop
Paradigm(s) multi-paradigm
Appeared in 2006
Designed by Manuel Serrano
Stable release 2.1.1 (August 4, 2010; 18 months ago (2010-08-04))
Typing discipline strong, dynamic
Influenced by Scheme
License GPL version 3
Website http://hop.inria.fr/

Hop is a Lisp-like programming language by Manuel Serrano for web 2.0 and also the name of the web broker that implements this language. It is written in Bigloo Scheme. A web broker is a program that can act as a web server and a web proxy.

Contents

Language design

Hop is a stratified language, which means that a single program file contains instructions for both the server and the client. The server executes CPU demanding computations and operations that require system privileges for accessing files or other resources. The client (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.

 1: (define-service (server-date)
 2:   (current-date))
 3:
 4: (<HTML>
 5:   (<BUTTON>
 6:     :onclick ~(with-hop ($server-date)
 7:                   (lambda (h) (alert h)))
 8:       "Server time"))

The code snippet above illustrates a few concepts.

Issues

Given its recent introduction, Hop currently exhibits a number of weaknesses.

References

  1. ^ a b Youtube: HOP: A Language for Programming the Web 2.0 starting at 33:50.

External links