4 ms·
pure? Is nano not pure enough?
by mogoh 3y ago
pure? Is nano not pure enough?
- tekla 3y agoWe call that vim
- deleted 3y ago[deleted]
- nittanymount 3y agocool, maybe, like to sharpen C skills with a side project ?
- tyingq 3y agoIt seems like the author is trying to say "no dependencies other than libc, not even ncurses".
- lovelyviking 3y agoI decided once to recompile nano on mac os because it has some bug or some color missing. I don’t remember why exactly but I do remember a lot of trouble with dependencies … and then my impression was that this tiny editor - is a monster. It is of course depends with what you compare but still it was shockingly bigger then I was prepared/wanted to see
- schemescape 3y agoI was shocked to discover that the source code distribution for GNU nano is over 3 megabytes. To be fair, it also has more features than I expected, e.g. syntax highlighting. And I’m sure it runs on an obscene number of platforms.
- The_Colonel 3y agoI'm usually not one who complains about bloat, but I think this does not meet expectations set by the name "nano".
- chungy 3y agoKeep in mind that nano's name is derived from the fact it's a clone of pico, and things might start to make more sense. GNU nano's name is a play on words, not a statement about its size.
- cozzyd 3y agoIndeed, one would expect it to be 1000 times bigger than pico. At 3 MB that's even plausible...
- erik_seaberg 3y agoAnd “Pico” is the message composing editor originally written for the “Pine Is Not Elm” email client.
- gray_-_wolf 3y agoI mean, 300kB is just the changelog and >1MB is configure script... Translations take up a lot as well. I am not arguing nano is pinnacle of minimalism, but it is not like it's 3MB of C code.
- FredPret 3y agoNano has syntax highlighting?!
- lovelyviking 3y agoyes. and you can turn it off with passing option: -Y none or: —-syntax=none
- matteoraso 3y agoNano has a surprising amount of features. I actually use it as my main text editor, and I rarely find myself lacking anything I could possibly want. Off the top of my head, it has the ability to run 3rd party code, a file browser, autoindenting, linting, macros, and a rudimentary autocomplete. A lot of it's reputation for being weak comes from bad defaults, which can be quickly fixed by ricing your nanorc file.
- FredPret 3y agoFirst time I heard about nanorc! There’s something really cool about Nano. It’s almost everywhere, it’s super simple, but doesn’t have bonkers key combos like vi and emacs.
- matteoraso 3y ago>I decided once to recompile nano on mac os because it has some bug or some color missing. I don’t remember why exactly but I do remember a lot of trouble with dependencies Apple is weird about nano. By default, it uses Pico when you try to use nano, which is the text editor that nano is based off of. It seems to be because of concerns over the GPLv3, but the switch isn't made clear to the user, which is pretty deceptive.
- pjmlp 3y agoUNIX libc, as it depends on POSIX stuff.
- queuebert 3y agoToo bloated. The ultimate goal will be "planck" with zero lines of code. :-)
- thechao 3y ago?
- kuroguro 3y agoI feel the urge to post an xkcd here. https://xkcd.com/378/ https://xkcd.com/378/
- tczMUFlmoNk 3y agoSuch an editor will be written in HQ9E+, my fork of HQ9+ with the following semantics: H: prints Hello, World! Q: prints the program's source text 9: prints the lyrics to 99 Bottles of Beer on the Wall E: behaves like a nano-like text editor +: increments the accumulator A transparent preprocessor can of course be used to add the necessary "E" to the empty source as part of the build step.
- deleted 3y ago[deleted]