1 / 7

Alice Server Pages

Alice Server Pages. Funktionale Programmierung und das Web. Motivation. Motivation (2). Browser. myhost.com. http://myhost.com/index.asp. Http Server. Compiler. Datenbank. index.asp. Motivation (3). Beispiel: <html><body>

lyle-beck
Télécharger la présentation

Alice Server Pages

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Alice Server Pages Funktionale Programmierung und das Web Simon Georg Pinkel

  2. Motivation

  3. Motivation (2) Browser myhost.com http://myhost.com/index.asp Http Server Compiler Datenbank index.asp

  4. Motivation (3) Beispiel: <html><body> <?php function fak($n) { return ( $n<=1 ? 1 : $n * fak($n-1)); } ?> <h1>Meine erste dynamische Webseite!</h1> <ul><?php for($i=1; $i<=$n; $i++) printf("<li>%d",fak($i)); ?></ul> </body></html> http://myhost.com/erste.php?n=6

  5. verwandte Arbeiten • ASP.Net • PHP Hypertext Preprocessor • Java Server Pages und was ist mit ML? • ML Server Pages • Moscow ML als Skriptsprache: <ul><?msp List.app (fn s => print("<li>" ^ Int.toString s)) (List.tabulate(n,fak)) ?></ul> • SMLServer • Ein Modul für AOLServer, welches die Entwicklung von dynamischen Webapplikation in SML ermöglicht • Unterstützt die ML Server Pages

  6. Alice Server Pages- Anforderungen • Tools zur Bearbeitung/Interpretation von HTML-seiten mit eingebetteten Programmfragmenten • Handhabung von dynamischem Input wie Formularvariablen oder Cookies • Datenbankschnittstelle • niedrige Reaktionszeiten Ausserdem soll untersucht werden, inwieweit sich Alice als Skriptsprache für Webseiten eignet; Also inwiefern • Lässt sich das Typsystem von Alice nutzen? • Fügen sich funktionale Programmieridiome in diesem Kontext ein? • Lassen sich Server Pages in einen Webserver integrieren? • Finden Alice-spezifische Features wie Nebenläufigkeit, Laziness oder verteilte Programmierung Anwendung?

  7. Alice Server Pages- Arbeitspackete • Compiler, der aus HTML mit Alicefragmenten pures Alice generiert • Parser für dynamischen Input • Interface zum Zugriff auf die geparsten Daten • Caching der Kompilate • Datenbank-API • Beispielanwendung

More Related