15 releases (5 breaking)

0.6.0 Feb 27, 2023
0.5.3 Jan 30, 2023
0.4.2 Dec 20, 2022
0.4.1 Oct 31, 2022
0.1.0 Sep 10, 2022

#185 in Unix APIs

Download history 7/week @ 2022-11-21 3/week @ 2022-11-28 5/week @ 2022-12-05 11/week @ 2022-12-12 35/week @ 2022-12-19 3/week @ 2023-01-02 6/week @ 2023-01-09 28/week @ 2023-01-16 12/week @ 2023-01-23 103/week @ 2023-01-30 74/week @ 2023-02-06 69/week @ 2023-02-13 15/week @ 2023-02-20 19/week @ 2023-02-27 1/week @ 2023-03-06

104 downloads per month

GPL-2.0-only

40KB
253 lines

License Lines of code GitHub repo size

dt

It's duct tape for your unix pipes. Use it when you don't have a better tool.

In the words of Red Green:

Remember, it's only temporary... unless it works!

For pipes:

$ echo -e "3\n2\n1" | dt rev pls
1
2
3

$ alias scream-lines="dt [upcase words unlines] map pls"
$ echo "hey you pikachu" | scream-lines
HEY
YOU
PIKACHU

Running as an interactive shell:

dt is an experimental concatenative programming language.

$ dtsh
dt 0.6.0

> 1 1 + print
2

> [[ n ]: n print " " print n 2 *] [print-and-double] def

> 1 [print-and-double] 7 times
1 2 4 8 16 32 64 

> [[false] ["bye"] [true] ["hi"]] opt println
hi

Installation

$ cargo install dt-tool
$ dtup bootstrap

Credits

Shared under GPL v2.

A side quest of J.R. Hill | https://so.dang.cool | https://github.com/hiljusti

Dependencies

~6–12MB
~244K SLoC