Re: [julia-users] segfault when building master on linux

2016-07-27 Thread Tony Kelman
Sorry bout that, I have a knack for causing build issues that end up making 
everyone rebuild llvm as accidental (or sometimes necessary) side effects 
of fixing other various things.

make -C deps distclean-llvm

should be enough for this and hopefully it won't come back after that. 
fe193b532d8b18b7dd5a68c363dd0850b78dbf50 was my fix for an actual build 
issue (only seen on ARM and Power) with trying to apply patches multiple 
times, but it was flawed and actually broken for from-scratch builds (which 
I should have tested! the CI and buildbots, most of the time, test 
incremental rebuilds with the deps still in place or cached from the 
previous build). c31c5f69955644f0c5d9ff6f41c33c5751f6ef77 fixed the flaw in 
the earlier commit to make from-scratch builds work again, but for reasons 
I don't entirely know, caused this segfault issue (likely due to one or two 
of our llvm patches not getting applied, or getting reversed, or something. 
our makefiles are nasty convoluted beasts that we need to eventually 
replace with something more uniform, standardized, and less error-prone).


On Wednesday, July 27, 2016 at 8:04:40 PM UTC-7, Yichao Yu wrote:
>
> On Thu, Jul 28, 2016 at 8:40 AM, andrew cooke  > wrote: 
> > 
> > last log is 
> > 
> > commit bcc2121dc31647fc0999d09c10df91d35f216838 
> > Merge: d0a378d 276c52e 
> > Author: Jeff Bezanson > 
> > Date:   Wed Jul 27 14:28:16 2016 -0600 
> > Merge pull request #17638 from JuliaLang/jb/cleanup 
> > formatting fixes and code cleanup 
> > 
> > and this is the error (after make clean, then make, and waiting some 
> time): 
> > 
> > Copying in usr/share/doc/julia/examples 
> > JULIA usr/lib/julia/inference.ji 
> > /bin/sh: line 1: 17651 Segmentation fault 
> > /home/andrew/pkg/julia-0.5/usr/bin/julia -C native --output-ji 
> > /home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji --startup-file=no 
> > coreimg.jl 
> > Makefile:215: recipe for target 
> > '/home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji' failed 
> > make[1]: *** [/home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji] 
> Error 
> > 139 
> > Makefile:96: recipe for target 'julia-inference' failed 
> > make: *** [julia-inference] Error 2 
> > 
> > 
> > i can't find anything here or on the dev list recently.  anyone have any 
> > hints? 
> > 
> > (i want julia-0.5 to test a patch) 
>
> Something about llvm patching was messed up. 
>
> > 
> > thanks, 
> > andrew 
> > 
>


Re: [julia-users] segfault when building master on linux

2016-07-27 Thread Yichao Yu
On Thu, Jul 28, 2016 at 8:40 AM, andrew cooke  wrote:
>
> last log is
>
> commit bcc2121dc31647fc0999d09c10df91d35f216838
> Merge: d0a378d 276c52e
> Author: Jeff Bezanson 
> Date:   Wed Jul 27 14:28:16 2016 -0600
> Merge pull request #17638 from JuliaLang/jb/cleanup
> formatting fixes and code cleanup
>
> and this is the error (after make clean, then make, and waiting some time):
>
> Copying in usr/share/doc/julia/examples
> JULIA usr/lib/julia/inference.ji
> /bin/sh: line 1: 17651 Segmentation fault
> /home/andrew/pkg/julia-0.5/usr/bin/julia -C native --output-ji
> /home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji --startup-file=no
> coreimg.jl
> Makefile:215: recipe for target
> '/home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji' failed
> make[1]: *** [/home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji] Error
> 139
> Makefile:96: recipe for target 'julia-inference' failed
> make: *** [julia-inference] Error 2
>
>
> i can't find anything here or on the dev list recently.  anyone have any
> hints?
>
> (i want julia-0.5 to test a patch)

Something about llvm patching was messed up.

>
> thanks,
> andrew
>


[julia-users] Re: segfault when building master on linux

2016-07-27 Thread andrew cooke

well, checking out and building completely from zero fixed it, whatever it 
was.

On Wednesday, 27 July 2016 20:40:44 UTC-4, andrew cooke wrote:
>
>
> last log is
>
> commit bcc2121dc31647fc0999d09c10df91d35f216838
> Merge: d0a378d 276c52e
> Author: Jeff Bezanson 
> Date:   Wed Jul 27 14:28:16 2016 -0600
> Merge pull request #17638 from JuliaLang/jb/cleanup
> formatting fixes and code cleanup
>
> and this is the error (after make clean, then make, and waiting some time):
>
> Copying in usr/share/doc/julia/examples
> JULIA usr/lib/julia/inference.ji
> /bin/sh: line 1: 17651 Segmentation fault  /home/andrew/pkg/julia-0.5/
> usr/bin/julia -C native --output-ji /home/andrew/pkg/julia-0.5/usr/lib/
> julia/inference.ji --startup-file=no coreimg.jl
> Makefile:215: recipe for target 
> '/home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji' failed
> make[1]: *** [/home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji] Error 
> 139
> Makefile:96: recipe for target 'julia-inference' failed
> make: *** [julia-inference] Error 2
>
>
> i can't find anything here or on the dev list recently.  anyone have any 
> hints?
>
> (i want julia-0.5 to test a patch)
>
> thanks,
> andrew
>
>

[julia-users] segfault when building master on linux

2016-07-27 Thread andrew cooke

last log is

commit bcc2121dc31647fc0999d09c10df91d35f216838
Merge: d0a378d 276c52e
Author: Jeff Bezanson 
Date:   Wed Jul 27 14:28:16 2016 -0600
Merge pull request #17638 from JuliaLang/jb/cleanup
formatting fixes and code cleanup

and this is the error (after make clean, then make, and waiting some time):

Copying in usr/share/doc/julia/examples
JULIA usr/lib/julia/inference.ji
/bin/sh: line 1: 17651 Segmentation fault  /home/andrew/pkg/julia-0.5/
usr/bin/julia -C native --output-ji /home/andrew/pkg/julia-0.5/usr/lib/julia
/inference.ji --startup-file=no coreimg.jl
Makefile:215: recipe for target 
'/home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji' failed
make[1]: *** [/home/andrew/pkg/julia-0.5/usr/lib/julia/inference.ji] Error 
139
Makefile:96: recipe for target 'julia-inference' failed
make: *** [julia-inference] Error 2


i can't find anything here or on the dev list recently.  anyone have any 
hints?

(i want julia-0.5 to test a patch)

thanks,
andrew



[julia-users] Re: Does a wrapper for gmtime exist

2016-07-27 Thread Jeffrey Sarnoff
Andy,

You are welcome to use https://github.com/J-Sarnoff/UTime.jl

Pkg.clone("https://github.com/J-Sarnoff/UTime.jl";)
using UTime

localtime()
2016-07-27T14:41:37.497-04:00

ut()
2016-07-27T18:41:42Z

gmt() # gmt aliases ut
2016-07-27T18:41:45Z

alocaltime = localtime()
2016-07-27T14:42:04.282-04:00
ut(alocaltime)
2016-07-27T18:42:04.282Z

auniversaltime = ut()
2016-07-27T18:42:24Z
localtime(auniversaltime)
2016-07-27T14:42:24-04:00

julia> g=gmt(); g
2016-07-27T18:50:48Z

julia> year(g),month(g),day(g),hour(g),minute(g),second(g)
(2016,7,27,18,50,48)



There is more that one may do using UTime, take a look at the README 
examples.


It has been some time since I revisited it, so please ask if you have any 
questions, 
and let me know if there is something that is not now working as it had.
I just ran the examples above in v0.5-.

Regards, 
Jeffrey

On Wednesday, July 27, 2016 at 9:32:56 AM UTC-4, Andrew Gibb wrote:
>
> Hi,
>
> I'm writing a module for dealing with video timing. The C++ code I'm using 
> as a basis uses gmtime to convert seconds into y:m:d.etc. Does anyone know 
> if this functionality is exposed in Julia anywhere?
>
> I realise I could handle this myself with ccall, I just wanted to check to 
> see if I could avoid duplicating effort.
>
> Thanks
>
> Andy
>


[julia-users] Re: unable to connect to FTP using IP address

2016-07-27 Thread Yared Melese
Hi Samuel, 

Here is how it is done in matlab
% connect to ftp 
f = ftp(host, username, password)
mget(f,'dataOnFTP.bin')

% read data from file 
readData = fopen('dataOnFTP.bin', 'r', 'ieee-le') 

%delete file from server 
delete(f, 'dataOnFTP.bin');

 Here one thing not included is I would like to find the latest file from 
FTP server because there might be similar names with different suffix. 

Thanks 
Yared




On Tuesday, July 26, 2016 at 1:29:36 PM UTC-5, Samuel Massinon wrote:

> No worries, can you show me how you get the file with another program?
>
> On Tuesday, July 26, 2016 at 10:09:06 AM UTC-5, Yared Melese wrote:
>>
>> Hi Samuel, 
>>
>> Thanks for your inputs 
>>
>> I am trying to connect to a file server with IP address and get the 
>> latest file with certain extension then process the data and save it on 
>> local drive, then delete the file from the server. 
>>
>> Sorry, I don't know how to get files from Curl, it seems it is mainly 
>> designed for Http 
>>
>> Thanks 
>> Yared
>>
>>
>>
>>
>>
>>
>> On Thursday, July 21, 2016 at 1:56:01 PM UTC-5, Samuel Massinon wrote:
>>
>>> Hi Yared,
>>>
>>> The error you are getting is something LibCURL is erring on, as 
>>> described here. https://curl.haxx.se/libcurl/c/libcurl-errors.html
>>>
>>> If I try using curl with your settings, I get
>>> ~ $ curl -u anonymous '192.168.251.200/dataOnFTP.bin 
>>> 
>>> '
>>> Enter host password for user 'anonymous':
>>> curl: (7) Failed to connect to 192.168.251.200 port 80: Network is 
>>> unreachable
>>>
>>> The FTPClient.jl uses the same library as curl and if you could post how 
>>> to get the file with curl, I might be able to better serve you.
>>>
>>> On Wednesday, July 20, 2016 at 4:17:29 PM UTC-5, Yared Melese wrote:



 Hello 

 Would you please let me know if I missed anything, I am using FTPClient 
 and using IP address as a host but not able to connect 
 Here are my commands 

 using FTPClient
 ftp_init()
 ftp = FTP(host="192.168.251.200", implt=true, ssl=true, 
 user="anonymous", pswd="")
 binary(ftp)
 file = download(ftp, "dataOnFTP.bin", "C:\Users\xyz\test.bin")
 close(ftp)
 ftp_cleanup()

 when sending  " using FTPClient" there are bunch of warnings as shown 
 below partially
 WARNING: Base.String is deprecated, use AbstractString instead.
   likely near C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:35
 WARNING: Base.String is deprecated, use AbstractString instead.
   likely near C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:67
 WARNING: Base.Uint8 is deprecated, use UInt8 instead.
   likely near C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:81
 ..
 .
 .and at the end I am getting the following error 

 ERROR: Failed to connect. :: LibCURL error #7
  [inlined code] from 
 C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:138
  in ftp_command at C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:454
  in ftp_connect at C:\Users\melese\.julia\v0.4\FTPClient\src\FTPC.jl:493
  in call at C:\Users\melese\.julia\v0.4\FTPClient\src\FTPObject.jl:23

 Thanks 
 Yared

>>>

[julia-users] Re: [ANN] Nemo 0.5 released

2016-07-27 Thread Patrick Kofod Mogensen
Congrats, and good looking benchmarks you're sporting :)

On Tuesday, July 26, 2016 at 11:07:44 PM UTC+2, Bill Hart wrote:
>
> Hi all,
>
> We are pleased to release version 0.5 of Nemo, our computer algebra 
> package written in Julia. 
>
> Instructions on how to get Nemo are on our website:
>
> http://nemocas.org/downloads.html
>
> Note that we have moved our repository, so existing users may need to 
> reinstall.
>
> Documentation for Nemo, including example code, how to get started etc., 
> is available online:
>
> http://nemocas.github.io/Nemo.jl/latest/
>
> The new features of Nemo 0.5 include:
>
> * Wrap Arb's arb_mat, acb_mat (matrices over R and C)
> * Wrap Arb's arb_poly, acb_poly (polys over R and C)
> * Completely rewritten, online documentation
> * Wrap Flint's fmpq_mat (matrices over Q)
> * Nullspace over the integers (using HNF)
> * Factorisations now return a Dict
> * Make caching of parent objects optional
> * Add benchmarks
> * Remove a lot of type instability
> * Integrate C libraries with Julia's counted malloc
> * Redesign abstract type hierarchy
> * Appveyor continuous integration for Windows
> * Lots of cleaning up and restructuring of the code base
> * Many bug fixes
>
> We will release a small update in the next few weeks to support Julia 0.5 
> when it comes out, However it should work with nightlies right now with 
> some warnings.
>  
> Enjoy,
>
> The Nemo Developers.
>


Re: [julia-users] Does a wrapper for gmtime exist

2016-07-27 Thread Isaiah Norton
IIUC, the Julia DateTime object represents UT (milli)seconds, and has
converters to/from human-readable dates and local time.

http://docs.julialang.org/en/release-0.4/manual/dates/

On Wed, Jul 27, 2016 at 9:32 AM, Andrew Gibb  wrote:

> Hi,
>
> I'm writing a module for dealing with video timing. The C++ code I'm using
> as a basis uses gmtime to convert seconds into y:m:d.etc. Does anyone know
> if this functionality is exposed in Julia anywhere?
>
> I realise I could handle this myself with ccall, I just wanted to check to
> see if I could avoid duplicating effort.
>
> Thanks
>
> Andy
>


[julia-users] Does a wrapper for gmtime exist

2016-07-27 Thread Andrew Gibb
Hi,

I'm writing a module for dealing with video timing. The C++ code I'm using 
as a basis uses gmtime to convert seconds into y:m:d.etc. Does anyone know 
if this functionality is exposed in Julia anywhere?

I realise I could handle this myself with ccall, I just wanted to check to 
see if I could avoid duplicating effort.

Thanks

Andy


[julia-users] Embedding Julia - Multiple worker processes

2016-07-27 Thread Chris Cheetham
Hi there,

Is it possible to enable multiple worker processes when embedding Julia? 

I am just trying to get my head around Julia's Parallel Computing and from 
the docs it is possible to do this via a command argument when starting 
julia ( -p n )
http://docs.julialang.org/en/release-0.4/manual/parallel-computing/

However, is this possible when creating a Julia instance from C? jl_init() 
does not take any relevant arguments and I have not managed to find 
anything in the docs that suggests a way to do so once Julia is initialized?

What I am really after is running some Julia logic on a dedicated worker 
thread in parallel with our main Julia code.

Many thanks,
Chris