[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#360357: ITP: diff1 -- compares file's actual state with file's desired state



Jay Berkenbilt dijo [Sat, Apr 01, 2006 at 09:00:45AM -0500]:
> * Package name    : diff1
>   Version         : 0.4.1
>   Upstream Author : April Furst
> * URL             : http://www.diff1.net/
> * License         : GPL, `diff1 -u GFDL | patch`
>   Description     : compares file's actual state with file's desired state
> 
> diff1 is a special version of diff that takes only one file as an
> argument.  diff1 then compares the file's present state with the
> file's desired state and reports any differences in the same format as
> the regular diff command, suitable for input to the patch program.
> 
> diff1 is very useful for correcting writing and, when used with source
> code, can be extremely useful for correcting bugs.  diff1 works best
> when its input is close to correct, but in a pinch, diff1 can be used
> to create complete original works if given an empty file as an
> argument.
> 
> At this point, diff1 is still under development and depends upon the
> utm (Universal Truth Machine) and dwim (Do What I Mean) libraries.
> The eventual goal is that diff1 should be "self-hosting" -- the final,
> bug-free version of diff1 will be generated by running diff1 on its
> own sources, at which point it will be finished and will be able to
> determine the correct answers to all questions that can be expressed
> using written language.

As a simple demonstration:

$ echo 'why?' | diff1 
@@ -1 +1 @@
-why?
+42

Greetings,

-- 
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF



Reply to: