Re: [julia-users] Linear convolution

2014-03-04 Thread Tobias Knopp
This depends a lot on the input sizes. For full length convolutions, the fft approach should be more accurate because of less additions. For very short kernels this does not hold anymore. But in practice these kinds of errors are mostly negligable. Am Dienstag, 4. März 2014 16:42:33 UTC+1

[julia-users] Re: Unexpected type behaviour in arithmetic operations

2014-02-28 Thread Tobias Knopp
There was quite some discussion on this topic in https://groups.google.com/forum/?fromgroups=#!searchin/julia-users/Int32/julia-users/Rte_I6htLRc/VJG5DWVcZbQJ I had the feeling that we almost convinced Stefan :-) The good thing is that Array{Int32} operations do not promote to Array{Int64}. But

[julia-users] Re: module scoping and package options

2014-02-27 Thread Tobias Knopp
Should the user be able to specify the option in code? Winston has an ini file that is parsed on load. Otherwise it should be possible to solve this using global variables.

[julia-users] Re: Row major data/algorithm

2014-02-23 Thread Tobias Knopp
Similar issues arise for the sparse matrix which currently is CSC while CSR would be needed in my application. Is there some deeper discussion on the data order I have missed (I have search the ML and Github)? I know that column major order comes from the Matlab background. But in this regards

Re: [julia-users] Row major data/algorithm

2014-02-23 Thread Tobias Knopp
Cool. When having CSR it would be similar useful to have regular row major order arrays.

[julia-users] Row major data/algorithm

2014-02-22 Thread Tobias Knopp
I am converting some algorithms from Python/Numpy to Julia and have no idea how to handle that Julia arrays are column major. I have a matrix on disk (very large 10GB) and it is stored row major. This is the natural representation in my application. Now I want to solve a linear system of

Re: [julia-users] Re: enum data type

2014-02-20 Thread Tobias Knopp
Am Mittwoch, 19. Februar 2014 17:52:12 UTC+1 schrieb Stefan Karpinski: Yeah, I pretty much agree with all of this. Once field access is overloadable, we can just create a Direction type and define (automatically) the following methods: getfield(::Type{Direction}, ::Field{:NORTH}) =

Re: [julia-users] Re: enum data type

2014-02-19 Thread Tobias Knopp
Yes it would be nice if it would be its own type and if we would have an abstract type Enum that the concrete enums subclass from. An enum should be further compatible with Cint and not only through conversions but also when be used as field type (to ensure compatibility with C structs). I

[julia-users] Re: enum data type

2014-02-18 Thread Tobias Knopp
One quite nice approach I have found in Gtk.jl is to define an Enum as: baremodule Direction const NORTH = 0 const EAST = 1 const WEST = 2 const SOUTH = 3 end IMHO it behaves exactly how an enum should work - The enum entries are in the namespace of the enum name (like in C# and new

[julia-users] Re: How to I print the current path?

2014-02-17 Thread Tobias Knopp
pwd() Am Dienstag, 18. Februar 2014 01:01:28 UTC+1 schrieb J Luis: I searched he docs (and Googled) but found no found no way to print the path. The obvious attempt failed ``` julia path() ERROR: path not defined ```

[julia-users] Re: How to I print the current path?

2014-02-17 Thread Tobias Knopp
have set the ImakeMagick path to the Windows path and have it inherit from julia.bat but still get an error saying julia using Images WARNING: ImageMagick utilities not found. Install for more file format support. Terça-feira, 18 de Fevereiro de 2014 0:04:44 UTC, Tobias Knopp escreveu

Re: [julia-users] Re: Returning julia objects with ccall

2014-02-10 Thread Tobias Knopp
. As I said before, I think this could help Julia newcomers when wrapping their C/C++ libraries. Thanks. -- Carlos On Mon, Feb 10, 2014 at 5:20 PM, Tobias Knopp tobias...@googlemail.comjavascript: wrote: Am Montag, 10. Februar 2014 14:17:02

Re: [julia-users] Re: Returning julia objects with ccall

2014-02-10 Thread Tobias Knopp
Am Montag, 10. Februar 2014 18:27:03 UTC+1 schrieb Carlos Becker: 1) I think that there would be a few issues with the lack of julia's exported symbols (non-DLLEXPORTed symbols in julia.h) The ones related to arrays and basic types are exported now, but others are not, and therefore

[julia-users] Re: Returning julia objects with ccall

2014-02-09 Thread Tobias Knopp
Carlos, the code that you showed can be completely written in Julia. It would be helpful if you could give us more insight what you want to achieve. Is there a specific API that you want to wrap? You said that the API returns a double pointer but the length of the memory is not know (if I get

[julia-users] Re: Compiling Julia source at runtime

2014-02-06 Thread Tobias Knopp
julia eval(parse(1+2)) 3 julia symbol(x) :x

[julia-users] Re: Does Julia support plotting?

2014-02-05 Thread Tobias Knopp
May be an implicit conclusion: Has similarities with Matlab then it has to work all out of the box ;-) Am Mittwoch, 5. Februar 2014 17:26:39 UTC+1 schrieb Steven G. Johnson: On Tuesday, February 4, 2014 8:21:48 PM UTC-5, Steven Siew wrote: I think that it should be made absolutely clear to

[julia-users] Re: Embedding Julia in C (In a long running process)

2014-02-05 Thread Tobias Knopp
No there don't seem to be a cleanup method. And multiple julia environments are currently not possible. But from my perspective it would be great to work towards putting all the globals into a struct so that multiple Julia threads per process become feasible. Am Mittwoch, 5. Februar 2014

[julia-users] Re: Variable Explorer

2014-02-04 Thread Tobias Knopp
It already works. But as this is on julia-users I just wanted to mention that this is only a prototype and getting all the dependencies working is non-trivial (at least on windows and OSX). The code lives here: https://github.com/tknopp/Julietta.jl Am Dienstag, 4. Februar 2014 13:13:22 UTC+1

[julia-users] Re: Sending text back and forth between Julia and R

2014-02-04 Thread Tobias Knopp
I have also kind of reinvented the wheel for my Gtk based terminal but this was on purpose to get something quickly working and later replace it with the proper solution. But its still not entirely clear what the best solution is. The REPL.jl package also seems to have some kind of client

Re: [julia-users] General Licensing Question

2014-01-28 Thread Tobias Knopp
Isn't the LICENSE.md file in Julia pretty clear? Julia is MIT licensed and repl-readline.chttps://github.com/JuliaLang/julia/blob/master/ui/repl-readline.cis GPL. I don't see the problem. If I where using libjulia, I can use it in a commercial program. One is of course not allowed to ship fftw

Re: [julia-users] Gtk.jl, differences in execution

2014-01-26 Thread Tobias Knopp
If you want to track master, you will have to do Pkg.checkout(Gtk). 0.5 is pretty fresh though Am Sonntag, 26. Januar 2014 20:26:50 UTC+1 schrieb Andreas Lobinger: Hello colleague, On Sunday, January 26, 2014 6:22:13 PM UTC+1, Tim Holy wrote: I don't get those errors at all. Are you on

[julia-users] Re: Why isn't typeof(Float64[]) : typeof(Real[]) true?

2014-01-22 Thread Tobias Knopp
No. Giving types in function definitions does not give you any speedup as the function are always compiled for concrete types. When you define composite types it is however important to give concrete types for optimal performance. Am Donnerstag, 23. Januar 2014 00:41:41 UTC+1 schrieb Patrick

Re: [julia-users] Re: Julia computational efficiency vs C vs Java vs Python vs Cython

2014-01-15 Thread Tobias Knopp
janvier 2014 à 00:17 -0800, Tobias Knopp a écrit : @Stefan: Is there a good reason to promote Int32 operations to the native mashine type? Sorry, if this has already discussed in depth. But for me it feals wrong to automatically upcast integer operations. I think that the type should keep

Re: [julia-users] Julia computational efficiency vs C vs Java vs Python vs Cython

2014-01-15 Thread Tobias Knopp
But why isn't float32 promoting to float64 on basic arithmetics then? As Markus pointed out, when we get SIMD support (in the form of the @simd macro or by autovectorization of llvm) there can be a factor of two between both integer computations. P.S.: Hope you don't get this wrong. Its just

Re: [julia-users] Julia and Python languages

2014-01-08 Thread Tobias Knopp
Would be interesting to see some use cases where Java-like OO better fits than Julias OO. In C++ one can use both and usually choses based on whether the dispatching can be done at runtime or at compile time (i.e. classes with virtual function for runtime decisions and templates for compile

<    1   2   3