6 ms·
That is certainly impressive. But why does emacs have that functionality?
by choeger 6y ago
That is certainly impressive. But why does emacs have that functionality?
- patrec 6y agoWho in his right mind would use an editor that cannot even do symbolic integration? Joking aside, I suspect that this is mostly due to two factors: 1. Emacs was used by a lot of smart people, and one of them, David Gillespie got carried away a bit. 2. Thirty years ago, when David Gillespie first started working on calc, emacs lisp (despite at the time lacking even floating points numbers IIRC!), was probably one of the most expressive fairly widely deployed languages around, particularly for the type of symbolic manipulation you need to do for computer algebra. And unlike other things that were used by smart people 30 years ago, emacs still sticks around, so survivorship bias also plays a role.
- monsieurbanana 6y agoBecause it can... don't underestimate the amount of unrelated things you can crame into a 40 year old software. Interestingly, nowadays it's really difficult to convince people to add new features, like enabling mouse scrolling by default [1]. [1] https://lwn.net/ml/emacs-devel/20200906133719.cu6yaldvenxubcqq@Ergus/ https://lwn.net/ml/emacs-devel/20200906133719.cu6yaldvenxubc...
- linspace 6y agoI don't think it's a valid example. The discussion is about the default configuration, not about removing mouse scrolling from the code. It's a really big thread nevertheless...
- TeMPOraL 6y agoIt's a bit like asking why Windows has a calculator :). Emacs is best viewed a Lisp execution platform with a built-in text UI. Much like it has a "c++ app", "terminal app" and "compile this" app, it also ships with a "calc app" (literally called "calc"). Since it was being used by lot of mathy people for lot of mathy stuff, it ended up being a proper scientific calculator application. (Also, Lisps are inherently friendly for doing any kind of symbolic calculations. A Lisp system is one of the least surprising places to find a symbolic integrator in.)
- JadeNB 6y ago> Emacs is best viewed a Lisp execution platform with a built-in text UI. Hence the old joke "Emacs is a fine OS, but its text editor sucks."
- avar 6y agoHave you tried asking your local psychotherapist? M-x doctor RET I am the psychotherapist. Please, describe your problems. Each time you are finished talking, type RET twice. Why does Emacs need Symbolic Integration? What do you think? I don't know, just answer the question! Why do you say you do not know just answer the question? [...] Maybe you'll have better luck than I did with mine.
- TeMPOraL 6y agoCan't wait for someone to do a M-x doctor over GPT-3, AiDungeon style.
- sillysaurusx 6y agoOh my gosh, someone please add an M-x gpt-doctor. Hmm.. I wonder how we'd build the training dataset... How many other meme modes exist? I dug up the earliest commits I could find, and apparently one of the earliest hooks was "protect-innocence-hook": https://twitter.com/theshawwn/status/1327459335245422597 https://twitter.com/theshawwn/status/1327459335245422597 If the buffer's filename is "sex.6", it asks whether the user is over 18. If so, it renames the buffer to "celibacy.1". Apparently it was in the file lisp/play/meese.el. Emacs archaeology is more fun than it should be.
- TeMPOraL 6y agoThere's M-x zone, a bunch of games - anything from Tetris and Bubbles to Zork, morse code handling (M-x morse-region, unmorse-region), inserting interesting phrases for NSA spooks... There's a lot. There's also nyan-mode, made by yours truly, but unfortunately it does not ship with Emacs by default :).
- sillysaurusx 6y agoWho do we have to lobby to get nyan-mode into emacs mainline? Happy to send a recommendation email. Was surprised how high quality the repo is, too! https://github.com/TeMPOraL/nyan-mode https://github.com/TeMPOraL/nyan-mode It even has an accompanying blog post, which I found informative. http://jacek.zlydach.pl/blog/2011-08-25-introducing-nyan-mode-el-turn-your-emacs-into-nyanmacs.html http://jacek.zlydach.pl/blog/2011-08-25-introducing-nyan-mod... And even a Show HN. https://news.ycombinator.com/item?id=2906632 https://news.ycombinator.com/item?id=2906632
- ssivark 6y agoEmacs is best understood not just as an editor, but as an integrated computing environment promoting user freedoms to the fullest extent possible in a manner naturally integrated with its user interface and extensibility. In that sense, it shouldn’t be the least bit surprising to see the kind of in-built application suite one would expect from an operating system or desktop environment. One must also remember that historically the most common computer (power) users were academics, and not “software developers” — so expect a lot of scratches for their itches. It’s a bit like asking why does bash come with a utility like awk or bc; it’s equally natural.
- pjmlp 6y agoBecause awk and bc are UNIX programs that precede bash and are part of any POSIX certified UNIX, whereas bash is not. https://pubs.opengroup.org/onlinepubs/9699919799/ https://pubs.opengroup.org/onlinepubs/9699919799/
- vifon 6y agoThe manual actually answers this very question: https://www.gnu.org/software/emacs/manual/html_node/calc/History-and-Acknowledgments.html https://www.gnu.org/software/emacs/manual/html_node/calc/His...
- TeMPOraL 6y agoThanks for posting this. Not only it's an amazing story of scope creep, it also revealed a bunch of features I didn't know calc had (e.g. unit handling, arbitrary-size math).
- funkaster 6y agothanks for the reference! love the final acknowledgement in there: > Final thanks go to Richard Stallman, without whose fine implementations of the Emacs editor, language, and environment, Calc would have been finished in two weeks. :D
- worik 6y agoI often find it useful t do a calculation while I am editing. For example when I write a invoice I have to calculate taxes. I have not had to use the more advanced features. I did not know that they were there. Now I know, perhaps I do need them?
- melling 6y agoEmacs is a big Lisp interpreter. Elisp is the most popular Lisp in the world. Why wouldn’t you want to improve it?
- mschaef 6y ago> But why does emacs have that functionality? GNU Emacs is a 36 year old tool that's been targeted at programmers its entire life, is built on an interactive Lisp environment, and actively encourages external improvements and contributions. The more interesting question is why _wouldn't_ it have that functionality.
- a-nikolaev 6y agoA healthier approach is to have a separate non-Emacs app that can do symbolic integration, which can be run seamlessly from within Emacs. Otherwise, with all its extensions Emacs starts giving the impression of an Apple-like walled garden, which is not a good comparison for a free software, no?
- thotsBgone 6y agoHow is it a walled garden if it's free, open-source software?
- a-nikolaev 6y agoEmacs is its own ecosystem, you either buy it all, and grow to use it more and more, or don't get to use it all. So in a way it separates itself from the rest of Unix ecosystem.
- thotsBgone 6y agoOnly because much of what emacs does is cumbersome or impossible as regular software.
- a-nikolaev 6y agoa lock-in is a lock-in, even if with free software, it incurs certain costs on you, even if it provides convenience.
- ojnabieoot 6y agoIn general - developers use calculators all the time (most frequently via Google these days, but also via REPLs) so a dedicated calculator is a self-evidently useful widget for any editor. It’s is not essential fir a new editor in 2021 but considering emacs has had Calc for some time, it is worthwhile to make improvements to widely-used legacy software. Many emacs users have used Calc in lieu of alternative “developer calculators” like Octave, the R REPL, etc, so it’s not like Calc is an extraneous feature. It’s uncommon for developers to deal with integral equations in their day-to-day work. But it’s obviously not unheard of - integral equations show up naturally in many domains of finance and engineering. I’ve had to deal with numeric integration on .NET in one of my jobs. Sometimes an exact symbolic solution is easier for the developer and the CPU than a numeric technique, so for a small handful of developers a symbolic integral calculator is a handy (if somewhat specialized) tool, and not just some bell-and-whistle.
- legends2k 6y agoBecause enough of its users use it? I'm a graphics programmer and I use Emacs' in-built RPN calc for its linear algebra capabilities almost daily.