< YhcJump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Note: There is also a general tutorial for using Haskell in a web browser with YCR2JS.
Table of Contents
- Brief Overview
- Users Guide
- Programmers Guide
- Inner Workings
- Examples and Demos
|Demo name:||"Does it leak?"|
|Description:||This is an early preview of the features provided by the prototype of Haskell Web Toolkit (HsWTK), a thin layer on top of DOM which provides basic HTML layout capabilities and simulates cooperative pseudo-threads. HTML widgets displayed are self-explanatory. This demo program is also a memory leak test: please load it into various browsers and notice if browser executable size increases as certain user actions are performed. In fact, there should be no serious leaks, periodic browser size increases were noticed in Microsoft Internet Explorer v6, but at certain moments size decreased due to proper garbage collection. Browser size may even get smaller if the demo program page is unloaded. Mozilla Firefox did not show any memory leaks.|
|Features:||Prototypic code of Haskell Web Toolkit:
Some of these demo widgets are based on demo programs seen in Fudgets Thesis
|Tested with:||Firefox 1.5/Linux 32bit, Firefox 2.0/Linux 64bit, Opera 9/Windows 2000, MSIE 6.0/Windows XP: no noticeable memory leaks detected. MSIE does not display icons in the select element's dropdown menu.|
feel free to add your own combination of browser/os where you got this demo working, fully or partially, note whether noticeable memory leaks were observed in response to users' actions.
|Description:||Type any text in the input field provided, and see it echoed right above after Enter is pressed. Just for fun, type any decimal number and see it converted to a Roman number, and vice versa. For more fun, a timer is provided: measure how fast your browser runs Haskell ;)|
|Features:||Lowest possible level of interaction with web browser:
|Tested with:||Netscape 7/Linux, MSIE 6.0/Windows 2000, Konqueror 3.5.5/Linux, Opera/Windows, Firefox/ Mac OS X|
feel free to add your own combination of browser/os where you got this demo working
|Haskell Source:||http://www.cs.york.ac.uk/fp/darcs/yhc/web/jsdemos/Echo.hs http://www.cs.york.ac.uk/fp/darcs/yhc/web/jsdemos/Roman.hs (C) Malcolm Wallace|
|Description:||Finally, the DOM framework has been implemented. IDL files provided by the Web Consortium were converted into set of Haskell modules using modified sources of H/Direct, mainly the OMG IDL parser. The DOM framework uses Continuation passing style (CPS) rather than monadic style: this is believed to make adoption of Fudgets easier as they use mainly CPS style in their internals. This demo web page looks similar to the previous Echo demo, and provides the same "functionality". This demo web page also uses unicode-enabled versions of character functions.|
|Features:||Utilization of the type-safe DOM Level1 interface:
http://www.cs.york.ac.uk/fp/darcs/yhc/web/jsdemos/Roman.hs (C) Malcolm Wallace
--DimitryGolubovsky November 17, 2007