News for hackers. Stuff that matters.
Re:Ask HN: Javascript for desktop apps? by jacquesm on Monday July 27, 2009 @05:26AM (#725621)
why not simply embed a web server and connect to the localhost ? That makes your application internet ready as well when the time is right as well as giving the user to connect to your application from other pcs on the same lan.

I've built a music management system along these lines and it works quite well. The internet ready part of it causes all kinds of unintended but useful side effects, stuff that I never thought of when building it.

Re:Ask HN: Javascript for desktop apps? by Tichy on Monday July 27, 2009 @06:21AM (#725652)
Not sure why you were downvoted. I don't think the idea so "out there". Apps embed their own sql servers, too, why not a web server.

I think it would be nice to have a launcher that launches both the client and the server then.

Re:Ask HN: Javascript for desktop apps? by mdg on Monday July 27, 2009 @08:31AM (#725736)
If you were referring to Firefox / sqlite3.. I wouldnt consider sqlite3 a server at all. Nonetheless, I agree with what you are saying
Re:Ask HN: Javascript for desktop apps? by Tichy on Monday July 27, 2009 @08:47AM (#725750)
Strictly speaking it's not a server, true.
Re:Ask HN: Javascript for desktop apps? by mdg on Monday July 27, 2009 @11:52AM (#726048)
sorry if i was being nitpicky
Re:Ask HN: Javascript for desktop apps? by hymanroth on Monday July 27, 2009 @06:43AM (#725663)
This is an excellent approach, and in my view will be common in the future. It can also elegantly solve the problem of offline access, with the local web server syncing with the remote server in the background.