Steven G. Johnson

Results 172 issues of Steven G. Johnson

Currently, keyboard interrupts are deferred during execution of Python code, since CPython is not interrupt-safe. It would be nice to catch these interrupts and set a `KeyboardInterrupt` Python exception so...

enhancement

Your code uses `x .-= y`, so you should know that in Julia 0.5 this has changed meaning to be equivalent to `broadcast!(identity, x, x .- y)`, so that it...

You wrote: ![image](https://cloud.githubusercontent.com/assets/2913679/10983771/9d7da72c-83e2-11e5-9c62-fd56738403ed.png) However, for such a small transform, you're seeing a lot of overhead in `fft(a)` from setting up the FFT plan, setting up the trig tables, etcetera. To...

This PR adds and exports a new function `hascodepoint(c::AbstractChar)` which returns whether or not `codepoint(c)` will succeed. It then uses this function before several calls to `codepoint(c)` or `UInt32(c)` instead...

domain:unicode
status:DO NOT MERGE

`Meta.parse(repr(Char(0x110000)))` fails because ```jl julia> show(Char(0x110000)) '\U110000' ``` but `'\U110000'` is not parseable: ```jl julia> '\U110000' ERROR: ParseError: # Error @ REPL[17]:1:2 '\U110000' #└──────┘ ── invalid unicode escape sequence ```...

domain:unicode
parser
domain:display and printing

https://github.com/stevengj/HCubature.jl implements the Genz-Malik algorithm in pure Julia for arbitrary dimensionalities.

As noted [on discourse](https://discourse.julialang.org/t/in-numerical-computation-how-could-increasing-the-number-of-bits-of-precision-decrease-accuracy/91600/5?u=stevengj), the `roots` function seems to return bogus roots, which are all nearly identical, for some polynomials. It happens pretty often for me if you just randomly...

Nowadays the Tk backend works pretty well and is available everywhere. Maybe we should just use it (or the Agg backend for non-interactive code) and drop support for all of...

I notice that you are still using `findn`, which was deprecated in Julia 0.7 and removed in Julia 1.0 (https://github.com/JuliaLang/julia/pull/25532) here: https://github.com/seung-lab/RealNeuralNetworks.jl/blob/3d66e68897fe52b1526d1983fd1252cd4563f6be/src/NodeNets.jl#L670 https://github.com/seung-lab/RealNeuralNetworks.jl/blob/3d66e68897fe52b1526d1983fd1252cd4563f6be/src/NodeNets.jl#L725 You probably want to replace this with...

Would be nice to add `Base.writemime` methods (see the new [multimedia I/O](http://docs.julialang.org/en/latest/stdlib/base/#multimedia-i-o) mechanism) to export standard image types (e.g. `image/png`), not to mention `application/dicom`.