repl like interface with D app
Sameer Pradhan via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 16 11:43:24 PDT 2017
On Friday, 16 June 2017 at 07:57:46 UTC, Mike B Johnson wrote:
> I am developing a D app and I have a need to test things out. I
> do not want to have to recompile the app every time I want to
> test some functionality out.
>
>
> Suppose I have an app with some functions like foo, bar, etc...
> in some module m.
>
> I would like to be able to do basic stuff like
>
>> [...]
>
> or
>
>> [...]
>
> etc...
>
>
> This way I can write the functions, compile, then test them out
> without compiling.
>
> e.g.,
>
>> [...]
>
> which turns on the 34th light in the house, then
>
>> [...]
>
> which turns it off. This should take about 1-2 seconds to test
> RATHER than about 1m to do the compilation, running, etc.
>
> Having a history buffer would be nice too and even a debugger
> showing the basic state(nothing fancy).
>
> Anything like this out there. Lua has things like this that are
> very nice to do because they allow for quick testing and
> prototyping.
Please check out:
https://github.com/DlangScience/PydMagic/blob/master/README.md
I haven't used it myself, but fits right in the Jupyter/IPython
ecosystem.
--
Sameer
More information about the Digitalmars-d-learn
mailing list