Re:Why Emacs has buffers
by jasim on Tuesday June 07, 2022 @06:28AM
(#31652148)
The C source for Emacs buffer: https://github.com/emacs-mirror/emacs/blob/master/src/buffer...
[ Parent
| on HN ]
Re:Why Emacs has buffers
by corpMaverick on Tuesday June 07, 2022 @11:14AM
(#31655578)
6,477 LOCs.
A wasted an opportunity to implement it using 7 or 8 microservices.
Re:Why Emacs has buffers
by thow34wqway on Tuesday June 07, 2022 @11:53AM
(#31656143)
I think this is sarcasm. But talking to proponents of microservices I am not sure. Can you confirm please
Re:Why Emacs has buffers
by corpMaverick on Tuesday June 07, 2022 @12:19PM
(#31656571)
Haha. It is.
But looking at the code made me think how we are capable of shipping software products that are hundred of thousand of lines of code and then we have people trying to break things some much and we end up in a spaghetti of microservices and their connections.
Re:Why Emacs has buffers
by Saint_Genet on Tuesday June 07, 2022 @09:24AM
(#31653910)
Nice to see that some code I wrote almost 15 years ago is still in use
For some extra fun, click on "Blame" and look at the age of commits on individual lines.
Pretty neat for a piece of software that's been around for 37 years.
Re:Why Emacs has buffers
by 8organicbits on Tuesday June 07, 2022 @08:53AM
(#31653499)
The git history goes quite far back too. The first version and the current version look quite different.
https://github.com/emacs-mirror/emacs/commit/1ab256cb9997cf1...
I find the Emacs source code pretty nicely structured and easy to understand (the good commenting helps), especially for something so old.
I certainly agree as far as ELisp code is concerned, but I don’t think it’s true when it comes to the C part.
I’m referring to the C part. What makes you think it’s not well structured?
Re:Why Emacs has buffers
by wodenokoto on Tuesday June 07, 2022 @09:38AM
(#31654109)
I thought eMacs was lisp.
Re:Why Emacs has buffers
by marcus0x62 on Tuesday June 07, 2022 @09:43AM
(#31654191)
Depends on the Emacs, but GNU Emacs has a low-level core written in C with most high-level functionality implemented in various Elisp packages.
And to clarify, in Emacs "move the cursor forward one paragraph" or "kill (~cut) this text" counts as high-level functionality.
Re:Why Emacs has buffers
by marcus0x62 on Tuesday June 07, 2022 @02:39PM
(#31658424)
Sure, I meant things like interfacing with the OS, the Elisp interpreter itself, performance-sensitive tasks like redisplay, etc.
No, those were just slightly bigger iMacs.
Re:Why Emacs has buffers
by wodenokoto on Wednesday June 08, 2022 @07:33AM
(#31665838)
Ah, that's why my iphone insists on upper casing the M