Earlier quoted context omitted.
Ok, I understand now. Thanks. This is a pretty common way to write C, though, it's not something specific to this particular codebase. You just had a non-standard use case where you were constantly running into low-level bugs. (In an embedded platform?) If you aren't in that domain anymore, it's worth revisiting the trade-off. In most domains, gdb's continue command is super useful.
No. Parent is correct. Writing code just to show how clever you are, at the expense of others who need to debug and understand it later, is poor taste.
Build Your Own Text Editor
121–130 of 164 posts
Re: Build Your Own Text Editor
#122Re: Build Your Own Text Editor
#123Great site, great presentation, thanks for digging into it with so much detail.
Re: Build Your Own Text Editor
#124Re: Build Your Own Text Editor
#125Earlier quoted context omitted.
I do, sort of. I bought a text editor a number of years ago that was very popular. I still maintain it and use it daily and have often thought about putting out a new version. I have it running on many OS's and devices now. I have also added a lot of features specific to what I wanted. I'm not really sure if they are useful to others or not. Example: I have an iPad version where I can use an Apple Pencil and handwrit…
Um... Can I use it too? That sounds amazing.
Committing to git currently works, push works, but sometimes says it fails. Still looking into this.
Color syntax highlighting works with your handwriting, but in the "worksheet" (an interactive shell) it does not yet.
Re: Build Your Own Text Editor
#126Here's one from the 1980s, which I still use and keep up to date: https://github.com/DigitalMars/me and translated to D: https://github.com/DigitalMars/med
Re: Build Your Own Text Editor
#127Earlier quoted context omitted.
Linus Torvalds also has his own version of MicroEmacs: https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git
I wonder if he still uses it?
Re: Build Your Own Text Editor
#128Here's one from the 1980s, which I still use and keep up to date: https://github.com/DigitalMars/me and translated to D: https://github.com/DigitalMars/med
Still use for occasional quick edits instead of vi/notepad or for proper, longer development tasks?
The first thing I do with a new system is port ME to it. I'll use vi to do what's necessary to get there (usually get ssh working so I can edit the files with ME on another machine).
I've worked out how to do syntax highlighting on it, but never got around to doing it.
Re: Build Your Own Text Editor
#129Here's one from the 1980s, which I still use and keep up to date: https://github.com/DigitalMars/me and translated to D: https://github.com/DigitalMars/med
Thanks for sharing. Seeing a working emacs clone that compiles to a 66k executable is pretty awesome.
Back in the 80s, I handled configuration by having ME directly patch the ME executable. (This was a trick I learned from the old ADVENT Fortran game.) It was marvelously simple and bulletproof to do that.
Unfortunately, programs that patched their own executables became huge no-nos as malware took off, and I had to abandon that.
Re: Build Your Own Text Editor
#130Earlier quoted context omitted.
Thanks for sharing. Seeing a working emacs clone that compiles to a 66k executable is pretty awesome.
Another thing to like is it has no configuration files. This mattered a great deal in the DOS days because floppies were so slow! But even today, who wants to futz with such? If it needs configuring, I just tweak the code and recompile it. Back in the 80s, I handled configuration by having ME directly patch the ME executable. (This was a trick I learned from the old ADVENT Fortran game.) It was marvelously simple and…