Skip Navigation
What are your must-have programs?
  • Emacs is a religion, or an OS

    Philosophy is a subset of religion, and there is a definitely an Emacs philosophy about making absolutely all software hackable, and controlling the computer using text.

    App platforms are a subset of operating systems. People confuse the two because most app platforms are inseparable from the operating system on which they run. But some software, like the Web, or Java, or to some extent .NET/Mono, are app platforms that run the same apps across multiple operating systems. Emacs is an app platform.

  • What are your must-have programs?
  • How do you think one should get started with Emacs? Should they start start with regular GNU Emacs or should they install one of the “distros”?

    I always recommend using the default setup for any software. The same goes for learning GIMP, Krita, Blender, FreeCAD, or whatever else, even though you can customize them all to your liking.

    It is usually a good idea to try and learn the workflow that was intended by the people who developed this software, you could learn something from trying to use the computer in the same way that the professionals do. Same for Emacs: professional software developers have used it for almost 50 years, the default keyboard shortcuts are set the way they are partially for random historical reasons, but partially because they often make a lot of sense.

    If you are interested, please check out my blog series on getting started with Emacs, called Emacs for Professionals

  • What are your must-have programs?
  • Emacs.

    Emacs is an app platform in and of itself, and the vanilla installation comes with dozens of its own apps pre-installed. Like how web apps are all programmed in JavaScript, Emacs apps are all programmed in Lisp. All Emacs apps are scriptable and composable in Lisp. Unlike on the web, Emacs encourages you to script your apps to automate things yourself.

    Emacs apps are all text based, so they all work equally well in both the GUI and the terminal.

    Emacs comes with the following apps pre-installed:

    • a text editor for both prose and computer code
    • note taking and organizer called Org-mode (sort of like Obsidian, or Logseq)
    • a file browser and batch file renamer called Dired
    • a CLI console and terminal emulator
    • a terminal multiplexer (sort-of like "Tmux")
    • a process manager (sort-of like "Htop")
    • a simple HTML-only web browser
    • man-page and info page browser
    • a wrapper around the Grep and Find CLI tools
    • a wrapper around SSH called "Tramp"
    • e-mail client
    • IRC client
    • revion control system, including a Git porcelain called "Magit"
    • a "diff" tool
    • ASCII art drawing program
    • keystroke recorder and playback

    Some apps that I install into Emacs include:

    • "Mastodon.el" Mastodon client
    • "Elfeed" RSS feed reader
    • "consult" app launcher (sort-of like "Dmenu")
  • Question about ownership of the means of production
  • What I do wonder about is to what extent private ownership would still be permitted to exist?

    Yeah, I think that is debatable and there are probably a few solutions, since we are only talking about hypothetical society. Just thinking out loud myself now: your example of leasing the tractor to other collectives could be done using money but there would have to be strict regulations to ensure that your lease price was fair, and maybe you would not be to charge interest, or only enough interest to cover the risk of losing the tractor. Or it could all just be done much more informally on a "to each their need" basis and the honor system, and you could maybe take them to court for a new one if they destroyed it or something.

    I wish I knew more about how it worked in countries like Vietnam or Cuba, they probably have it all worked out.

  • Question about ownership of the means of production
  • If I saved up my money and bought a tractor

    What if I instead offered to plow their fields for them instead

    You assume it is necessary to use money to buy a tractor for yourself, you assume "their fields" are owned by "them." What if the state provided you with a tractor and the land? Or even if money were involved, what if the state provided you with the money to buy the tractor and the land?

    There would be laws to allow you to hire other people to use the tractor and farm the land, but by law, the surplus of their labor (whatever they planted, farm, sell at market) would belong to them, likewise the surplus of your own labor would belong to you. You could use the surplus (money, goods, what have you) to trade with anyone else.

  • Florida Students Given Lifelike Dolls To Simulate Responsibility Of Owning Slave
  • I know, this one is so plausibly something those psychos in the various school board across the fucked-up state of Florida would actually do, I honestly thought this was real for a moment.

    They have already shut down entire school libraries, and censored several other public libraries, and are trying to make it illegal to speak freely about slavery or genocide or generally being critical of the US or the glorious military. And there is no shortage of 100% serious, 100% unironic talk ("protected free speech") among ordinary Florida folk about how the slaves actually had it pretty good since they never had to worry about paying for rent or food, and anyone could have done the unskilled labor they did, "I mean, they never had human rights, but what would animals I mean black folk want with those."

    I mean, this Onion headline is really, really plausibly real, and might even become real pretty soon.

  • Tips/tricks for beginners
  • I wrote a few articles on my blog for people in your situation, who are mostly only familiar with Windows and/or Mac and want to learn Linux more in depth.

    "Advice for people who want to learn linux" -- This article is kind of an overview of the Linux learning process. The point of this article is to teach you what it is you need to learn about so that you set your own curriculum. Once you understand what a few of the basic things are, you can look up your own tutorials on how to learn each thing.

    "How to pick a Linux distro" -- This article is for people who are overwhelmed by the number of choices for Linux distro. The bottom line is: don't over-think it, just pick a mainstream distro like Mint, Ubuntu, or Fedora. There is like a 99.99% chance that each of these will just work as soon as you install it, no weird issues with audio, graphics, WiFi, BlueTooth, security updates, or anything else. Also, a lot of the "choices" you see among all those distros are only skin deep -- differences in the default theming (i.e. the default "desktop environment", a concept explained in the "advice" article above). But really they are all using the same basic software packages so there very little substantive difference between any of them except in their app stores, and the mechanism they each use install software.

    If you have any questions, feel free to ask me here. I can clarify here, and also update my blog posts if you think anything is confusing.

  • Where to "practice Linux" terminal commands
  • As many here have said, but I will emphasize: learn the Bash programming language. Linux Survival is a very good start, and you can just start experimenting right away in your own terminal on your own computer.

    To go more in depth, you can read through the manual on your computer by typing "info bash". The Info documentation browser is a command line app. You may need to install it using your package manager ("apt-get" or "pacman" or "dnf").

    In the "info" app, you can navigate with the arrow keys, pressing enter on hyperlinks, typing l (lowercase "L") works like the "back" button in a web browser, typing r (lowercase "R") works like the "forward" button. Info also lets you search the index by pressing i (lowercase "I") then entering your search in the prompt, or search the full text by pressing s and entering your search in the prompt. And q quits back to the command line prompt. "Ctrl-Z" pauses the "Info" app and drops you back into the command line, and you can resume your "info" session using the "%" (percent sign) command.

    Another thing that can help is to learn about the GNU "Coreutils", this is a suite of commands usually installed into /usr/bin or /bin which provides helpful command line utilities. These are commands like cat, wc, sort, cut, ls, du, cp, ln, chmod and many others. Read through the Coreutils Info manual by typing "info coreutils".

    And I will also reiterate recommendations from others: learn how to use Vim and/or Emacs. Vim has the more difficult learning curve but is extremely useful for writing scripts. Emacs is better though because it lets you split-screen with manual pages, and copy-paste commands between Man pages, "Infodoc" documents, the shell, and/or a text file, all using only keyboard commands. I think it makes it much easier to learn since everything is integrated together. Ask the Emacs community how to get started if you are interested.

  • Configuring Kakoune Bindings in the Helix Editor!
  • It’s a i3-6006U with just 4.0GiB of RAM.

    Emacs is considerably more lightweight than a modern Web browser, or any app based on Electron.js (e.g. VSCode) so a computer with those specs is more than powerful enough to run Emacs. If you use version 29.1 or later, Emacs comes with "libgccgit" which will spend a little time pre-compiling Emacs code to very fast native code.

    Emacs used to have a reputation for being slow back in the early 1990s when 32 bit personal computers were just beginning to gain popularity. But nowadays when everyone downloads FlatPak and AppImage and Snap apps which install many hundreds of megabytes of code, Emacs is relatively small and light.

    Also, Guile Emacs and Guilemacs are two different projects, right? Because I also happen to come across this, and I’ve been interested in this project as well.

    The whole history of Guile and Emacs is here on the Emacs Wiki.

    So there are a few projects related to Guile and Emacs. The link you provided me by Ken Raeburn is a fork of older versions of both Guile and Emacs, it seems it has not been worked on in about 20 years, unfortunately.

    The project by Robin Templeton is also a little bit out of date, but still somewhat actively developed. You must build it from source from a patched version of (I think?) Emacs 26 or 27, I am not sure which it was. It works by loading libguile (the Guile interpreter/compiler) into Emacs so you can run Scheme code, and it also provides Scheme "foreign function" wrappers to the Emacs C APIs so you can do everything Emacs Lisp does in Scheme by importing the elisp-functions Scheme module. (There is an example of how to use it on the Emacs Wiki.)

    I did hear Robin say in a recent Spritely chat that it could be made to work on Emacs 29 with not too much effort, they just haven't had time to do it.

    If you are interested in Scheme, you might also want to check out the Edwin text editor which is built-in to the MIT/GNU Scheme compiler, you launch it from the Scheme REPL with the (edit) function. It is a clone of Emacs 19 (a very old Emacs) written entirely in Scheme, but unfortunately it is a little too old to be useful nowadays, in my opinion. Still, you could learn something by reading the Edwin source code.

    Finally there is TeXmacs, which is a full WYSIWYG application with a built-in LaTeX rendering engine designed for writing scientific papers, and it includes the Guile Scheme compiler for writing extensions, although I would not call TeXmacs a general purpose programming text editor the way Emacs is.

  • Configuring Kakoune Bindings in the Helix Editor!
  • Steps are being made toward Guile Emacs integration. The work is mostly being done by Robin Templeton, who (last I heard) works at the Spritely Institute. And as I understand, there are other people pushing on the Guile in Emacs front as well, so you may not have to wait long.

    Have you considered trying to setup Kakoune bindings in Emacs? For example like this: https://github.com/jmorag/kakoune.el

  • [Humor] A song about the Emacs Philosophy
  • The argument stretches “Unix philosophy” so far that Lisp systems end up being a better fit for it than Unix itself. To me that just makes the whole thing lose meaning. Emacs doesn’t particularly fit the Unix philosophy and that’s fine!

    Thanks for reading my article, and for your thoughtful comment!

    I will go further and say that no GUI or TUI application fits into the Unix philosophy.

    I suppose I can agree with you on this point for sure, since the Unix philosophy is not really all that well formulated to begin with (it is a philosophy closely related to the principles of functional programming devised by people who were seemingly not interested in functional programming).

    Nonetheless there are people who still insist there is wisdom in the Unix philosophy, which I think is more misguided ritual than carefully-considered principle. The reason I wrote the article was to make people question the utility of this ritual, of drawing an arbitrary border line around a piece of software and saying "within these borders is a tool that does just one thing and does it well."

  • [Humor] A song about the Emacs Philosophy
    www.extrema.is Emacs Philosophy « Blog « extrema.is

    "Emacs Philosophy" is an Emacs-themed song that I created for a friend. I wrote the lyrics myself and created the audio using Suno and Udio.

    A close friend of mine was "inspired" to write a song by my series of blog articles called "Emacs Fulfills the Unix Philosophy" (actually I think he is busting my chops a bit for being an annoying Emacs evangelist, but anyway...) I thought it was pretty funny and worth sharing here.

    He wrote the lyrics and used one of those Large Language Models like Stable Diffusion (or something like it) to make the actual music, and settled on a few different renditions of the song. You can listen to them on his website: https://www.extrema.is/blog/2024/04/29/emacs-philosophy

    2
    Janus, a simple text editor
  • I have been using both professionally for at least 15 years and IMO without a doubt Qt is so much easier to use, read and work with it’s not even a comparison.

    I also use Qt professionally, and it is indeed an excellent GUI library. I have absolutely no complaints with how well it is designed and how easy it is to use, and I am consistently amazed by how beautiful the results are, especially with desktop environments like KDE Plasma.

    My complaint, which is really a deal-breaker for me, is that Qt effectively forces you into using C++ and Python and/or QML+Quick. For the non-professional software I develop, I want my apps to be scriptable by end users, and I do NOT want to force them to choose between only Python or Quick as their scripting language. For building scriptable, truly cross-platform GUI apps, Gtk is the only game in town.

    Gtk is much harder to use only if you are coding in C, because it depends so heavily on the C preprocessor to hack together the infrastructure that C++ has built-in. But because it is so easy to bind scripting languages to Gtk, you only need to program a few very core features in C, the rest you can program in any scripting language of your choice. This very important feature I think is a worthwhile trade-off for making it harder to code in C, especially if you are able to code the larger portion of your application (which is almost always the case) in a scripting language like Lua or Scheme. (Although I admit, most Gtk scripting is done in Python, just as it is with Qt.)

    Plus in comparison to Qt there are almost no commercial outfits using Gtk professionally and selling products based on it.

    Perhaps, but I would point out that both Canonical and RedHat (now IBM) are both heavily invested into developing Gnome, and I believe most of the paid Gtk development has been funded by these two companies.>

  • Janus, a simple text editor
  • As someone who is trying to develop my own Linux destkop apps, I can tell you that the day that I switch to Qt is the day Qt provides a feature that works as well as GObject Introspection (GI) does for Gtk. GI creates a cross-platform database of objects, properties, and signals, for auto-generating language bindings, so you can customize your Gtk programs with scripting languages (Python, Lua, Vala, JavaScript, Scheme). It is a relatively simple task to bind any programming language to GObjects thanks to GI.

    Qt does have a QMetaObject system which is similar, but C++ is a difficult language to bind to on most operating systems because of how native language functions are labeled in the library code -- names are "mangled", a hack to work around the miss-match between object libraries features (.so or .dll files), which do not provide the ability to "overload" functions, and C++ libraries features, which do provide this ability. The function/method overloading feature is used quite often in any C++ program. But decoding mangled names for language bindings can be very error-prone without the sort of automation that GI provides.

    As it is now, really the best way to develop Qt apps is to use C++, with Python for scripting, because these languages are the most well-supported by Qt (C++ natively, Python being the most stable and well-maintained "foreign" language for Qt). And I like neither of these two language. Gtk gives you a much larger selection of scripting language choices, even though it is programmed in C, and this is thanks to how well GObject Introspection works.

  • US Air Force successfully tests AI-controlled fighter jet in first dogfight against human pilots
  • According to the story told by Schwarzenneger's character in part 2, Skynet started out controlling only in US Air Force drones (hence the name), and was soon after connected to everything else. Eventually human decision making was removed from the control of the system.

  • US Air Force successfully tests AI-controlled fighter jet in first dogfight against human pilots
  • It was also the plot of the Terminator series of films. Well, except for the detail that the AI controlling the aircraft (called "Skynet") became "self aware" and that is what caused it to launch all the nukes to kill all the humans.

    So how it differ from Terminator's "Skynet" is that these real life AI are being controlled by genocidal maniacs (the largest concentration of whom seem to live in the US and Israel at present) and they are setting these things to "auto-kill" mode, like what happened in Gaza recently. And the genocidal maniacs gleefully ignore international law, saying "you want to stop me, you and what army?" So who is to keep them from turning the robots against you and me?

  • Noob Question Thread: Ask Any Questions About Linux!
  • Awk is a programming language designed for reading files line by line. It finds lines by a pattern and then runs an action on that line if the pattern matches. You can easily write a 1-line program on the command line and ask Awk to run that 1-line program on a file. Here is a program to count the number of "comment" lines in a script:

    awk 'BEGIN{comment_count=0;} /^[[:space:]]*[#]/{comment_count++;} END{print(comment_count);}' file.sh
    

    It is a good way to inspect the content of files, espcially log files or CSV files. But Awk can do some fairly complex file editing operations as well, like collating multiple files. It is a complete programming language.

    Sed works similar to Awk, but it is much simplified, and designed mostly around CLI usage. The pattern language is similar to Awk, but the commands are usually just one or two letters representing actions like "print the line" or "copy the line to the in-memory buffer" or "dump the in-memory buffer to output."

  • Block Meta/Facebook from Mastodon

    (This is an extended version of one of the most widely re-shared post I have ever written on Mastodon.)

    The new "Threads" app by Meta (Facebook) is just the old 4-E strategy strategy to destroy Mastodon:

    1. Embrace:

      (what they are doing now) launch a competing but compatible service with that of Mastodon. The vast majority of users, most of whom don't care about the privacy and intimacy of the Mastodon network, will go with the brand with the most name recognition. The number of users already signed up for Threads shows this to be true.

    2. Extend:

      make their service appear to be better with features like search, which they have the resources to do, but the rest of the Mastodon network does not. Also include features for tracking and advertising, sell this as a good thing, "a better place to grow your personal brand, your business." When people think about joining either Facebook Threads or some other Mastodon instance, which will they choose? "Oh, Threads users can also talk with Mastodon users so they are basically the same? Well, why not just use Threads then?" The one with the most name recognition will always win.

      Then comes the blogs and YouTube videos about, "I tried Threads, Bluesky, Mastodon, Pixelfed, each for 1 month, here is what I learned" type videos in which the author decides Threads or Bluesky is best because they have better features and you don't have to decide which instance to join.

    3. Extinguish:

      after attracting a critical mass of users large enough to decimate the user base of the competing Mastodon network, and temporarily making appear to have better features like search, quietly remove compatibility with the Mastodon network.

      This might effect only 10% of Mastodon users because the other 90% will be on Threads. Then people will think, "who cares if we lose contact with that tiny minority of old Mastodon users, they should have just joined Threads by now anyways, they still can. It has search, and more people voted for it with their patronage. And you don't have to think about what instance to join, its easier\!"

      At this point, people begin to wonder what the point of Mastodon even is.

    4. Enshittification:

      without any real competition to keep people from leaving for an alternative, start exploiting users for more and more content for ad revenue, while also exploiting advertisers with ever-increasing costs of ad revenue, while also cutting costs on the quality of their service until it becomes unusable. But at this point it is too late for Mastodon, the momentum it once had is now long gone and no longer a threat to the Meta corporation. Their investment paid off.

    Meta is one of the worlds largest corporations that has made most of its money not just through advertising but from gathering and selling people's personal information. They are scared to death about losing control over the Internet that they had gained over the past 15 years or so, and they are fighting to take that control back for themselves.

    We built this, but now a corporation like Meta/Facebook feels they have the right to exploit it for all its riches until it is destroyed. Don't let it happen. Join the Fediblock cause, it is the only way to protect our home-grown community from corporate take-over.

    Eugene Rochko thinks Threads is good, he is wrong

    Eugene Rochko who developed Mastodon as a Twitter-like app based on the ActivityPub protocol, has a blog post explaining why he thinks federating with Threads is good for Mastodon.

    > We have been advocating for interoperability between platforms for years. The biggest hurdle to users switching platforms when those platforms become exploitative is the lock-in of the social graph, the fact that switching platforms means abandoning everyone you know and who knows you. The fact that large platforms are adopting ActivityPub is not only validation of the movement towards decentralized social media, but a path forward for people locked into these platforms to switch to better providers. Which in turn, puts pressure on such platforms to provide better, less exploitative services. This is a clear victory for our cause, hopefully one of many to come.

    !Eugen Rochko: \<q\>if you've got questions about what interoperability with Threads means, we wrote this up back in July, and you can still refer to it. Make no mistake, this is huge for Mastodon. Currently people have to choose between X, Mastodon, and Threads, and network effects play a dominant role in that choice. IF we can say, you can access all the folks that went to Threads from a Mastodon account, that makes it a far more attractive option given all of its other perks :winking\_face:

    No, Threads will get people to leave Mastodon in droves. Really all Facebook is doing here is leaching users away from Mastodon. The average user doesn't know or care about the “perks” of non-Facebook Mastodon instances that Eugene is talking about. They will go with the service with the most name recognition every time, rather than trust an independent, small-time instance operator.

    Threads is just Facebook with ActivityPub compatibility and extended Facebook's ads and tracking. The goal is to pull people away from decentralized networks and back to being under their control. Then the network effects Eugene is talking about will kick in, but moving people away from Mastodon and toward Threads.

    History repeats itself again

    We have seen all this before. Google did something similar when they first embraced support for the open and federated XMPP protocol in their Google Talk (GChat) app, and exactly the situation I described above happened. Eventually Google shut it down, and started calling the original XMPP apps "unauthorized third-party apps," although in fact Google was itself originally a third-party to the existing XMPP services that existed before GChat was invented.

    People can and do still use XMPP, and I would encourage you to use it as well for video/voice/text chat. But all that momentum and popularity was extinguished, and was never really regained, at least not in the 9 years since Google extinguished it. So Google was successful in destroying a community of federated services using a popular communication protocol that made it difficult for Google to track and control people on the Internet.

    We know for sure what Facebooks goal is not: they do not want to do something good for the various communities of people that have organically sprung-up around Mastodon and the other ActivityPub-based federated social networks. Mastodon does not need to make this mistake with Facebook Thraeds.

    Mastodon and ActivityPub are important

    Mastodon became most popular in the wake of Elon Musk buying out the Twitter corporation. Calling himself a "free speech aboslutist," which sounds as though he believes everyone should have a voice online no matter how unsavory that voice might be, quickly proved to be anything but a proponent of free speech, quietly censoring his critics and the political groups he hated, while giving a voice to everyone else, including (seemingly enthusiastically) giving a voice to racists and hate speech.

    This happens every so often, although not always with the amount of drama churning around a single central figure such as Elon Musk. People see how dangerous it is that the communities we form over the Internet can only actually exist at the whims of an impersonal corporation that might at any point go insane and destroy their communities. When an Elon Musk event happens, then the problem becomes clear to everyone: they had been putting their faith into a monarch and/or despot like Twitter, and now it has turned against them.

    The solution to this is, and always has been, the democratic approach, which in this case is Mastodon. Do not allow any one authority to have aboslute control over the plane of existence. Allow people to opt-in, and give them a say in how their community is run. Trust that people are smart enough to understand what is in their own best interest, and allow them to make their own decisions and cast their own votes. This is how ActivityPub and Mastodon work. But if a democracy is not careful, it can easily be overwhelmed and elimitated by the well-equipped armies competing for their resources.

    20
    Using a Laptop as a KVM (or dumb terminal) with SSH X11 forwarding

    Here is my latest blog post on a method of using a laptop equipped with an X11 server as a KVM or graphical dumb terminal (not to be confused with "kernel virtual machine") to display an entire desktop environment on one of the virtual terminals of the laptop. You might be familiar with running an X11-compatible program over SSH, seeing a remote GUI app displayed on your local machine. You could also run a whole desktop environment such as "xfce4-session" over SSH and attach it to a virtual terminal (which you switch between using Ctrl-Alt-F1 through Ctrl-Alt-F7, usually, on Debian-based systems).

    This is nice if you have a few always-on Raspberry Pis laying around, and you usually use SSH to remote login and control them, but you would like to have a full desktop environment, not just one app, show up on your local computer.

    14
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)RA
    Ramin Honary @lemmy.ml

    Software engineer, functional programming enthusiast.

    Posts 3
    Comments 189