News for hackers. Stuff that matters.
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013) by dmortin on Monday July 29, 2019 @12:04AM (#20551432)
People who don't know how to program emacs don't get how easy it is to write some code in it to make your life easier.

Some say Atom and VSCode also have plugins. That's true, but can you write code to extend some VSCode functionality in a minute?

You just go to the scratch buffer, write some code, evalute it and it instantly becomes part of the editor. I don't know if there are other editors which can replicate this experience.

Re:Emacs Users Are Like Terry Pratchett’s Igors (2013) by lstamour on Monday July 29, 2019 @12:19AM (#20551480)
For VS Code, it’s like developing for another web browser, your VS Code IDE launches another instance of VS Code with your plugin running, and you can “Refresh” the second instance of VS Code to reload your plugin’s changes. Installing a plugin once developed is of course possible, but as far as I know there’s no hot-reload outside of this Extension Development Host window. Basics at https://code.visualstudio.com/api/get-started/your-first-ext... and you can run automated tests also in that second IDE window.

That said, VS Code isn’t as flexible—there’s a distinction between building VS Code and building an extension, and the two aren’t equivalent. The closest analogy I can think of is developing an old-fashioned XUL Firefox extension vs a new Chrome-style extension. The former used the same building blocks the app used, the latter was intentionally sandboxed and sanitized.

That said, you can do a heck of a lot with VS Code extensions, enough that I don’t want to install any I don’t trust —they can run programs and never prompt you for permissions, etc. So with great power comes great responsibility ;-)

And it could be argued that in a perfect world, VS Code should have both a live-edit-and-reload experience for plugin development alongside a more formal, sandboxed approach with signing and permissions and everything.

Re:Emacs Users Are Like Terry Pratchett’s Igors (2013) by robocat on Monday July 29, 2019 @12:47AM (#20551585)
> you can do a heck of a lot with VS Code extensions, enough that I don’t want to install any I don’t trust —they can run programs and never prompt you for permissions

Doesn't Emacs have the same issue - you really really have to trust any package you install?

Re:Emacs Users Are Like Terry Pratchett’s Igors (2013) by celeritascelery on Monday July 29, 2019 @09:13AM (#20554238)
That is true, probably even more so then VS code. Though I never heard of malicious Emacs package. That may because it is such a small attack vector compared to something like VS code.
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013) by robocat on Monday July 29, 2019 @09:32PM (#20561275)
> small attack vector

That's irrelevant: what matters is the value of an attack vector. e.g. Bill Gates is a small attack vector.

Attack the high value of some developers assets, or attack the high value of some of the businesses they work for.

Re:Emacs Users Are Like Terry Pratchett’s Igors (2013) by atdt on Monday July 29, 2019 @12:18AM (#20551475)
Can you recommend a good starting-point for learning emacs internals?
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013) by dleslie on Monday July 29, 2019 @12:27AM (#20551509)
Not OP, but the Emacs manual is excellent[0] and there's Mastering Emacs[1] and Sacha Chua's blog[2].

Because it's lisp you can inspect just about everything. See an unfamiliar symbol? Put your cursor on it and press M-.

0: launch help from within Emacs

1: https://www.masteringemacs.org/

2: https://sachachua.com/blog/emacs/

Re:Emacs Users Are Like Terry Pratchett’s Igors (2013) by mickael-kerjean on Monday July 29, 2019 @12:35AM (#20551536)
I made a tutorial series on emacs 2 years back (hasn't change at all since anyway), the last episode is about exploration: https://mickael.kerjean.me/2017/03/23/emacs-tutorial-series-...
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013) by agumonkey on Monday July 29, 2019 @12:35AM (#20551533)
A few pointers, from very knowledgeable fellows (warning C code ahead)

- https://nullprogram.com/blog/2014/01/04/

- https://tromey.com/blog/?p=305

- http://emacshorrors.com/

- http://emacsninja.com/