Hacker News new | comments | show | ask | jobs | submit login

How about exposing an API for dev tools similar to the "swank" protocol that Emacs uses for editing Lisp code? I know there are people doing stuff like this already, but it would obviously be a lot easier if there were a nice protocol for it (ideally standardized across browsers...). I want to be able to seamlessly interact with a running Firefox instance from my editor or IDE, sending it snippets of code to evaluate and seeing my page change in real-time.

Not only are people doing this, but they're doing it with swank (as far as I know). Check out swank-js[1]. There is a really cool demo of on EmacsRocks[2].

[1]: https://github.com/swank-js/swank-js

[2]: http://emacsrocks.com/e11.html

But yeah, some sort of more official or maybe more extensive support would be pretty cool too.

That's interesting. I'll look at that. Thanks.

If using swank is impractical, the Clojure community is in the process of shifting from swank to nrepl. I haven't looked into the details of either but wanted to point out another option.

Just FYI: You can do exactly this with the latest Light Table[1]. :)

[1]: http://www.chris-granger.com/2013/02/27/light-table-030-expe...

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact