News for hackers. Stuff that matters.
Re:Slfsrv – Create simple, cross-platform GUI applications by robbrown451 on Tuesday October 07, 2014 @07:31PM (#8424577)
Very cool in concept. It would be nice if it was really easy to package up and deliver apps done this way (without end users having to jump through weird hoops to allow it to run). They can be really tiny presumably since the web server does so little (i.e. it isn't running node or anything).

One thing that seems missing is the ability to fetch files from other domains (avoiding the cross origin issue). Can it somehow magically do this just using XMLHttpRequest?

Re:Slfsrv – Create simple, cross-platform GUI applications by brent_noorda on Tuesday October 07, 2014 @07:44PM (#8424608)
Good idea. I'll add "fetch files from other domains" to the TODO list, as either it's own call, or maybe do something like allowing "http://" protocols in the SLFSRV.read() method.

cross-origin issues would probably prevent some xmlhttprequest calls directly. Meanwhile, here is one current hack you could use to read files from other domains (although it assumes that "curl" is installed):

SLFSRV.exec( { program:'curl', args:['curl','https://news.ycombinator.com/'] }, function(ret) { console.log(ret.stdout); } );

Re:Slfsrv – Create simple, cross-platform GUI applications by robbrown451 on Tuesday October 07, 2014 @08:54PM (#8424809)
Sounds great. Yeah I had noticed that exec function might work. :)

I've downloaded the binary and am playing with it....holy crap I love this thing. It's perfect for some stuff I'm currently working on. I'm glad it is so simple, although I'm sure there are some things that could be added eventually to make it a bit better. (sandboxing and various other permissions things come to mind)

Re:Slfsrv – Create simple, cross-platform GUI applications by giancarlostoro on Tuesday October 07, 2014 @07:16PM (#8424527)
Maybe something to be used with Node-Webkit for those who want a full blown UI powered by web technology.
Re:Slfsrv – Create simple, cross-platform GUI applications by walterbell on Wednesday October 08, 2014 @05:45AM (#8426078)
A comparison with http://breach.cc would also be useful.
Re:Slfsrv – Create simple, cross-platform GUI applications by giancarlostoro on Wednesday October 08, 2014 @06:45AM (#8426220)
That looks awesome, adding it to my list, thanks.
Re:Slfsrv – Create simple, cross-platform GUI applications by roderic on Wednesday October 08, 2014 @01:41PM (#8428245)
Nice job Brent