Re: [julia-users] How does one read and write a sizeable amount of data (megabytes) from a process?

2016-10-07 Thread Keno Fischer
Hi Eric, the problem here is that the kernel is blocking the process because there's nobody reading on the other side (since the writing process is blocked so it can't do any reading). We can probably do some things to improve the situation, but for now I'd recommend the following: - Start

Re: [julia-users] Trouble cloning private repos in OS X.

2016-09-26 Thread Keno Fischer
First make sure the repo name is typed correctly (e.g. by trying to clone outside of julia). Unfortunately on 0.5 we do not respect the credential helper settings yet. Also if you have 2FA enabled remember that you need to type an access token rather than your password. On Mon, Sep 26, 2016 at

Re: [julia-users] ls()?

2016-09-14 Thread Keno Fischer
readdir is POSIX: http://man7.org/linux/man-pages/man3/readdir.3.html On Wed, Sep 14, 2016 at 12:45 PM, Chris Rackauckas wrote: > Here it is: https://github.com/JuliaLang/julia/issues/3376. Would > changing to ls be back on the table? > > On Wednesday, September 14, 2016 at

Re: [julia-users] Further on calling C++ from Julia or vice versa

2016-09-07 Thread Keno Fischer
Cxx allows you to create a class on the julia side and implement member functions in julia, which sounds like what you want? On Wed, Sep 7, 2016 at 9:14 AM, K leo wrote: > Upon studying the C++ API that I will need to use, I found that it > specifies many virtual member

Re: [julia-users] creating a DataFrame from C now fails in 0.5 rc 1+1

2016-08-23 Thread Keno Fischer
If you create objects from C you need to be very careful to have appropriate gc roots, for all values involved before yielding control back to julia. On Tue, Aug 9, 2016 at 6:23 PM, wrote: > I'm contributing a bit to rjulia and I've run into some trouble creating > julia

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

2016-08-13 Thread Keno Fischer
I haven't gotten around to writing documentation yet, because I'm not quite happy with the abstraction. If you give me a rough idea of what kind of tree it is, I can probably tell you the right thing to do. The most basic interface is just to return an iterator over a node's children from

Re: [julia-users] Re: Incredibly elusive julia 0.5 bug - new undefined behaviour?

2016-08-12 Thread Keno Fischer
Sounds like a potential bug in the inliner. Would be good to get a reduced test case. On Fri, Aug 12, 2016 at 7:56 PM, Scott T wrote: > I get the same as you - I haven't been able to produce a concise example > of this behaviour yet. The actual bug is nested deep within

Re: [julia-users] Re: can't get pyjulia to work

2016-08-09 Thread Keno Fischer
Should have been, yes. On Tue, Aug 9, 2016 at 6:05 PM, Tim Wheeler <timwheeleronl...@gmail.com> wrote: > Was this fixed? > > On Monday, July 11, 2016 at 11:24:00 AM UTC-7, Keno Fischer wrote: >> >> I've been working on making this work again. Should be merged in a >

Re: [julia-users] Julia and sshd tests

2016-08-09 Thread Keno Fischer
hould try to make them more flexible to run on distributions > that have them in non-Debian locations. Is there an alternative way we can > get those tests to run via an executable that can run as non-root on > openSUSE? > > > On Tuesday, August 9, 2016 at 7:39:42 A

Re: [julia-users] Julia and sshd tests

2016-08-09 Thread Keno Fischer
The tests that are being bypassed are for functionality of the package manager's SSH client capability for git clone over SSH. So yes, those tests are bypassed if ssh is not available, but is shouldn't be a big problem as long as SSH clone runs ok. I think the more important aspect of those tests

Re: [julia-users] LoadError: UndefVarError: @contraint not defined

2016-07-16 Thread Keno Fischer
Typo? @con `s` traint On Sat, Jul 16, 2016 at 9:01 AM, Jen wrote: > using JuMP > using Gurobi > m = Model(solver=GurobiSolver()) > @variable(m,0<= x1 <=10) > @variable(m, x2 >=0) > @variable(m, x3>=0) > @objective(m, Max, x1 + 2x2 + 5x3) > @contraint(m, constraint1, -x1 +

Re: [julia-users] ANN: steps towards 0.5.0 release [candidates]

2016-07-14 Thread Keno Fischer
; whether you think a given build is completely done or not. > > I think the more important question though is, where are you tracking the > bugs/regressions that need to be fixed before a 0.5.0 release (at whatever > stage of the process)? > > > -Original Message- > &

Re: [julia-users] ANN: steps towards 0.5.0 release [candidates]

2016-07-14 Thread Keno Fischer
Anything that's not on the milestone right now will not be in the RC (other than the cleanup tasks). The RC is there so that people can start fixing packages against 0.5, without having to worry about having to do it again once the release is out. We'll of course continue cleaning up and working

Re: [julia-users] Re: can't get pyjulia to work

2016-07-11 Thread Keno Fischer
I've been working on making this work again. Should be merged in a couple of days. On Mon, Jul 11, 2016 at 1:30 PM, Tim Wheeler wrote: > So I may have figured it out. > > According to here, one needs to: > > Tag PyCall.jl at v1.3.0 > Use the pull request from benmoran

Re: [julia-users] Re: testing intrument Automation

2016-07-04 Thread Keno Fischer
You may want to look at Instruments.jl: https://github.com/BBN-Q/Instruments.jl On Mon, Jul 4, 2016 at 2:00 PM, Alex Mellnik wrote: > Hi Yared, > > This should be possible, but it could be less than ideal in some instances. > What exactly are you hoping to automate? > >

Re: [julia-users] Skylake support

2016-06-23 Thread Keno Fischer
Are you sure that your computer's memory is ok? That sounds like a suspicious number of segfaults. On Thu, Jun 23, 2016 at 11:22 PM, wrote: > Anyone had success using Julia on Intel's Skylake processors? > I get some segfaults when using Julia (download precompiled) +

Re: [julia-users] [JuliaCon] Preferred wireless network?

2016-06-21 Thread Keno Fischer
Just get on MIT, it's better an MIT-Guest and doesn't have access control either. On Tue, Jun 21, 2016 at 8:56 AM, Douglas Bates wrote: > I don't think there is a separate discussion forum for JuliaCon so I am > posting here. > > I am using the eduroam network in the building

Re: [julia-users] Re: ArrayFire.jl - GPU Programming in Julia

2016-06-10 Thread Keno Fischer
Some computers have more than one graphics card and the more powerful one needs to be activated manually. I know that's the case on my macbook. On Fri, Jun 10, 2016 at 10:20 AM, Robert Feldt wrote: > Great thanks. I suggest a comment about this or changing the example in

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

2016-05-28 Thread Keno Fischer
Thanks for the kind words everyone. I did indeed graduate last Thursday [1]. I will now be working full time with Julia Computing, doing more compiler work, debugging, other tools, etc. and whatever else may come up. Should be great fun. Cheers, Keno [1] Officially the degree is an AM in Physics

Re: [julia-users] Stumbling on first steps with Cxx

2016-05-25 Thread Keno Fischer
Hi Jan, first of, I recommend using the string macros icxx and cxx over the @cxx syntax. That should make it a lot clearer what's happening. To answer your question, @cxx reader, is the equivalent of icxx"reader;", however @cxx reader->stuff is the equivalent of icxx"$reader->stuff", so reader

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

2016-05-23 Thread Keno Fischer
I filed this bug with github some years ago (having to refresh to see the button), but then it stopped happening for me. I suspect there's a race condition somewhere. On Mon, May 23, 2016 at 2:05 PM, Kristoffer Carlsson wrote: > Note that you don't need "the green button".

Re: [julia-users] Re: how long until vectorized code runs fast?

2016-05-11 Thread Keno Fischer
There seems to be a myth going around that vectorized code in Julia is slow. That's not really the case. Often times it's just that devectorized code is faster because one can manually perform operations such as loop fusion, which the compiler cannot currently reason about (and most C compilers

Re: [julia-users] Re: Arrow Keys when debugging

2016-04-25 Thread Keno Fischer
On Mon, Apr 25, 2016 at 11:12 AM, wrote: > Thanks for the reference. I quickly scanned the Readmes of Gallium and > ASTInterpreter and found that they're probably too brief to start with. Is > there a more complete documentation or tutorial? What is the relation > between

Re: [julia-users] Ambiguous method definitions

2016-04-20 Thread Keno Fischer
Could you be more specific about your confusion? Both those methods match `f()` so there's an ambiguity. On Wed, Apr 20, 2016 at 10:30 AM, Robert Gates wrote: > I was wondering how this can happen: > > julia> type T1; end > > > julia> type T2; end > > > julia> f(a::T1...)

Re: [julia-users] How to change REPL mode on startup?

2016-04-15 Thread Keno Fischer
You can call REPL.setup_inferface yourself and add your own REPL mode. You can also look at https://github.com/JuliaLang/julia/blob/master/base/client.jl to see how the active_repl gets created. On Fri, Apr 15, 2016 at 9:16 AM, wrote: > I have a REPL mode for an

Re: [julia-users] Re: Transpiling Julia to C – The LLVM CBackend

2016-03-11 Thread Keno Fischer
It is, to achieve static compilation, there is no advantage to generating C code if an LLVM backend is available for the target. On Fri, Mar 11, 2016 at 5:03 AM, 'Tobias Knopp' via julia-users < julia-users@googlegroups.com> wrote: > Sounds very interesting. Are there concrete plans for which

Re: [julia-users] Comparing functions

2016-02-26 Thread Keno Fischer
It depends on what the exact predicate is you're trying to define (if you tell us, we might be able to suggest a way). However, I would caution against this. It sounds like you're encoding properties into ASTs that may be better off in a proper data structure. On Fri, Feb 26, 2016 at 6:21 PM,

Re: [julia-users] Cxx.jl object address stability?

2016-02-16 Thread Keno Fischer
Sorry, didn't see this before. The answer is that anything of type CppValue will be owned by julia and destructed upon GC. Right now that should be stable, but I will not guarantee that given future possible directions of the language, so for use cases like this I would recommend keeping the

Re: [julia-users] Curious behavior

2016-01-15 Thread Keno Fischer
See https://github.com/JuliaLang/julia/issues/6846 On Fri, Jan 15, 2016 at 9:51 PM, David Gleich wrote: > Julia managed to surprise me today. I'm wondering how to understand what > happens in this case and if it's a side effect of some design decision or > syntax -- or a

Re: [julia-users] Arrays of Unions

2016-01-12 Thread Keno Fischer
This is explained in the manual: http://docs.julialang.org/en/release-0.4/manual/types/ (grep for invariant, not sure how to link a section). In short T <: S does not imply Array{T} <: Array{S}. On Tue, Jan 12, 2016 at 6:26 PM, Christian Winkler < christian.wink...@conning.com> wrote: > Suppose

Re: [julia-users] Arrays of Unions

2016-01-12 Thread Keno Fischer
Also for completeness, the two ways around this are to use either. f{T<:TypeAOrB}(::Array{T}) f(::Union{Array{TypeA},Array{TypeB}}) On Tue, Jan 12, 2016 at 7:07 PM, Keno Fischer <kfisc...@college.harvard.edu> wrote: > This is explained in the manual: > http://docs.julialang.org

Re: [julia-users] Re: RFC: ROOT.jl, wrappers for the ROOT library from CERN

2016-01-12 Thread Keno Fischer
> > Doesn't work with ROOT-6, though, as the LLVM instances > of Cling and Julia seem to clash. > I've been talking to the ROOT authors to get this resolved as well as getting better integration.

Re: [julia-users] DWARF

2016-01-05 Thread Keno Fischer
> PATH = > /home/jamie/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > MANDATORY_PATH = /usr/share/gconf/i3.mandatory.path > HOME = /home/jamie > > Package Directory: /home/jamie/.julia/v0.5 > No packages installed > > On

Re: [julia-users] DWARF

2016-01-05 Thread Keno Fischer
ith: > > > > LLVM_VER=3.7.1 > > ARCH=native > > > > and I'm building with `make debug`. Does that seem right? > > > > On 5 January 2016 at 14:18, Keno Fischer <kfisc...@college.harvard.edu> > wrote: > >> However, taking another look at you

Re: [julia-users] DWARF

2016-01-05 Thread Keno Fischer
This only works with new versions of LLVM. We're in the middle of transitioning to the new LLVM on master, so I think at this point, just putting LLVM_VER=3.7.1 in your Make.user should be sufficient. On Tue, Jan 5, 2016 at 2:50 PM, Jamie Brandon wrote: > I've seen it

Re: [julia-users] Re: Trying again Cxx on Windows

2016-01-05 Thread Keno Fischer
`:` probably? May have to add the makefile magic that turns windows-style paths into msys style paths. On Tue, Jan 5, 2016 at 8:35 PM, J Luis wrote: > Hmm, I found a problem. When running Julia it doesn't know anything about > 'make'. So I added the msys2 dir where it lives

Re: [julia-users] DWARF

2016-01-05 Thread Keno Fischer
2016, Jamie Brandon <jamii...@googlemail.com> >> wrote: >> >>> I'll give that a go. Thanks :) >>> >>> On Tuesday, 5 January 2016 14:00:49 UTC, Keno Fischer wrote: >>>> >>>> This only works with new versions of LLVM. We're in the

Re: [julia-users] compiling with Intel compiler fails

2016-01-01 Thread Keno Fischer
007f9544f2b000) > > /lib64/ld-linux-x86-64.so.2 (0x7f9546143000) > > > > On Wednesday, December 30, 2015 at 12:56:09 PM UTC-8, Keno Fischer wrote: >> >> Hi Jan, >> >> looks like Intel options are being passed to gcc. Perhaps your libuv >> configu

Re: [julia-users] Re: Why does Julia include an older version of git in it?

2015-11-28 Thread Keno Fischer
Git 1.8.5.6 was released in 2014 so it's not that old. I suppose the versions wasn't bumped further because there weren't any problems with it, as the package manager can't rely on newer git features anyway (because we support systems with older git versions installed by the user). It should be

Re: [julia-users] Memory leak for animated plots

2015-11-19 Thread Keno Fischer
Sounds like the memory leak is on the browser side? Maybe something is keeping a javascript reference to the plot? Potentially a Jupyter/IJulia bug? On Thu, Nov 19, 2015 at 12:01 PM, Stefan Karpinski wrote: > This should work – if there's a memory leak that's never

Re: [julia-users] communicating with a TcpSocket

2015-10-15 Thread Keno Fischer
You'll want to use an HTTP client, e.g. Requests.jl. On Thu, Oct 15, 2015 at 1:37 PM, Douglas Bates wrote: > I have a Tablo over-the-air video recorder (tablotv.com) which > communicates via a TCP socket. I almost know enough to be able to write > Julia code to communicate

Re: [julia-users] Re: Doubts pass-by-sharing

2015-10-09 Thread Keno Fischer
And since this is a scoping problem, `let` is your friend ``` julia> a = 20 julia> let a = a global f f(x) = x*a end f (generic function with 1 method) julia> f(20) 400 julia> a = 40 40 julia> f(20) 400 ``` On Fri, Oct 9, 2015 at 10:36 AM, Tomas Lycken

Re: [julia-users] Re: opencv python api in Julia

2015-09-19 Thread Keno Fischer
It's not in the license but the Terms of Use: ``` Content that you submit must not directly compete with products offered by MathWorks. Content submitted to File Exchange may only be used with MathWorks products. ``` On Sat, Sep 19, 2015 at 11:23 AM, Stefan Karpinski

Re: [julia-users] Arrayfire and Julia

2015-09-18 Thread Keno Fischer
Arrayfire is written in C++, so the C++ is by far the simplest way to interface with it. This work was mostly exploratory, to see if it was useful at all. If somebody wanted to seriously use it now, I could see wanting to rewrite it using the C interface, but that would be a simple task once the

Re: [julia-users] Re: abs() returning negative numbers??

2015-09-06 Thread Keno Fischer
Note however, that this behavior has changed in 0.4 and you need to be more explicit in converting UInts to Ints: julia> arr = hex2bytes("14fb9c03") 4-element Array{UInt8,1}: 0x14 0xfb 0x9c 0x03 julia> f(x) = abs((x % 3) - 3) f (generic function with 1 method) julia> function

Re: [julia-users] JuliaCon 2015 videos

2015-08-18 Thread Keno Fischer
I added an annotation for my video. If you tell me a timestamp for Shashi's I can do the same there. On Tue, Aug 18, 2015 at 2:31 PM, Waldir Pimenta waldir.pime...@gmail.com wrote: Same for Shashi's session. On Monday, August 17, 2015 at 11:32:26 PM UTC+1, Keno Fischer wrote: Whoever owns

Re: [julia-users] CXX.jl installation failure -- bug or user error?

2015-08-17 Thread Keno Fischer
I just fixed this on master. The reason this failed is that the recommended configuration for Cxx.jl always pulls in latest LLVM master. This causes problems sometimes when LLVM breaks the API, but it makes it easier for me to make sure everyone has patches I commit upstream. Please try again. On

Re: [julia-users] CXX.jl installation failure -- bug or user error?

2015-08-17 Thread Keno Fischer
. I can also take a look in the morning. On Mon, Aug 17, 2015 at 11:55 PM, Jan Strube jan.str...@gmail.com wrote: Works! Thank you. I appreciate the fast reply. Can't wait to play with Pythia.jl :-) On Monday, August 17, 2015 at 2:38:18 PM UTC-7, Keno Fischer wrote: I just fixed

Re: [julia-users] JuliaCon 2015 videos

2015-08-17 Thread Keno Fischer
: David Sanders: Validated numerics in Julia - http://t.co/WRZcYGjhfl Patrick Sanan: Using Julia on a Cray Supercomputer - https://youtu.be/NwyKz2KLdtY Keno Fischer: Shaving the Yak - http://t.co/cEJqCqAdRC Spencer Lyon: Methods, Models, and Moments - Julian Economics with QuantEcon.jl - http

Re: [julia-users] Will be in Geneva later this week

2015-08-11 Thread Keno Fischer
in Geneva, the closest is probably Zurich. Let me know if you want to come to Zurich (but it might be a bit short notice). Mauro On Mon, 2015-08-10 at 21:44, Keno Fischer kfisc...@college.harvard.edu wrote: Hello everyone, I'll be traveling to Geneva later this week (Thu/Fri). Not sure

[julia-users] Will be in Geneva later this week

2015-08-10 Thread Keno Fischer
Hello everyone, I'll be traveling to Geneva later this week (Thu/Fri). Not sure if there's a meet-up group around, but if you're in the area, I'd love to meet up while I'm there. Keno

Re: [julia-users] Warning: gc_disable() can cause Travis to kill process, and fail tests

2015-07-26 Thread Keno Fischer
You can put `sudo dmesg` in your travis script block, which will show you messages from the OOM killer if the job did run out of memory. On Sun, Jul 26, 2015 at 2:20 AM, Sheehan Olver dlfivefi...@gmail.com wrote: I spent a bit of time trying to figure out why tests were failing on Travis but

Re: [julia-users] Errors while trying to use cxx and embed Julia together

2015-07-14 Thread Keno Fischer
There's theoretically nothing wrong with this, but you do need to setup the include paths for Cxx. There's addHeaderDir for this purpose. On Tue, Jul 14, 2015 at 12:38 PM, Kostas Tavlaridis-Gyparakis kostas.tavlari...@gmail.com wrote: Hello again, I am running Julia Version 0.4.0-dev+5841

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-09 Thread Keno Fischer
2 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Tuesday, July 7, 2015 at 6:03:12 PM UTC+2, Keno Fischer wrote: Yes, that is correct, just create a Make.user file with that content in the same directory as your julia source install (where the Make.inc

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-07 Thread Keno Fischer
Please see the instructions in the Cxx.jl README. In particular, you need (at the moment at least) - a source install of julia - one that uses LLVM-svn On Tue, Jul 7, 2015 at 11:33 AM, Kostas Tavlaridis-Gyparakis kostas.tavlari...@gmail.com wrote: Hello, I am running the following version

Re: [julia-users] Julia type for a recursive C struct with anonymous unions

2015-06-27 Thread Keno Fischer
That struct is not ABI compatible to the given struct, which I believe was the original question. To get an ABI compatible version, you'll have to use the same types as the C version. Since unions aren't supported in an ABI compatible way, this generally does not work for such structs, but in this

Re: [julia-users] Adding a native function to julia's scheduler

2015-06-18 Thread Keno Fischer
The generic solution here is to use a thread and uv's async primitive which allows you to queue an event on julia's event loop (and is represented by a SingleAsyncWork at the julia level - ZMQ does this for example). Depending on what you're waiting on, there may also be deeper integration

Re: [julia-users] Debugger

2015-06-02 Thread Keno Fischer
Hi everyone, I think the ideal debugger needs to do a combination of both, instrumentation and DWARF-style debugging. The trade offs are very different (instrumentation gives you easy access to variables, AST-level stepping at the cost of performance of the instrumented code, while the other

Re: [julia-users] Cxx on Windows?

2015-05-25 Thread Keno Fischer
? segunda-feira, 25 de Maio de 2015 às 20:07:08 UTC+1, Keno Fischer escreveu: I don't think anybody has ever tried. It shouldn't be too hard to make work, but will definitely require some modifications to Cxx.jl. On Mon, May 25, 2015 at 3:00 PM, J Luis jmf...@gmail.com wrote: Does it worth trying

Re: [julia-users] Cxx on Windows?

2015-05-25 Thread Keno Fischer
I don't think anybody has ever tried. It shouldn't be too hard to make work, but will definitely require some modifications to Cxx.jl. On Mon, May 25, 2015 at 3:00 PM, J Luis jmfl...@gmail.com wrote: Does it worth trying or it's known that it won't work? (I could try to build LLVM SVN with VS,

Re: [julia-users] Symbolic relations package

2015-04-20 Thread Keno Fischer
The REPL code was designed to have new modes added externally. See e.g. the RunCxxREPL function here: https://github.com/Keno/Cxx.jl/blob/master/src/CxxREPL/replpane.jl On Mon, Apr 20, 2015 at 5:04 PM, lapeyre.math1...@gmail.com wrote: I think it would be great to submit the REPL mod, but it is

Re: [julia-users] Can't make something out of nothing

2015-04-20 Thread Keno Fischer
That alias should be there: https://github.com/JuliaLang/julia/blob/master/base/deprecated.jl#L186-L187 On Mon, Apr 20, 2015 at 3:00 PM, Tomas Lycken tomas.lyc...@gmail.com wrote: Is there a reason this was a hard rename? In other words, would adding typealias Void Nothing break stuff? I do

Re: [julia-users] Type system question

2015-03-11 Thread Keno Fischer
Did you perhaps accidentally redefine get locally? What version of julia are you on? Do you get the nearest matching methods (I think that's only on 0.4)? Can you give the output of methods(get) at whatever point it's failing? On Wed, Mar 11, 2015 at 11:30 AM, Michael Francis mdcfran...@gmail.com

[julia-users] Re: [julia-dev] Re: Job posting: high performance computing (image analysis and acquisition)

2015-03-06 Thread Keno Fischer
I think if they are julia job postings they're fine. General data science job postings not so much. I think the right policy to follow here is the LLVM mailing list. People are allowed to advertise their compiler jobs where they need people with strong LLVM skills, but general job offerings

Re: [julia-users] How to get template value of abstract type?

2015-03-03 Thread Keno Fischer
Base.eltype{T:Foo}(::Type{T})=T.parameters[1] should work On Tue, Mar 3, 2015 at 9:58 PM, Sheehan Olver dlfivefi...@gmail.com wrote: Suppose I have abstract Foo{T} immutable Foo1{T} :Foo{T} end immutable Foo2{T} :Foo{T} end How can I write a function that returns T given the type?

Re: [julia-users] The dark side of types

2015-01-14 Thread Keno Fischer
Are you maybe accidentally defining cdCanvas twice or in two different modules? On Wed, Jan 14, 2015 at 3:40 PM, J Luis jmfl...@gmail.com wrote: BTW, if that matters, 'ctgc' is a global variable. quarta-feira, 14 de Janeiro de 2015 às 14:37:05 UTC, J Luis escreveu: Hi, thanks for looking

Re: [julia-users] Size of Julia types

2015-01-14 Thread Keno Fischer
Hi Jan, since mutable julia object require a type tag, they always require a pointer and cannot be structurally inlined. The assertion would hold if both types were declared `immutable`. On Wed, Jan 14, 2015 at 11:22 AM, Jan Niklas Hasse jha...@gmail.com wrote: Hi! I'm new to Julia and was

Re: [julia-users] Dan Luu's critique of Julia: needs commented code, better testing, error handling, and bugs fixed.

2015-01-01 Thread Keno Fischer
For us, master means the branch that people willing to test out new changes should be on, in order to provide feedback. If you don't want to do that you should use the stable branch. We try to keep master building as often as possible, and if it doesn't that should be considered a priority and

Re: [julia-users] Julia for Enterprise?

2015-01-01 Thread Keno Fischer
So can I ask for some honest advice? Sure With the obvious caveats understood, how far away is a 1.0? This is a hard one to answer. I think we're doing a lot of the big changes we've been wanting to do in 0.4, but of course there's always a lot more stuff to do. If I had to guess, I'd say a 2

Re: [julia-users] Dan Luu's critique of Julia: needs commented code, better testing, error handling, and bugs fixed.

2014-12-29 Thread Keno Fischer
I've written up some of my thoughts on the issues raised in this article in the hacker news discussion, but to answer your question, there's still a number of big items that need to be tackled by the core team. I do think it might make some sense to have a docs/tests sprint just prior to the 0.4

Re: [julia-users] Dan Luu's critique of Julia: needs commented code, better testing, error handling, and bugs fixed.

2014-12-29 Thread Keno Fischer
That thing about build stats? Probably grabbing the wrong numbers, which wasn't true, and could be easily spot checked by using the script pointed in my linked post. I apologize for missing that part if your post (and I added a follow up comment to the hacker news discussion once you pointed

Re: [julia-users] Package development - best practices

2014-12-17 Thread Keno Fischer
Personally, I do develop my packages inside .julia. If I need to sync across machines, I'll just use git, which I should be doing more anyway (admittedly this can get annoying when developing on two machines at the same time, in which case I tend to add the remote julia instance as a worker and

Re: [julia-users] LLVM3.2 and JULIA BUILD PROBLEM

2014-12-11 Thread Keno Fischer
LLVM 3.2 is no longer supported. I wouldn't be opposed to a patch supporting 3.2, since haven't formally dropped support (i.e. there's still some ifdefs in the code) for it yet - it's just that nobody is using it anymore. On Thu, Dec 11, 2014 at 5:21 PM, Stefan Karpinski

Re: [julia-users] Re: Is there a null IOStream?

2014-12-07 Thread Keno Fischer
I don't see a good reason for DevNull not to behave like this. On Sun, Dec 7, 2014 at 11:39 PM, Stefan Karpinski ste...@karpinski.org wrote: cc:ing Keno and Jameson as the authors of DevNull. On Sun, Dec 7, 2014 at 10:28 PM, K Leo cnbiz...@gmail.com wrote: Even if I could check something

Re: [julia-users] Re: Why cannot I see imread?

2014-12-01 Thread Keno Fischer
Might be covered by this issue: https://github.com/JuliaLang/julia/issues/3648 On Mon, Dec 1, 2014 at 7:12 AM, Ariel Keselman skar...@gmail.com wrote: there is an issue when using a module fails: I work on a computer w/o access to github, I had to just copy Images.jl to use it. Using Images

Re: [julia-users] exceptions disabled - Clang

2014-11-30 Thread Keno Fischer
This is primarily a Cxx.jl issue, though you might run into problem if you're trying to unwind through non-C++ frames later. In any case, in the spirit of experimentation, you can enable exception handling by setting the appropriate options from here:

Re: [julia-users] Re: Parametric type with user define type

2014-11-28 Thread Keno Fischer
You can actually do this if you declare Joker to be immutable (at least in 0.4, I'm not sure if that change happened before the 0.3 release or not) On Fri, Nov 28, 2014 at 5:15 AM, sebastien.fabrice.besn...@gmail.com wrote: Ok, so the parameter can only be an integer or a type, am I right ? Is

Re: [julia-users] Significant rounding error in Julia: N * (1/1) == N + 1

2014-11-19 Thread Keno Fischer
Yep `44099 * (1/1) == 44100` is false on my machine as well. In any case, as John mentioned, to be careful about `==` comparisons with floating point. On Wed, Nov 19, 2014 at 6:04 PM, John Myles White johnmyleswh...@gmail.com wrote: This does not happen on my machine. Can you give more details

Re: [julia-users] Re: Add new packages

2014-10-22 Thread Keno Fischer
Also is git installed. On Wed, Oct 22, 2014 at 1:30 PM, Stefan Karpinski ste...@karpinski.org wrote: Although that should be done for you. Does /home/markus/.julia/v0.3 exist? If so, what's in it? On Wed, Oct 22, 2014 at 1:28 PM, Jake Bolewski jakebolew...@gmail.com wrote: run Pkg.init()

Re: [julia-users] Re: JUNO: Couldn't Connect to Julia

2014-10-09 Thread Keno Fischer
You can either check out the release-0.3 branch or use the juliareleases (as opposed to julianightlies) PPA as described at http://julialang.org/downloads/ On Thu, Oct 9, 2014 at 3:56 AM, Thomas Moore tommo...@live.com.au wrote: Well that was another surprise: to upgrade, I deleted my julia and

Re: [julia-users] Re: help debugging too many files open

2014-10-07 Thread Keno Fischer
Yes, it's definitely supposed to be closed by the garbage collector. Eachline only closes it manually if it opened it, which it didn't in this case. Maybe better would be open(testfile,r) do f collect(eachline(f)) end On Tue, Oct 7, 2014 at 1:27 PM, g galenon...@gmail.com wrote: I

Re: [julia-users] Re: new REPL

2014-09-22 Thread Keno Fischer
No, that's not the right REPL. The one in the terminal is the LineEditREPL. We need better repl configuration, but you can change the prompt like this: Base.active_repl.interface.modes[1].prompt=abc On Mon, Sep 22, 2014 at 11:34 PM, Steve Kelly kd2...@gmail.com wrote: The prompt is defined

Re: [julia-users] programming style: function arg versus global?

2014-09-19 Thread Keno Fischer
In some finite element code I wrote I had one big `state` type which I passed around to every function, which is basically the same as passing along the arguments, but only takes one argument :). Plus you don't have to play games with being careful about the types of globals if you type the fields

Re: [julia-users] immutable types with array fields

2014-09-13 Thread Keno Fischer
Having an array as a field of an immutable is fine. It will be variable size and heap allocated, just like if you had the array by itself without the immutable. At some point we will tackle fixed-size arrays (and the associated performance benefits) both mutable and immutable. On Sat, Sep 13,

Re: [julia-users] Lint.jl status update

2014-09-13 Thread Keno Fischer
It's callable, but probably not what you want: julia f(A::Vector{Number}) = println(A) f (generic function with 1 method) julia f(Number[1.0; 1]) Number[1.0,1] On Sat, Sep 13, 2014 at 9:51 PM, Tony Fong tony.hf.f...@gmail.com wrote: I think a container type with a non-leaf eltype won't match

Re: [julia-users] issue with Ijulia/BinDep after Pkg.update()

2014-09-11 Thread Keno Fischer
You probably have a version of julia that is 0.2.1 but 0.3, please update to 0.3. On Thu, Sep 11, 2014 at 11:14 AM, Nima Dehghani nimadehgh...@gmail.com wrote: hi, I update julia packages on my Osx. After the update, I got an error about building zmq and nettle...it could not build them

Re: [julia-users] issue with Ijulia/BinDep after Pkg.update()

2014-09-11 Thread Keno Fischer
On Thursday, September 11, 2014 12:10:58 PM UTC-4, Keno Fischer wrote: You probably have a version of julia that is 0.2.1 but 0.3, please update to 0.3.

Re: [julia-users] How to manage local, propretary packages

2014-09-11 Thread Keno Fischer
The best thing I can think of is to have a company-local METADATA that you periodically update withe METADATA from GitHub. On Thu, Sep 11, 2014 at 4:34 PM, Peter Simon psimon0...@gmail.com wrote: I've introduced several packages at work for my coworkers' use. I expect more to be added in the

Re: [julia-users] How to manage local, propretary packages

2014-09-11 Thread Keno Fischer
-users@googlegroups.com [mailto:julia- us...@googlegroups.com] On Behalf Of Keno Fischer Sent: Thursday, September 11, 2014 1:36 PM To: julia-users@googlegroups.com Subject: Re: [julia-users] How to manage local, propretary packages The best thing I can think of is to have a company-local

Re: [julia-users] How to append two arrays?

2014-09-09 Thread Keno Fischer
If I understand correctly, you want hcat: julia hcat(v,w) 3x2 Array{Float64,2}: 1.0 2.0 2.0 4.0 3.0 6.0 The general version of that is `cat`. On Tue, Sep 9, 2014 at 6:31 PM, Diego Tapias dandrove...@gmail.com wrote: Thanks for answering!, but what if I want to form a matrix of dimension

Re: [julia-users] Failed attempt to publish a package

2014-09-08 Thread Keno Fischer
Pkg.publish definitely automatically forks and sets up a pull request. I suspect there is a different permissions problem going on. Perhaps you didn't register your public key with github? On Mon, Sep 8, 2014 at 4:27 PM, Ivar Nesje iva...@gmail.com wrote: You seem to have done things right. The

Re: [julia-users] Issue Replacing NaN with 0

2014-08-31 Thread Keno Fischer
Try x=copy(a). Matlab automatically copies the array if it's written to. On Sun, Aug 31, 2014 at 1:52 PM, Alex Hollingsworth hollina...@gmail.com wrote: Hi Everyone, I cannot figure out if there is an error in Julia or (more likely) in my code. I have a matrix A, which contains some NaN

Re: [julia-users] Module not defined?

2014-08-17 Thread Keno Fischer
You probably need `import ..Ngrams`. On Sun, Aug 17, 2014 at 8:49 AM, TR NS transf...@gmail.com wrote: Can any one tell me why this line https://github.com/openbohemians/corpus-julia/blob/master/src/cli.jl#L22 produces the error ERROR: Ngrams not defined Thanks.

Re: [julia-users] .xlsx (excel)

2014-08-15 Thread Keno Fischer
I believe the Taro package can do this, though it depends on having Java available. On Fri, Aug 15, 2014 at 4:04 PM, Frederico Novaes frederico.nov...@gmail.com wrote: Hi, Any package/function to read .xlsx files ? Frederico.

Re: [julia-users] Gadfly, draw, and font embedding.

2014-08-13 Thread Keno Fischer
I believe Gadfly has a pgf backend which might help with this. For svg, I don't think it can so why don't you happen an issue on the Gadfly repository? On Wed, Aug 13, 2014 at 11:22 PM, Lee Streeter lason...@gmail.com wrote: When using Gadfly to produce graphs, is there a way to embed fonts

Re: [julia-users] Dispatch on an abstract composite type with a concrete type field.

2014-08-10 Thread Keno Fischer
You need to declare the type parameter on Foo: type Foo1{B:Bar} : Foo{B} bar::B end On Sun, Aug 10, 2014 at 3:37 PM, thom lake thom.l.l...@gmail.com wrote: Not sure if the title and/or nomenclature are correct, but I need to write a function that dispatches on the specific type inner type

Re: [julia-users] Strange LLVM error

2014-08-08 Thread Keno Fischer
to 500, that should allow the algorithm to reach unpack function in a reasonable amount of time while still having too long of a pararray to deal with. At that point, the code hangs on two Macs that I've tried. Thank you, Wally On Thursday, August 7, 2014 10:29:43 PM UTC-4, Keno Fischer

Re: [julia-users] Re: polygonal patches with interpolated colourings

2014-08-07 Thread Keno Fischer
#cairo-pattern-create-mesh? On Thursday, August 7, 2014 12:54:43 AM UTC+2, Keno Fischer wrote: I have some code that does this for a triangular mesh, using Cairo.jl directly probably not too hard to adapt that to arbitrary shapes. I don't think it is quite correct though as I'm getting artifacts

Re: [julia-users] Strange LLVM error

2014-08-07 Thread Keno Fischer
, August 4, 2014 12:13:42 PM UTC-4, yaois...@gmail.com wrote: No rush. Thanks for taking the time! On Monday, August 4, 2014 12:01:22 PM UTC-4, Keno Fischer wrote: Not yet, sorry. Will get to it today. On Mon, Aug 4, 2014 at 11:27 AM, yaois...@gmail.com wrote: Hi Keno, Was just

Re: [julia-users] Re: polygonal patches with interpolated colourings

2014-08-06 Thread Keno Fischer
I have some code that does this for a triangular mesh, using Cairo.jl directly probably not too hard to adapt that to arbitrary shapes. I don't think it is quite correct though as I'm getting artifacts on element boundaries that I haven't been able to figure out. On Wed, Aug 6, 2014 at 4:23 PM,

  1   2   >