[julia-users] Re: [Announcement] Moving to Discourse (Statement of Intent)

2016-11-06 Thread Andreas Lobinger
Hello colleague,

On Tuesday, November 1, 2016 at 2:43:50 PM UTC+1, Valentin Churavy wrote:
>
> The Julia community has been growing rapidly over the last few years and 
> discussions are happening at many different places: there are several 
> Google Groups (julia-users, julia-dev, ...), IRC, Gitter, and a few other 
> places. Sometimes packages or organisations also have their own forums and 
> chat rooms.
>
>
> In the past, Discourse has been brought up as an alternative platform that 
> we could use instead of Google Groups and that would allow us to invite the 
> entire Julia community into one space.
>

What problem with the julia-users mailing-list and the google groups web 
interface is solved by using discourse?
Why do you think (can you prove?) more centralisation will happen with 
discourse?
 

> We would like to solicit feedback from the broader Julia community about 
> moving julia-users to Discourse as well, and potentially other mailing 
> lists like julia-stats.
>

Please define 'We'. 

If you have feedback or comments, please post them at 
> http://discourse.julialang.org/t/migration-of-google-groups-to-discourse or 
> in this thread.
>

In some parts of the world, asking for feedback on a topic via a different 
medium is seen as unfriendly act ... but still there is this thread.

Wishing a happy day,
 Andreas


[julia-users] Re: How to convert a jpeg base64 encoded string to Image

2016-10-13 Thread Andreas Lobinger
Why does stringmime("image/png" produce jpeg?

On Thursday, October 13, 2016 at 7:44:42 AM UTC+2, love...@gmail.com wrote:
>
> I have some jpeg images saved as base64 encoded strings (such strings can 
> be produced by ```stringmime("image/png", convert(Image, rand(5,5)))``` 
> using Images.jl). but I tried a whole day and cannot convert them back 
> (without disk I/O)...
>


[julia-users] @testset in v0.4 testing?

2016-10-08 Thread Andreas Lobinger
Hello colleagues,

it's quite nice to structure testing with @testset in v0.5 (and higher), 
but it doesn't exist in 0.4. And it's not expected to be backported. 
Could Compat be a place for this? Or just build two blocks (>0.4 and <= 
v0.4) in runtests.jl ?




[julia-users] Re: Linux distributions with Julia >= 0.5.0

2016-10-08 Thread Andreas Lobinger
Hello colleague,

On Saturday, October 8, 2016 at 12:23:00 PM UTC+2, Femto Trader wrote:
>
> my main development environment is under Mac OS X
> but I'm looking for a Linux distribution (that I will run under VirtualBox)
> that have Julia 0.5.0 support (out of the box)
>
> Even Debian Sid is 0.4.7 (October 8th, 2016)
> https://packages.debian.org/fr/sid/julia
>
> So what Linux distribution should I use to simply test my packages with 
> Julia >=0.5.0 ?
>

Have you thought about using the generic linux binaries? I used a 0.5 on 
centos 7.2 and ubuntu 15.04 this week for some testing and it just worked.
 


[julia-users] Re: Julia and the Tower of Babel

2016-10-07 Thread Andreas Lobinger
Hello colleague,

On Friday, October 7, 2016 at 5:35:46 PM UTC+2, Gabriel Gellner wrote:
>
> Something that I have been noticing, as I convert more of my research code 
> over to Julia, is how the super easy to use package manager (which I love), 
> coupled with the talent base of the Julia community seems to have a 
> detrimental effect on the API consistency of the many “micro” packages that 
> cover what I would consider the de-facto standard library. 
>
 well, you consider 'this' the de-facto standard library and others 
consider 'that' a reasonable standard library and others ...

If you see the need for standardisation of interfaces, just volunteer to 
write a style guide and open issues and PRs on the respective packages. All 
this is open source and the development process is transparent on github. 
For exactly that reason: collaboration.

I'm contributing to the ecosystem and it has been really a pleasure to be 
part of the story.

Wishing a happy day,
Andreas


[julia-users] Re: What is best practice for determining if a URL exists?

2016-10-06 Thread Andreas Lobinger
I haven't used it, but https://github.com/JuliaWeb/Requests.jl looks 
reasonable

On Thursday, October 6, 2016 at 2:01:54 PM UTC+2, Jeffrey Sarnoff wrote:
>
> ok, how (within Julia)?
>
> On Thursday, October 6, 2016 at 6:19:00 AM UTC-4, Johan Sigfrids wrote:
>>
>> I would probably do a HTTP HEAD request. It would return the headers 
>> allowing you to tell what, if anything, is there without having to download 
>> it.
>>
>> On Thursday, October 6, 2016 at 7:54:13 AM UTC+3, Jeffrey Sarnoff wrote:
>>>
>>> What is best practice for determining if a URL exists (known, 
>>> retrievable, and not 404)?
>>>
>>

[julia-users] Re: Broken PyPlot... need to revert to a previous version asap.

2016-09-29 Thread Andreas Lobinger
Hello colleague,

On Thursday, September 29, 2016 at 9:36:43 AM UTC+2, Ferran Mazzanti wrote:
>
> Nobody is using PyPlot under OSX, please?
>

your description of the error/failure is quite broad. Please file an issue 
to the package and provide details.

I'm not a OSX user (and also not pyplot), but recently it looked like the 
main problems (of packages of this style) are in the area of interactions 
between OSX and the python packaging/distribution mechanism(s) (Conda, 
Ananconda, brew etc.).

So actually the situation is different at every computer, because it 
contains the history of all (re-)configurations.


 


[julia-users] Re: ASTs of complete modules/packages?

2016-09-26 Thread Andreas Lobinger
Hello colleague,

On Monday, September 26, 2016 at 12:50:44 AM UTC+2, Cedric St-Jean wrote:
>
> I faced very similar issues with ClobberingReload.jl. 
> https://github.com/cstjean/ClobberingReload.jl/blob/master/src/ClobberingReload.jl
>  Check 
> out parse_file (courtesy of @stevengj), parse_module, and creload. I 
> haven't "expanded" the includes, but it seems straight-forward to do with a 
> comprehension.
>

Thank you. I shortlisted the 'reload' mechanisms anyway, but 
ClobberingReload seems new. Actually i was wondering, if i'm the first one 
to look into code instrumentation. This should be really straight forward 
in julia (i did it once in f77 and that clearly not straight forward...).


[julia-users] ASTs of complete modules/packages?

2016-09-23 Thread Andreas Lobinger
Hello colleagues,

i'm playing around with some ideas for testing and i searching for 
something like this:

* read-in (from the original file or via name) a complete module (or 
package)
* transform/parse to AST
* insert additional Expr/code in dedicated places (to count calls etc.)
* eval, so the module exists with the orginal name, but with more 
functionality

Any pointer to read?

Wishing a happy day,
  Andreas


[julia-users] Re: Plotting lots of data

2016-09-21 Thread Andreas Lobinger
Hello colleague,

On Wednesday, September 21, 2016 at 8:34:21 PM UTC+2, Chris Rackauckas 
wrote:
>
> I've managed to plot quite a few large datasets. GR through Plots.jl works 
> very well for this. I tend to still prefer the defaults of PyPlot, but GR 
> is just so much faster that I switch the backend whenever the amount of 
> data gets unruly (larger than like 5-10GB, and it's worked to save a raster 
> image from data larger than 40-50 GB). Plots + GR is a good combo
>

Could you explain this in more length, especially the 'faster'? It sounds 
like your plotting a few hundred million items/lines.


[julia-users] deprecating julia v0.3 -> are there still 0.3 users?

2016-09-16 Thread Andreas Lobinger
Hello colleagues,

some packages have started, some are in the process to fix their 
requirements to julia > v0.3. 
My question, especially to the universities/teaching communities: are there 
still 0.3 users?
(and maybe you provide a 'why' along that)

Wishing a happy day,
Andreas


Re: [julia-users] debugging tips for GC?

2016-09-14 Thread Andreas Lobinger
Hello,

On Tuesday, September 13, 2016 at 10:17:30 PM UTC+2, Yichao Yu wrote:

>
> On Tue, Sep 13, 2016 at 4:11 PM, Yichao Yu  > wrote:
>
>> I'm able to reproduce it in rr and found the issue.
>> TL;DR the issue is at 
>> https://github.com/JuliaGraphics/Cairo.jl/blame/master/src/Cairo.jl#L625, 
>> where it passes the ownership of a cairo pointer to julia, causing a double 
>> free.
>>
>
> Which comes from your commit a year ago ;-p
>
> https://github.com/JuliaGraphics/Cairo.jl/commit/23681dc1270882c964059d23863a88d4276f6fd8
>

True. Actually Tim recommended this, i had initially a solution with 
unsafe_load on single elements. But we both and subsequent editors never 
recognized the problem. I've filed an PR.


Re: [julia-users] debugging tips for GC?

2016-09-13 Thread Andreas Lobinger
Hello colleague,

On Tuesday, September 13, 2016 at 7:25:38 PM UTC+2, Yichao Yu wrote:
>
>
> On Tue, Sep 13, 2016 at 12:49 PM, Andreas Lobinger <lobi...@gmail.com 
> > wrote:
>
>> Hello colleagues,
>>
>> i'm trying to find out, why this 
>> ...
>>
> fails miserably. I guess, but cannot track it down right now: There is 
>> something wrong in memory management of Cairo.jl that only shows up for 
>> objects that could have been freed long ago and julia and libcairo have 
>> different concepts of invalidation.
>>
>> Any blog/receipe/issue that deals with GC debugging?
>>
>
> It's not too different from debugging memory issue in any other program.
> It usually helps (a lot) to reproduce under rr[1]
>

Many thanks for pointing to this. I was aware it exists but wasn't aware of 
their progress.
 

> Other than that, it strongly depend on the kind of error and I've seen it 
> happens due to almost all parts of the runtime and it's really hard to 
> summarize.
>

What do you mean with "happens due to almost all parts of the runtime" ?


[julia-users] debugging tips for GC?

2016-09-13 Thread Andreas Lobinger
Hello colleagues,

i'm trying to find out, why this 

   _
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-rc4+0 (2016-09-09 01:43 UTC)
 _/ |\__'_|_|_|\__'_|  |  
|__/   |  x86_64-linux-gnu

julia> Pkg.test("Cairo")
INFO: Testing Cairo
INFO: Cairo tests passed

julia> Pkg.test("Cairo")
INFO: Testing Cairo
INFO: Cairo tests passed

julia> Pkg.test("Cairo")
INFO: Testing Cairo
INFO: Cairo tests passed

julia> Pkg.test("Cairo")
INFO: Testing Cairo
INFO: Cairo tests passed

julia> Pkg.test("Cairo")
INFO: Testing Cairo
INFO: Cairo tests passed

julia> Pkg.test("Cairo")
INFO: Testing Cairo
*** Error in `/home/lobi/julia05/usr/bin/julia': free(): invalid pointer: 
0x04013e80 ***

signal (6): Aborted
while loading /home/lobi/.julia/v0.5/Cairo/samples/sample_imagepattern.jl, 
in expression starting on line 29
raise at 
/build/eglibc-3GlaMS/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56
abort at /build/eglibc-3GlaMS/eglibc-2.19/stdlib/abort.c:89
__libc_message at 
/build/eglibc-3GlaMS/eglibc-2.19/libio/../sysdeps/posix/libc_fatal.c:175
malloc_printerr at /build/eglibc-3GlaMS/eglibc-2.19/malloc/malloc.c:4996 
[inlined]
_int_free at /build/eglibc-3GlaMS/eglibc-2.19/malloc/malloc.c:3840
jl_gc_free_array at /home/lobi/julia05/src/gc.c:744 [inlined]
sweep_malloced_arrays at /home/lobi/julia05/src/gc.c:765 [inlined]
gc_sweep_other at /home/lobi/julia05/src/gc.c:1032 [inlined]
_jl_gc_collect at /home/lobi/julia05/src/gc.c:1792 [inlined]
jl_gc_collect at /home/lobi/julia05/src/gc.c:1858
jl_gc_pool_alloc at /home/lobi/julia05/src/gc.c:828
jl_gc_alloc_ at /home/lobi/julia05/src/julia_internal.h:148 [inlined]
jl_gc_alloc at /home/lobi/julia05/src/gc.c:1881
jl_alloc_svec_uninit at /home/lobi/julia05/src/simplevector.c:47
jl_alloc_svec at /home/lobi/julia05/src/simplevector.c:56
intersect_tuple at /home/lobi/julia05/src/jltypes.c:601
jl_type_intersect at /home/lobi/julia05/src/jltypes.c:992
jl_type_intersection_matching at /home/lobi/julia05/src/jltypes.c:1510
jl_lookup_match at /home/lobi/julia05/src/typemap.c:376 [inlined]
jl_typemap_intersection_node_visitor at /home/lobi/julia05/src/typemap.c:503
jl_typemap_intersection_visitor at /home/lobi/julia05/src/typemap.c:565
jl_typemap_intersection_visitor at /home/lobi/julia05/src/typemap.c:556
ml_matches at /home/lobi/julia05/src/gf.c:2266 [inlined]
jl_matching_methods at /home/lobi/julia05/src/gf.c:2287
_methods_by_ftype at ./reflection.jl:223
unknown function (ip: 0x7f00077b1f22)
jl_call_method_internal at /home/lobi/julia05/src/julia_internal.h:189 
[inlined]
jl_apply_generic at /home/lobi/julia05/src/gf.c:1929
inlineable at ./inference.jl:2496
unknown function (ip: 0x7f00077c4c92)


fails miserably. I guess, but cannot track it down right now: There is 
something wrong in memory management of Cairo.jl that only shows up for 
objects that could have been freed long ago and julia and libcairo have 
different concepts of invalidation.

Any blog/receipe/issue that deals with GC debugging?

Wishing a happy day,
Andreas


[julia-users] Re: Can someone please update Winston?

2016-09-04 Thread Andreas Lobinger
btw:

i'm running this now with the MetServiceDev/Tk.jl (actually only a small 
change) only and Winston from master in 0.5-rc3 sucessfully. For 
Winston/Gtk there is an Gtk issue opened.



[julia-users] Re: Can someone please update Winston?

2016-08-29 Thread Andreas Lobinger
Hello colleague,

On Saturday, August 27, 2016 at 12:04:22 AM UTC+2, K leo wrote:
>
> so that it works with version 0.5. 


could you please list/report what errors you get? Do you use Tk or Gtk? I 
looked a little bit around yesterday (with Gtk) and it looks like plotting 
does work, but not displaying in a window. 




[julia-users] Re: Pkg.update() error, 0.4.6

2016-08-27 Thread Andreas Lobinger
Hello colleague,

On Saturday, August 27, 2016 at 9:20:32 AM UTC+2, Liye zhang wrote:
>
> Julia and its packages are installed using the network at my home. When I 
> try to install new package using the network in my company, there are 
> errors as mentioned above.
>
> When I update using the network at home, there is no error.  So, is this 
> error caused by the change of the IP, which would be used by git of Julia 
> package system ?
>
> This error occurred many times. Could anyone give me some help? 
>

company networks usually are firewalled and proxied to the outside 
internet. So it's not the change of IP only.
You can check, if running 

git config --global url."https://@".insteadOf git://

on a shell solves this for you (it did for me)



[julia-users] Re: TK dependency woes

2016-08-26 Thread Andreas Lobinger
https://github.com/stevengj/PyPlot.jl/issues/164




Re: [julia-users] correct typing for unsafe_wrap

2016-08-21 Thread Andreas Lobinger
Hello,

On Sunday, August 21, 2016 at 1:16:22 PM UTC+2, Milan Bouchet-Valat wrote:
>
> Le dimanche 21 août 2016 à 01:36 -0700, Andreas Lobinger a écrit : 
> > Hello colleagues, 
> > 
> > i'm trying to use unsafe_wrap from a pointer from an external call 
> > (cfunction) to an array access. 
> > Looks like i have type problems: 
>
> The problem is with the first argument: it should be a type, not an 
> array. You should simply pass 'Array' instead of 'b1': no need to 
> allocate a buffer, as this function uses the original memory referred 
> to by the pointer (without making a copy). 
>

i pass Array{UInt8,1} and this works.

Thank you and wishing a happy sunday,
   Andreas 


[julia-users] correct typing for unsafe_wrap

2016-08-21 Thread Andreas Lobinger
Hello colleagues,

i'm trying to use unsafe_wrap from a pointer from an external call 
(cfunction) to an array access.
Looks like i have type problems:



function read_from_stream_callback(s::IO, buf::Ptr{UInt8}, len::UInt32)

#b1 = zeros(UInt8,len)
#nb = readbytes!(s,b1,len)

#for i=1:len
#unsafe_store!(buf,b1[i],i)
#end

b1 = zeros(UInt8,len)
unsafe_wrap(b1,buf,len)
nb = readbytes!(s,b1,len)

@compat(Int32(0))
end

   _
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-rc2+0 (2016-08-12 11:25 UTC)
 _/ |\__'_|_|_|\__'_|  |  
|__/   |  x86_64-linux-gnu

julia> include("png_stream.jl")
ERROR: LoadError: MethodError: no method matching 
unsafe_wrap(::Array{UInt8,1}, ::Ptr{UInt8}, ::UInt32)
Closest candidates are:
  unsafe_wrap(::Type{String}, ::Union{Ptr{Int8},Ptr{UInt8}}, ::Integer) at 
pointer.jl:86
  unsafe_wrap(::Type{String}, ::Union{Ptr{Int8},Ptr{UInt8}}, ::Integer, 
::Bool) at pointer.jl:86
  unsafe_wrap{T}(::Union{Type{Array{T,1}},Type{Array{T,N}},Type{Array}}, 
::Ptr{T}, ::Integer) at pointer.jl:57
  ...
 in read_from_stream_callback(::Base.AbstractIOBuffer{Array{UInt8,1}}, 
::Ptr{UInt8}, ::UInt32) at /home/lobi/juliarepo/png_stream.jl:16
 in read_png_from_stream(::Base.AbstractIOBuffer{Array{UInt8,1}}) at 
/home/lobi/juliarepo/png_stream.jl:26
 in include_from_node1(::String) at ./loading.jl:426
while loading /home/lobi/juliarepo/png_stream.jl, in expression starting on 
line 55

to which i somehow disagree (as long as UInt32 is an Integer).

the commented code runs correctly (copy to but UInt8 seq.)

A better explaination of the error?

Wishing a happy day,
Andreas




[julia-users] Re: Broken PyPlot... need to revert to a previous version asap.

2016-08-18 Thread Andreas Lobinger
Hello colleague,

On Thursday, August 18, 2016 at 10:47:27 AM UTC+2, Ferran Mazzanti wrote:
>
> Dear all,
>
> looks like lots of messing around with versions had rendered PyPlot 
> unusable in 0.4.6 under OSX (at least).
> Now I need to do some work that requires its use so I need to have it up 
> and working. Could anybody please let me know
> if it is possible to revert to a previous working version, and how this is 
> done? I know it used to work with 0.4.6 as I had it
> installed, but once I did an update and things stopped working since then.
>

You can use Pkg.checkout("package-name","version/branch") (read: 
http://docs.julialang.org/en/release-0.4/stdlib/pkg/#Base.Pkg.checkout)  
Unfortunately you need to do this not only on the package itself, but also 
on the dependencies.
I recommend to open an issue on 
https://github.com/stevengj/PyPlot.jl/issues and browse there, if your 
specific error situation already has a workaround.



Re: [julia-users] Re: Symbols as Dict keys - efficiency / memory allocation?

2016-08-17 Thread Andreas Lobinger
Hello colleague,

On Wednesday, August 17, 2016 at 3:01:37 PM UTC+2, Oliver Schulz wrote:
>
> > unless they just became numbers to index into a global array somewhere
>
> I had assumed that this is basically what Symbols (being interned strings) 
> are.
>

I might write something stupid here, but for me Symbols are constants at 
compile time. So this "intered strings" behaviour is part of generating 
code, not running it. I looked at a similar problem - strings as keys in 
Dicts with frequent access - and think a workaround is somewhere in the 
area of hash and object_id. As last resort i thought about implementing a 
fast string->Int64 hash...


[julia-users] Re: Symbols as Dict keys - efficiency / memory allocation?

2016-08-17 Thread Andreas Lobinger
Hello colleague,

On Wednesday, August 17, 2016 at 11:12:51 AM UTC+2, Oliver Schulz wrote:
>
> Sure -  I was assuming that as Symbol (as an interned string) is basically 
> just a pointer. So comparisons are O(1), etc. What I'd like to understand 
> is, why can't it be a bitstype? Currently, it's not, so Symbol cannot be 
> used in a lightweight (i.e. stack-allocated) immutable type. I assume 
> there's a good reason for it, I just want to understand why.
>

Could you make an example how you would like to use Symbol in lightweight 
types?



[julia-users] Re: Does Julia always need internet access when loading a package?

2016-08-16 Thread Andreas Lobinger
Hello colleague,

On Wednesday, August 17, 2016 at 5:10:49 AM UTC+2, Jan Hlavacek wrote:

> On Tuesday, August 16, 2016 at 3:26:44 PM UTC-4, Andreas Lobinger wrote:
>>
>>
>> Looks like the local julia installation has identified a missing package 
>> repository and then tried to get METADATA into that. The place where julia 
>> expects a package repository can be configured. In your case the setup was 
>> incorrect.
>>
>  

> Thank you.  Would you be able to provide some pointers to documents that 
>> describe what the correct setup should be?  When I was trying to find that 
>> information on the web I got what seemed to me like conflicting pieces of 
>> information.
>>
>
http://docs.julialang.org/en/release-0.4/stdlib/pkg/#Base.Pkg.dir 

For improving the documentation it would be interesting, what information 
you (or your admin, the 'they') had used for the setup.




[julia-users] Re: Does Julia always need internet access when loading a package?

2016-08-16 Thread Andreas Lobinger
Hello colleague,

On Tuesday, August 16, 2016 at 5:41:47 PM UTC+2, Jan Hlavacek wrote:
>
> They have recently installed a whole bunch of packages system wide, so 
> that they are available in all projects without having to install them 
> locally.  However, when I try to use a package from one of their free 
> projects, there is a problem. Free projects by default do not have internet 
> access.  When loading a Julia package, for example 
>
> using Gadfly
>
> the package will be recompiled, and then Julia tries to go to github and 
> download METADATA.jl,  which takes for ever before it times out.  Then, 
> probably because of the missing metadata, some other errors are reported.  
> Finally, the package gets loaded and can be used.  The messages are as 
> follows:
>
> INFO: Precompiling module Gadfly...
> INFO: Initializing package repository 
> /projects/41eb44d2-462c-4af8-80a5-ac0c9cad99dd/.julia/v0.4
> INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
> fatal: unable to connect to github.com:
> github.com[0: 192.30.253.112]: errno=Connection timed out
> ...
>
> Does Julia really need internet access just to load a package?  Is there 
> any way to work around it?
>
 
No. And yes.
Looks like the local julia installation has identified a missing package 
repository and then tried to get METADATA into that. The place where julia 
expects a package repository can be configured. In your case the setup was 
incorrect.





[julia-users] Re: working with tree-like type

2016-08-13 Thread Andreas Lobinger
Hello colleague,

On Saturday, August 13, 2016 at 6:38:31 PM UTC+2, Steven G. Johnson wrote:
>
>
> On Friday, August 12, 2016 at 2:45:12 AM UTC-4, Andreas Lobinger wrote:
>
 

> can someone please point me to some (more) documentation/packages about 
>> handling tree structures in types? AbstractTrees.jl leaves me a little bit 
>> alone without docu (yes, i've seen the comments in source, but still...) 
>> and an example without comments.
>>
>
> Type definitions can be self-referential, so there is no particularly 
> difficulty in defining a tree data structure.  For example, here is how you 
> might define a binary tree, using the Nullable type to indicate whether a 
> branch is present:
>

this wasn't problem.  I'm struggling a little bit with show/display, as the 
generic method shows not only the reference, but also the instance. So if i 
show/display a 'leaf' and it contains a reference to the parent, the full 
parent is displayed also. I was looking for something like pretty-printing 
of tree structures, in a generic sense.




[julia-users] Re: plotly error in 0.5

2016-08-12 Thread Andreas Lobinger
Hello colleague,

looks like a problem with Requires and maybe was caused by some missing 
'other' update.
The CI shows Plotly working:
http://pkg.julialang.org/logs/Plotly_0.5.log
You could check, if all required packages are at the correct version.

Wishing a happy day,
Andreas



[julia-users] working with tree-like type

2016-08-12 Thread Andreas Lobinger
Hello colleagues,

can someone please point me to some (more) documentation/packages about 
handling tree structures in types? AbstractTrees.jl leaves me a little bit 
alone without docu (yes, i've seen the comments in source, but still...) 
and an example without comments.

Wishing a happy day,
Andreas


Re: [julia-users] Re: map(mean, zip(v...)) doesn't scale

2016-08-10 Thread Andreas Lobinger
There is a memory allocation(?) bug in 0.5.0-rc1+0, recommendation is to go 
to rc1+1. 

On Wednesday, August 10, 2016 at 12:04:36 PM UTC+2, Tamas Papp wrote:
>
> Thanks. Forgot to say that I am using v"0.5.0-rc1+0". 
>
>

[julia-users] Re: Why is Julia 0.5 built from source almost twice as large (on disk) as Julia 0.4?

2016-08-10 Thread Andreas Lobinger
Hello colleague,

On Wednesday, August 10, 2016 at 10:11:46 AM UTC+2, Tomas Lycken wrote:
>
> Both instances of Julia are runnable, so I don’t think I deleted something 
> I shouldn’t have in either folder. 
>
> What has changed to make Julia 0.5 so big? Are there any build artifacts I 
> can/should prune to reduce this footprint?
>
my guess it's some cumulative build artefacts:

 lobi@orange4:~/julia05/deps$ du -sh *
8,0Karpack.mk
12K blas.mk
4,8Gbuild
508Kchecksums
4,0Kdsfmt.mk
8,0Kfftw.mk
4,0Kgfortblas.alias
8,0Kgfortblas.c
4,0Kgmp.mk
4,0KlibdSFMT.def
4,0Klibgit2.mk
4,0Klibgit2.version
4,0Klibssh2.mk
4,0Klibssh2.version
4,0Klibuv.mk
4,0Klibuv.version
20K llvm.mk
4,0Kllvm-ver.make
8,0KMakefile
4,0Kmbedtls.mk
4,0Kmpfr.mk
4,0KNATIVE.cmake
4,0Kobjconv.mk
4,0Kopenblas.version
4,0Kopenlibm.mk
4,0Kopenlibm.version
4,0Kopenspecfun.mk
4,0Kopenspecfun.version
4,0Kpatchelf.mk
328Kpatches
4,0Kpcre.mk
2,0Gsrccache
8,0Ksuitesparse.mk
4,0KSuiteSparse_wrapper.c
20K tools
4,0Kunwind.mk
4,0Kutf8proc.mk
4,0Kutf8proc.version
384Kvalgrind
4,0KVersions.make
4,0Kvirtualenv.mk



[julia-users] Re: Setting random number generator seed using sequential integers

2016-08-09 Thread Andreas Lobinger
Hello,

we somehow have similar problem (not in julia, but matlab). One idea is to 
have a long (624 32-bit int) (random) number available and multiply by the 
single seed. Or get /dev/random for seeding and store it along the output. 



[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-01 Thread Andreas Lobinger
So do i understand correctly that the current win64 build doesn't include 
git/ssh via proxy? Or is just the setting in (where?) missing? Is there a 
counterpart to the https-insteadof-git setting available?
I know it's not helpful, but i get (behind a company http/https proxy) the 
same error with Pkg.init() (which is in comparision to other RC0 issues a 
showstopper).



[julia-users] Re: I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Andreas Lobinger
My first reaction was: Just go forward and do it. Then i started to read 
the comments in
https://internals.rust-lang.org/t/proposal-the-rust-platform/3745/35





[julia-users] Re: @inbounds and @simd not showing any sign of speedup

2016-07-29 Thread Andreas Lobinger
Hello colleague,

On Friday, July 29, 2016 at 8:59:36 AM UTC+2, Juan Lopez wrote:
>
> Hello,
>
> I have a function which is doing basically an operation inside a loop and 
> when adding @simd or @inbounds time doesn't improve, in any case it seems 
> slightly worse.
>
 

> Is there an explanation for this? Thank you
>

there is a non-vanishing propability, that the plain loop is already 
compiled to the optimal code. Maybe you try to look at the lowered code.

 


Re: [julia-users] How to install julia-0.5.0-rc0 on Ubuntu Linux

2016-07-28 Thread Andreas Lobinger


On Thursday, July 28, 2016 at 4:37:24 PM UTC+2, Uwe Fechner wrote:
>
> The following command fixed the problem:
> sudo apt-get install libssl-dev
>
> Perhaps this command could be mentioned in the section "Ubuntu" of 
> Readme.md 
>
 
it actually is, in section Required Build Tools and External Libraries 


Re: [julia-users] How to install julia-0.5.0-rc0 on Ubuntu Linux

2016-07-28 Thread Andreas Lobinger
As the error message relates to a missing OpenSSL ->
try to find setttings for: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR, it might 
be an idea to install the openSSL development package.



Re: [julia-users] Re: Which package downgrades other packages?

2016-07-26 Thread Andreas Lobinger
Hello colleague,

On Tuesday, July 26, 2016 at 5:58:28 PM UTC+2, Stefan Karpinski wrote:
>
> On Mon, Jul 25, 2016 at 1:23 PM, Stefan Karpinski  > wrote:
>
>> Compat.jl does this extensively with respect to Julia itself.
>
>
> Another example, just submitted to BinDeps:
>
> https://github.com/JuliaLang/BinDeps.jl/commit/64c591da0cabafc2e319b2ef0dedc18a42d34c95
> This happens all the time – I don't have a list of all the places off the 
> top of my head, however.
>

i agree. Although i'd put Compat and BinDeps as central points for 
attaching to the julia runtime/JIT rather as standard library and therefore 
i assume the author(s) to be active on githup...
You also mention naming conflicts between local and published packages in 
your 1.0 talk. 
So from my perspective more fine-grained dependency resolution (different 
environment for different packages, not only a single METAFILE) will 
probably show up.




Re: [julia-users] Re: Which package downgrades other packages?

2016-07-25 Thread Andreas Lobinger
Hello colleagues,

On Monday, July 25, 2016 at 4:40:10 PM UTC+2, Stefan Karpinski wrote:
>
> The difference between the Julia package ecosystem and DLL hell is that 
> DLLs expose static interfaces and cannot adapt to their environment. If 
> libA.dll expects on interface from libC.dll and libB.dll expects another, 
> you're just stuck – you can use libA.dll or libB.dll but not both (unless 
> you do some crazy stuff with loading multiple copies of libC.dll). Julia 
> packages are quite a bit more flexible: upon loading, A.jl can introspect 
> the version and interface of C.jl and adapt to it, so that it works with a 
> newer or older version correctly. If you want to be able to use A and B at 
> the same time with a newer versions of C in the scenario you describe, the 
> solution is to update A so that it works with the newer version of C, and 
> ideally continues to work the the older version as well.
>

Can you give us a good example of situation A.jl and C.jl you described?

While i value Stefan's optimism 

> and ideally continues to work

and the experimental/scientific approach

>  A.jl can introspect the version and interface of C.jl and adapt to it,

still i could raise the question: And what if not?

And why is it so easy to publish a package creating dependency problems? 
Why are dependency problems not detected by automatic testing? And what is 
the recommended way if a package author isn't available? etc.

I do not have any answer to the above questions and i expect no simple 
answers for someone...
I agree with Stefan, structure is there to avoid these problems and 
reasonable forward looking package author can deal with it, but what to do 
in cases where this has not happened.




[julia-users] Re: A Very Simple Benchmark for Brutal-force Loops in Several Languages: revised, Julia is fast!

2016-07-12 Thread Andreas Lobinger
just my two cents...

On Tuesday, July 12, 2016 at 5:28:24 AM UTC+2, Chris Rackauckas wrote:
>
>
> MATLAB really improved their JIT in 2015b, but as you can see, it cannot 
> come close to Julia. The main reason is that, although it can do quite a 
> bit because it ensures type stability, it has type stability only because 
> everything in MATLAB is by default a complex number. 
>

This is not correct, a variable is by default double. And extended to be 
complex if needed. But that's not the point.
 

> So even in the simplest example (where its JIT works correctly. You'll 
> notice that in many cases it won't work, and since it doesn't cache well it 
> may recompile all the time, and ... it works okay but there's a reason I 
> switched to Julia) you'd expect Julia to be at least twice as fast.
>

I think i have written this before: Julia enables you to write fast code, 
however it's not automatically faster at a constant factor compared to 
something. It's not like: matlab does it wrong, julia does it correct and 
therefore is magically faster. Some people on this mailing list (including 
myself) already had experiences with julia code running surprisingly slow 
or with a heavy memory impact (row-first vs. column-first arrays and 
temporary arrays and similar). 





[julia-users] Re: A Very Simple Benchmark for Brutal-force Loops in Several Languages: revised, Julia is fast!

2016-07-11 Thread Andreas Lobinger


On Monday, July 11, 2016 at 6:38:13 PM UTC+2, Sisyphuss wrote:
>
> It's surprising to see Python so slow and Matlab so fast.
>
>  Matlab: does the JIT compiler translate the loops to C?
>

Not to C, rather directly to machine code. LLVM seems to be in use here, 
also.
 


[julia-users] Re: A Very Simple Benchmark for Brutal-force Loops in Several Languages: revised, Julia is fast!

2016-07-11 Thread Andreas Lobinger
2 small things:

* a more recent Matlab should already be faster, especially in this loop 
thing
* random generators' runtime -depending on the complexity they spend- 
really makes a difference.



[julia-users] Re: Plotting lots of data

2016-06-13 Thread Andreas Lobinger
Hello colleague,

On Sunday, June 12, 2016 at 10:31:06 PM UTC+2, CrocoDuck O'Ducks wrote:
>
> Hi there!
>
> I have been experimenting a little with many plotting packages recently. 
> Being used to Matlab PyPlot seemed to work well for me... until this bug 
>  I did not figure out 
> how to workaround. I often need to plot a lot of data. The fact is that I 
> often work with sampled data, like audio. For example, I could have to plot 
> 10 seconds of 192 kHz sampled audio. Even when PyPlot was working it was 
> hard to plot so many data: PyPlot was used to give up after few errors. I 
> tried also other packages (Gadfly and few others) but seems like they 
> really struggle to plot so much stuff: they often kinda freeze. I am not 
> sure wether I am missing something or using the packages improperly or the 
> packages are somewhat limited at this stage. I have resorted to export the 
> data to .mat files and plot with matlab...
>
> My question is:  how do you guys plot large data sets? Do you suggest a 
> plot package in particular?
>

I use some home-grown solutions and (still) Winston. I just tested Plots.jl 
with GR backend and could plot 5e6 random lines. Maybe you look into this.

Wishing a happy day,
 Andreas


[julia-users] local package, howto?

2016-06-12 Thread Andreas Lobinger
Hello colleagues,

like with similar problems, i don't know how i ended up there, but my 
question is how to avoid
Being asked for githup authentification for a package that exists only 
locally (i.e. has no remote on github or similar)?

julia v0.4.5 was not updated for long, but yesterday i ran a Pkg.update() 
and today with a Pkg.update i'm asked for githup username and passwd?

Any idea?

Wishing a happy day,
  Andreas


[julia-users] Re: Pkg.update() fails on local package

2016-06-10 Thread Andreas Lobinger
Hello colleague,

i ran (twice) into a problem that looked similar by the symtoms. In both 
cases the git configuration of METADATA were corrupted and in the recent 
case the remote setting was somehow routed to the Package name. -> Look in 
.julia/v0.4/METADATA/.git/config. If you see your Package name showing up, 
correct it (in my case i just copied the correct githup URL).

If not, post your git config -l here.



[julia-users] Re: installation one side of a company firewall

2016-06-08 Thread Andreas Lobinger

For clarification, i'm using now 

git config --global url."https://@".insteadOf git://
so including my github name for even anonymous access.

Works somehow.



[julia-users] installation one side of a company firewall

2016-06-02 Thread Andreas Lobinger
Hello colleagues,

i'm trying to get julia (v0.4.5) running on a windows box inside company 
firewall (actually a cloud instance) which has valid and working http/https 
proxy,
I was able to configure git to use https isteadOf git and set http and 
https proxy. Pkg.status() clones and installs METADATA afaics.
However, trying Pkg.add fails with 
INFO: Cloning cache of Compat from git://github.com/JuliaLang/Compat.jl.git 
fatal: unable to access 'https://github.com//JuliaLang/Compat.jl.git' : The 
requested URL returned error: 400

Any idea?

Wishing a happy day,
Andreas



[julia-users] Re: julia equivalent of python [] (Part II)

2016-06-01 Thread Andreas Lobinger


On Wednesday, June 1, 2016 at 8:49:44 PM UTC+2, Ford Ox wrote:
>
> When we are on this topic
>
> Why does
> [1 + 2]
> result in
> [3]
> instead of
> [1 + 2]
>
>
well, in v0.5 with the correct element limiter
_
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+4330 (2016-05-26 09:11 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 493157e* (6 days old master)
|__/   |  x86_64-linux-gnu

julia> b = [4,+,3]
3-element Array{Any,1}:
 4 
  +
 3 

julia> 





[julia-users] Re: Is Julia slow with large arrays?

2016-06-01 Thread Andreas Lobinger
It's valid and interesting to measure full roundtrip including compile time 
like you do, however in examples like this, the julia overhead on compiling 
dominates your measurement.
You could put your code into a package and pre-compile. 

In any case your not measuring the time to run the code only.

On Wednesday, June 1, 2016 at 1:15:54 PM UTC+2, Mosè Giordano wrote:
>
> Hi all,
>
> I'm working on a Fortran77 code, but I'd much prefer to translate it to 
> Julia.  However, I've the impression that when working with large arrays 
> (of the order of tens of thousands elements) Julia is way slower than the 
> equivalent Fortran code.  See the following examples:
>
> Julia:
>
> function foo()
> array1 = rand(70, 1000)
> array2 = rand(70, 1000)
> array3 = rand(2, 70, 20, 20)
> bar = 0
> @time for l = 1:1000, k = 1:20, j = 1:20, i = 1:70
> bar = bar +
> (array1[i, l] - array3[1, i, j, k])^2 +
> (array2[i, l] - array3[2, i, j, k])^2
> end
> end
> foo()
>
> Fortran77 (it uses some GNU extensions, so gfortran is required):
>
>   program main
>   implicit none
>   double precision array1(70, 1000), array2(70, 1000),
>  &array3(2, 70, 20, 20), bar, start, finish
>   integer i, j, k, l
>   call srand(time())
> c Initialize "array1" and "array2"
>   do j = 1, 1000
> do i = 1, 70
>   array1(i, j) = rand()
>   array2(i, j) = rand()
> enddo
>   enddo
> c Initialize "array3"
>   do l = 1, 2
> do k = 1, 70
>   do j = 1, 20
> do i = 1, 20
>   array3(i, j, k, l) = rand()
> enddo
>   enddo
> enddo
>   enddo
> c Do the calculations
>   bar = 0
>   call cpu_time(start)
>   do l = 1, 1000
> do k = 1, 20
>   do j = 1, 20
> do i = 1, 70
>   bar = bar +
>  &(array1(i, l) - array3(1, i, j, k))**2 +
>  &(array2(i, l) - array3(2, i, j, k))**2
> enddo
>   enddo
> enddo
>   enddo
>   call cpu_time(finish)
>   print "(f10.6, a)", finish - start, " seconds"
>   end program main
>
> This is the result of running the two programs on my computer:
>
> % julia --version
> julia version 0.4.5
> % gfortran --version
> GNU Fortran (Debian 5.3.1-20) 5.3.1 20160519
> Copyright (C) 2015 Free Software Foundation, Inc.
>
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
>
> % julia -f test.jl
>   1.099910 seconds (84.00 M allocations: 1.252 GB, 7.14% gc time)
> % gfortran test.f&&./a.out
>   0.132000 seconds
>
> While Julia code is 3 times shorter than the Fortran77 code (and this one 
> of the many reasons why I like Julia very much), it's also more than 8 
> times slower and my build of Julia 0.5 (updated to aa1ce87) performs even 
> worse, it takes about 1.4 seconds.  If I remove access to the arrays (just 
> put "bar = bar" as loop body) then Julia is infinitely faster than Fortran 
> in the sense that Julia takes 0.00 seconds, Fortran 0.056000.
>
> Is this difference to be expected or are there tricks to fasten the Julia 
> code?  I should have gotten the order of nested loops right.  @inbounds 
> doesn't help that much.  Parallelization is probably not an option because 
> the code above is a small part of a larger loop that does data movement 
> (can DistributedArrays help?).
>
> Bye,
> Mosè
>


[julia-users] Re: julia equivalent of python [] (Part II)

2016-06-01 Thread Andreas Lobinger


On Wednesday, June 1, 2016 at 11:30:01 AM UTC+2, Lutfullah Tomak wrote:
>
> Do what the warning says. Replace ',' with ';', meaning ["8"; 9; 10; c] or 
> ["8"; 9;10; [12; "c"]] 
>

 julia> b = ["8";9;10;[12;"c"]]
5-element Array{Any,1}:
   "8"
  9
 10
 12
   "c"


I'd like to have b[4] = [12;"c"] and to concatenate the list(s).



[julia-users] julia equivalent of python [] (Part II)

2016-06-01 Thread Andreas Lobinger
Hello colleagues,

i actually was a little bit puzzled by this:

   _
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.5 (2016-03-18 00:58 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org release
|__/   |  x86_64-linux-gnu

julia> a = [8,"9",10]
3-element Array{Any,1}:
  8
   "9"
 10

julia> b = ["8",9,10,[12,"c"]]
WARNING: [a,b,...] concatenation is deprecated; use [a;b;...] instead
 in depwarn at deprecated.jl:73
 in oldstyle_vcat_warning at ./abstractarray.jl:29
 in vect at abstractarray.jl:38
while loading no file, in expression starting on line 0
5-element Array{Any,1}:
   "8"
  9
 10
 12
   "c"

julia> c = [12,"c"]
2-element Array{Any,1}:
 12
   "c"

julia> b_prime = ["8",9,10,c]
WARNING: [a,b,...] concatenation is deprecated; use [a;b;...] instead
 in depwarn at deprecated.jl:73
 in oldstyle_vcat_warning at ./abstractarray.jl:29
 in vect at abstractarray.jl:38
while loading no file, in expression starting on line 0
5-element Array{Any,1}:
   "8"
  9
 10
 12
   "c"


How do i put a list into a list? (bonus points for literals!)




[julia-users] Re: Plots gadfly

2016-06-01 Thread Andreas Lobinger


On Wednesday, June 1, 2016 at 10:44:42 AM UTC+2, Henri Girard wrote:
>
> Gadfly is deprecated : Does it mean we shouldn't use it anymore ?
>

Where did you get the message that Gadlfy is deprecated? 
If you mean, you get a lot of deprecation warning, when trying to run 
Gadfly on julia v0.5dev, you are right.
In general Gadlfy and its infrastructure is a little bit unmaintained at 
the moment.
 

> I am trying to use it but I got a long list of recompiling ?
>
 
Recompiling in itself is nothing wrong, that Gadfly triggers (via 
dependencies) a really long recompilation (a few minutes on my box) isn't 
nice, but not a showstopper.

What can I use instead ? I don't want to use plotly because I don't want to 
> have a password (which doesn't work properly either !) each time I 
> connect... It's very awfull this interface
>

Tom Breloff started to generalise a julia plotting API in Plots.jl that is 
used by many (? don't know exact numbers) and targets a list of backends, 
so you can decide. Tom made a comment in the Plots.jl development, he's 
positive to replace Gadfly with his development.

 


[julia-users] Re: Julia developing

2016-05-25 Thread Andreas Lobinger
Discuss ideas here or over there at julia-dev.
Development work will happen in https://github.com/JuliaLang/julia
http://docs.julialang.org/en/release-0.4/ contains a part developer 
documentation.



[julia-users] Re: julia equivalent of python [] (aka list)

2016-05-25 Thread Andreas Lobinger
Hello colleagues,

thanks for all answers. And now the punchline: How do i find this in the 
documentation? 

Wishing a happy day,
Andreas


Re: [julia-users] julia equivalent of python [] (aka list)

2016-05-24 Thread Andreas Lobinger
I tend to agree with you, however...

julia> d = Any[]
0-element Array{Any,1}

julia> type d1
   name::AbstractString
   content::Any[]
   end
ERROR: TypeError: d1: in type definition, expected Type{T}, got Array{Any,1}





On Tuesday, May 24, 2016 at 7:11:50 PM UTC+2, Stefan Karpinski wrote:
>
> Since Julia 0.4 [] is what you're looking for.
>
> On Tue, May 24, 2016 at 1:06 PM, Andreas Lobinger <lobi...@gmail.com 
> > wrote:
>
>> Hello colleagues,
>>
>> it really feels strange to ask this, but what is the julia equivalent of 
>> python's list?
>>
>> So.
>>
>>
>>1. can by initialised empty
>>2. subject of append and extend
>>3. accepting Any entry
>>4. foolproof usage in type definition... (my real problem seems to be 
>>here)
>>
>>
>> Wishing a happy day,
>>
>> Andreas
>>
>
>

[julia-users] julia equivalent of python [] (aka list)

2016-05-24 Thread Andreas Lobinger
Hello colleagues,

it really feels strange to ask this, but what is the julia equivalent of 
python's list?

So.


   1. can by initialised empty
   2. subject of append and extend
   3. accepting Any entry
   4. foolproof usage in type definition... (my real problem seems to be 
   here)


Wishing a happy day,

Andreas


[julia-users] Re: github missing Create Pull Request button

2016-05-23 Thread Andreas Lobinger
Example? (i had today some intermediate github problems with connectivity 
and functions)

On Monday, May 23, 2016 at 7:06:44 PM UTC+2, Cedric St-Jean wrote:
>
> I'm up to my 15th pull request or so, and almost every time I do 
> Pkg.submit("PackageName"), the opened webpage is missing the green "Create 
> Pull Request" button. I have to refresh to make it appear, then I can go 
> through, but today it just refuses to cooperate. I have googled the land 
> far and wide in search of a brother or sister with such an ailment, to no 
> avail, and so I ask myself, is there is some mysterious magic in Pkg.submit 
> that might bring about such a ghastly curse? I'm on OSX and it seems to be 
> a problem with either Firefox or Safari.
>


[julia-users] Re: Pkg.update for packages that changed repository (git remote)

2016-05-23 Thread Andreas Lobinger

On Sunday, May 22, 2016 at 11:06:49 PM UTC+2, Tony Kelman wrote:
>
> URLs in metadata need to be manually updated when repos are moved. It 
> doesn't need to be done right away because github puts in place a redirect, 
> but that redirect can be interfered with.
>
> What problems did you have with Showoff?
>

I ended up in a state where i needed to manually setup git remote for the 
'real' packages as well as my own forked copy. 
This question was more about, what should i expect -on the user only side- 
Pkg.update()?


[julia-users] Pkg.update for packages that changed repository (git remote)

2016-05-22 Thread Andreas Lobinger
Hello colleagues,

looking at METADATA for e.g. Gtk.jl i recognized that the development was 
moved from JuliaLang to JuliaGraphics. 
Will this be updated in a single step by Pkg.update or are there manual 
steps needed? (i had some problems with the ShowOff move).

Wishing a happy day,
Andreas


[julia-users] OT: getting a sublime text license

2016-05-22 Thread Andreas Lobinger
Hello colleagues,

it's offtopic, but i had the feeling i'm not alone testing sublime text. 

Do you know a way to pay for the license without using Paypal? I'm not a 
Paypal user and never wanted to be and the classical way of passing through 
Paypal via valid Credit Card seems now to be following the 
even-if-you-dont-want-to-be-our-user-you-need-to-handover-a-lot-of-data-to-us 
rule.

Any idea?

Wishing a happy day,
   Andreas


[julia-users] Re: static compilation

2016-05-06 Thread Andreas Lobinger
Hello colleague,

this topic is still seen as experimental and not that many of julia users 
could be considered expert on this...
If the recipe given (long time ago i tried to follow this on a linux 
installation which i general has more tooling to get shared libraries and 
compilation working...) doesn't work, you could raise a concrete issue on 
github - there you get more audience with julia internal know-how.

Wishing a happy day,

   Andreas


On Friday, May 6, 2016 at 8:51:47 AM UTC+2, Ján Adamčák wrote:
>
> Nobody???
>
> Dňa pondelok, 2. mája 2016 11:30:11 UTC+2 Ján Adamčák napísal(-a):
>>
>>
>> Hello,
>>
>> Trying to create an executable from Julia source, there are questions 
>> that raised... The process of exporting functions wasn't successful, 
>> function(s) was not exported to dll, and even the generated dll cant be 
>> loaded in c++ code. Below is the process explained in details:
>>
>> Can anybody bring more insight, how to build a standalone executable from 
>> Julia source?
>>
>>

[julia-users] Re: Compose.jl drawing in IJulia

2016-05-03 Thread Andreas Lobinger
Hello colleague,

how did you set the correct dimensions?

On Tuesday, May 3, 2016 at 10:53:59 AM UTC+2, Christoph Ortner wrote:
>
> If I create a context using `compose`, and then call  `display(ctx)`, then 
> I end up with an image that looks roughly right but doesn't have the 
> correct dimensions. 
>
> How can I fix it? 
>
> Thanks,
>Christoph
>
>

[julia-users] Re: What to do with those Gadfly warning/error messages?

2016-04-25 Thread Andreas Lobinger
These are Glib or Gtk warnings and in the first entry you see, which 
program/process caused them. Strange is, that you get them in your julia 
REPL. I see similar warnings in the terminals, where i started e.g. firefox.

On Tuesday, April 26, 2016 at 4:06:09 AM UTC+2, K leo wrote:
>
> Plots work, but there are a lot of messages print out to REPL.  What can I 
> do about them?  See below.
>
>
> $ juliag
>_
>_   _ _(_)_ |  A fresh approach to technical computing
>   (_) | (_) (_)|  Documentation: http://docs.julialang.org
>_ _   _| |_  __ _   |  Type "?help" for help.
>   | | | | | | |/ _` |  |
>   | | |_| | | | (_| |  |  Version 0.4.5 (2016-03-18 00:58 UTC)
>  _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
> |__/   |  x86_64-unknown-linux-gnu
>
> julia> using Plots
>
> julia> gadfly()
> Plots.GadflyBackend()
>
> julia> plot(x=rand(10), y=rand(10))
> [Plots.jl] Initializing backend: gadfly
> julia> 
> (Thunar:4638): GLib-GObject-WARNING **: invalid unclassed pointer in cast 
> to 'GObject'
>
> (Thunar:4638): GLib-GObject-CRITICAL **: g_object_set_qdata: assertion 
> 'G_IS_OBJECT (object)' failed
>
> (firefox:4651): Gtk-WARNING **: Theme directory  of theme oxygen has no 
> size field
>
>

[julia-users] Julia Package Ecosystem Pulse Last updated 2016-03-17?

2016-04-20 Thread Andreas Lobinger
Hello colleagues,

i learned this is triggered manually and not regularly, however looking at 
the webpage updates of 7 or 14 days are mentioned.

Wishing a happy day,
 Andreas


[julia-users] Re: 'do' notation in documentation?

2016-04-18 Thread Andreas Lobinger
Thank you for all answers.

I remembered, that i saw something in the documentation, but i rather 
suspected it in Control Flow.

Actually the foo(a,b,c) do x notation i also see as benefit. The foo(a,b,c) 
do without argument is leading to the 'wrong' assumptions, code would look 
clearer without...


[julia-users] 'do' notation in documentation?

2016-04-17 Thread Andreas Lobinger
Hello colleagues,

although it's around and found in some/many lines, where is actually the 
documentation of the 'do' notation.
I'm sitting here, trying to debug a Pkg problem and the lines
cd("METADATA") do
 something 
end

give me some problems in understanding. While it's obviously some kind of 
implicit loop, what is the loop index or subject?

Wishing a happy day,
Andreas


[julia-users] Re: Compose Plotting from REPL

2016-04-15 Thread Andreas Lobinger


On Friday, April 15, 2016 at 6:35:15 PM UTC+2, Christoph Ortner wrote:
>
> many tanks for this - that looks perfect.
>
>  unfortunately my Gtk installation seems broken, so it will be a while 
> until I can try this out.
>

_
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.4-pre+218 (2016-01-29 21:53 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 386d77b* (76 days old release-0.4)
|__/   |  x86_64-linux-gnu

julia> using Tk

julia> using Compose

julia> w = Tk.Window("a-title",100,200);

julia> c = Tk.Canvas(w, 100,200);

julia> Tk.pack(c, expand = true, fill = "both")
""

julia> function sierpinski(n)
   if n == 0
   compose(context(), polygon([(1,1), (0,1), (1/2, 0)]))
   else
   t = sierpinski(n - 1)
   compose(context(),
   (context(1/4,   0, 1/2, 1/2), t),
   (context(  0, 1/2, 1/2, 1/2), t),
   (context(1/2, 1/2, 1/2, 1/2), t))
   end
   end
sierpinski (generic function with 1 method)

julia> co = sierpinski(3);

julia> Compose.draw(CAIROSURFACE(c.back),co)

julia> Tk.draw(c)

is not self-updating (i'm really no tk expert (anymore)) and you need to do 
all drawing i.e. providing an empty background but at least you get 
something on screen. As Winston ws longer time Tk only, there should be 
signal handling code.




[julia-users] Re: Vectorised usage of Compose

2016-04-15 Thread Andreas Lobinger
Hello colleague,

On Friday, April 15, 2016 at 6:30:51 PM UTC+2, Christoph Ortner wrote:
>
> right I mean b) - I have 1000, say, line segments or polygons, each with 
> the same number of points. All I can do is loop, yes?
>
> Thanks,
>  Christoph
>
>
>
> you are saying this is currently not implemented, I just have to 
>

? 

I'm really not an Compose expert, you might look into Gadfly/form.jl how 
e.g. Geom.line plots are build.
If you need 'raw' drawing, looking into Cairo or 
https://github.com/cormullion/Luxor.jl or 
https://github.com/andrewcooke/Drawing.jl



[julia-users] Re: Vectorised usage of Compose

2016-04-15 Thread Andreas Lobinger
Hello colleague,

On Friday, April 15, 2016 at 5:17:29 PM UTC+2, Christoph Ortner wrote:
>
> I understand from the example 
> how to vectorise drawing of circles. 
>
> The syntax for a two-point line segment seems to beline( [(x0, y0), 
> (x1, y1)] ) I don't see an analogy with `circle`?
>
> But how do I vectorise lines? 
>

what is your meaning of 'vectorise lines'? 
a) have lines with more points -> 
compose(context(),line([(0.4,0.3),(0.6,0.2),(0.6,0.4)])); you just add 
tuples in the array
b) have more lines in the same primitive -> looks like, you need a new 
context for that.



[julia-users] Re: Compose Plotting from REPL

2016-04-15 Thread Andreas Lobinger
Hello colleague,

On Friday, April 15, 2016 at 4:00:34 PM UTC+2, Christoph Ortner wrote:
>
>
> I am trying to use Compose.jl directly instead of going through a plotting 
> package. From iPython notebooks invoking compose will immediately create 
> the output. 
>
> But when I am in the REPL, how do I plot to a window, similar as in PyPlot?
>

 the following works on my REPL with Gtk, and Compose (incl. Cairo):

   _
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.4-pre+218 (2016-01-29 21:53 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 386d77b* (76 days old release-0.4)
|__/   |  x86_64-linux-gnu

julia> using Gtk

julia> c = Gtk.@GtkCanvas(400,300);

julia> w = Gtk.@GtkWindow(c,"data win");

julia> show(c);

julia> using Compose
WARNING: using Compose.w in module Main conflicts with an existing 
identifier.

julia> function sierpinski(n)
   if n == 0
   compose(context(), polygon([(1,1), (0,1), (1/2, 0)]))
   else
   t = sierpinski(n - 1)
   compose(context(),
   (context(1/4,   0, 1/2, 1/2), t),
   (context(  0, 1/2, 1/2, 1/2), t),
   (context(1/2, 1/2, 1/2, 1/2), t))
   end
   end
sierpinski (generic function with 1 method)

julia> co = sierpinski(3);

julia> Gtk.draw(c) do widget
   Compose.draw(CAIROSURFACE(c.back),co)
   end

julia> co = sierpinski(5);

julia> co = sierpinski(2);

julia> Gtk.draw(c)


   - I use GtkCanvas and a Window around it.
   - Then the sierpinski demo from the Compose Readme, with the Compose 
   context as output.
   - Then i connect Gtk.draw function for c (=GtkCanvas) with the 
   Compose.draw function drawing to CAIROSURFACE as backend and use the c.back 
   - which is something like a Cairo surface (actually it's a pointer to a 
   Cairo context, but the surface can be reconstructed with that).
   - The drawing (co) is redrawn everytime there is an expose signal from 
   the window to the canvas, usually when you resize or map the window. You 
   can call Gtk.draw(c) manually if you updated the co.

Should work with standard Gtk and Compose (please report if not, i might 
need some PR then).




Re: [julia-users] Re: GtkIDE.jl, a semi-functional editor for Julia

2016-04-14 Thread Andreas Lobinger
Hello colleague,

On Thursday, April 14, 2016 at 2:34:28 PM UTC+2, lawrence dworsky wrote:
>
> I don't seem to be able to get any of this to work.  Both Pkg.add entries 
> return
>
>
> fatal: your current branch 'master' does not have any commits yet
> ...
> ...
> in add at pkg.jl:23
>
>
> I have no idea what this means. My installation of Julia is brand new so I 
> don't think it's messed up.
>

As the installation is brandnew, maybe something was not fully installed...
a) what is the output of Pkg.status()?
b) do other Pkg.add("Pkgname") work? 


[julia-users] package testing, other OSs

2016-04-11 Thread Andreas Lobinger
Hello colleagues,

i think i asked this here some time before, but maybe there is an update...

1) Is there a recommendation how to test packages on Windows, if one 
doesn't have a windows computer available? Travis-ci supports linux+OSX on 
x86-64 but that's it. (?)
2) pkg.julialang.org is run manually (and from time to time, not regular) 
and tests linux only?
3) How to test for julia on non-x86-64 (and btw: what non-x86-64 exists?)?

Wishing a happy day,
Andreas


[julia-users] Re: Macro expansion for ccall with tuple argument

2016-04-07 Thread Andreas Lobinger
Hello colleague,

i'm not an expert on macros, but if you try to learn correct macroexpansion 
you should use a different target than ccall. ccall looks like a regular 
function call but has special handling (you could see this in lowered code) 
and that's the reason the arguments are expected to be constants. In my own 
examples to build ccalls from paramters i build the expressions manually 
and eval-ed.

On Thursday, April 7, 2016 at 1:29:06 PM UTC+2, Laurent Bartholdi wrote:
>
> Hi,
> I'm trying to understand macro expansion, and am a bit stuck. I would 
> like, in distilled form, to have a macro "@do_ccall" which calls its 
> argument with Int type. Thus I would like
>
> julia> macroexpand(:(@do_ccall(f,1,2,3)))
> :(ccall(f,Int,(Int64,Int64,Int64),args...))
>
> and I programmed it as
> julia> macro do_ccall(f,args...) 
> :(ccall(f,Int,$(ntuple(i->Int,length(args))),args...)) end
> @do_ccall (macro with 1 method)
>
> Now the tuple argument just doesn't seem to get interpreted properly:
>
> julia> @do_ccall(C_NULL,1,2,3)
> ERROR: syntax: ccall argument types must be a tuple; try "(T,)"
>  in eval(::Module, ::Any) at ./boot.jl:237
>
> (note: calling the routine at C_NULL would have crashed Julia; it's just 
> for demonstration purposes)
>
> Thanks in advance! Laurent
>


[julia-users] Re: check exit code from ccall

2016-04-03 Thread Andreas Lobinger
ccall provides as output the return value of a call. If your library calls 
exit(1) then it interacts with the OS and asks for process termination.

On Sunday, April 3, 2016 at 9:52:08 AM UTC+2, Martin Kuzma wrote:
>
>
>
> Hi,
> is there a way to check exit status code from call to ccall? The c library 
> may call exit(1) if there is an error in the input and I want to be able to 
> check if exit code from ccall is 1. Thanks Martin
>


[julia-users] from 0.4 to 0.5

2016-03-25 Thread Andreas Lobinger
Hello colleagues,

i'm currently looking into the 0.4/0.5 transition (on my own code first, 
but) and i'm missing the big picture how to deal with syntax/language 
changes. Someone pointed out, Gadfly isn't usable (in 0.5 recent) and 
looking into Compose i see at least in one place (the makeform macro) some 
problems (mostly on my side understanding the logic of the macro).
While i see in History.md the language changes, where would i find 
information to map language-construct-v04 to language-construct-v05. afaiu 
Compat is using the 'new' and interfaces to the 'old'.

Wishing a happy day,
Andreas


Re: [julia-users] Re: cross-module exports / extending modules

2016-03-21 Thread Andreas Lobinger
Hello colleague,

merci, that was the discussion i was looking for (#14472 from Tim is in a 
similar area).
I do not have a clear need, otherwise i would have a full example. However 
this providing optional functions in modules - which is the only 'real' 
encapsulation mechanism in Julia shows up in some places and is/might be a 
0.6 issue. Because knowing in advance what type of system should be 
supported by a package is tricky...

On Monday, March 21, 2016 at 11:24:36 AM UTC+1, Milan Bouchet-Valat wrote:
>
> Le lundi 21 mars 2016 à 03:19 -0700, Andreas Lobinger a écrit : 
> > Hello colleague, 
> > 
> > sorry i wasn't clear enough. I'm aware of the MoO for packages and 
> > extensions and i'm a great fan of modularisation. However the topic 
> > of optional include/import or something like "require" (deprecated) 
> > is still around. Not everything can be formulated into a tree of 
> > dependencies that exist on all systems. I'm experimenting with libxcb 
> > (so close to X11) and i assume this will not be available for MS- 
> > Windows based systems.  
> It's still not clear to me why you'd need to add functions to an 
> existing module... 
>
> > But i'm still trying to find this in the issues. 
> Maybe you're looking for this? 
> https://github.com/JuliaLang/julia/pull/6884 
>
>
> Regards 
>
> > > If you want to add functions to the Cairo module, open pull 
> > > requests or use your fork for the time being. eval'ing into modules 
> > > that aren't yours is not a good practice. You can create a 
> > > CairoExtensions.jl package that depends on Cairo and uses its copy 
> > > of libcairo. 
>


[julia-users] Re: cross-module exports / extending modules

2016-03-21 Thread Andreas Lobinger
No.

More concrete, i want to put another function into Cairo and i want to 
avoid to load a second time libcairo.so. 

On Sunday, March 20, 2016 at 1:01:58 PM UTC+1, Gregory Salvan wrote:
>
> Hi,
> when you want to add methods on Base module (like getindex, getfield...) 
> you use "import Base.getindex" then write a new function with new types 
> args.
> for exemple to add methods in B.jl on functionA from A.jl
> import A.functionA
>
> function functionA(...)
>
> end
>
> Is what you were looking for?
>
> Le dimanche 20 mars 2016 11:25:10 UTC+1, Andreas Lobinger a écrit :
>>
>> Hello colleagues,
>>
>> i remember a discussion about this, but maybe without conclusion and 
>> maybe without the right keywords.
>>
>> Let's have module A (from package A.jl) with certain funcitionality and 
>> maybe some types.
>> Now module/package/code B.jl that somehow extends A with optional 
>> functions. How to put these functions under the A. API?
>> I'm pretty sure exports across modules don't work, but is there somewhere 
>> some functionality on this?
>>
>> Wishing a happy day,
>> Andreas
>>
>

[julia-users] cross-module exports / extending modules

2016-03-20 Thread Andreas Lobinger
Hello colleagues,

i remember a discussion about this, but maybe without conclusion and maybe 
without the right keywords.

Let's have module A (from package A.jl) with certain funcitionality and 
maybe some types.
Now module/package/code B.jl that somehow extends A with optional 
functions. How to put these functions under the A. API?
I'm pretty sure exports across modules don't work, but is there somewhere 
some functionality on this?

Wishing a happy day,
Andreas


[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-14 Thread Andreas Lobinger
Hello colleagues,

On Friday, March 11, 2016 at 4:35:27 PM UTC+1, Maurice Diamantini wrote:
>
> So I wonder if there is some interest for a QML binding which would allows 
> Julia code to display simple QML file (with callback to Julia methods!). 
> ...That seems to be a true Julia GSOC candidate project (i.e. which could 
> not be affected to another language...
>

just as a different flavour... It's not the first time people agree to have 
Qt5/QML or similar support for Julia would be great. However we still miss 
a working solution.

So maybe a better GSOC project would be to work on Clang and Cxx and 
similar to simplify FFI for julia?



 


Re: [julia-users] Re: Status of Plots.jl?

2016-03-14 Thread Andreas Lobinger
Hello colleague,

On Sunday, March 13, 2016 at 5:32:46 PM UTC+1, Josef Heinen wrote:
>
> GR supports the wxWidgets and Qt4 toolkits. Last week I added support for 
> Cairo graphics, which can be used as a drawing library for GTK+. So, 
> support for the GTK+ toolkit is on my radar ..
>

now i start to get confused. GR claims to be a implementation of a GKS with 
OpenGL. Well, Cairo is another implementation of a GKS and surprisingly is 
also providing a EGL/OpenGL backend (which is not optimized) along others. 
Can you give some background, why you would include Cairo into GR?

 


[julia-users] Pkg.publish() fails with ERROR: strangely formatted HTTP response

2016-03-13 Thread Andreas Lobinger
Hello colleagues,

i'm pretty sure i use the correct PW, but get

julia> Pkg.publish()
INFO: No new package versions to publish
INFO: Validating METADATA
INFO: Submitting METADATA changes
INFO: Forking JuliaLang/METADATA.jl to lobingera
Enter host password for user 'lobingera':
ERROR: strangely formatted HTTP response
 in curl at pkg/github.jl:53
 in curl at pkg/github.jl:56
 in token at pkg/github.jl:72
 in req at pkg/github.jl:99
 in POST at pkg/github.jl:112
 in fork at pkg/github.jl:125
 in pull_request at pkg/entry.jl:327
 in publish at pkg/entry.jl:394
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in publish at pkg.jl:61

what could be the actual error course?


Re: [julia-users] What to read to understand finishing v0.5?

2016-03-11 Thread Andreas Lobinger
Hello colleague,

On Friday, March 11, 2016 at 2:56:02 PM UTC+1, Daniel Carrera wrote:
>
> Hi Tim,
>
> I'm leaving on a work trip on Monday, but let's see if I can manage to 
> make a Julia contribution on a weekend. I need some help, as I've never 
> submitted any code for Julia before. I left a comment in the PR. Let's 
> start with the basics: How do I pull your modified branch / PR? How do I 
> run the tests? How do I submit my modified code back to you?
>

first of all: 
https://github.com/JuliaLang/julia/blob/master/CONTRIBUTING.md exists.
You really need some git experience and know how to organize your own work 
in local and github (your fork of julia) repositories. I found this helpful
http://stackoverflow.com/questions/27567846/how-can-i-checkout-a-github-pull-request

PRs you do (to julia) should be subject to automatic testing. 



Re: [julia-users] Re: What to read to understand finishing v0.5?

2016-03-10 Thread Andreas Lobinger
Afaics Gallium.jl is a thin layer on some other debugging/compiling 
infrastructure. The main work is not in Gallium.jl iself, but in the lower 
layers.

On Thursday, March 10, 2016 at 10:45:15 AM UTC+1, DNF wrote:
>
> On Thursday, March 10, 2016 at 7:00:46 AM UTC+1, Viral Shah wrote:
>>
>> This is about the right time to start the triage for the various 0.5 
>> issues. With all the amazing compiler improvements, LLVM upgrade, Cxx 
>> readiness, thread-safety (will probably remain disabled for 0.5 potentially 
>> unless it receives significant testing) and a number of other cool things, 
>> I agree with Stefan here that we should not wait for array views for 0.5, 
>> but certainly include all the other array changes. Also, we are working 
>> hard towards having a debugger ready, which potentially could be the last 
>> major feature before calling feature freeze.
>>
>
> By debugger, do you mean Gallium.jl? I have occasionally taken a look at 
> the repository, and got the impression that it was not very active.
>
> A debugger for Julia would be the most amazing thing! It is the single 
> most important missing feature that is holding me back from using Julia in 
> my day-to-day work. Have you any idea if it would be long before the 
> debugger could be integrated in the IDEs (Juno/Eclipse)?
>


[julia-users] What to read to understand finishing v0.5?

2016-03-09 Thread Andreas Lobinger
Hello colleagues,

i need a bigger picture of the status of v0.5, dates, timelines, missing 
features, missing testing, expected closing. Just go to github and select 
the v0.5 milestone gives me a diverse picture.

Wishing ahappy day,
Andreas


[julia-users] Re: Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Andreas Lobinger
In the discussions about ColorTypes it showed up, that the majority 
prefered color independent of opacity. I'd guess you need to get the 
colormap via Colors.jl and then add the opacity information (created by 
linscale etc.). But i'm not sure that applying a color defined as 
color+transparency (RGBA etc.) is clearly defined in all cases. At least in 
plotting/rendering using RGB is prevalent.

On Friday, February 12, 2016 at 10:48:06 AM UTC+1, Patrick Kofod Mogensen 
wrote:
>
> Is it possible to create a colormap as described in the title using 
> Colors.jl? I couldn't seem to find anything on Colormaps and 
> transparency/opacity.
>
> Best,
> Patrick
>


[julia-users] Re: Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Andreas Lobinger
discussion was about ColorTypes but not in -> 
https://github.com/JuliaLang/Color.jl/issues/101



[julia-users] Re: Coordinates of graph layout algorithms

2016-02-11 Thread Andreas Lobinger


On Thursday, February 11, 2016 at 12:13:21 AM UTC+1, hustf wrote:
>
> There was an inspiring related thread a little while ago:
>
>
> https://groups.google.com/forum/#!searchin/julia-users/graph$20glvisualize/julia-users/ybGrFVKGyDA/KEf6mY0mCwAJ
>
> My impression is that this subject is full of heuristics, and for graphs 
> like e.g. the complete Julia package system I believe interactivity is the 
> most effective heuristics there is. Compose can't offer that
>
>
I'm not fully in the picture, but it looked like Tim Holy has already 
extended a local Compose (re-)implementation for Immerse.jl for more 
interactivity. 


[julia-users] Re: Coordinates of graph layout algorithms

2016-02-11 Thread Andreas Lobinger
Hello colleague,

i touched the topic of a 'layout engine' a few times in various julia 
plotting discussions and would really like to see a package that deal with 
this, with an abstract interface and not tied to a special rendering step 
(different than d3.js). Graph layout would be a sub task of this. Actually 
Compose.jl is in some sense a layout engine of it's own, so at least there 
would be some parallel work. 

I'd be in favour of a dedicated graph layout package and i'd recommend to 
start fresh and import working code from the available kits.


[julia-users] Color.jl - Colors.jl?

2016-02-06 Thread Andreas Lobinger
Hello colleagues,

although i was somehow connected to the discussion about this transitions, 
i'm a little bit lost right now.
Is Colors.jl replacing Color.jl completely? Or it's 'just' a fork for the 
use of the new ColorTypes?
And why do i miss to see an issues tab on the githup page? Is the 
development closed to JuliaGraphics users?

Wishing a happy day,
 Andreas


[julia-users] Re: incompatibility of Tk and PyPlot

2016-02-02 Thread Andreas Lobinger
Hello colleague,

this is clearly a bug but i cannot track down where. I'd recommend an issue 
on PyPlot.

On Tuesday, February 2, 2016 at 5:04:28 PM UTC+1, Bernd Blasius wrote:
>
>
> One a side note, does anybody know if it is possible in a single program 
> to draw on a canvas in Tk AND use a plotting window to plot some data? 
> I am running a cellular automata (think Game of Life), use Tk to visualize 
> the state of the automata, but now want to plot some additional functions 
> and statistics of the running simulation.
>

I could guess, it's possible to have Tk and Winston in parallel, i'd 
recommend to look into the Gtk.jl and Winston integration. 


[julia-users] Re: recommended graphics packages for multiple curves on a single canvas

2016-02-01 Thread Andreas Lobinger
Hello colleague,

Tom Breloff maintains the Plots.jl (https://github.com/tbreloff/Plots.jl)  
package which is a meta-plotting thing (a layer above the actual plotting 
and rendering toolkits) and he collects some examples in 
https://github.com/tbreloff/ExamplePlots.jl, e.g. 
https://github.com/tbreloff/ExamplePlots.jl/tree/master/docs 
More than 1 curve on a single plot is supported by most backends, subplot 
by many.

Hope that helps,
   Andreas

On Monday, February 1, 2016 at 4:53:30 AM UTC+1, Michael Landis wrote:
>
> Can anyone recommend a graphics capable of plotting multiple curves on a 
> single canvas.  Python's pyplot/matplotlib multi-curve capabilities appear 
> to be unavailable within Julia (maybe I'm doing it wrong).
>


Re: [julia-users] Re: Adding another function to Cairo.jl

2016-01-26 Thread Andreas Lobinger
It took me some iterations to get a PR and the git/github logic correctly 
(you might look into my old and closed PRs). I'd recommend (because i 
believe in testing) to do add an example along the implementation. And i 
want to turn around your comment: The thing about Cairo and Cairo.jl is — 
once you get it installed and working, it's very easy to mess with it!

On Tuesday, January 26, 2016 at 10:06:48 AM UTC+1, cormu...@mac.com wrote:
>
> @tshort - Thanks, that's what I forgot... ! It works fine, I'll see about 
> making a pull request. (The thing about Cairo and Cairo.jl is — once you 
> get it installed and working, you don't want to mess with it... :))



[julia-users] Re: Adding another function to Cairo.jl

2016-01-25 Thread Andreas Lobinger
Hello colleague,

i agree, this is missing and should show up in a PR.

Wishing a happy day,
Andreas



[julia-users] Re: problems reading a file

2016-01-24 Thread Andreas Lobinger
Hello colleague,

i think i once had a similar problem.
https://github.com/JuliaLang/julia/issues/12764

Wishing a happy day,
 Andreas



[julia-users] Re: Shell commands in Julia 0.4.2 in Windows 10

2016-01-20 Thread Andreas Lobinger
Hello colleague,

On Wednesday, January 13, 2016 at 11:28:39 PM UTC+1, Tony Kelman wrote:
>
> Unix shell commands that we happened to be getting from git are no longer 
> on Julia's path. This is not temporary. Windows is not unix. If you want to 
> use unix shell commands on windows, either download and add your own 
> windows posix layer to your path (temporarily in juliarc, not permanently 
> where it will break other software), or call powershell which has many 
> aliases spelled the same as unix shell commands.


i agree, windows is not unix (it never was) and the following might not be 
helpful, but 
Matlab provides (on any OS) a very small set of shell-like commands (cd, 
dir, ls,mkdir, rmdir,  delete, movefile, copyfile).

And providing something like this at a julia REPL should be considered user 
friendly.

Wishing a happy day,
   Andreas
 


Re: [julia-users] trying to build Cxx, general

2016-01-10 Thread Andreas Lobinger
Hello colleagues,

On Sunday, January 10, 2016 at 7:15:33 PM UTC+1, Isaiah wrote:
>
> - Cxx.jl master
> - Julia with `LLVM_VER=3.7.1`
> - and manually patched LLVM (but this is probably only necessary on Mac)
> https://github.com/JuliaLang/julia/issues/14585#issuecomment-169712071
>
> However, at this point, unless you are willing/able to debug LLVM-level 
> issues, I don't recommend using this setup. Please be patient. As you can 
> see in the second issue I linked, work is ongoing to fix memory/performance 
> issues.
>

i fully understand the "Please be patient" and none of my current 
developments rely on Cxx (similar for Gallium). Still, i'm wondering if 
there are previous, working Cxx/julia pairs around, as the discussions in 
julia-users/dev tell me, and there was a presentation claiming it to be 
available at JuliaCon 2015: "Shaving the Yak: Why Julia now has one of the 
best C++ FFIs and what to do with it" cite " Since last year, the C++ FFI 
has been completely
rewritten based on staged functions, has gained an interactive C++ REPL 
mode and has reached a
point where it has become useful, not only as a toy research project but 
has become usable for real
applications."

So?




Re: [julia-users] trying to build Cxx, unable to access llvm.org/git

2016-01-10 Thread Andreas Lobinger
Thanks for the reply. Waiting only (for llvm.org to come back) helped 
already...

On Saturday, January 9, 2016 at 6:05:44 PM UTC+1, Isaiah wrote:
>
> HTTPS://github.com/llvm-mirror 
>
> You can set custom irks in make.user
>
> On Saturday, January 9, 2016, Andreas Lobinger <lobi...@gmail.com 
> > wrote:
>
>> Hello colleagues,
>>
>> is this some kind of wrong pointer, or is llvm.org down?
>>
>> Cloning into 
>> '/home/lobi/julia05/deps/srccache/llvm-svn/projects/compiler-rt'...
>> fatal: unable to access 'http://llvm.org/git/compiler-rt.git/': Recv 
>> failure: Connection reset by peer
>>
>> And if, is there a mirror of the content?
>>
>> Wishing a happy day,
>>  Andreas
>>
>>
>>

[julia-users] trying to build Cxx, general

2016-01-10 Thread Andreas Lobinger
Hello colleagues,

i ran now into a build problem (like this:

lobi@orange321:~/julia05$ make 
CC src/codegen.o
In file included from 
/home/lobi/julia05/usr/include/llvm/ADT/SmallVector.h:20:0,
 from 
/home/lobi/julia05/usr/include/llvm/Support/Allocator.h:24,
 from 
/home/lobi/julia05/usr/include/llvm/ADT/StringMap.h:18,
 from /home/lobi/julia05/usr/include/llvm/Support/Host.h:17,
 from /home/lobi/julia05/usr/include/llvm/ADT/Hashing.h:49,
 from /home/lobi/julia05/usr/include/llvm/ADT/ArrayRef.h:13,
 from /home/lobi/julia05/usr/include/llvm/IR/User.h:22,
 from /home/lobi/julia05/usr/include/llvm/IR/Constant.h:17,
 from 
/home/lobi/julia05/usr/include/llvm/IR/GlobalValue.h:21,
 from 
/home/lobi/julia05/usr/include/llvm/ExecutionEngine/JITSymbolFlags.h:17,
 from 
/home/lobi/julia05/usr/include/llvm/ExecutionEngine/RuntimeDyld.h:17,
 from 
/home/lobi/julia05/usr/include/llvm/ExecutionEngine/ExecutionEngine.h:18,
 from /home/lobi/julia05/src/codegen.cpp:21:

).

And i'm a little bit lost, how to get a running/working Cxx (which is only 
a dependency of another project). 

The build instructions on https://github.com/Keno/CXX.jl start with "You 
will need to install Julia v0.4-dev with some special options." and follow 
with "Get the latest git checkout from 
https://github.com/JuliaLang/julia.git then add" which seems to me 
unconsistent...

1) Can i get Cxx somehow as package?
2) Are the recent build instructions available that target a debian/ubuntu 
out-of-the-box?
3) I have some reasons to believe people are using Cxx with a v0.4 
(non-dev), any clue how you got it running?

Any other pointers for USING Cxx? Actually i wasn't interested into 
building it on my own, but the Cxx instructions make it clear you have to 
build llvm all from scratch + julia which is on my box a job with several 
hours runtime.

Wishing a happy day,
Andreas


Re: [julia-users] trying to build Cxx, general

2016-01-10 Thread Andreas Lobinger
Thanks for the short answers.

On Sunday, January 10, 2016 at 5:22:36 PM UTC+1, Isaiah wrote:
>
> 1) Can i get Cxx somehow as package?
>
> No 
>
>>
>> 2) Are the recent build instructions available that target a 
>> debian/ubuntu out-of-the-box?
>
> No 
>
>>
>> 3) I have some reasons to believe people are using Cxx with a v0.4 
>> (non-dev), any clue how you got it running?
>>
>
> At least for me, by fixing problems I encountered:
> https://github.com/Keno/Cxx.jl/pull/214 
> 
>

So you run a v0.4 without modifications and install Cxx with this PR?


[julia-users] trying to build Cxx, unable to access llvm.org/git

2016-01-09 Thread Andreas Lobinger
Hello colleagues,

is this some kind of wrong pointer, or is llvm.org down?

Cloning into 
'/home/lobi/julia05/deps/srccache/llvm-svn/projects/compiler-rt'...
fatal: unable to access 'http://llvm.org/git/compiler-rt.git/': Recv 
failure: Connection reset by peer

And if, is there a mirror of the content?

Wishing a happy day,
 Andreas




[julia-users] Re: current time with miliseconds?

2016-01-02 Thread Andreas Lobinger
That's fine. But i didn't get it from the docu.

On Friday, January 1, 2016 at 8:29:52 PM UTC+1, Tobias Knopp wrote:
>
> On Julia 0.4 this is possible:
>
>
> *julia> **Dates.unix2datetime(time())*
>
> *2016-01-01T19:24:14.674*
>
>
>
>

  1   2   3   4   >