Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread Michael Krabbe Borregaard
v0.5\ > DataFram > es\src\abstractdataframe\abstractdataframe.jl:657 > in showcols(::Base.TTY, ::DataFrames.DataFrame) at > C:\Users\lmathews\.julia\v0. > 5\DataFrames\src\abstractdataframe\show.jl:574 > in showcols(::DataFrames.DataFrame) at C:\Users\lmathews\.julia\v0.5\ > DataFrames > \src\abstractdataframe\show.jl:581 > > > > On Thursday, November 3, 2016 at 8:54:19 AM UTC-4, Michael Borregaard > wrote: >> >> The result of CSV should be a DataFrame by default. What return type do >> you get? >> >

Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread Michael Borregaard
The result of CSV should be a DataFrame by default. What return type do you get?

[julia-users] ANN: Highlights.jl

2016-11-02 Thread Michael Hatherly
I’m pleased to announce the initial 0.1 release of Highlights.jl — a Julia package for highlighting source code similar to the well-known Python package called Pygments . The documentation for the package can be found here

[julia-users] PSA: Documenter.jl deprecations

2016-11-02 Thread Michael Hatherly
Version 0.7 of Documenter has been tagged. Please note that this release *deprecates* the current authentication methods used to deploy generated documentation from Travis CI to GitHub Pages, namely GitHub personal access tokens and SSH keys generat

[julia-users] Re: Cost of @view and reshape

2016-10-30 Thread Michael Borregaard
You can reshape the view. This should be cheap.

Re: [julia-users] Re: so many plotting packages

2016-10-29 Thread Michael Borregaard
Independent approaches and a large number of largely experimental packages is the nature of open source development, yes, and may provide lots of creative new solutions. But to keep a technical language useful and attractive I think it is a very big advantage if there are defined standards, and

[julia-users] Function runs slow when called on new/different arguments?

2016-10-26 Thread Michael Wooley
Hi, I'm trying to speed up some code and have found something curious that I can't quite understand from the "performance tips" section. I understand that I shouldn't time my code on the first run because that will include compilation time and so forth. The odd thing that I can't understand i

[julia-users] Re: Which data structure do you suggest for handling this data?

2016-10-26 Thread Michael Borregaard
That depends a lot on what analyses you want to do with it afterwards - you could have an array (of species) of an array (of points) of tuples (the x and y), which is the most straigthforward thing. For must uses I would probably use a sparse Boolean matrix, e.g. visits = [sparse([1,4,8], [3,5,

[julia-users] How do I move an array of strings from C to Julia?

2016-10-12 Thread Michael Eastwood
y the length of each string ahead of time? Thanks, Michael

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

2016-10-09 Thread Michael Borregaard
Great to see this brought up here, and to read the constructive and thought-provoking responses from members of the Julia community. I feel this is highly important and I have thougt a lot about it recently, as I am writing an invited guest editorial for a leading ecological journal about how

Re: [julia-users] Is there a way to use values in a DataFrame directly in computation?

2016-10-05 Thread Michael Borregaard
This is good news, and I am holding my breath for this to be succesful! As someone from a data-rich science (Ecology), a really good way of interacting directly with data is the make-or-break for whether I will be able to persuade my colleagues to make the shift to julia.

[julia-users] Re: Maps in Julia?

2016-09-22 Thread Michael Borregaard
Yeesian, this looks really promising! It will be great to follow the progress of this.

Re: [julia-users] Re: julia installation broken

2016-09-18 Thread Michael Krabbe Borregaard
Thanks a lot, Jeffrey! Incredibly, this worked. Best, Michael On Fri, Sep 16, 2016 at 6:48 PM, Jeffrey Sarnoff wrote: > I have had this happen, too. My suggestion is grounded in persistence > rather than deep mastery of Julia's structural and file relationships. > So someone e

[julia-users] julia installation broken

2016-09-16 Thread Michael Borregaard
fails with an error message when I do Pkg.update(): julia> Pkg.update() INFO: Initializing package repository /Users/michael/.julia/v0.5 INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl ERROR: SystemError (with /Users/michael/.julia/v0.5/METADATA): rmdir: Directory not empty

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Michael Krabbe Borregaard
m/ > tbreloff/ConcreteAbstractions.jl > > It's pretty faithful to my earlier description, except that the macros > names are `@base` and `@extend`. Comments/criticisms welcome! > > On Tue, Sep 13, 2016 at 9:57 AM, Michael Krabbe Borregaard < > mkborrega...@gmail.com> wrote:

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Michael Krabbe Borregaard
First, apologies, I didn't mean that you wanted to 'subvert' ( http://www.merriam-webster.com/dictionary/subvert) julia. As a non-native speaker the finer nuances of English sometimes slip. The word I was looking for was perhaps 'sidestep'. Also I see your point that as long as the Abstract type ca

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Michael Borregaard
Thanks for the enlightening discussion. The emerging consensus is to use example #2, but perhaps use macros to make the syntax easier to read and maintain. Alternatively, it looks like my idea with having a FoobarData object as a field would do the job (but would require foobar.foobardata.bazba

[julia-users] Re: Workflow question - reloading modules

2016-09-13 Thread Michael Borregaard
Maybe this is useful: https://github.com/JunoLab/atom-julia-client/blob/master/manual/workflow.md

[julia-users] Re: Slow Performance Compared to MATLAB

2016-09-13 Thread Michael Borregaard
That is a pretty massive script to ask people to look at for performance :-) Try profiling it and identify the most expensive code and post that, that will be much easier to give feedback on.

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Michael Borregaard
Thanks for the prompt response, I will go with that then :-) I actually thought later that I may avoid some of the clutter in approach 2 by adding another level of indirection: abstract AbstractFoo type FooData bar baz #... several other fields end type FoobarData barbaz bazbaz #.

[julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Michael Borregaard
Hi, I am defining a set of types to hold scientific data, and trying to get the best out of Julia's type system. The types in my example are 'nested' in the sense that each type will hold progressively more information and thus allow the user to do progressively more. Like this: type Foo bar

[julia-users] Re: newest stable version of julia on EC2 AWS instances - starcluster

2016-09-09 Thread Michael Prentiss
I do not know an answer, but you may want to use the amazon cluster generator (cfncluster). It is under constant development, unlike starcluster. It may be easier. https://github.com/awslabs/cfncluster On Friday, September 9, 2016 at 7:21:33 PM UTC-5, Alexandros Fakos wrote: > > Hi, > > I

[julia-users] Re: Maps in Julia?

2016-09-09 Thread Michael Borregaard
You can open esri shapefiles with shapefiles.jl. There is a plotting function for shapefiles in plotrecipes.jl. You can layer shapefiles to create vector maps. I am happy to help out if you want to use this.

Re: [julia-users] Re: How to shuffle the order of matrix by rows

2016-09-08 Thread Michael Borregaard
I would just using StatsBase function shufflerows(a::AbstractMatrix) n = size(a, 1) ord = sample(1:n, n, replace = false) a[ord,:] end a = rand(5,5) shufflerows(a)

Re: [julia-users] "Namespaces" for accessing fields of composite types

2016-09-05 Thread Michael Borregaard
> For a toy example like this, this is reasonable advice. I know you were not after advice, but wanted to suggest a design change to Julia. I thought Yichao Yu gave a nice response to that, and I am looking forward to see the developments he promises. I just thought I would point out an ideomat

[julia-users] Re: Questions on parallelizing code - or how to deal with objects (and not just gathering data) in parallel.

2016-09-03 Thread michael . creel
MPI.jl has a montecarlo.jl function which could possibly be used. A simple example which shows the ideas is https://github.com/JuliaParallel/MPI.jl/blob/master/examples/07-pi-montecarlo.jl montecarlo.jl automatically collects results. The part about updating the state and broadcasting the ne

Re: [julia-users] "Namespaces" for accessing fields of composite types

2016-09-01 Thread Michael Borregaard
To do something like this in Julia, there are several possibilities, depending what you want to achieve. You could abstract Cat # we decide hat cat will always have an age variable type Tiger <: Cat age::Int end meow(c::Cat) = println(c.age) # then you can tigre = Tiger(5) meow(tigre)

[julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread michael . creel
I've cloned it and tried it out with RC3. The mnist example runs fine. I'm looking forward to exploring it in more detail. Thanks! On Friday, August 26, 2016 at 8:51:30 AM UTC+2, Deniz Yuret wrote: > > Announcing AutoGrad.jl : an > automatic differentia

[julia-users] Re: ANN: Documenter.jl 0.3

2016-08-23 Thread Michael Hatherly
Just an extra note to add: we've set up a Gitter chat room [1] for the JuliaDocs packages, so if anyone has questions that aren't really "issues", but rather just usage questions or requests for help when setting up your package docs, then feel free to ask them there. [1]: https://gitter.im/jul

Re: [julia-users] Re: ANN: Documenter.jl 0.3

2016-08-23 Thread Michael Hatherly
y that I strongly like the layout and "feel" of the HTML output. Much > better than what I have seen from using the Mkdocs. > > Maybe it is a bit redundant to have the base module name before all the > type and function names? > > On Monday, August 22, 2016 at 10

[julia-users] Re: JupyterLab

2016-08-23 Thread Michael Borregaard
They have updated to 0.2. It works fine for me, I just had to get used to that to start a julia notebook, I have to first open a new Notebook that opens with the Python2 kernel, and the 'switch kernel'.

Re: [julia-users] Re: ANN: Documenter.jl 0.3

2016-08-22 Thread Michael Hatherly
Yes, Morten's additions to the package over the summer have really be great! I'd also like to re-emphasise his call for feedback and suggestions (there's already been lots, but we're always looking for more) on the new HTML output, and the package in general. We want to end up with a documentati

Re: [julia-users] Re: lower triangular matrix in julia

2016-08-19 Thread Michael Krabbe Borregaard
; >> On Friday, August 19, 2016 at 9:01:06 AM UTC-4, Ahmed Mazari wrote: >>> >>> Yes but it doesn't allow me to set the diagonal to 0 ?? >>> >>> On Fri, Aug 19, 2016 at 2:55 PM, Michael Borregaard >> > wrote: >>> >>>> You can build the matrix as normal, then specify that the upper >>>> triangle is undefined by >>>> mat = LowerTriangular(mat) # where mat is a Matrix of any eltype. >>>> >>> >>> >

[julia-users] Re: lower triangular matrix in julia

2016-08-19 Thread Michael Borregaard
You can build the matrix as normal, then specify that the upper triangle is undefined by mat = LowerTriangular(mat) # where mat is a Matrix of any eltype.

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Krabbe Borregaard
That's wonderful news, thanks a lot for this. I know .() is just syntactic sugar, but to me it really feels intuitive and powerful. Thanks again, Michael On Thu, Aug 18, 2016 at 8:27 PM, Steven G. Johnson wrote: > (If you want dot calls to work with your own container type, then you jus

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Krabbe Borregaard
It'd be nice with a list of the methods a user-defined type would need to define to be amenable to .() in an Array. On Thu, Aug 18, 2016 at 8:16 PM, Michael Krabbe Borregaard < mkborrega...@gmail.com> wrote: > Thanks! Right now it makes a difference for my understanding just to kn

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Krabbe Borregaard
Thanks! Right now it makes a difference for my understanding just to know that this is an issue with String, and that .() will otherwise behave like map.

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Krabbe Borregaard
That sounds right. I wonder if this is not a bug?

[julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Borregaard
Please ignore the erroneous first " in the last code line.

[julia-users] When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Borregaard
I have a hard time figuring out what functions and types accept the broadcast dot in 0.5. E.g., is(1, 2)# false is.([1, 2], 2) # Bool[false, true] is("a", "b")#false is.("["a","b"], "b")#MethodError: no method matching size(::String) Can anyone give me a

[julia-users] Re: JupyterLab

2016-08-16 Thread Michael Borregaard
I could get a Julia 'console' working, which is like an IPython console, i.e. no graphics or markdown. It had an option to change kernel (for the notebook I assume) but I couldn't get it to work straight away. Other people might, or it will be working soon. In the presentation they stressed tha

[julia-users] Re: ANN: Optim v0.6

2016-08-14 Thread Michael Hatherly
It’s definitely true that the docs badges don’t seem to be noticed by everyone as easily as I’d originally hoped. Note that when the linked discussion about Documenter.jl’s use of badges happened there was also a link to the docs in the repo description as you’ve suggested here. I think a goo

Re: [julia-users] Array of Strings

2016-08-12 Thread Michael Borregaard
So in answer to your question you would write function hello_array{T<:AbstractString}(dat::Vector{T}) map(println, dat) end

Re: [julia-users] precompiling all packages

2016-08-09 Thread Michael Krabbe Borregaard
Nice, thanks! #MakePkg.update()GreatAgain! On Tue, Aug 9, 2016 at 12:46 PM, Kristoffer Carlsson wrote: > Can look at this: > > https://github.com/staticfloat/MakePkgUpdatePrecompileInTheBackground.jl > > https://github.com/JuliaLang/julia/issues/16409#issuecomment-228873060

Re: [julia-users] precompiling all packages

2016-08-09 Thread Michael Borregaard
AFAIK none of these threads provided an easy and clear resolution. The latest I could find () ended up with a reques to define a `Pkg.precompile()` function, but I have not seen that anything new has happened since.

[julia-users] ANN: Documenter.jl 0.2

2016-08-06 Thread Michael Hatherly
Hi all, Version 0.2 of Documenter.jl has been tagged. Documenter is a package for building documentation for Julia packages. The documentation is available from https://juliadocs.github.io/Documenter.jl/stable/. This update includes several change

Re: [julia-users] Re: Strange performance issue in filling in a matrix column

2016-07-22 Thread Michael Prange
have > these performance issues. > >> On Fri, Jul 22, 2016 at 4:18 PM, Michael Prange wrote: >> I just discovered that Julia already has a function for circularly shifting >> the data in an array: circshift(A, shifts). However, its performance is >> worst of all. Using

[julia-users] Re: Strange performance issue in filling in a matrix column

2016-07-22 Thread Michael Prange
llocations and memory. Michael On Friday, July 22, 2016 at 2:23:16 PM UTC-4, Michael Prange wrote: > > Gunnar, > > Thank you for your explanation of the extra allocations and the tip about > sub. I implemented a version with sub as fill_W3!: > > function fill_W3!{TF}(W::Matr

[julia-users] Re: Strange performance issue in filling in a matrix column

2016-07-22 Thread Michael Prange
s seems to be the way to go. Michael On Thursday, July 21, 2016 at 5:35:47 PM UTC-4, Gunnar Farnebäck wrote: > > fill_W1! allocates memory because it makes copies when constructing the > right hand sides. fill_W2 allocates memory in order to construct the > comprehensions (that you

[julia-users] Strange performance issue in filling in a matrix column

2016-07-21 Thread Michael Prange
er results. Any why do these latter two methods allocate so much memory when the whole point of these methods is to use already-allocated memory. Michael ### Definitions function fill_W1!{TF}(W::Matrix{TF}, icol::Int, w::Vector{TF}, ishift::Int) @assert(size(W,1) == length(w), "Dim

Re: [julia-users] R code to Julia Performance issues with pmap

2016-07-06 Thread Michael Krabbe Borregaard
Ah, forgot that the system.time is a bit tricky when running parallel cores

Re: [julia-users] R code to Julia Performance issues with pmap

2016-07-06 Thread Michael Borregaard
I am not seeing your speed-up in R? elapsed is less time, but user significantly more, and it is the sum that counts. When executing in parallel the language needs to copy the data to the workers. If the matrices are large, that takes longer than the speedup of the parallel execution. See what h

Re: [julia-users] Re: polynomial terms in formula specification

2016-06-27 Thread Michael Krabbe Borregaard
And... Sorry if I sounded unnecessarily critical, I just hoped to argue the case for a change. I know all decisions in Julia are based on careful consideration of all the options.

[julia-users] Re: polynomial terms in formula specification

2016-06-27 Thread Michael Borregaard
Thanks for responding, both, it is particularly great to get an answer from the father of mixed models in R and julia! I do have to say I find the functionality slightly disappointing, though. I had done what was in the suggested solution, but thought of it as an unpleasant workaround. Can anyo

[julia-users] polynomial terms in formula specification

2016-06-24 Thread Michael Borregaard
Sorry for asking a question that should be super-basic, but I have looked all over the internet for this for an hour now: How does one specify polynomial terms in glm models? In R, I would: y ~ x + I(x^2) Thanks! Michael

[julia-users] Re: MethodError closest candidate is same as "no matching method" method

2016-06-23 Thread michael
I finally realized what I should have done and felt like an idiot for taking so long on this. S = MatrixSpace(ZZ, 3, 3) @eval @everywhere S=$S On Wednesday, June 15, 2016 at 12:24:16 PM UTC-5, michael wrote: > > That would almost definitely be it. I had been using > @everywhere u

Re: [julia-users] Re: ANN: Documenter.jl

2016-06-18 Thread Michael Hatherly
loping packages so assuming a decent amount of knowledge of general > Julia stuff is in my view fair game. > > Just wanted to add my feedback so that multiple inputs are heard. > > > > On Sunday, June 19, 2016 at 12:01:54 AM UTC+2, Michael Hatherly wrote: >> >> It hones

Re: [julia-users] Re: ANN: Documenter.jl

2016-06-18 Thread Michael Hatherly
arrera wrote: > > > > On 18 June 2016 at 18:34, Michael Hatherly > wrote: > >> Here is the entire section from the raw file >> >> “Raw file” is the key here: those are image links below the sentence. >> Look at >> the rendered version on the GitHub

Re: [julia-users] Re: ANN: Documenter.jl

2016-06-18 Thread Michael Hatherly
> on it. > > On Sat, 2016-06-18 at 18:34, Michael Hatherly > wrote: > > Here is the entire section from the raw file > > > > “Raw file” is the key here: those are image links below the sentence. > Look > > at > > the rendered version on the

Re: [julia-users] Re: ANN: Documenter.jl

2016-06-18 Thread Michael Hatherly
to use it in the future. So thanks for that. > > > On 18 June 2016 at 15:20, Michael Hatherly > wrote: > >> It has two lines on installation, one line on project status, and two >> sentences on “contributing and questions”. >> >> You’ve missed out the sec

Re: [julia-users] Re: ANN: Documenter.jl

2016-06-18 Thread Michael Hatherly
t's something that should be stated explicitly. Maybe add > some examples showing the use of Markdown. > > Cheers, > Daniel. > > > On 18 June 2016 at 12:26, Michael Hatherly > wrote: > >> There's two links in the README (the blue "docs" badges),

[julia-users] Re: ANN: Documenter.jl

2016-06-18 Thread Michael Hatherly
ule. How does it work? How do > you use it? What mark up language does it use? etc etc. The README file is > basically blank, and the docs directory doesn't seem to contain any actual > docs. > > Daniel. > > > On Friday, 17 June 2016 11:07:26 UTC+2, Michael Hatherly

[julia-users] Re: ANN: Documenter.jl

2016-06-17 Thread Michael Hatherly
;> Hello, >> >> I installed Documenter and followed the tutorial. Now I would like to >> convert the documentation in html WITHOUT deploying >> it to github. How can I do this? >> >> Uwe >> >> On Friday, June 17, 2016 at 11:07:26 AM UTC+2, Michael

[julia-users] Re: ANN: Documenter.jl

2016-06-17 Thread Michael Hatherly
gt; convert the documentation in html WITHOUT deploying > it to github. How can I do this? > > Uwe > > On Friday, June 17, 2016 at 11:07:26 AM UTC+2, Michael Hatherly wrote: >> >> I’m please to announce the initial release of Documenter.jl >> <https://github.com/J

[julia-users] ANN: Documenter.jl

2016-06-17 Thread Michael Hatherly
I’m please to announce the initial release of Documenter.jl — a documentation generator for Julia. The package docs are here . The package is still a work-in-progress, but now has sufficient featur

[julia-users] Re: Custom string escaping in docstrings

2016-06-16 Thread Michael Hatherly
You should use the @doc_str macro when you have LaTeX characters that need escaping. http://docs.julialang.org/en/latest/manual/documentation/#syntax-guide — Mike On Thursday, 16 June 2016 01:51:27 UTC+2, Marius Millea wrote: > > My docstrings often contain Latex so they have $ and \ characters

[julia-users] Re: MethodError closest candidate is same as "no matching method" method

2016-06-15 Thread michael
That would almost definitely be it. I had been using @everywhere using Nemo as a hacky way of dealing with types not being defined on other processes. I've read the documentation where it gives the example DummyModule and talks about the scope but I've never really grasped the "correct" way to

[julia-users] Re: MethodError closest candidate is same as "no matching method" method

2016-06-15 Thread michael
That would almost definitely be it. I had been using @everywhere using Nemo as a hacky way of dealing with types not being defined on other processes. I've read the documentation where it gives the example DummyModule and talks about the scope but I've never really grasped the "correct" way to

[julia-users] MethodError closest candidate is same as "no matching method" method

2016-06-12 Thread michael
I am using a fork of Nemo I modified to support a fork of FLINT so I could use the function snf_with_transform . The Julia script I'm using works great in some cases. I'm scheduling it with

[julia-users] Re: Compose.jl animation

2016-06-11 Thread Michael Borregaard
It is not a full answer, but you should check ctxpromise() for the size. I think the distribution is because the canvas is not square and you use relative positions to specify circle centers. You can set the size parameters in the context call. Sorry I realise this is really useless in terms of

[julia-users] Re: ANN: DC.jl - automagical linked plots in your IJulia Notebook

2016-06-08 Thread Michael Borregaard
Love it, thanks.

Re: [julia-users] How do I find out which package is causing problems running Pkg.update()

2016-06-07 Thread Michael Krabbe Borregaard
Thanks! After a bit if experimenting I could Pkg.checkout("Atom", "julia-0.4"), which solved the issue.

Re: [julia-users] How do I find out which package is causing problems running Pkg.update()

2016-06-07 Thread Michael Krabbe Borregaard
Sorry for being slow but I am not sure I understand what you suggest? On Tue, Jun 7, 2016 at 2:38 PM, Yichao Yu wrote: > On Tue, Jun 7, 2016 at 8:06 AM, Michael Borregaard > wrote: > > Hi, > > I cannot Pkg.update(), I get the error message: > > > > ERROR: AST

[julia-users] How do I find out which package is causing problems running Pkg.update()

2016-06-07 Thread Michael Borregaard
iling list. Thanks a lot, Michael

[julia-users] Re: starting a worker limits blas to one thread

2016-06-02 Thread Michael Eastwood
`addprocs`. I am going to open an issue asking for this to become a keyword argument. Thanks, Michael On Thu, Jun 2, 2016 at 2:44 PM, Michael Eastwood < michael.w.eastw...@gmail.com> wrote: > Hello julia-users, > > I've noticed that if I start a worker blas is all of the su

[julia-users] starting a worker limits blas to one thread

2016-06-02 Thread Michael Eastwood
s (USE64BITINT NO_AFFINITY NEHALEM) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.3 Thanks, Michael

Re: [julia-users] Re: Lack of an explicit return in Julia, heartache or happiness?

2016-05-25 Thread Michael Borregaard
To me, the suggested change seems to conflict intuitively with julia syntax. When using Julia at the REPL all expressions return a value, which is confusing at first when coming from othe languages but quickly becomes a feature. That a function also returns the value of the last statement seems

Re: [julia-users] Passing a function outputted by a higher order function to C - function not yet c-callable

2016-05-22 Thread Michael Lindon
Hi Yichao Yu, Thank you for the quick reply. Could you please elaborate on how to pass the data explicitly as you suggest? I don't quite understand. On Sunday, May 22, 2016 at 4:14:02 PM UTC-4, Yichao Yu wrote: > > On Sun, May 22, 2016 at 4:09 PM, Michael Lindon > > wrote: &g

[julia-users] Passing a function outputted by a higher order function to C - function not yet c-callable

2016-05-22 Thread Michael Lindon
I have function baz which outputs the product of the input at 2: function baz{T}(x::T) return convert(Cdouble,x*2)::Cdouble end I want to use this function in some C function that I am calling. Running julia> myptr=cfunction(baz,Cdouble,(Ref{Cdouble})) Ptr{Void} @0x7f2623c9c1d0 is f

[julia-users] Re: moving data to workers for distributed workloads

2016-05-19 Thread Michael Eastwood
gh. Thanks for the link. I'm using alm2map and map2alm from LibHealpix.jl ( https://github.com/mweastwood/LibHealpix.jl) to do the spherical harmonic transforms. Michael On Thursday, May 19, 2016 at 12:45:05 AM UTC-7, Fabian Gans wrote: > > Hi Michael, > > I recently had a

[julia-users] Re: moving data to workers for distributed workloads

2016-05-19 Thread Michael Eastwood
x27;re also correct that write_results_to_disk does actually depend on myidx. I might have somewhat oversimplified the example. Thanks, Michael On Thursday, May 19, 2016 at 7:41:49 AM UTC-7, Matthew Pearce wrote: > > Hi Michael > > Your current code looks like will pull back the `c

[julia-users] moving data to workers for distributed workloads

2016-05-18 Thread Michael Eastwood
e-0.4/manual/parallel-computing/#remoterefs-and-abstractchannels) is a little thin on how to use RemoteRefs. So how do you move data to workers in a way that it can be re-used on subsequent iterations? An example in the manual would be very helpful! Thanks, Michael

[julia-users] Re: Strange behavior with docstring

2016-05-13 Thread Michael Hatherly
Yes, do blocks can’t be documented, but perhaps a nicer error message would be more useful. Could you open an issue so this doesn’t get lost. Thanks. — Mike ​ On Friday, 13 May 2016 12:25:09 UTC+2, Eric Forgy wrote: > > Maybe a clue... > > Callback is a constructor, so I have many such docstri

Re: [julia-users] Re: convert array elements

2016-05-13 Thread Michael Krabbe Borregaard
ut the result > type. There is an issue tracking this: > https://github.com/JuliaLang/julia/issues/7258 > > On Thursday, May 12, 2016 at 3:36:06 PM UTC+2, Michael Borregaard wrote: >> >> Awesome, thank you! I love the Julia 0.5 implementation. >> PS. On my system [

Re: [julia-users] Re: convert array elements

2016-05-12 Thread Michael Krabbe Borregaard
Awesome, thank you! I love the Julia 0.5 implementation. PS. On my system ["$x" for x in ID] gives an Array{Any}, this seems to be a general issue with array comprehensions. On Thu, May 12, 2016 at 12:38 PM, Steven G. Johnson wrote: > > > On Thursday, May 12, 2016 at 6:34:3

[julia-users] Re: documentation reversed order for multiple methods

2016-05-12 Thread Michael Hatherly
The ordering of docstrings in Julia 0.4 is based on the method signatures, which can sometimes not be all that obvious. They are not printed in a random order though. It’s best just to not rely on a specific order in 0.4. In 0.5 this order has been changed, https://github.com/JuliaLang/julia/pu

[julia-users] Re: Package Documentation Tools

2016-05-12 Thread Michael Hatherly
Yes, that’s how things currently work. LaTeX output and HTML without using MkDocs will be added at some point, not in the initial 0.1 release, but probably 0.2. If anyone runs into any problems feel free to open an issue in the repo — I don’t check the mailing list all that often. ​ — Mike ​ On

[julia-users] convert array elements

2016-05-12 Thread Michael Borregaard
I am trying to convert from R to Julia, as i really like Julia and the nice development going on here. But there are certain operations that are a lot more complicated to do in Julia, even though they are mainstay (I will do the several times every day). But I am in doubt if I just don't know hw

[julia-users] Re: why's my julia code running slower than matlab, despite performance tips

2016-05-08 Thread michael . creel
I see that c is a constant array of Ints, and its elements multiply ux, uy and uz in a loop, where ux, uy and uz are arrays of floats, so there's a type stability problem. On Sunday, May 8, 2016 at 9:18:09 AM UTC+2, feza wrote: > > https://gist.github.com/musmo/27436a340b41c01d51d557a655276783 >

[julia-users] Graph visualization (pdf2svg failure in TikzGraphs)

2016-04-29 Thread &#x27;Michael Hartmann' via julia-users
Hello, I have the following problem: I want to visualize following graph: <> Here the error message is thrown: <> pdf2svg is installed and can be used in the command window: <> It is also possible to save a TikzPicture. <> Best Regards, Mi

[julia-users] Strange Behavior Whereby Shared Arrays Requires Indexing

2016-04-27 Thread Michael Wojnowicz
Here's some behavior using Julia's parallel processing that really surprised me. I'm not sure if this behavior is a bug (in which case I should report it), or if I'm just missing something. Really stupid but minimal example: This code fails: @everywhere function doit(vec::Array{Int64,1}) Ac

[julia-users] Re: Improvements to GPU integration with Julia

2016-04-26 Thread Michael Jin
sing CUDA. CUDArt.jl and Arrayfire.jl work quite well. I don't know > too much about the OpenCL side, but I don't tend to have a use for it. > > On Monday, April 25, 2016 at 6:06:10 PM UTC-7, Michael Jin wrote: >> >> (Reposted from julia-dev I was told that julia-user was a &

[julia-users] Improvements to GPU integration with Julia

2016-04-25 Thread Michael Jin
(Reposted from julia-dev I was told that julia-user was a more appropriate place to have this thread.) Hi, I'm an undergraduate student and I've been using Julia since 2013. I've been trying to use the GPU seamlessly for projects involving Julia matrices. For that end, I have started working on

Re: [julia-users] constant values from dictionary as compile time constants

2016-04-25 Thread Michael Louwrens
Tom Breloff wrote: >> If it's always the same keys, maybe build an immutable type at the very >> beginning? >> >> >>> On Sunday, April 24, 2016, Michael Louwrens >>> wrote: >>> I use a dictionary to store all the various variables I use in

[julia-users] constant values from dictionary as compile time constants

2016-04-24 Thread Michael Louwrens
I use a dictionary to store all the various variables I use in an algorithm. So, there are many functions which look like: function foo(input::Dict) x =2*input[:bar] end Input is created once and never changed. Would abusing Val{T} be an option here? There will only be one value for `input[

Re: [julia-users] Re: Ambiguous method definitions

2016-04-20 Thread Michael Borregaard
There are many cases where it is convenient to be able to give 0 kwargs. Is it not better to test for isempty(a) when the behavior is undefined for 0 arguments?

[julia-users] Re: Your experiences with Julia's parallel computing

2016-04-07 Thread michael . creel
> > >- What is the main reason that you started using Julia? > > Free, fast, works on all popular operating systems, so good for teaching and portability of research > >- Have you used Julia’s parallel computing aspects? > > Yes, but I mostly use the MPI.jl package. > >- What did

[julia-users] Re: Julia and Octave communication using MPI?

2016-04-07 Thread michael . creel
ain() I can launch using mpirun -np 2 octave-cli --eval testOctaveJulia : -np 3 julia testOctaveJulia.jl The result is michael@yosemite:~/Desktop/JO$ mpirun -np 2 octave-cli --eval testOctaveJulia : -np 3 julia testOctaveJulia.jl I am Octave rank 0 I am Octave rank 1 I am Julia rank 2 I a

[julia-users] Julia and Octave communication using MPI?

2016-04-05 Thread michael . creel
I use MPI with both Julia (using MPI.jl) and Octave (using the MPI package for Octave). For both Julia and Octave, the packages are wrapping (in my case) Open MPI functions. I believe that it should be possible for Julia and Octave to send information back and forth via MPI. Before trying this

[julia-users] Apache Arrow/Feather

2016-04-04 Thread Michael Turok
Any thoughts here on the efforts to build a unified dataframe format between R and Python via Apache Arrow (and Feather?) Regards, Michael

  1   2   3   4   5   6   7   >