Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Aug 18, 2015
  1. @jakebolewski
Commits on Jul 21, 2015
  1. @JeffBezanson
Commits on Jul 17, 2015
  1. @vtjnash

    reimplement require/include to better support precompilation

    vtjnash authored
    the codepaths through these methods were not particularly amenable to adding incremental precompilation.
    the problem is that the cache-load code paths need to be mirrors of their non-cache counterparts.
    this minimizes the code paths to running "include" to one, and similarly for "reload"/"require"
    those are now limited to only handling module names (symbols), rather than arbitrary paths
    
    this also fixes a number of issues with the incremental serializer that
    have snuck in over time.
  2. @vtjnash

    forward the exit status to the atexit hook, so it can avoid recursing…

    vtjnash authored
    … as much (or call ing julia_save) during the error case
  3. @vtjnash
Commits on Jul 15, 2015
  1. @vtjnash

    make two copies of sys.dll, linked against both libjulia and libjulia…

    vtjnash authored
    …-debug
    
    loading the wrong one will probably cause a segfault pretty quickly. this fixes the win32 debug build
Commits on Jul 13, 2015
  1. @Keno
Commits on Jul 7, 2015
  1. @jakebolewski

    Add cmdline switch to convert deprecation warnings to errors

    jakebolewski authored
    This makes it easier to catch mistaken use of deprecated functionality
    in test suites.
Commits on Jun 30, 2015
  1. @JeffBezanson

    fix trailing whitespace

    JeffBezanson authored
  2. @JeffBezanson
Commits on Jun 22, 2015
  1. @JeffBezanson
Commits on Jun 12, 2015
  1. @vtjnash

    reserve the low 4GB (32-bit) address space in the win64 debug build, …

    vtjnash authored
    …to help catch pointer cast errors
Commits on Jun 9, 2015
  1. @JeffBezanson
Commits on May 28, 2015
  1. @JeffBezanson
  2. @JeffBezanson
Commits on May 27, 2015
  1. @JeffBezanson
  2. @tkelman

    Explicit casts for MSVC

    tkelman authored
    Cast to (char*) for MSVC
Commits on May 25, 2015
  1. @JeffBezanson
Commits on May 20, 2015
  1. @vtjnash @ihnorton

    remove all platform-specific code from Core.Inference and further shr…

    vtjnash authored ihnorton committed
    …ink its size
  2. @vtjnash @ihnorton
Commits on May 19, 2015
  1. @tkelman

    Remove .bat files from contrib/windows

    tkelman authored
    echo.bat probably never did anything, since libuv can't spawn bat files
    prepare-julia-env.bat is redundant since we now have contrib/build_sysimg.jl
    
    (too weird to live, and too rare to die)
Commits on May 12, 2015
  1. @vtjnash
Commits on May 3, 2015
  1. @tkelman

    Manual license header fixup

    tkelman authored
    [ci skip]
Commits on Apr 14, 2015
  1. @mlubin
Commits on Apr 7, 2015
  1. @nalimilan

    Use CXXFLAGS when calling CXXLD

    nalimilan authored
    Closes #10212.
Commits on Apr 2, 2015
  1. @jakebolewski

    terminate argument parsing on --

    jakebolewski authored
    encountering a -- terminates getopt option parsing
    and the rest of the options are part of ARGS
    
    closes #10226
Commits on Mar 25, 2015
  1. @ihnorton

    Remove --int-literals option

    ihnorton authored
Commits on Mar 20, 2015
  1. @vtjnash @JeffBezanson

    hide the julia type pointer from the struct jl_value_t definition

    vtjnash authored JeffBezanson committed
    this makes references to types allocated in Julia recursively forward compatible with C structs
Commits on Mar 9, 2015
  1. @amitmurthy
Commits on Mar 6, 2015
  1. @amitmurthy
Commits on Feb 22, 2015
  1. @ihnorton
Commits on Feb 21, 2015
  1. @jakebolewski

    Parse all command line options in repl.c

    jakebolewski authored
     - consolidate all compiler / cmdline options into jl_options_t struct in julia.h
    
     - add options.jl to base/ with an immutable type JLOptions that
       reflects the jl_options_t struct
    
     - add --procs=<n> command line flag (equivalent to -p <n>)
    
     - add --history-file={yes|no} and --startup-file={yes|no} cmdline opts
    
     - --worker command line arguments changed to --worker,
       --worker=default, or --worker=custom
    
     - deprecate -f, -F, --no-startup, --no-history-file cmdline flags
    
     - add tests for cmdline arguments in test/cmdlineargs.jl
    
     - modify test/Makefile and tests to use long command line option,
       add command line argument tests to runtests.jl
    
     - update relevant docs in the manual and manpages
Commits on Feb 10, 2015
  1. @samoconnor

    Refinement per @vtjnash comments.

    samoconnor authored
    Make uv_write() a function (was a macro) and do c_free in "finally" clause.
    
    Explicit null-termination in jl_safe_printf() to allow for win32's
    non-posix vsnprintf behaviour. See also #9624.
    
    Use jl_safe_printf() in profile thread.
    
    Send help message to jl_printf(JL_STDOUT,)  was stderr.
  2. @samoconnor

    Refactor to reduce dependancy on ios.c

    samoconnor authored
    Rationale:
    
        Unravel ios.c’s legacy role as debug io library for the runtime;
        vs current role as backend for iostream.jl.
    
    Clean up historical debug printf functions:
    
        Replace calls to ios_printf(), ios_puts(), JL_PRINTF, JL_PUTS etc
        with jl_printf(), jl_puts()...
    
        Replace exit() with jl_exit() in repl.c, dump.c and init.c.
    
    Make jl_printf() and jl_exit() safe in early initialisation.
    
    Remove ios.c dependance from ast.c and builtins.c:
    
        src/flisp/flisp.c:
    
            New fl_load_system_image_str(char*, size_t)
            Hides detail of ios_static_buffer from ast.c
            ios_* no longer used in ast.c.
    
        src/builtins.c
    
            In jl_errorf(), replace ios_vprintf() with vasprintf()
            (following the precedent set by src/jl_uv.c:663).
    
    Use free() not LLT_FREE() to clean up after vasprintf() in jl_uv.c:
    
        man vasprintf says “asprintf() and vasprintf() dynamically
                            allocate a new string with malloc(3)”
    
    Refactor pairs of calls to jl_printf() & jl_exit(1) into calls to
    jl_error[f](), which does the same thing during early init.
    
    Dead code removal:
    
        jl_uv.c: jl_bufptr(), jl_ios_buf_base(), jl_putc(), jl_pututf8()
        sys.c: jl_ios_size()
    
    New jl_safe_printf().
    
    jl_safe_printf() uses a statically allocated 1000 byte buffer to
    vnsprintf() a message then calls write(2) to send it to stderr.
    
    jl_safe_printf() is intended to be used in places where there is the
    potential for out of memory, corrupted stack, re-entrancy etc.
    
    The current jl_safe_printf() implementation is not 100% safe in all
    situations, but it should be pretty good most of the time, especially
    if the formatting is limited to %d.
    
    The safety of jl_safe_printf() could be improved later, but at least
    for now the places were safety might matter are identified by its use.
    
    jl_safe_printf() is used in:
    
     - sigdie_handler()
     - sigint_handler()
     - _exception_handler()
     - catch_exception_raise()
     - gdblookup()
    
    Thanks to @vtjnash for assistance and feedback with these changes.
    
    Dead code cleanup & jl_write() simplificaiton.
    
    Clean up dead code:
        stream.jl : write!() — My apologies if this is used somewhere, I
    could’t find any doc or callers.
        builtins.c : jl_print_symbol(), jl_print_int64()
        ccall.cpp : if(0 …) jl_puts()
        jl_uv.c : jl_puts
    
    Replace 2 remaining calls to jl_puts() with calls to jl_printf() for
    consistency.
        builtins.c : jl_error()
        repl.c : true_main()
    
    Move jl_uv_writecb() implementation from stream.jl to jl_uv.c.
    This callback is only used by jl_write(),
    which is only called from jl_vprintf() in runtime C code.
    This helps to de-tangle fs.jl and stream.jl from the runtime's printf().
    
    Use jl_safe_printf() to attempt error message output in jl_uv_writecb().
    If this callback is printing an error, there was a problem writing to
    JL_STDOUT or JL_STDERR, so its best to try the simpelest means possible
    to get the error out.
    
    update doc/devdocs/stdio.rst to remove reference to:
        jl_write(), jl_putc(), jl_puts().
    
    Simplify handling of STDOUT and STDERR early in initialisation:
        Instead of calling fwrite(), just call uv_default_loop() to get the
        jl_io_loop and then call jl_fs_write as usual.
        This means that all jl_printf()s now go through uvlib.
        There is a chance that this won’t work in win32, AppVeyor will tell...
    
    Remove C interface for single character writes:
    
     - jl_fs_write_byte()
     - jl_putc_copy()
     - jl_pututf8_copy()
    
    Hadnle single character writes in Julia:
    
     - write(f::File,        c::UInt8) = write(f, [c])
     - write(s::AsyncStream, b::UInt8) = write(s, [b])
     - write(s::AsyncStream, c::Char)  = write(s, string(c))
    
    Rationale:
    
     - Writing to a libuv stream involves: "Julia does C malloc, Julia calls C,
       C calls libuv, libuv calls C callback, C callback calls julia hook,
       C callcback does c_free". Having less special cases of this makes
       it easier to reason about correctness.
    
     - Whatever overhead there might be in creating the temporary 1
       element array (or string); it is small compared to all the
       machinery in libuv, and the OS that actually makes the single
       character write happen.
    
     - If a user is doing single character writes to a libuv stream,
       they either don’t care about performance, or they should be
       buffering in Julia before calling write().
    
    Inline jl_write_copy() into only remaining called: jl_write():
    
     - This is now the only place that needs to know about the
       trick used to store a copy of the output string after the
       request struct (i.e. malloc(sizeof(uv_write_t) + n));
    
    Removed dead code:
     - stream.jl : make_stdout_stream()
     - stream.jl : jl_write_copy()
    
    Rename:
     - jl_write_no_copy() -> jl_uv_write()
    
    Move common code from stream.jl write() functions into uv_write macro:
     - ccall to jl_uv_write() (was jl_write_no_copy).
     - wait for current task
    
    Simplify uv_write memory management:
    
    Try to keep all the state management in one place (in macto uv_write()).
    
    Move free() of uv_write_t request object
    from C callback jl_uv_writecb_task() to macro uv_write().
    This puts the malloc() and the free() in the same place.
    
    Move uv_req_set_data(uvw,C_NULL) from C jl_uv_write() to macro
    uv_write().
    In _uv_hook_writecb_task() assert that uv_req_data(req) is not NULL.
    libuv should not call the callback from within the call to uv_write(),
    libuv has an internal “write_completed_queue” that is pumped by the main
    loop.
Commits on Jan 25, 2015
  1. @vtjnash
Something went wrong with that request. Please try again.