Scott P. Jones

Results 114 comments of Scott P. Jones

:+1: to doing this for 0.4, but maybe just for scalar values... I'd be concerned about large arrays, esp. when they get totally filled up immediately after getting allocated (as...

Ah, spoke too soon :sad: @sbromberger 's idea is exactly what I'd want... some way of telling Julia that the Array{Uint8,1)(100000000) I just allocated is "raw".

@stevengj My data was probably seriously out of date :wink: I'd benchmarked exactly this issue over 20 years ago... had serious slowdowns when doing large allocations... Keyword in what you...

I'm concerned about the performance issues (remember, you'd need to deal with `realloc` as well, not just `calloc`), but if that were shown to be minor, I think it is...

FWIW, I agree with a lot of these points, that having zeroing memory guaranteed (even with an escape clause) doesn't always make sense and can lead to subtle bugs, and...

A long is typically 32 bits on 32-bit C/C++ platforms.

Wow!!! I do totally agree with Stefan here! 🐍 case rules!

@kevinsung Part of the issue is also performance - calculating abs() on a complex number involves doing sqrt(r**2 + i**2). If the square of EQ_TOLERANCE is calculated once, then you...

The addition only happens if both the real and imaginary parts are < the tolerance. The current code always has 3 calls to abs() and 3 comparison/branches, where the 3rd...

@tbreloff I think there are already, in the very nice `Formatting.jl` package, the sorts of explicit formatting, all spelled out with keyword arguments, that you want. I was trying to...