Re: [Haskell-cafe] Design question, HTML for GUIs?
I wrote a package to turn Hack applications into standalone apps using Webkit. The code is available at http://github.com/snoyberg/hack-handler-webkit. However, it's currently Linux-only. However, if I was going to write a desktop app based on an HTML GUI, I would bundle Webkit like this. It fixes such annoyances as "I closed the window but the program is still running." Michael 2010/1/10 Günther Schmidt > Hi everyone, > > as probably most people I find the GUI part of any application to be the > hardest part. > > It just occurred to me that I *could* write my wxHaskell desktop > application as a web app too. > > When the app starts, a haskell web server start listening on localhost port > 8080 for example and I fire up a browser to page localhost:8080 without the > user actually knowing too much about it. > > Is that a totally stupid idea? > Which haskell web servers would make good candidates? > Are there any *continuation* based web server in haskell, something similar > to Smalltalk's Seaside? > Is Hyena continuation-based? > > Günther > > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Design question, HTML for GUIs?
Günther Schmidt wrote: > as probably most people I find the GUI part of any application to be the > hardest part. > > It just occurred to me that I *could* write my wxHaskell desktop > application as a web app too. > > When the app starts, a haskell web server start listening on localhost > port 8080 for example and I fire up a browser to page localhost:8080 > without the user actually knowing too much about it. > > Is that a totally stupid idea? No, this is not (necessarily) a stupid idea. In fact it might be a good idea in a lot of cases. A downside is, that you lose the functionality for user access control provided by the OS on multi-user machines (i.e., other users working on the same machine can connect to localhost:8080 too). This might or might not be a concern for you. Regards, Jochem -- Jochem Berndsen | joc...@functor.nl | joc...@牛在田里.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Design question, HTML for GUIs?
2010/1/10 Günther Schmidt : > Hi everyone, > > as probably most people I find the GUI part of any application to be the > hardest part. > > It just occurred to me that I *could* write my wxHaskell desktop application > as a web app too. > > When the app starts, a haskell web server start listening on localhost port > 8080 for example and I fire up a browser to page localhost:8080 without the > user actually knowing too much about it. > > Is that a totally stupid idea? > Which haskell web servers would make good candidates? No; Happstack. See Gitit for an example - it is a wiki, but people use it locally all the time, such as myself or Don Stewart. -- gwern ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Design question, HTML for GUIs?
Hi everyone, as probably most people I find the GUI part of any application to be the hardest part. It just occurred to me that I *could* write my wxHaskell desktop application as a web app too. When the app starts, a haskell web server start listening on localhost port 8080 for example and I fire up a browser to page localhost:8080 without the user actually knowing too much about it. Is that a totally stupid idea? Which haskell web servers would make good candidates? Are there any *continuation* based web server in haskell, something similar to Smalltalk's Seaside? Is Hyena continuation-based? Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe