Dack

Description

Dack is Ack(grep-like tool)-like tool.

From Ack website:

ack is a tool like grep, aimed at programmers with large trees of heterogeneous source code.

Dack have similar goal, but is written in D programing language. Advantages are:

  • no perl or some custom perl libraries dependencies
  • should be faster because D is almost as fast as plain C
  • source is simple and easy to hack
$ ldd dack
linux-gate.so.1 =>  (0xb7f59000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7f1f000)
libm.so.6 => /lib/libm.so.6 (0xb7efa000)
libc.so.6 => /lib/libc.so.6 (0xb7dc4000)
/lib/ld-linux.so.2 (0xb7f5a000)

Current state

I'd say it is still alpha, but it is usable now. Code base is very short and easy to understand and change. Patches are always welcome.

Usage

Currently it is only:

dack [--print0] [regex [path [path ...] ] ]

but will change in the future.

Development

Repository

You can obtain Dack's git repository using:

git clone http://repo.or.cz/r/dack.git dack-git

Use git web interface to browse source repository.

Environment

You need decent D compiler (most probably DMD) and Tango library to compile dack.

Download

There is no release yet. I will release some stable snapshots in the future.


Feel free to comment

Add a new comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License