Live data from Hacker News

Emacs-ng: Emacs with Deno runtime and TypeScript

github.com

1–10 of 154 posts

Re: Emacs-ng: Emacs with Deno runtime and TypeScript

#6
I see a lot of parallels between Emacs' problems now and Vim's problems a few years ago: opaque maintenance/contributions, poor performance inherited from core design decisions made decades ago, the burden of backwards compatibility for legacy systems, etc. I think Emacs users and the community would benefit from a ground-up modern rewrite much like Neovim did for Vim, especially compared to this project which adds even more layers to maintain. It certainly addresses performance issues, but Emacs seems to have enough problems with things breaking spontaneously - I don't think adding a JavaScript runtime to the mix will do any bit of good there.

Re: Emacs-ng: Emacs with Deno runtime and TypeScript

#9
post #3

Compare the recursive Fibbonaci function against Scheme with Guile's JIT.

EDIT: as pointed out, this is run with Guile 2.2, which is pre-JIT. Results to be posted later in this thread...

Okay.

    $ cat fib.scm
    (define (fibonacci n)
      (if (
Node also uses V8.

    $ time node fib.js 
    node fib.js  1.29s user 0.01s system 100% cpu 1.296 total
But okay, you wanted deno.

    $ time deno run fib.js
    deno run fib.js  1.41s user 0.02s system 99% cpu 1.423 total
Meanwhile, using `emacs --script fib.elc` to evaluate byte-compiled (fib 40) takes about 32s. And `emacs --script fib.el` takes about 2x that, at 64s.

edit: for reference, the equivalent C code runs in 0.27s on my laptop.

edit edit: okay, okay, compiling the Guile code before running it speeds it up to an exciting 8.16s execution time, still about 6x slower than deno.

Re: Emacs-ng: Emacs with Deno runtime and TypeScript

#10
post #4

I personally look forward to the day when every program I run embeds JavaScript and an HTML engine in it. Then we will be living in an age of true modernity in software development. Systemd-ng, anyone?

I'm sure Samsung, Micron and every other company selling DIMMs are looking forward for that day too. It would need how much more memory for everything?

My beefy desktop computer is often already struggling just to run Chrome.

Emacs used to stand for "Eight Megabytes and constly swapping", maybe they could name it now Egacs (Eight Gigabytes ...)

Post reply on HN