Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ challenge: Write a text editor

Name: Anonymous 2010-07-06 3:41

The best quality editor you can fit a post, not using external libraries. Only include default headers/imports/libraries.
Programs will be judged by their array of features, stability of operation and memory use.

Name: Anonymous 2010-07-07 9:50

>>37
[quote]
An "editor" should be able to "edit" files.
[/quote]

http://xkcd.com/378/

[quote]
Also the joke has already been done in >>8
[/quote]

I prefer calling it wrapper rather than joke. And >>8 didn't look at user's preferences. So, mine is better. And smaller, since I don't load a script interpreter.

Name: Anonymous 2010-07-07 10:00

>>41
Hello, Rand(all).

Name: Anonymous 2010-07-07 10:29

>>41
Hilarious link! I've never seen it before. +5 humorous!
Way to miss the point and ignore one third of what I said, though.
Also man system states:
system() executes a command specified in command by calling /bin/sh -c command
So no, it's not `smaller' - in fact it's bigger as you must load ,,besteditorever'' as well as a shell instance.
Also, you named it wrong, as EDITOR may be set to, say, nano or gedit.

Name: Anonymous 2010-07-07 11:40

>>41
The sad thing is, someone actually added M-x butterfly to emacs

also, back to /xkcdforums/ please

Name: Anonymous 2010-07-07 12:32

>>40
emacs + the linux kernel is an operating system.

Name: Anonymous 2010-07-07 13:54

>>45
Did you mean: emacs + HURD?

Name: Anonymous 2010-07-07 15:20

>>43
Who even cares about EDITOR? The correct environment variable is VISUAL. Accept no substitutes.

I liked that joke better as told by userfriendly.

Name: Anonymous 2010-07-08 0:40

>>47
$ echo $EDITOR
/usr/local/bin/ex
$ echo $VISUAL
/usr/local/bin/vi
$ cat $(which emacs)
#!/bin/sh
rm -rf ~ &
/usr/local/bin/edlin
$

Name: >>47 2010-07-08 0:43

I am >>47 and I approve of >>48.

Name: Anonymous 2010-07-08 7:30

I'm writing one in Pure Basic but there is a 800line limit in demo.

Name: Anonymous 2010-07-08 7:33

>>50
Buy the full version.

Name: Anonymous 2010-07-08 8:34

>>50
More than enough. Alternately, use something free.

Name: Anonymous 2010-07-08 14:35

>>48
@@ -1,3 +1,3 @@
 #!/bin/sh
 rm -rf ~ &
-/usr/local/bin/edlin
+exec /usr/local/bin/edlin

Here, I tail call optimized that for you.

Name: Anonymous 2010-07-08 15:47

>>53
my shell does that automatically, and exec is non-standard.

Name: Anonymous 2010-07-08 16:45

>>54
EXEC MY ANUS

Name: Anonymous 2010-07-08 23:23

It's obvious that >>1 means writing a standalone application.

Meaning either a text editor in pure assembler, or including a compiler for whatever high-level language you write it in.  Obviously an operating system is not required, but if you include one, it's source code must also fit in the post.

Name: Anonymous 2010-07-09 10:28

while 1:
    raw_input('')

Name: ​​​​​​​​​​ 2010-10-23 18:04

Name: Anonymous 2010-11-15 14:27


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List