Re: [julia-users] Using -args to execute a function for different parameters

2016-10-29 Thread Josef Sachs
> On Sat, 29 Oct 2016 12:59:45 -0700 (PDT),  said:

> 3. This is the most confusing part for me. I really don't get the Julia 
> equivalent of these two lines. if __name__ == "__main__":
>   main(sys.argv[1:])

It seems like a lot of members of the Julia community do not really like
this usage, but there is an equivalent in v0.5.  See
https://groups.google.com/forum/#!topic/julia-users/INlaEr8fBbU


Re: [julia-users] Using -args to execute a function for different parameters

2016-10-27 Thread Josef Sachs
> On Thu, 27 Oct 2016 04:51:42 -0700 (PDT),  said:

> Hello, I've been using Julia for a month probably and I would now
> like to execute a bash script containing a set of commands to run
> the same file for different arguments.

Within Julia, you can inspect the global constant ARGS.
See http://docs.julialang.org/en/release-0.5/manual/getting-started/

For something more sophisticated, see
https://github.com/carlobaldassi/ArgParse.jl


[julia-users] Docs unavailable?

2016-07-11 Thread Josef Sachs

http://docs.julialang.org/
gives me
Service Unavailable
The service is temporarily unavailable. Please try again later.

Is this a known issue?  Any reasonable alternatives?


[julia-users] File created with different mode in v0.5 than in v0.4

2016-07-10 Thread Josef Sachs
What explains this difference between v0.4 (644) and v0.5 (664)?
I don't see anything in NEWS.md.
(offhand, I agree that the v0.5 behavior makes more sense.)

AWS-Sachs-Ubuntu$ umask
002
AWS-Sachs-Ubuntu$ julia
   _
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.7-pre+3 (2016-07-10 08:08 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit eb322c0 (0 days old release-0.4)
|__/   |  x86_64-linux-gnu

julia> io = open("/home/sachs/temp4", "w");

julia> oct(filemode("/home/sachs/temp4"))
"100644"

julia> exit()
AWS-Sachs-Ubuntu$ usr/bin/julia
   _
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+5260 (2016-07-10 01:41 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit f8d67f7 (0 days old master)
|__/   |  x86_64-linux-gnu

julia> io = open("/home/sachs/temp5", "w");

julia> oct(filemode("/home/sachs/temp5"))
"100664"


Re: [julia-users] How to locate cause of deprecation warning?

2016-06-16 Thread Josef Sachs
> On Thu, 16 Jun 2016 04:34:36 -0700 (PDT),  said:

> Have you discovered the joys of Lint.jl ? 
> (https://github.com/tonyhffong/Lint.jl). I've found it pretty useful in the 
> past, although I don't know how up to date it is at the moment.

I've been meaning to try it, but didn't get around to it until now.

It appears that Lint.jl does not currently support v0.5.
Too early to submit a GitHub issue for that?

I should probably submit a feature request (GitHub issue) for
syntax deprecations to report file names and line numbers.


[julia-users] How to locate cause of deprecation warning?

2016-06-16 Thread Josef Sachs
What is the easiest way for me to locate in the source code
the cause of a depraction warning?  Some deprecation warnings
actually give the file name and line number.

AWS-Sachs-Ubuntu$ usr/bin/julia -e "using Gallium"
INFO: Recompiling stale cache file /home/sachs/.julia/lib/v0.5/Gallium.ji for 
module Gallium.

WARNING: deprecated syntax "[a=>b for (a,b) in c]".
Use "Dict(a=>b for (a,b) in c)" instead.


Re: [julia-users] Re: Congratulations to Keno

2016-05-27 Thread Josef Sachs
> On Fri, 27 May 2016 16:24:35 -0700 (PDT), Eric Forgy said:

> It must be a very public secret since they won't tell us :)
> I would love to congratulate Keno too, but feels a little hollow not knowing 
> why :)

I don't have all the details (Keno is quite modest), but I think
it has to do with caps and gowns and diplomas.


[julia-users] Congratulations to Keno

2016-05-26 Thread Josef Sachs
Well done!  Onward and upward!


[julia-users] JuliaCon birds of a feather

2016-05-17 Thread Josef Sachs
Will there be any organized or unorganized opportunities for
birds of a feather sessions at JuliaCon?  I would be particularly
interested in

(1) Julia on Amazon Web Services, and

(2) editors and IDEs for Julia (There was talk at one point about
arranging a NYC Julia User Group meeting where we would be talking
about how to get various text editors set up to work with Julia,
but doing it at JuliaCon would probably be even better.  It would
also be great to see a demo of JuliaDT, the Eclipse plugin, if that
could be arranged.)


Re: [julia-users] Re: edit() with foreground emacs

2016-04-14 Thread Josef Sachs
> On Thu, 14 Apr 2016 07:46:18 -0700 (PDT), daniel matz said:

> I'm on Mac OS X with Julia 0.4.3.  The edit function is defined in
> interactiveutil.jl
> .

> What is the output if you run this at the REPL:

> Base.editor()

(when I unset JULIA_EDITOR)
Base.editor() == ["emacs"]

> What happens if you do this at the REPL:

> run(`emacs Makefile`)

That runs emacs until I exit it, at which time I am back at the Julia REPL.
That is what I want edit() to do.

> If you notice in the definition of edit that I linked to, when the
> editor is emacs, it uses spawn instead of run.

Yes, that's the problem.  I want emacs to be invoked with run(), not with
spawn().  My JULIA_EDITOR=mvim (where mvim is a symbolic link to emacs)
kludge works, but it's a kludge.


[julia-users] Re: edit() with foreground emacs

2016-04-13 Thread Josef Sachs
>>>>> On Wed, 13 Apr 2016 14:03:08 -0700 (PDT), daniel matz said:

> It seems to work for me.  What were you trying to set JULIA_EDITOR
> to when you were trying emacs?  Were you trying to use console emacs
> with emacs -nw?

> On Wednesday, April 13, 2016 at 7:46:21 AM UTC-5, Josef Sachs wrote:
>> 
>> Is there a way that I can use edit() to start emacs in the
>> foreground with support for line number?
>> 
>> As a kludge, I am currently setting JULIA_EDITOR=mvim, and I have a
>> mvim in my PATH that is a symbolic link to emacs.

My EDITOR is set to emacs.  I am connected to an Ubuntu system via ssh,
with no X Window System.  When I unset JULIA_EDITOR and run julia,

julia> edit("Makefile")
emacs: standard input is not a tty

Maybe that's what you mean by "console emacs"?

Are you running the X Window System?  If so, then running emacs in the
background would work.


[julia-users] edit() with foreground emacs

2016-04-13 Thread Josef Sachs
Is there a way that I can use edit() to start emacs in the foreground
with support for line number?

As a kludge, I am currently setting JULIA_EDITOR=mvim, and I have a
mvim in my PATH that is a symbolic link to emacs.


Re: [julia-users] Re: Julia command line usage: tool versus library

2016-04-01 Thread Josef Sachs
> On Fri, 1 Apr 2016 06:11:26 -0700 (PDT), Curtis Vogt said:

> There does exist a way to do this in Julia 0.5 using the PROGRAM_FILE
> 
> constant:

> [ ... ]

Curtis, thanks so much for that.

Just want to note that it is mistakenly in the v0.4.0 release notes,
but as you noted the feature is in 0.5 and not 0.4.  Sorry I don't
have time right now to submit a pull request to fix it.


[julia-users] Build failure on msys2

2016-03-26 Thread Josef Sachs
I am getting the following error trying to build julia master
on Windows 7 msys2.  Can anyone suggest a solution?  Thanks.

$ make
llvm[3]: Building Intrinsics.gen.tmp from Intrinsics.td
llvm-tblgen.exe: Unknown command line argument '-I'.  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument 
'C:/Users/s2sajs/Documents/SVN/GitHub/juliamaster/deps/srccache/llvm-3.7.1/lib/IR'.
  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument '-I'.  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument 
'C:/Users/s2sajs/Documents/SVN/GitHub/juliamaster/deps/srccache/llvm-3.7.1/include'.
  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument '-I'.  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument 
'C:/Users/s2sajs/Documents/SVN/GitHub/juliamaster/deps/srccache/llvm-3.7.1/include'.
  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument '-I'.  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument 
'C:/Users/s2sajs/Documents/SVN/GitHub/juliamaster/deps/srccache/llvm-3.7.1/lib/Target'.
  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument 
'C:/Users/s2sajs/Documents/SVN/GitHub/juliamaster/deps/srccache/llvm-3.7.1/include/llvm/IR/Intrinsics.td'.
  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument '-o'.  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument 
'C:/Users/s2sajs/Documents/SVN/GitHub/juliamaster/deps/build/llvm-3.7.1/build_Release/lib/IR/Release/Intrinsics.gen.tmp'.
  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
llvm-tblgen.exe: Unknown command line argument '-gen-intrinsic'.  Try: 
'C:\Users\s2sajs\Documents\SVN\GitHub\juliamaster\deps\build\llvm-3.7.1\build_Release\Release\bin\llvm-tblgen.exe
 -help'
Makefile:23: recipe for target 
'/c/Users/s2sajs/Documents/SVN/GitHub/juliamaster/deps/build/llvm-3.7.1/build_Release/lib/IR/Release/Intrinsics.gen.tmp'
 failed
make[3]: *** 
[/c/Users/s2sajs/Documents/SVN/GitHub/juliamaster/deps/build/llvm-3.7.1/build_Release/lib/IR/Release/Intrinsics.gen.tmp]
 Error 1
/c/Users/s2sajs/Documents/SVN/GitHub/juliamaster/deps/srccache/llvm-3.7.1/Makefile.rules:880:
 recipe for target 'all' failed
make[2]: *** [all] Error 1
Makefile:761: recipe for target 
'build/llvm-3.7.1/build_Release/Release/lib/libLLVMCodeGen.a' failed
make[1]: *** [build/llvm-3.7.1/build_Release/Release/lib/libLLVMCodeGen.a] 
Error 2
Makefile:81: recipe for target 'julia-deps' failed
make: *** [julia-deps] Error 2


Re: [julia-users] Is it possible to grab REPL contents after a .jl file completes execution ?

2016-03-21 Thread Josef Sachs
> On Mon, 21 Mar 2016 09:39:40 -0400, Stefan Karpinski said:

> Could you just pipe the output of non-interactive Julia to the `tee`
> command?

I'd still like to be able to pipe the output of non-non-interactive Julia.

https://github.com/JuliaLang/julia/issues/14776


Re: [julia-users] readall() from osascript process (MacOS X)?

2016-02-03 Thread Josef Sachs
> On Wed, 3 Feb 2016 11:03:07 -0800 (PST),  said:

> I'd like to get some information from running the `osascript` command on 
> MacOS X, For example:

> julia> run(`osascript -e "display dialog \"Character\" default answer 
> \"#\""`)
> button returned:OK, text returned:#

> julia> typeof(ans)
> Void

> I tried to use `readall` to read the result that's printed/returned, but no 
> luck.

> julia> readall(run(`osascript -e "display dialog \"Character\" default 
> answer \"#\""`))
> button returned:OK, text returned:#
> ERROR: MethodError: `readall` has no method matching readall(::Void)

> Anyone know of a trick to get information back from this process?

Leave out the run.

julia> x = readall(`osascript -e "display dialog \"Character\" default answer 
\"#\""`)

I think this is going to change a little in 0.5.


[julia-users] Re: Capturing output of interactive julia

2016-01-30 Thread Josef Sachs
> On Tue, 26 Jan 2016 07:18:26 -0800 (PST), Sebastian Nowozin said:

> for a non-programmatic way to do that (i.e. to record a single
> session) you can use the "screen" utility for that.  In our shell,
> run screen, then press ctrl-a H, and then run Julia.  The file is
> created in the directory you started screen in, and named screenlog.0

[This is a digression that is not related to julia.]

Thanks for the suggestion.  My question was actually prompted by the
nuisance in GNU screen that the "hardcopy" command (normally C-a h)
produces unwanted newlines in the output file when there are line wraps.
The "log" command (C-a H) doesn't do that, but it includes terminal
control sequences in the output file.  I have a perl script that
removes the terminal control sequences, but it does not satisfactorily
handle situations like zsh's bck-i-search or the julia REPL's
reverse-i-search.  (If anyone can suggest a solution for that,
I would be grateful.)

This might prove to be the impetus for me to finally switch from
screen to tmux, whose capture-pane command joins the wrapped lines
when invoked with the -J argument.


[julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-27 Thread Josef Sachs
>>>>> On Tue, 26 Jan 2016 08:07:30 -0500, Josef Sachs said:

> Is there a way to use Requests.jl with HTTP Basic Authentication
> when the password contains a slash?

> julia> using Requests

> julia> get("https://user:pass/w...@google.com;)
> ERROR: Port must be numeric (decimal)
>  in parse_authority at /home/sachs/.julia/v0.4/URIParser/src/parser.jl:129
>  in parse_url at /home/sachs/.julia/v0.4/URIParser/src/parser.jl:291
>  in get at /home/sachs/.julia/v0.4/Requests/src/Requests.jl:394

> I tried RFC 3986 percent-encoding the password, which turns the slash
> into %2F, but I get
> Response(401 Unauthorized, 9 headers, 161 bytes in body)

> Any help is appreciated.

Keith Mason pointed out to me that I can pass get() a URI instead of
a string, and that works.

get(URI("http","google.com",80,"","","","user:pass/word"))

# Only necessary for a URL that requires authentication;
# google.com only used as an example.
# Note that the password "pass/word" contains a slash.
# When sending a password, use HTTPS, not HTTP.


[julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Josef Sachs
>>>>> On Tue, 26 Jan 2016 05:30:57 -0800 (PST), <ele...@gmail.com> said:

> On Tuesday, January 26, 2016 at 11:07:37 PM UTC+10, Josef Sachs
> wrote:
>> 
>> Is there a way to use Requests.jl with HTTP Basic Authentication
>> when the password contains a slash?
>> 
julia> using Requests
>> 
julia> get("https://user:pass/wo...@google.com ")
>> 

> Doesn't it need an @ after the pass
> https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax
 
Sorry I didn't make myself clear.  (And Google Groups doesn't help
by converting the URL that I tried to post.)

Here is the URL that I tried to post, with the parts on separate lines.
https:
//
user
:
pass/word
@
google.com

I was trying to demonstrate a password with a slash in it.
The @ follows this password in the URL.


Re: [julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Josef Sachs
> On Tue, 26 Jan 2016 21:01:45 +0200, Joshua Ballanco said:

> Have you tried URL encoding the slash? Something like:
> “pass%2Fword”?

In my original post, I said this (I guess I shouldn't have clipped it
from my response):

I tried RFC 3986 percent-encoding the password, which turns the slash
into %2F, but I get
Response(401 Unauthorized, 9 headers, 161 bytes in body)


[julia-users] Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Josef Sachs
Is there a way to use Requests.jl with HTTP Basic Authentication
when the password contains a slash?

julia> using Requests

julia> get("https://user:pass/w...@google.com;)
ERROR: Port must be numeric (decimal)
 in parse_authority at /home/sachs/.julia/v0.4/URIParser/src/parser.jl:129
 in parse_url at /home/sachs/.julia/v0.4/URIParser/src/parser.jl:291
 in get at /home/sachs/.julia/v0.4/Requests/src/Requests.jl:394

I tried RFC 3986 percent-encoding the password, which turns the slash
into %2F, but I get
Response(401 Unauthorized, 9 headers, 161 bytes in body)

Any help is appreciated.


[julia-users] Capturing output of interactive julia

2016-01-23 Thread Josef Sachs
Are there any recommendations for capturing the output
of an interactive julia session?  I was hoping that the
following would work.

$ julia | tee temp.txt
ERROR: MethodError: `convert` has no method matching convert(::Type{Base.TTY}, 
::Base.PipeEndpoint)
This may have arisen from a call to the constructor Base.TTY(...),
since type constructors fall back to convert methods.
Closest candidates are:
  Base.TTY(::Any)
  call{T}(::Type{T}, ::Any)
  convert{T}(::Type{T}, !Matched::T)
  ...
 in call at Terminals.jl:116
 in _start at ./client.jl:388

I might fall back to running julia within an Emacs shell-buffer,
but I would prefer to keep the REPL functionality.


Re: [julia-users] Why does setting ENV["TZ"] in the REPL behave differently?

2015-11-02 Thread Josef Sachs
> On Mon, 2 Nov 2015 08:56:05 -0500, Stefan Karpinski said:

> Seems like libc must not check the TZ variable each time, possibly
> due to performance considerations?

Right.  So is there a way that I can get the julia process to do a tzset()
after I do
ENV["TZ"] = whatever
?


Re: [julia-users] Why does setting ENV["TZ"] in the REPL behave differently?

2015-11-02 Thread Josef Sachs
>>>>> On Mon, 2 Nov 2015 09:16:16 -0500, Josef Sachs said:

>>>>> On Mon, 2 Nov 2015 08:56:05 -0500, Stefan Karpinski said:
>> Seems like libc must not check the TZ variable each time, possibly
>> due to performance considerations?

> Right.  So is there a way that I can get the julia process to do a tzset()
> after I do
> ENV["TZ"] = whatever
> ?

Is this the right approach?  It seems to work.

julia> tzset() = ccall(:tzset, Void, ())
tzset (generic function with 1 method)

julia> println(Libc.strftime("%Y-%m-%d %H:%M:%S",time()))
2015-11-02 10:40:39

julia> tzset()

julia> println(Libc.strftime("%Y-%m-%d %H:%M:%S",time()))
2015-11-02 15:40:48


[julia-users] Why does setting ENV["TZ"] in the REPL behave differently?

2015-11-01 Thread Josef Sachs
Works as expected with `julia -e`, but the environment variable
does not seem to be respected when set in the REPL.  Can someone
explain the reason, and possibly provide a workaround?

$ TZ=UTC julia -e 'println(now())'
2015-11-01T16:02:37
$ julia -e 'println(now())'
2015-11-01T11:02:42
$ julia -e 'ENV["TZ"] = "UTC"; println(now())'
2015-11-01T16:03:07
$ julia
   _
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.1-pre+22 (2015-11-01 00:06 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 669222e (0 days old release-0.4)
|__/   |  x86_64-linux-gnu

julia> ENV["TZ"] = "UTC"; println(now())
2015-11-01T11:03:28


[julia-users] Multidimensional DataArray as column of DataFrame

2015-05-22 Thread Josef Sachs
DataFrames apparently do not allow columns to be multidimensional DataArrays.

julia DataFrame(A = 1:5, B = DataArray(reshape(1:15,(5,3
ERROR: ArgumentError: setindex!(::DataFrame, ...) only broadcasts scalars, not 
arrays
 in setindex! at 
C:\Users\s2sajs\.julia\v0.4\DataFrames\src\dataframe\dataframe.jl:356

Is that a bug, or an unintentional restriction, or an intentional restriction?


[julia-users] Error running dump() on a JLD (HDF5) file containing a DataFrame

2015-05-18 Thread Josef Sachs
Am I doing something wrong?  I get the same error in 0.3.8.
I notice that there is a method with signature
read(::HDF5.HDF5Dataset, ::Type{Array{HDF5.HDF5Compound,N}})
but not
read(::HDF5.HDF5Dataset, ::Type{HDF5.HDF5Compound})

   _
   _   _ _(_)_ |  A fresh approach to technical computing
  (_) | (_) (_)|  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type help() for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.0-dev+4825 (2015-05-14 00:12 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit ff35d98 (4 days old master)
|__/   |  x86_64-w64-mingw32

julia using DataFrames

julia df = DataFrame(A = 1:4, B = [M, F, F, M])
4x2 DataFrames.DataFrame
| Row | A | B   |
|-|---|-|
| 1   | 1 | M |
| 2   | 2 | F |
| 3   | 3 | F |
| 4   | 4 | M |

julia using HDF5, JLD

julia file = jldopen(df.jld, w)
Julia data file version 0.1.0: df.jld

julia file[df] = df
4x2 DataFrames.DataFrame
| Row | A | B   |
|-|---|-|
| 1   | 1 | M |
| 2   | 2 | F |
| 3   | 3 | F |
| 4   | 4 | M |

julia close(file)

julia file = jldopen(df.jld, r)
Julia data file version 0.1.0: df.jld

julia dump(file)
JLD.JldFile
  plain: HDF5.HDF5File len 4
_refs: HDF5.HDF5Group len 16
  0001: HDF5Dataset (2,) : 
[HDF5.HDF5ReferenceObj(0x15d8),HDF5.HDF5ReferenceObj(0x2e70)]
  0002: HDF5Dataset () : ERROR: MethodError: `read` has no method 
matching read(::HDF5.HDF5Dataset, ::Type{HDF5.HDF5Compound})
Closest candidates are:
  read{T}(::IO, ::Type{T}, ::Int64, ::Int64...)
  read{T}(::IO, ::Type{T}, ::Integer, ::Integer...)
  read{T}(::Base.AsyncStream, ::Type{T}, ::Tuple{Vararg{Int64}})
  ...
 in dump at C:\Users\s2sajs\.julia\v0.4\HDF5\src\plain.jl:995
 in dump at C:\Users\s2sajs\.julia\v0.4\HDF5\src\plain.jl:1008 (repeats 2 times)

 in xdump at show.jl:762
 in dump at show.jl:882
 in anonymous at show.jl:888
 in with_output_limit at show.jl:1220
 in dump at show.jl:888


[julia-users] Start julia with REPL, loading script, and passing arguments

2015-02-14 Thread Josef Sachs
I am trying to start julia
(1) in interactive mode, i.e. with the REPL,
(2) loading a script, and
(3) passing command line arguments

I can accomplish (1) and (2) with
julia -i -L startup.jl
but I can't manage to pass additional arguments without producing an error.

juser@juliabox:~$ julia -i -L startup.jl foo bar
ERROR: could not open file /home/juser/foo
 in include at ./boot.jl:245
 in include_from_node1 at loading.jl:128
 in process_options at ./client.jl:285
 in _start at ./client.jl:354
juser@juliabox:~$ echo $?
1

Is there any way I can accomplish this?