News for hackers. Stuff that matters.
Re:Zed, a collaborative code editor, is now open source by jitl on Wednesday January 24, 2024 @07:41PM (#39124713)
How do you get a reasonably fancy Emacs to start up/open files quickly? Every time I try to get into EMacs after adding a few packages it becomes painfully slow to open a file for editing. Then I try to understand Emacs server, then I fail / give up and go back to vim.
Re:Zed, a collaborative code editor, is now open source by willdr on Wednesday January 24, 2024 @07:42PM (#39124724)
Open it at 8am, close it at 8pm
Re:Zed, a collaborative code editor, is now open source by jkrubin on Wednesday January 24, 2024 @10:37PM (#39125950)
Hahahaha. A dev I work with who has been using eMacs for 30+ years is well known at my company for having eMacs sessions open for 6+ months at a time.
Re:Zed, a collaborative code editor, is now open source by baq on Thursday January 25, 2024 @03:14AM (#39127370)
I’d rather open at 8am, close on kernel upgrade.

At least that’s how I worked with my vim tmux sessions ;)

Re:Zed, a collaborative code editor, is now open source by AlexCoventry on Wednesday January 24, 2024 @08:47PM (#39125237)
Emacs server is quite straightforward. M-x server-start in a running emacs, then emacsclient <filename>. emacsclient -c if you want to open the file in a new window, or emacsclient -t if you want to open it in your current terminal. C-x # when you're done editing the file.
Re:Zed, a collaborative code editor, is now open source by euroderf on Thursday January 25, 2024 @03:13AM (#39127363)
myhome>> emacs --daemon
Re:Zed, a collaborative code editor, is now open source by oarsinsync on Thursday January 25, 2024 @05:13AM (#39127991)

  emacsclient -ca '' 
Connect to the daemon if it’s running, start it if it’s not.

  alias emacs="emacsclient -ca ''"
Re:Zed, a collaborative code editor, is now open source by ideasman42 on Wednesday January 24, 2024 @10:50PM (#39126003)
I've been using emacs as my main editor for years now and don't find the startup speed to be an issue - to the point I've never bothered with emacsclient:

It starts up with ~77 packages in half a second.

This is my config.

https://gitlab.com/ideasman42/dotfiles/-/tree/main/.config/e...

Re:Zed, a collaborative code editor, is now open source by benreesman on Thursday January 25, 2024 @06:58AM (#39128586)
That’s pretty close to what I’ve been running on the GC tuning but I like parts of your spelling better.

This is going MIT as part of a bigger project in about a month (think Lucid s/C++/modern models/).

If I inline attribution you mind if I borrow this or that?

Re:Zed, a collaborative code editor, is now open source by mkesper on Thursday January 25, 2024 @02:27AM (#39127130)
Use doomemacs for a start. It really optimizes startup time and offers vast included modules as well as great package management. https://github.com/doomemacs/doomemacs/blob/master/docs/gett... Oh and for Windows, WSL2 seems to be the fastest: https://github.com/doomemacs/doomemacs/blob/master/docs/gett...
Re:Zed, a collaborative code editor, is now open source by benreesman on Thursday January 25, 2024 @06:59AM (#39128596)
Doom is a great start for a low-friction, extreme quality curated emacs setup. +1
Re:Zed, a collaborative code editor, is now open source by kaeland on Friday January 26, 2024 @03:28AM (#39140122)
Another +1 for using DOOM emacs.
Re:Zed, a collaborative code editor, is now open source by Evidlo on Friday January 26, 2024 @04:25AM (#39140490)
So buggy for me.
Re:Zed, a collaborative code editor, is now open source by lynx23 on Thursday January 25, 2024 @03:05AM (#39127316)
I was about to answer "Use emacsclient", but then I realized you can't be bothered to configure it. For me, putting "(server-start)" into .emacs was always enough, but YMMV.
Re:Zed, a collaborative code editor, is now open source by benreesman on Thursday January 25, 2024 @06:40AM (#39128472)
https://imgur.com/a/i99Nisn

1.4 seconds for 100 packages, half of which are on probation? My (and soon `HYPER//MODERN`'s) package set is under heavy construction, I'll be sad if I don't get it under 300ms including loading and rendering a logo at 6k from a cold disk which that was.

Rust is a perfectly good language for writing tight code, but those `emacs` inner loops have been tuned by hard-ass pros for 30+ years in straight C, which is plenty fast too. Even the best Rust code doesn't have that kind of tuning in.

`emacs` is fucking fast.

Re:Zed, a collaborative code editor, is now open source by estebank on Thursday January 25, 2024 @12:48PM (#39132289)
With no intention to push back on Emacs being highly optimized, age of an application is not an accurate proxy for level of performance. If it were, grep would be faster than ripgrep. New software can apply optimisations discovered over the previous 40 years, and leverage architectural designs with different assumptions, like the GC limits in Emacs discussed elsewhere in the comments. Older applications can apply those same optimizations, but it's not a given that they will, and changing their architecture can be daunting, for sometimes unknown benefits.
Re:Zed, a collaborative code editor, is now open source by PH95VuimJjqBqy on Friday January 26, 2024 @10:57AM (#39144103)
yeah, I can't deal with the emacs startup.

I mean, it's not slow per se, but compared to vim it's noticeably slower so I can't deal with it.

Re:Zed, a collaborative code editor, is now open source by cyruseuros on Friday January 26, 2024 @04:50PM (#39149035)
The way the other guy said. Then it breaks enough times, you give up, and switch to Helix. Nothing snappier out there (vanilla Vim included) and it comes with all the goodies you'd install 100 packages for (DAP, LSP, treesitter, sane default configs for dozens of languages)

To each their own, but for a hardcore Emacs user (wrote a number od my own plugins) that actually tried and couldn't seriously adopt VSCode for more than a few months, Helix was such a nice surprise + change of pace. Worth giving it a shot if you're caught in that gap.

Re:Zed, a collaborative code editor, is now open source by shanusmagnus on Friday January 26, 2024 @06:59PM (#39150624)
Is there something that approximates org-mode outlining? I don't need all the other stuff org-mode does, but just the simple outliner functionality combined with all the other Emacs stuff is my golden handcuffs.
Re:Zed, a collaborative code editor, is now open source by cyruseuros on Saturday January 27, 2024 @04:44AM (#39154098)
Not that I'm aware of just yet, unfortunately, so might be a good reason to stick around. For me the switch coincided with jumping on the zettelkasten train and I haven't looked back since. I miss some org mode fratures but constantly `org-refile`-ing I can do without.