[IPOL discuss] The Hatchery: an informal index of available code within our community.

Nicolas Limare nicolas.limare at cmla.ens-cachan.fr
Mon Sep 26 21:30:04 CEST 2011


> The ease of use from the programmer's side is always paid with
> complexity in the library itself. Although "if (I[i] < th) I[i] = 0"
> is appealing

This thresholding example is the perfect occasion to introduce my
latest joke project, cclambda. With cclambda, everything is in
the command-line!

  ./cclambda - "(A < .5 ? 0 : A)" < data/lena.png > out.png

And you can compose multiple one-liners with shell pipes.

> I wonder how many thousands lines of code are required
> to achieve that level of abstraction.

123 lines of C code, 22 lines for the shell wrapper (plus the 800 lines
for io_png, plus libpng, of course).

> It is a dangerous path, which led many us to considerable headaches
> in the past.

I don't want cclambda to give headaches to anyone. It's an
über-experimental joke project dumped from my brain in an
afternoon. Don't use it!

-- 
Nicolas LIMARE - CMLA - ENS Cachan    http://www.cmla.ens-cachan.fr/~limare/
IPOL - image processing on line                          http://www.ipol.im/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://tools.ipol.im/mailman/archive/discuss/attachments/20110926/951abe01/attachment.pgp>


More information about the discuss mailing list