Environments are top level things that can store functions and other defintions. These can be mutable. The other side of this is continuation. A continuation is invocable multiple times in scheme.
Lets say you want to debug a function.
```
(define (f1 arg1 arg2)
;; body calls f2 and others
)
```
Now you can capture the continuation just before the body of the f1. Then, you can use chez's eval-in-continuation to evaluate the updated body of the function. Once you are satisfied, you can continue the continuation with output. If there is problem in f2, you can update f2 and retry from f1 again. You can walk up/down the continuation stack to go back to different point and try from there.
Similarly, you can declare a function, implement its body, eval-in-continuation, update the body until you are satisfied, and then move on to next thing.
Almost all features are there. It just needs a good editor support and some ux design.
FWIW, CHICKEN's FFI is pretty good too, and it allows redefining modules and even evaluating code inside modules, so might fit your interactivity needs better. The string copying overhead in the FFI is gone in CHICKEN 6 now.
That is also wrong. Scheme uses syntax objects for syntax. If you meant the brackets they use in certain places, in Chez Scheme and other schemes you can replace parens with square brackets where as you see fit. e.j.
Scheme has a standard vector type with corresponding syntax (since 1985), and as of the R6RS version, a standard bytevector type. Some Scheme dialects like Racket and Gauche have map literal syntax as well.
Somehow, I always had the feeling that emacs lisp is tied closely to emacs only.
- How is the performance of emacs lisp?
- In terms of feature set, is it close scheme or common lisp?
- Any feature/concept that would be new to programmer who know scheme, clojure, and python
If i am ever going to try a new language, it would need a good ide. I know people say they don't need ide, since AI make changes, but I still need one to review code. I can't simply look at diff and understand. I need to see actual code. I guess emacs lisp will have good ide support, otherwise it would be ironical.
Emacs Lisp is closely tied to Emacs. But because Emacs is from the good old days, when you are in Emacs you can have a shell into your OS.
If you know Scheme and Clojure, you kind of already know lisp.
The best Lisp IDE's are probably commercial products at good old days prices inconsistent with the expectations of most of today's learners...those prices don't compete with free.
Common Lisp uses lexical binding for locals by default. (I think you meant this, but the wording seems ambiguous to me on whether “older Lisp systems” means “older than Common Lisp” or “older in general, including Common Lisp which is itself old”, so I wanted to say it more explicitly.)
Emacs Lisp is currently expecting to switch in the future from dynamic binding by default to lexical binding by default, which is why lots of Emacs users are getting the current transitional flood of annoying warnings about elisp files that don't have the expected “lexical-binding: ‹boolean›” metadata at the top. And yes, that cookie is a reuse of the “set some local state for buffers visiting this file” mechanism, more commonly used for things like major mode and fill column (expected line length), for programming language dialect switching!
My problem with clojure's error is that it doesn't show up where you made the mistake. Because of nil punning, you will see error happen few steps down the line and usually it isn't clear from error message what went wrong.
In that regard, chez scheme was much better. Haven't tried Emacs lisp, so can't say about that.
Yeah, clojure is well thought out language from developer experience perspective. It makes things which will bite you down the line not default like mutation but uses mutation for things like vars when cost outweighs benefit(in this case, aids in interactive development). I had read somewhere that clojure's namespace are great but didn't fully comprehend it. But now I do. It treats namespace as values which comes handy in testing, mocking, and introspection, all of which is big deal in maintaining project over the long run.
Clojure does the right thing most of the time but chooses to do something dirty for practicality. Top one being macros. I think using fully qualified namespaces during macro expansion gives you most of the benefit of hygiene while being easy to comprehend.
The only problem it has is its slow startup for desktop apps.
Thanks for trying. In free tier, I have included couple of projects to give people an idea of what the tool is about. As of now, I have limited the ability to create your own project because in the backend once you create a project, I embed the modules and functions and generate various snippets. Each snippet is a function with some usage context from codebase to give module/function summaries. Embedding these costs some money and I wanted to ensure that I am creating a tool which adds real value to people. So I have given very limited free access.
Lets say you want to debug a function.
```
(define (f1 arg1 arg2)
)```
Now you can capture the continuation just before the body of the f1. Then, you can use chez's eval-in-continuation to evaluate the updated body of the function. Once you are satisfied, you can continue the continuation with output. If there is problem in f2, you can update f2 and retry from f1 again. You can walk up/down the continuation stack to go back to different point and try from there.
Similarly, you can declare a function, implement its body, eval-in-continuation, update the body until you are satisfied, and then move on to next thing.
Almost all features are there. It just needs a good editor support and some ux design.
reply