rc is a thing of beauty.
apologies for HTML in the previous message.
On Wed, Mar 1, 2017 at 1:10 PM, erik quanstrom wrote:
>> while (true)
>> if ($watch)
>> while (!$cmd)
>> $watch || true
>
> rc allows empty conditionals, which are true.
>
> - erik
>
> i believe that rsc worked this out in some work he did based on venti.
> sadly i don't remember the name of the project.
I believe you're referring to Foundation.
https://swtch.com/~rsc/papers/fndn-usenix2008.pdf
--
David du Colombier
On Mon Feb 27 14:17:49 PST 2017, charles.fors...@gmail.com wrote:
> I think venti could deal with it: Rwrite returns a score, Tread provides a
> score, and the caller typically uses it as an opaque value. If not, whether
> a different sha1 is returned or a new algorithm is used, the caller could
>
> while (true)
> if ($watch)
> while (!$cmd)
> $watch || true
rc allows empty conditionals, which are true.
- erik
runs build upon file change, repeats on failure
#!/usr/bin/env rc
flag e +
cmd = ( $* )
watch = ( inotifywait -q --recursive -e modify -e moved_to -e create -t 3 .
)
while (true)
if ($watch)
while (!$cmd)
$watch || true