News for hackers. Stuff that matters.
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by PurpleRamen on Friday November 17, 2023 @09:05AM (#38303694)
> The main advantage Emacs has over other, more modern IDEs is ELisp, and the vast ecosystem built around it.

Ecosystem yes, and also it's architecture and culture. ELisp I would say no. If we ignore the specific flavor, then 99% of what's realistically done with with elisp, is also covered by other dynamic languages like JavaScript. And the rest is so esoteric that it's probably not that worth the trouble.

> I don't see how supplementing ELisp with JS would make Emacs more attractive;

Not everyone likes lisp, not everyone is willing to learn a new strange language for unknown benefits. And JS has a vast ecosystem of its own. Far bigger even that Emacs heritage, but on different areas. A well working combination of both, with no side making significant sacrifices, could be very alluring for many more people than Emacs has now.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by mtlmtlmtlmtl on Friday November 17, 2023 @09:59AM (#38304427)
I think it's fine for Emacs to be Emacs. It's basically a museum piece from the Lisp Machine era at this point. There are so many choices already if you insist on javascript. Adding it to Emacs feels like the programmer's equivalent of putting a giant neon sign atop the Pyramid of Khufu; it just doesn't belong there.

Emacs is unique and I'd like to preserve that.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by PurpleRamen on Friday November 17, 2023 @10:13AM (#38304662)
A Museum is fancy storage for unused things. But Emacs is full of very useful and still usable parts, and a useful philosophy and prospering culture. What's wrong with spreading all this to other spaces, and letting other people learn about them, making them more accessible? Works well for (neo)vim. They have moved beyond lousy vim-key-implementations and today people are able to learn about modal editing and composable commands on a good level.
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by mtlmtlmtlmtl on Friday November 17, 2023 @10:37AM (#38305000)
Please don't misunderstand my use of the word "museum". I'm not saying Emacs is useless or that we should never improve or use it. But Emacs is more or less the only surviving relic of a very different paradigm of doing computing and software, one which many of us still cherish.

>What's wrong with spreading all this to other spaces, and letting other people learn about them, making them more accessible?

Because the philosophy of Emacs and the computing tradition it grew out of is fundamentally at odds with those other spaces. Everything being in one dynamic language is a huge and intrinsic part of that tradition.

I suppose could you write an Emacs entirely in javascript if you wanted to, if you followed the same software philosophy. But personally I think Javascript is such an inelegant language that a lot of the power of the idea would be lost even in that case.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by PurpleRamen on Friday November 17, 2023 @10:59AM (#38305331)
> But Emacs is more or less the only surviving relic of a very different paradigm of doing computing and software, one which many of us still cherish.

I don't think that's true at all. Emacs is a lisp-machine, but that's just the means, an implementation-detail, not the culture and the aim. Every shell, web browsers, any REPL is pretty much the same as Emacs, just in a different flavor. The culture I'm talking about is to have a customizable tool & workspace. Something that adapts to you, a canvas where only your time and imagination is the limit. Limiting Emacs to being "just" lisp, is doing it a disservice.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by mtlmtlmtlmtl on Friday November 17, 2023 @11:35AM (#38305875)
No, you're not getting he gist here.

Browsers are nothing like Emacs in design philosophy(except Nyxt, which gets close, but falls a bit short due to intrinsically having to deal with a bunch of JS; an excellent example of my point, come to think of it).

Take Firefox for example. It has extensions, but they're intrinsically limited by the fact that they're sandboxed and can only interact with the browser through a limited API. And yes, you could certainly extend it arbitrary by changing the C++/Rust/whatever code and recompiling it. But it's not designed to be extended that way by users.

In emacs, the configuration is really just patches applied to the code at runtime. There fundamentally is nothing you can't do through the configuration.

But why Lisp you say? Precisely because Lisp is a dynamic meta-programming language, which is the ideal paradigm for this. It can be molded to be a highly abstracted configuration language without losing the ability to run arbitrary code. You get all the upside of JSON, YAML, XML and other configuration languages with none of the downside of being limited in what you can do.

Adding javascript to the mix just complicates this simple and elegant model. You gain nothing in extensibility, and will probably lose quite a lot unless you take extreme effort to avoid it through clever design.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by PurpleRamen on Friday November 17, 2023 @11:56AM (#38306243)
> Take Firefox for example. It has extensions, but they're intrinsically limited by the fact that they're sandboxed and can only interact with the browser through a limited API.

That's design, a choice. It used to be different in old Firefox, and other browsers are different in that aspect even today. But to be fair, I mainly meant the page-context, not the application-context. Most normal web browser support userscript, bookmarklets and debugging some way or another. Or should I say, still. Because this is a bit in decline. And if you take something like web- or electron-apps, the page-context becomes the app itself. All just a matter of implementation and architecture.

> There fundamentally is nothing you can't do through the configuration.

You can't patch the C-core, can you? Another necessary implementation-detail.

> Precisely because Lisp is a dynamic meta-programming language, which is the ideal paradigm for this.

It was ideal when Emacs was created. Today, we have many alternatives.

> You gain nothing in extensibility,

Except more ability, more heritage, more users... At the end, it's all a matter of managing the tradeoffs, the implementation-details.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by samus on Friday November 17, 2023 @12:58PM (#38307297)
> You can't patch the C-core, can you? Another necessary implementation-detail.

The C core contains low-level things or performance-sensitive things that one really doesn't want to patch. Nevertheless, lots of things in the C core are configurable and extendable through hooks.

> Except more ability, more heritage, more users... At the end, it's all a matter of managing the tradeoffs, the implementation-details.

Regarding heritage, you can't get more than Enacs has, which was around when GUI didn't even exist yet.

Users who are put off by the choice of configuration language are unlikely to be productive extension writers.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by adamc on Friday November 17, 2023 @12:31PM (#38306848)
Also, on a pragmatic level... I think an ecology built around scripting in multiple languages (because you have to support emacs lisp -- that's what things are written in now) will actually make it more confusing to do future development, and now debugging/extending other people's packages requires competence with both languages -- potentially, anyhow. You end up fracturing the community.

Something as simple as getting advice for solving a problem on web forums would also be affected by the dichotomy. I think that might be worse for newbies.

Still, I think it's fine to run the experiment, and see if that is what people want.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by taeric on Friday November 17, 2023 @11:11AM (#38305508)
Thinking that any REPL is the same as Emacs feels... wrong. Same for shells and other items there.

I can almost see the argument for browser, but we left user customization as the default in browsers a long long time ago.

To make my point a bit more concrete, the culture of lisp-machines was that the user was in full control. Curious what will happen if you type something? You can literally lookup what will happen on any keystroke or button press. Curious what code runs for a function? Odds are high that you can jump into the code for any feature and edit it on the fly. Yes, there are some native code sections that you can't do this for, but the vast majority is not that.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by medo-bear on Friday November 17, 2023 @10:23AM (#38304796)
I like the neon sign comment. Emacs is beautiful because it is raw simple and powerful. In architecture this is called brutalism. A lisp serves it well because it is in some sense the most brutalist high level language. JS on the other hand is anything but. In comparison to lisp it is Y2K
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by worthless-trash on Friday November 17, 2023 @12:16PM (#38306581)
What does "Y2K" mean in this context ? The 2000 AD ? I lived through it, it had its own share of shitty tech problems.
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by medo-bear on Friday November 17, 2023 @05:48PM (#38311680)
I was stuck for words. But 2000AD to me was a period of bloated superficial high tech, which is my view of js
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by worthless-trash on Monday November 20, 2023 @10:39PM (#38358810)
Sounds accurate.
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by medo-bear on Friday November 17, 2023 @10:14AM (#38304671)
> Not everyone likes lisp, not everyone is willing to learn a new strange language for unknown benefits.

Im curious why someone would use emacs if they dislike lisp. To me its like writing SPAs without js

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by PurpleRamen on Friday November 17, 2023 @10:41AM (#38305068)
Humans are not binary. "Not liking" does not mean dislike. And Emacs is more than just lisp.
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by miroljub on Friday November 17, 2023 @11:50AM (#38306141)
> Im curious why someone would use emacs if they dislike lisp. To me its like writing SPAs without js

Why use Windows (or MacOS, or Linux) if you don't like C?

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by medo-bear on Friday November 17, 2023 @05:52PM (#38311732)
None of those are meant to be customizable with C in the way Emacs is with elisp
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by trealira on Friday November 17, 2023 @07:13PM (#38312746)
It's more like "why use Linux if you dislike using the shell?" or maybe "why use XMonad if you dislike Haskell?"

Which aren't unreasonable questions; there are a lot of people who use XMonad despite not caring about Haskell, just because they enjoy using it.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by brlewis on Friday November 17, 2023 @12:41PM (#38307039)
I'd prefer to write extensions to my IDE using TypeScript rather than elisp, but my attempt in 2018 or so to move from emacs to vscode failed, despite there being extensions that made keymappings largely compatible.

Emacs has a much more focused UI than vscode. It's not obvious to me how to make all the extraneous things I'm not editing disappear.

The emacs-compatible extensions as far as I've seen still haven't been able to make switching files in vscode as fast and convenient as switching in emacs. I spend more time maintaining software than writing new code in a single file, so this is a noticeable slowdown.

VSCode doesn't feel as fast. I never fully investigated all the reasons. But I might make another attempt to move to it after it has a few more years to improve.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by EFreethought on Friday November 17, 2023 @11:39AM (#38305941)
Not everyone likes JS. I am not a Lisp genius, but once you get the concept it's not that hard.

If you want to use JS, there are plenty of places to do it. Some of us just want to avoid that dumpster fire.

And if JS is so wonderful, why not make a JS editor from the ground up?

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by avbanks on Friday November 17, 2023 @01:27PM (#38307755)
I would much rather deal with Elisp than JS. IMO JS is a terrible choice for this.
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by miroljub on Friday November 17, 2023 @11:40AM (#38305949)
> Not everyone likes lisp, not everyone is willing to learn a new strange language for unknown benefits. And JS has a vast ecosystem of its own. Far bigger even that Emacs heritage, but on different areas.

As much as I dislike elpa package manager, the mere thought of having to use npm or similar in Emacs makes me nervous already.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by e12e on Friday November 17, 2023 @12:36PM (#38306927)
> If we ignore the specific flavor, then 99% of what's realistically done with with elisp, is also covered by other dynamic languages like JavaScript.

Is that really true?

https://github.com/search?q=repo%3Amagit%2Fmagit%20defmacro&...

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by PurpleRamen on Saturday November 18, 2023 @06:11AM (#38318106)
Yes, still true. Macros do not change the outcome, but the way to reach the outcome. That's flavor, not meat.
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by rollcat on Friday November 17, 2023 @01:46PM (#38308060)
> Not everyone likes lisp [...]

I think it's fair to say that if you don't like ELisp, Emacs might be the wrong choice for you. I'm not being elitist, I just think the two are glued together even closer than POSIX and C, and it would be extremely difficult to avoid it.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by kwhitefoot on Friday November 17, 2023 @04:38PM (#38310798)
I haven't written any elisp in fifteen years yet I use Emacs every day even though I am retired and no long programming all the time.