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 reading

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 5:4

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 9:41:55 AM UTC-7, Ste

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 functions which are callb

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 DataFrames from C in 0.5

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 AbstractT

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 > VoronoiDelaunay.jl and

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 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 >> couple of days. >&

Re: [julia-users] Julia and sshd tests

2016-08-09 Thread Keno Fischer
ake 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 AM UTC-7, Keno Fischer wrote: >

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 i

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 + x2 + 3x3 <= -5) > @contr

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

2016-07-14 Thread Keno Fischer
hink 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- > > From: jul

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 on

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 > > Tagging is accomplished

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? > > Like Isaiah, I don't know

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) + Ubuntu 14.04. > I also trie

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 and can't use the c

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 > the README so it's mor

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 is

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". You can just select you

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 can

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 Gallium and AST Interpre

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...) = () > > f (generic func

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 application: > https://github.com

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 thi

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, Juli

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 objec

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 bug. > > The following c

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 wrote: > This is explained in the manual: > http://docs.julialang.org/en/release-0.4/manual/types/

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 I

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] 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 to the path and moved

Re: [julia-users] DWARF

2016-01-05 Thread Keno Fischer
Manager/Seat0 > DEFAULTS_PATH = /usr/share/gconf/i3.default.path > 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 Dir

Re: [julia-users] DWARF

2016-01-05 Thread Keno Fischer
t; > > 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 > wrote: > >> However, taking another look at your backtrace, that's missing debug > info in >

Re: [julia-users] DWARF

2016-01-05 Thread Keno Fischer
gt;>> 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 middle of >>>> transitioning to the new LLVM on master,

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 mentioned (eg in > https://

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

2016-01-01 Thread Keno Fischer
> /lib64/libpthread.so.0 (0x7f9545b0d000) > > libm.so.6 => /lib64/libm.so.6 (0x7f954580a000) > > libstdc++.so.6 => /lib64/libstdc++.so.6 (0x7f9545503000) > > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x7f95452ed000) > > libc.so.6 => /lib64/libc.s

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

2015-12-30 Thread Keno Fischer
Hi Jan, looks like Intel options are being passed to gcc. Perhaps your libuv configuration is stale? You could try `make -C deps distclean-uv` Keno On Tue, Dec 29, 2015 at 11:02 PM, Jan Strube wrote: > I'm trying to install julia from source using the Intel compilers. > > icc --version > > icc

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 not

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 reclaimed by gc, > that's a bu

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 with it but not quite

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 wrote: > Then don

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 wrote: > IIRC, that used to

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 AP

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 test_abs(bytes_i

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 wrote: > Same for Shashi's session. > > On Monday, August 17, 2015 at 11:32:26 PM UTC+1, Keno Fischer wrote: >> &g

Re: [julia-users] JuliaCon 2015 videos

2015-08-17 Thread Keno Fischer
//t.co/DPuN42F3Qu >> >>>> 2. Tanmay Mohapatra: Interfacing Julia with Complex systems using >> Protocol Buffers - http://t.co/Ddxj60KL7g >> >>>> 3. Eric Davies: Towards A Consistent Database Interface - >> http://t.co/vdQwFRp7aD >> >>>>

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

2015-08-17 Thread Keno Fischer
ou can check yourself. I can also take a look in the morning. On Mon, Aug 17, 2015 at 11:55 PM, Jan Strube 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

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] Will be in Geneva later this week

2015-08-11 Thread Keno Fischer
n 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 > wrote: > > Hello everyone, > > > > I'll be traveling to Geneva later this

[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-25 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 wrote: > > I spent a bit of time trying to figure out why tests were failing on > Travis but not locally. It tu

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
ed > make[2]: *** [install] Error 1 > Makefile:642: recipe for target > '/home/kostav/julia/usr/lib/libLLVMCodeGen.a' failed > make[1]: *** [/home/kostav/julia/usr/lib/libLLVMCodeGen.a] Error 2 > Makefile:49: recipe for target 'julia-deps' failed > make: *** [jul

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

2015-07-07 Thread Keno Fischer
y > paste this line > on the file and then save it in the directory where the source file is > downloaded? > Also when you say "ne that uses LLVM-svn" not sure what I need to check for > this one. > > > > On Tuesday, July 7, 2015 at 5:36:49 PM UTC+2, Keno Fisc

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 versio

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 availabl

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 gives

Re: [julia-users] Cxx on Windows?

2015-05-25 Thread Keno Fischer
gt; > 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:0

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 wrote: > Does it worth trying or it's known that it won't work? (I could try to > build LLVM SVN with VS, if that helps)

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, wrote: > I think it would be great to submit the REPL mod, but it is not acceptable > as 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 wrote: > Is there a reason this was a hard rename? In other words, would adding > "typealias Void Nothing" break stuff? > > I do understand the re

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 wrote: > After movi

[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 unrelat

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 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? E.g.: I want

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 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 into this. >>

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 wrote: > Hi! > > I'm new to Julia and was wondering why >

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 addr

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

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 tha

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

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 shi

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 < stefan.karpin...@gmail.c

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 wrote: > cc:ing Keno and Jameson as the authors of DevNull. > > On Sun, Dec 7, 2014 at 10:28 PM, K Leo wrote: > >> Even if I could check something like the following is better: >> >>

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 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 > resulted in er

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: https://github.com/llvm-mirror/clang/blob/mast

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, wrote: > Ok, so the parameter can only be an integer or a type, am I right ? Is it > specified in the manual ? > >

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 wrote: > This does not happen on my machine. Can you give more details about your > setup? > >

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 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 > wrote: > >> run Pkg.init() first if the metadata does not exis

Re: [julia-users] General questions/advice - user types, constructors, pmap

2014-10-19 Thread Keno Fischer
Responses inline, let me know if something is unclear: On Sun, Oct 19, 2014 at 5:25 PM, Greg Plowman wrote: > Hi, > > I have several general questions that came up in my first foray into Julia. > > > Julia seems such a delight to work with, things seems to work magically and > lots of details are

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 wrote: > Well that was another surprise: to upgrade, I deleted my julia and .julia > files, 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 wrote: > I tracked it down under

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 wrote: > The prompt is defined here: > https://

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] 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 wrote: > I think a container type with a non-leaf eltype won't match anything. The > right

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, 2014

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

2014-09-11 Thread Keno Fischer
Thanks > --Peter > >> -Original Message- >> From: julia-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

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 wrote: > I've introduced several packages at work for my coworkers' use. I expect > more to be added in the future, both from my

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

2014-09-11 Thread Keno Fischer
dmg > > 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] 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 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 again. So, I remov

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 wrote: > Thanks for answering!, but what if I want to form a matrix of dimension 2 > and not an array

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 wrote: > You seem to have done things right. The problem is that

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 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 values and I would lik

Re: [julia-users] Binary dependencies always being downloaded in 0.2

2014-08-19 Thread Keno Fischer
Before anything else, try `Pkg.checkout("BinDeps")` and see if that fixes it. On Tue, Aug 19, 2014 at 3:11 PM, Ken Crowell wrote: > (Posted earlier in IRC, but I'm told this is considerably more active.) > > So in the recent past (a few weeks ago), on 0.2 on Ubuntu trusty, I could > pre-install t

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 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 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 wrote: > When using Gadfly to produce graphs, is there a way to embed fonts rather > than have the

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 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 while ignoring >

  1   2   >