News for hackers. Stuff that matters.
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by oefrha on Friday November 17, 2023 @12:15PM (#38306556)
> The way you would hear it on most forums, emacs blocks whenever you do anything that takes time. Nevermind compilation mode being a thing basically forever.

Sure, it’s possible to write code that doesn’t block the UI, but it’s very difficult in Emacs and just about every built-in functionality is an offender. This includes network operations, which can block forever. You’d be laughed out of the room if you implemented a text editor today that can lock up completely and indefinitely with M-x package-list-packages.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by taeric on Friday November 17, 2023 @12:27PM (#38306782)
I'm a little confused, as that doesn't seem to block on my machine? Is it something that used to block, but doesn't anymore?

You are right that it is difficult in many respects. But it is far from impossibly difficult. And most of the tricks you could do to make it easier typically lead to some silly hard edge cases in the code.

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by worik on Friday November 17, 2023 @04:26PM (#38310612)
> I'm a little confused, as that doesn't seem to block on my machine?

Me too.

I routinely run emacs on a Raspberry Pi IV building large rust projects

Blocking has never been an issue

I bury the compilation buffer and carry on as usual

The main problem I have is too many options and possibilities

I think a better thing to do is organise all the third party packages with decent documentation

The documentation in the package ecosystem ranges from barely adequate to woeful with the emphasis on the latter

Re:Emacs-ng: A project to integrate Deno and WebRender into ... by oefrha on Friday November 17, 2023 @07:17PM (#38312811)
package.el went async in 25.1, so apparently my memory of package-list-packages locking up due to connection issues was from the many years of Emacs 24.
Re:Emacs-ng: A project to integrate Deno and WebRender into ... by jorams on Friday November 17, 2023 @01:00PM (#38307325)
package-list-packages does not do network operations in the foreground unless package-menu-async is nil. It's t by default. package-refresh-contents does, but I've always been able to C-g to abort at any time.