I played with some code along these lines a few weeks ago, available here:

https://github.com/ihnorton/HackThatBase.jl

See description:
https://groups.google.com/d/msg/julia-dev/_l1clO6racs/amdTrdlzgY4J


So far I've only used this with inference, I doubt it will work for the
REPL code without significant modifications. I don't think I got
multiple-reload-per-session working yet either, but restarting Julia is
still much faster than rebuilding the system image.

On Sun, Feb 22, 2015 at 8:33 AM, <[email protected]> wrote:

> Hi,
>
> Is it possible to copy code from the base directory, modify it, and reload
> it ? I suppose this depends on exactly what you want to do. I have modified
> REPL.jl. At present, the only way I know how to use this is to build Julia.
> There is the added complication that the modified version would have to be
> loaded before the REPL is initialized. With some smaller bits of code from
> other files, I can get what I want by qualifying the names and maybe
> 'using' some modules (IIRC). But, the modifications to REPL are not well
> localized.
>
> If I just do
> include("REPL.jl")
> the first error, I get is UndefVarError: Terminals not defined
>
> The reason I want to do this is to make the symbolic Julia code easier to
> use. At present, you either wrap every line in a macro, or download and
> build Julia, with the only modification being in REPL.jl.
>
> --John
>
>

Reply via email to