5 ms·
Neat. Why would I use this over ClojureScript or Parenscript?
by nanny 11y ago
Neat. Why would I use this over ClojureScript or Parenscript?
- an_ko 11y agoClojureScript tries to be Clojure, and Parenscript tries to be Common Lisp. Eslisp tries to be JavaScript; it's intended to just be an obvious one-to-one syntax replacement. I wrote a brief comparison in the docs: https://github.com/anko/eslisp/blob/master/doc/comparison-to-other-js-lisps.markdown https://github.com/anko/eslisp/blob/master/doc/comparison-to...
- agumonkey 11y agoMust be fairly fun to use inside of emacs, leveraging sexp based navigation.
- an_ko 11y agoI'm a vim user actually! gasp Seeing ParEdit in action makes me extremely jealous though. http://danmidwood.com/content/2014/11/21/animated-paredit.html http://danmidwood.com/content/2014/11/21/animated-paredit.ht... I wonder if the vim plugin https://github.com/vim-scripts/paredit.vim https://github.com/vim-scripts/paredit.vim is any good.
- agumonkey 11y agoYou know, it doesn't really matter. ;) Never tried the paredit vim extension, but I've heard a few people happy editing clojure/lisp under vim so I'm sure it's more than OK.
- kuschku 11y ago> it doesn't really matter. ;) Best way to start a flamewar on IRC: "the difference between emacs and vi doesn't really matter" Luckily, this won't happen here xD
- agumonkey 11y agoI suffer from Abstractitis. Everything is the same to me. #turingcompleteness
- agumonkey 11y agoFunny, just found this about Emacs and Vi. https://youtu.be/4YfkwfZ7AV4?t=1521 https://youtu.be/4YfkwfZ7AV4?t=1521 Don Stewart, haskeller, talking about is editor of choice, vi, emacs, Yi, and the eternally self reemergent struggle.
- deepaksurti 11y agoI code in CL, Clojure using only vim. I use only % operator, set sw = 2, visual > or < to edit lisp forms and I am very happy!!!
- agumonkey 11y agoM-x betrayal RET What does %, > and < do in your setup ? An emacser wrote a thing called lispy to have vi-like sexp manipulation UX (aka single letter commands).
- deepaksurti 11y agoIf I want to move a nested s-exp outside: (foo (bar baz) quux zot) Using d% on (bar baz) then move to desired loc, and p. So % is for matching ( ). Again v% visually selects a form, then < and > for indent and dedent.
- Gonzih 11y agoI used paredit vim. It's good, nowodays I use emacs+evil, but still would advise using paredit in vim. It's pretty good, different from one in Emacs though.
- aidenn0 11y agoReally only macros are in common lisp for Parenscript. Parenscript very strongly tries to be close to JavaScript.
- an_ko 11y agoThat's very true. For anyone with an existing Common Lisp stack who wants to use CL macros to write JS, Parenscript is great. I wanted to write JS macros in JS, hence eslisp.
- natrius 11y agoDo you prefer JavaScript's semantics to Clojure's? I don't, but I'm interested in being convinced. This is a neat project regardless.
- an_ko 11y agoI think Clojure is the better-designed language overall, but JavaScript's simplicity and the size of its community and deployment make it very attractive. The enemy of "better" is "good enough", I suppose.
- eggy 11y agoI am learning Shen [1], and this talk [2] shows how you can write Shen on JavaScript, Ruby, front an backend. Shen is a lisp with pattern matching, optional lazy evaluation, optional static type checking, macros of course, and many other cool treats! It can run on top of CL (SBCL), Clojure, JavaScript, Python, and more. [1] http://www.shenlanguage.org/ [2] https://www.youtube.com/watch?v=lMcRBdSdO_U