Live data from Hacker News

Vim.js - JavaScript port of Vim

coolwanglu.github.io

51–60 of 107 posts

Re: Vim.js - JavaScript port of Vim

#51

I'm normally unimpressed by applications ported to javascript. However, this actually has me excited. I would love to be able to edit all my Dropbox text files with a web interface. If anyone here works for Dropbox, I beg you to integrate this!

http://dillinger.io/ you already can

There is also http://stackedit.io

Re: Vim.js - JavaScript port of Vim

#54
post #47

While this is impressive, I find it surprisingly slow compared to much more demanding applications with bigger code bases compiled via Emscripten. Any ideas why?

Well, I don't know what you mean by slow, but it could be the use of setTimeout() every 10ms to simulate[1] Vim's synchronous busy-wait is affecting responsiveness.

Lu mentioned[2] on vim_dev that it was necessary to write a hack for this portion.

[1] https://github.com/coolwanglu/vim.js/blob/master/web/vim_lib...

[2] https://groups.google.com/forum/#!topic/vim_dev/AQTHbUHijgg

Re: Vim.js - JavaScript port of Vim

#57

Earlier quoted context omitted.

if you use vimium/vimperator/something else you can do shift+H to go backwards, shift+L to go forward.

Which would require me to press two keys instead of one.

Considering we're talking about Vim here, pressing keys should be second nature to you anyway...

Re: Vim.js - JavaScript port of Vim

#59
post #29

Rule 34 for software: If it exists, there IS a javascript port of it.

That would be Atwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript. http://www.codinghorror.com/blog/2007/07/the-principle-of-le... And tlrobinson's Law (or corollary?): Any submission to Hacker News about a novel JavaScript program will contain a comment referencing Atwood's Law. https://twitter.com/tlrobinson/status/395636386671235072

What about emacs in Linux in JavaScript? :-)

http://bellard.org/jslinux/

Post reply on HN