Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

pure? Is nano not pure enough?


Too bloated. The ultimate goal will be "planck" with zero lines of code. :-)


Such 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.


I feel the urge to post an xkcd here. https://xkcd.com/378/


?


It seems like the author is trying to say "no dependencies other than libc, not even ncurses".


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 … 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


>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.


I 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.


I'm usually not one who complains about bloat, but I think this does not meet expectations set by the name "nano".


Keep 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.


Indeed, one would expect it to be 1000 times bigger than pico. At 3 MB that's even plausible...


And “Pico” is the message composing editor originally written for the “Pine Is Not Elm” email client.


I 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.


Nano has syntax highlighting?!


Nano 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.


First 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.


yes. and you can turn it off with passing option:

-Y none

or:

—-syntax=none


UNIX libc, as it depends on POSIX stuff.


cool, maybe, like to sharpen C skills with a side project ?


We call that vim




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: