By desktop app I mean Objective-C/WebKit app that works completely offline. All JS code would be shipped with app bundle, Node.JS server would be running on localhost port.
I already use Node.JS for filesystem read/write, so using it for parser would not complicate the code that much. On Wed, Nov 9, 2011 at 4:16 PM, Nick Morgan <skilldr...@gmail.com> wrote: > On 9 November 2011 15:09, Jarek Foksa <ja...@kiwi-themes.com> wrote: >> >> I'm building desktop text editor that consists from two components: >> - UI, which is responsible for rendering menus, toolbars, cursor and >> textarea >> - parser which contains heavy processing logic >> >> I don't want the UI to freeze each time when the data is processed by >> the parser, so I >> was thinking about two solutions: >> - move the parser code to shared Web Worker >> - move the parser code to NodeJS server and communicate with it via >> WebSockets >> >> I don't really like the Web Workers approach - I'm unable to get any >> debugging tools to work with it, there are many unexpected crashes and >> I can't use my module manager to handle dependencies. >> >> Are there any disadvantages of the second approach? Most importantly, >> could NodeJS+WebSockets be in any way slower than Web Workers? >> >> > Well, NodeJS almost certainly *will* be slower than web workers - it's going > over the network, whereas workers live inside your browser. > You're also seriously complicating your application by forcing it to rely on > a server. > I'm confused though, when you say desktop, do you mean *outside* of a web > browser (with a webkit component) or do you mean as opposed to mobile? > -- > Nick Morgan > http://skilldrick.co.uk > @skilldrick > > Save our in-boxes! http://emailcharter.org > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/jsmentors@jsmentors.com/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/jsmentors@googlegroups.com/ > > To unsubscribe from this group, send email to > jsmentors+unsubscr...@googlegroups.com > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmentors.com/ To search via a non-Google archive, visit here: http://www.mail-archive.com/jsmentors@googlegroups.com/ To unsubscribe from this group, send email to jsmentors+unsubscr...@googlegroups.com