Off-and-on trying out an account over at @tal@oleo.cafe due to scraping bots bogging down lemmy.today to the point of near-unusability.

  • 24 Posts
  • 1.02K Comments
Joined 3 years ago
cake
Cake day: October 4th, 2023

help-circle



  • I’ll be here, in a major I haven’t switched out of since 1994, with C-x C-f on :w q, because the point was never the file.

    I don’t think that emacs has a way to serialize the Lisp VM to disk or live-migrate it across machines, but there is desktop-save-mode.

    https://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html

    You can use the desktop library to save the state of Emacs from one session to another. The saved Emacs desktop configuration includes the buffers, their file names, major modes, buffer positions, window and frame configuration, and some important global variables.

    I’ve never done it, but I suppose that if one migrated an emacs desktop file, it might be restorable on another host. So…technically, upgrading to a new computer would involve closing emacs, but it’d be sorta like hibernating and restoring a Linux system or something.



  • tal@lemmy.todaytolinuxmemes@lemmy.world•Just running emacs you know.
    link
    fedilink
    English
    arrow-up
    18
    ·
    edit-2
    2 months ago

    Note that you can also use emacs as your window manager, if this is running in Xorg, so your emacs window can be in emacs too.

    https://github.com/emacs-exwm/exwm

    EXWM (Emacs X Window Manager) is a full-featured tiling X window manager for Emacs built on top of XELB.

    There’s some work on a Wayland compositor, but that’s not as mature.

    https://codeberg.org/ezemtsov/ewm

    EWM is a modern, fast Linux desktop environment based on Emacs. It is written in Rust, built on Smithay, and runs as a dynamic module inside an Emacs session. Wayland applications appear as Emacs buffers, which means graphical windows can be managed with the same commands, keybindings, and workflows as the rest of Emacs.

    The ultimate goal of EWM is to let power users be bottlenecked by their own thinking, not by the tools they use. Computers should never stand in our way. EWM is built around the idea that window management, application launching, navigation, text input, and system control should be fast, deterministic, programmable, and composable.

    EDIT: I guess technically you could use Wayland, EWM making emacs the compositor, then use xwayland in that, with EXWM making emacs the window manager in that, in which you have an instance of X11 emacs running which itself is running…

    EDIT2: No, wait. I don’t know if you can run a window manager directly in xwayland.

    considers

    You could run it in Xephyr in xwayland, though, and you can run a window manager in that. So Wayland->emacs(EWM)->xwayland->Xephyr->emacs(EXWM)->emacs(X11)->emacs(terminal)->emacs(terminal)…

    EDIT3: There have been people who have run emacs on the Linux kernel on bare metal, as the kernel’s initd, but it’s not very functional like that. Someone would have to go out and reimplement systemd in emacs, and that isn’t a thing.

    EDIT4: Oh wait, apparently I am out of date.

    https://github.com/emacs-os/el-init

    el-init

    A statically compiled Emacs init (PID 1) patchset, Emacs Lisp-based service supervisor and core component of Emacs-OS.

    el-init is an Emacs Lisp-based, systemd-inspired init and service-management solution. Whether you are building a full-send Emacs-OS, or simply want to orchestrate your desktop session services from within EXWM, or keep project daemons running while you work, el-init has you covered. Use M-x elinit for the interactive dashboard, or elinitctl from the terminal.

    EDIT5: I think the real test is whether one can play this video in mpv using the libcaca target in terminal emacs using one of emacs’ virtual terminal software packages in terminal emacs in X11 emacs in an emacs-window-managed Xephyr X11 display server in a Wayland environment with an emacs-driven compositor managed by emacs via el-init running directly on the Linux kernel.

    EDIT6: Oh, wait. Apparently someone also added KiTTY Graphics Protocol and Sixel support to terminal emacs in the last two months.

    https://github.com/cashmeredev/kitty-graphics.el

    Beyond inline images it also does inline mpv video playback…

    So theoretically, I suppose you might be able to avoid the libcaca target and having to go through text even in the terminal emacs instances, and have the video playing graphically. You could potentially play that video in mpv (KiTTY Graphics Protocol target, $ mpv -vo kitty) running in terminal emacs itself running in terminal emacs using KiTTY Graphics Protocol running in X11 emacs being window-managed by emacs (EXWM) running in Xephyr running in xwayland being composited by emacs (EWM) running in Wayland on a system with emacs as initd (el-init) on the Linux kernel on bare metal.

    EDIT7: Bonus points for controlling the mpv instance via emms.

    https://www.gnu.org/software/emms/

    Emms is the Emacs Multimedia System. Emms displays and plays multimedia from within GNU/Emacs using a variety of external players and from different sources.

    Emms can run as a minimalist player and controlled with a handful of M-x Emacs commands, or a fully-fledged, interactive media browser. Emms can display album art, play streaming audio, tag music files, search for lyrics, provide MPD connectivity, control the volume, and more.





  • I am not terribly worried about 2026 ChatGPT posing an existential threat to humanity—though some people, like Yudkowsky, are. Yudkowsky’s scenerio is via someone inadvertently managing to produce an advanced AI via poorly-controlled-and-understood efforts to develop one using less-sophisticated, current AIs, and that advanced AI being the problem.

    But I don’t think that most people who are concerned about existential risk are worried mostly about the next three-and-a-quarter years, which is what Huang is addressing, but rather what happens with more-advanced AIs that we intentionally develop. It seems very unlikely that we will not develop these, absent some sort of global, actively-enforced agreement not to do so. And…I’m not sure that we even have the ability to realistically enforce such an agreement, even if we decided that we wanted to do so. As I’ve commented before, that’s effectively an arms control treaty, and the history of those has been spotty.

    The reason that one wants to be figuring out safety now, rather than waiting for someone to go develop the thing and then start thinking about safety, is that the major advantage we have now is time. One does not want to squander that.


  • Hmm. That’s a good thought, because when I was initially seeing it, I had the image scaled, but it also shows up at 1:1 ratio, so that can’t be what’s causing it.

    EDIT: Not visible on my desktop computer monitor (though there, I’m necessarily using different software), even using various non-integer-scaled versions of the image.

    I don’t think that it’s VRR flicker—the phone screen is VRR and doesn’t permit VRR to be disabled—because I can’t see it in the pure white areas, and I believe that it should also show up there if that’s the cause. I also can’t see it below roughly Mimi’s nipples in the lighter portion of the halftoned area.

    EDIT2: Oh, wait a minute. “1:1” in the Android image editor I used isn’t referring to screen resolution, but rather to aspect ratio. searches Man, I don’t even think that F-Droid has an image viewer that can display a panned image at 1:1 resolution. The concept of “scale everything to try to ameliorate small screen” is so baked into Android software. Trying to crop it to the narrow axis of my hardware screen resolution and then panning still shows the flicker effect, but it could be maybe that there’s subpixel placement or something happening.

    And I can’t see it on my Linux desktop, but that could be because the software I’m using there is scaling it to produce something at a fixed resolution when I zoom and then when I pan, rendering that to the screen aligned with pixels and I don’t have software that can do a 3D hardware-displayed version of the image that wouldn’t be pixel-aligned as I pan around, opposite problem from on Android. I used to use gliv for that, but it looks like it only works with obsolete versions of GTK now, and I can’t build it any more. Darn, I wish someone would do a new “hardware image viewer”.

    sighs

    Well, you’re probably right, then.