Hacker Newsnew | past | comments | ask | show | jobs | submit | pushpankar's commentslogin

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.


Because

1. it has great performance which I wanted for a text editor.

2. if I ever needed to get to low level, it has great c ffi. I ran some benchmark and c ffi cost was among the best.


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.

Jank is quite promising. I choose chez because I was interested in learning continuation, hygenic macros, and condition systems.

I didn't mean list data structure for everything. I meant list for representing all code whereas clojure uses vector, map literal, and other syntax

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.

  (let [[a 1]
        [b 3]]
    (+ a b))
is valid scheme code

Are you comparing Clojure to Scheme in general? Would the same thinking apply to Chicken or any other standard Scheme?

I am only familiar with Chez scheme and in the article I comparing that only. My apologies if it wasn't clear from the title of the blog.

> any other standard Scheme?

Every scheme has different featureset that they add on top of R5rs/R6rs.


It's also not clear from the body of the blog which features of Chez (beyond standard Scheme) you are referring to.

Scheme also has literals for vectors.

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.


Emacs lisp is closer to common lisp. It inherits some stuff from older lisp systems, the most prominent being dynamic scope by default.

Some clarifications:

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!

Here's the node about this in the current online version of the official manual: https://www.gnu.org/software/emacs/manual/html_node/elisp/Se...


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.


Will implement this in next release

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.


Hello all, If you are interested in the tool but find anything confusing, please let me know. I will be happy to assist you.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: