RejectedSoftware Forums

Sign up

Auto Re-Compile

I was reading that it's possible for vibe to automatically recompile
files on change, but I can't find any documentation on how to enable it.
Any hints? (I could do it with inotifywatch and some shell trickery but
if it's already builtin...)

Also I am using dub, but compile times are enourmus for just a few
files, anything I can do to improve this?

Re: Auto Re-Compile

On Sun, 12 May 2013 14:11:29 +0200, David wrote:

I was reading that it's possible for vibe to automatically recompile
files on change, but I can't find any documentation on how to enable it.
Any hints? (I could do it with inotifywatch and some shell trickery but
if it's already builtin...)

This is unfortunately still not fully implemented. It's supposed to be part of the vibedist project, but development has stalled for a while in anticipation of the new std.process. I'll probably resume work on it when DMD 2.063 is out (if that contains the new process module).

Also I am using dub, but compile times are enourmus for just a few
files, anything I can do to improve this?

You can use "dub --rdmd" to use rdmd for building. Depending on the project this can make a big difference (in both directions, though). It's also possible that the build process will be improved considerably if/when DMD gets support for automatic fetching of dependencies and receives bug fixes for partial compilation.

Re: Auto Re-Compile

This is unfortunately still not fully implemented. It's supposed to be

part of the [vibedist project][1], but development has stalled for a
while in anticipation of the new std.process. I'll probably resume
work on it when DMD 2.063 is out (if that contains the new process module).

Then this should probably get removed from the frontpage (if that is
"Startseite" in english...). Got quite annoyed when I found out, that
this doesn't even work (one of the reasons I even considered going away
from flask)

Thanks for the answer!

Re: Auto Re-Compile

Am 12.05.2013 20:05, schrieb David:

This is unfortunately still not fully implemented. It's supposed to be
part of the [vibedist project][1], but development has stalled for a
while in anticipation of the new std.process. I'll probably resume
work on it when DMD 2.063 is out (if that contains the new process module).

Then this should probably get removed from the frontpage (if that is
"Startseite" in english...). Got quite annoyed when I found out, that
this doesn't even work (one of the reasons I even considered going away
from flask)

Thanks for the answer!

Ah regarding auto-compile: https://gist.github.com/Dav1dde/5564367
Not great but works

Re: Auto Re-Compile

On Sun, 12 May 2013 20:05:19 +0200, David wrote:

Then this should probably get removed from the frontpage (if that is
"Startseite" in english...). Got quite annoyed when I found out, that
this doesn't even work (one of the reasons I even considered going away
from flask)

Thanks for the answer!

Just in case - he refers to "Integrated load-balancing" part which currently promises a bit more than is actually shipped :)
It should be either removed or modified, false advertising is bad for reputation.

Re: Auto Re-Compile

Am 13.05.2013 09:34, schrieb Dicebot:

On Sun, 12 May 2013 20:05:19 +0200, David wrote:

Then this should probably get removed from the frontpage (if that is
"Startseite" in english...). Got quite annoyed when I found out, that
this doesn't even work (one of the reasons I even considered going away
from flask)

Thanks for the answer!

Just in case - he refers to "Integrated load-balancing" part which currently promises a bit more than is actually shipped :)
It should be either removed or modified, false advertising is bad for reputation.

I agree, the original intention was to have vibedist working soon after
the initial release, so I left the feature description there. But then
the new std.process entered the game (and then, like almost every
improvement, took almost 1.5 years to become reality*) and I forgot
about it.

Anyway, I've added a footnote now that clarifies the status.

* Very nice to see that the pull request has finally been merged since
a few days!

Re: Auto Re-Compile

On Mon, 13 May 2013 10:29:23 +0200, Sönke Ludwig wrote:

...

Now that new std.process get released are you going to return to vibedist implementation?

Re: Auto Re-Compile

Am 13.05.2013 12:53, schrieb Dicebot:

On Mon, 13 May 2013 10:29:23 +0200, Sönke Ludwig wrote:

...

Now that new std.process get released are you going to return to vibedist implementation?

Yes, not sure of the pace, though... but there is not much left to do to
get a basic version working as far as I remember.