[julia-users] Re: [Announcement] Moving to Discourse

2016-11-16 Thread Johan Sigfrids
You can put the code inside triple back ticks: ``` function hello() "Hello" end ``` On Wednesday, November 16, 2016 at 12:49:09 PM UTC+2, Uwe Fechner wrote: > > Hello, > how can I paste Julia code in Discourse, such that it has syntax > highlighting? > > Uwe > > On Wednesday, November 16,

[julia-users] Re: 0.5 new generators syntax question

2016-11-01 Thread Johan Sigfrids
Given that allocating an array for 50 Ints, filling it up, and then summing it all together probably takes less than a microsecond, any difference between allocating and not allocating will disappears in the noise. As Yichao Yu mentions, what you end up measuring is the time it takes to setup

[julia-users] Re: What is best practice for determining if a URL exists?

2016-10-06 Thread Johan Sigfrids
I would probably do a HTTP HEAD request. It would return the headers allowing you to tell what, if anything, is there without having to download it. On Thursday, October 6, 2016 at 7:54:13 AM UTC+3, Jeffrey Sarnoff wrote: > > What is best practice for determining if a URL exists (known,

[julia-users] Re: [ECCN] What packages are included in the basic distribution of Julia

2016-03-19 Thread Johan Sigfrids
Since packages are installed over an encrypted connection Julia must ship with some kind of crypto. On Friday, March 18, 2016 at 11:39:11 AM UTC+2, Páll Haraldsson wrote: > > > On Thursday, March 17, 2016 at 8:27:33 PM UTC, Naiyuan Chiang wrote: >> >> >> Hi, >> >> I am working in United

Re: [julia-users] ANN: A potential new Discourse-based Julia forum

2016-03-09 Thread Johan Sigfrids
What about other lists like julia-stats and julia-opt? Would they also move to Discourse or be left behind? On Wednesday, March 9, 2016 at 4:05:24 PM UTC+2, Stefan Karpinski wrote: > > It seems like we can import the email list from julia-users and julia-dev, > and you can reply on Discourse by

[julia-users] Re: Pkg.build("IJulia") failed with rc2

2015-09-20 Thread Johan Sigfrids
The cycle of errors is not infinite, just very long. I left it running over night and next morning it was finished. On Sunday, September 20, 2015 at 11:15:35 AM UTC+3, Chris Stook wrote: > > After updating to rc2, Pkg.build("IJulia") resulted in an infinite cycle > of errors. After watching

[julia-users] Re: Juno + Julia 0.4

2015-09-18 Thread Johan Sigfrids
Provide some project wide action like search and find/replace, and also store the project specific settings that vary from project to project, like indentation. On Friday, September 18, 2015 at 9:31:42 PM UTC+3, Daniel Carrera wrote: > > I have always been curious about why so many IDEs support

[julia-users] Re: [ANN] ForwardDiff.jl v0.1.0 Released

2015-09-04 Thread Johan Sigfrids
Are there any benchmark results for the "more performant and accurate" bit? On Thursday, September 3, 2015 at 11:25:01 PM UTC+3, Jarrett Revels wrote: > > I'm proud to announce that we've tagged and released a new version > ForwardDiff.jl (https://github.com/JuliaDiff/ForwardDiff.jl). > >

[julia-users] Re: JuliaCon 2015 videos

2015-08-14 Thread Johan Sigfrids
Nice! The quality is much better than last years videos. On Thursday, August 13, 2015 at 8:22:09 PM UTC+3, Viral Shah wrote: Folks, I am happy to announce that the videos are almost all ready, and I will start posting them in batches. I am starting with Jeff’s talk on our Youtube

Re: [julia-users] Defining a function in different modules

2015-08-07 Thread Johan Sigfrids
I believe the reason fit! and similar names are defined in StatsBase is so that there would be one canonical version of the name the everyone can import and extend. On Friday, August 7, 2015 at 5:03:00 AM UTC+3, Madeleine Udell wrote: Thanks, David! Requiring StatsBase and importing

Re: [julia-users] DataFrames' readtable very slow compared to R's read.csv when loading ~7.6M csv rows

2015-06-01 Thread Johan Sigfrids
Hmm. Makes you wonder what it would be like to use SQLite as a backend for DataFrames. On Monday, June 1, 2015 at 8:06:50 PM UTC+3, Jacob Quinn wrote: I've been meaning to clean some things up and properly release the functionality, but I have a new way to read in CSV files that beats

[julia-users] Re: writing a DataFrame consisting of DataFrames to a table

2015-05-08 Thread Johan Sigfrids
csv is really only meant for simple two dimensional data. A DataFrame inside a DataFrame is more complex than what the csv reader know how to deal with. If you want to store something like that you will have to use some other file format, like JLD. On Friday, May 8, 2015 at 11:56:05 AM UTC+3,

[julia-users] Re: function similar to matlab tabulate

2015-04-30 Thread Johan Sigfrids
countmap in the StatsBase.jl package does this. On Thursday, April 30, 2015 at 11:11:37 PM UTC+3, Alexandros Fakos wrote: Hi, Is there a way to get a table of frequencies of the unique values in an array in Julia? Something like matlab's tabulate Thanks a lot, Alex

[julia-users] Re: Newbie help... First implementation of 3D heat equation solver VERY slow in Julia

2015-04-29 Thread Johan Sigfrids
As I understand it, it is only the Julia runtime and dependencies that are compile with gcc or Intel compilers. Regardless of which ones you use the compile Julia itself, the Julia code you yourself write will be compiled by the Julia runtime using LLVM. The only time when in Julia code you

Re: [julia-users] Newbie help... First implementation of 3D heat equation solver VERY slow in Julia

2015-04-25 Thread Johan Sigfrids
I think it is all the slicing that is killing the performance. Maybe something like arrayviews or the new sub stuff on 0.4 would help. Alternatively devectorizing into a bunch of nested loops. On Saturday, April 25, 2015 at 8:42:09 PM UTC+3, Stefan Karpinski wrote: Stick const in front of T

[julia-users] Re: Bioinformatics in Julia

2015-04-25 Thread Johan Sigfrids
I don't know the status of the tools, but there is active development at the BioJulia GitHub organization https://github.com/BioJulia On Saturday, April 25, 2015 at 8:08:16 PM UTC+3, Tim K wrote: Dear All, I am finishing a bioengineering postdoc soon, and am looking to learn some

[julia-users] Re: Julia blogging and contributions

2015-03-25 Thread Johan Sigfrids
There is also http://www.reddit.com/r/Julia/ On Wednesday, March 25, 2015 at 7:57:20 AM UTC+2, cdm wrote: these twitter feeds: https://twitter.com/JuliaLanguage https://twitter.com/ProjectJupyter https://twitter.com/julialang_news in addition to searching twitter for

[julia-users] Re: Uint8 arrays and deprecations in 0.4

2015-03-16 Thread Johan Sigfrids
You can add a type in front of the brackets: UInt8[1, 255] On Tuesday, March 17, 2015 at 12:37:01 AM UTC+2, J Luis wrote: julia uint8([1,255]) WARNING: uint8(x::AbstractArray) is deprecated, use round(UInt8,x) instead . Besides not really understanding why the deprecation (older way is

Re: [julia-users] How to introduce scope inside macro

2015-03-13 Thread Johan Sigfrids
Wrapping it in a let block only seems to slow things down more. @time let a=a, b=b, c=c @map(sqrt(a^2 + b^2) + c, a, b) end elapsed time: 4.951837524 seconds (1839984144 bytes allocated, 19.48% gc time) On Friday, March 13, 2015 at 11:01:35 AM UTC+2, Toivo Henningsson wrote: To

Re: [julia-users] How to introduce scope inside macro

2015-03-12 Thread Johan Sigfrids
. As an alternative that only requires compilation on the first call, try FastAnonymous or NumericFuns. --Tim On Wednesday, March 11, 2015 02:25:10 PM Johan Sigfrids wrote: I've been playing around with creating a @map macro: indexify(s::Symbol, i, syms) = s in syms ? Expr(:ref, s, i) : s

[julia-users] How to introduce scope inside macro

2015-03-11 Thread Johan Sigfrids
I've been playing around with creating a @map macro: indexify(s::Symbol, i, syms) = s in syms ? Expr(:ref, s, i) : s indexify(e::Expr, i, syms) = Expr(e.head, e.args[1], [indexify(a, i, syms) for a in e.args[2:end]]...) indexify(a::Any, i, syms) = a macro map(expr, args...) quote

[julia-users] Re: Juno question

2015-03-08 Thread Johan Sigfrids
I believe Juno is built on top of Atom shell, which has as a minimum requirement Win7. It won't run on Win XP. All you can do is upgrade to a newer version of Windows, or use some other editor with Julia. On Sunday, March 8, 2015 at 7:18:04 PM UTC+2, Roger Hunter wrote: I have a dual core 2

[julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-08 Thread Johan Sigfrids
Because calling out to mpfr is cheating here is a implementation of Gauss-Legendre in Julia calculating Pi to the desired number of digits (Still relying on BigFloats though). function gaussLegendrePi(d::Integer) prec = get_bigfloat_precision()

[julia-users] Re: join dataframe columns

2015-03-01 Thread Johan Sigfrids
With a DataFrame like: df = DataFrame(Name = [Test, Test2], Name2 = [A, B], Amt=[123,456]) you could do something like this: df[:Name] = map((x,y) - string(x, -, y), df[:Name], df[:Name2]) Note that you will still have the Name2 column. On Sunday, March 1, 2015 at 12:35:01 AM UTC+2,

[julia-users] Re: Values from Dict assigned to variables (symbols?) named as keys?

2015-02-16 Thread Johan Sigfrids
Could you not use a composite type for this? It would seem more Julian to me.

[julia-users] drawing geometrical shapes on top of gadfly plot

2015-02-12 Thread Johan Sigfrids
You can use Guide.annotation too add arbitrary graphics to a plot. http://gadflyjl.org/guide_annotation.html

Re: [julia-users] very rough sketch of future release targets

2014-12-22 Thread Johan Sigfrids
Is 0.4 gonna get delayed with lots of last minute additions the same way 0.3 was? On Monday, December 22, 2014 5:03:53 PM UTC+2, Stefan Karpinski wrote: I think that's overly pessimistic – we should be wrapping up 0.4 projects by end of January and then start stabilizing everything and

Re: [julia-users] ISLR (Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani) Examples in Julia

2014-12-14 Thread Johan Sigfrids
There is a ISLR package for R with a bunch of example datasets used in the book. Those datasets are also available in RDatasets.jl Doing the ISLR example in Julia would involve a lot of writing of functionality. Last summer I browsed through the statistics functionality available in Julia and

Re: [julia-users] ISLR (Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani) Examples in Julia

2014-12-14 Thread Johan Sigfrids
in R. On Sunday, December 14, 2014 7:10:13 PM UTC+2, webus...@gmail.com wrote: That's interesting. What sort of stuff was not implemented? I would have thought (by now) the coverage would be much higher than 30-40%... On Sunday, December 14, 2014 11:07:05 AM UTC-5, Johan Sigfrids wrote

Re: [julia-users] Decreasing rate of return on number of blas threads

2014-12-05 Thread Johan Sigfrids
This was first released in AMD's Bulldozer architecture in 2011. I believe, and this is speculation on my part, that the long term goal AMD is working toward are heterogeneous CPUs. This would be a CPU where you have a pile of high performance integer cores working similar to cores on CPUs

[julia-users] Re: how work (sort, while, etc.) with Array{Any,2}:

2014-12-01 Thread Johan Sigfrids
You can specify the type it should be read in as: juliadata=readcsv(data.txt, String) 6x1 Array{String,2}: 146cd6a978544b0168fb11de000 148b7f63e9e377c9b364000 148b7f63e9e377c9b364000 148ee93eb7c77ef0d249b5d2800 148671515215639117054120400 148ce93eb7c77ef0a249b5d2800 On Monday,

[julia-users] Re: Metropolis within Gibbs from R to Julia

2014-11-30 Thread Johan Sigfrids
I think you need to worry about correctness before you worry about speed, because as it is this code makes no sense to me. For example, at the top of the code you define: R = size(X, 2) This means R is an integer. Then, inside your loop, you do: tmp = randperm(R) Doing randperm() on

[julia-users] Re: Very basic problem with Gadfly

2014-11-28 Thread Johan Sigfrids
If you want to draw rectangles you might have more luck with Compose.jl, which is the underlying graphics library used by Gadfly. Although, it is not very well documented. On Friday, November 28, 2014 6:49:36 AM UTC+2, Alexander Gruber wrote: I have a big list of rectangles I'd like to draw.

[julia-users] Re: @DSL Domain code

2014-11-16 Thread Johan Sigfrids
Would it be impossible to simply have something like: @Scala begin person *match* { *case* Person(Hans,Meyer,7) = Found: Hans Meyer * case* Person(Heinz,Mustermann,28) = Found: Heinz Mustermann * case* *_* = Unknown Person } end Without having to have the

Re: [julia-users] Re: @DSL Domain code

2014-11-16 Thread Johan Sigfrids
you need to tell Julia, not to parse it into a Julia AST, but into some intermediate representation. @Scala begin person match { ERROR: syntax: extra token match after end of expression 2014-11-16 16:18 GMT+01:00 Johan Sigfrids johan.s...@gmail.com javascript:: Would

Re: [julia-users] Re: @DSL Domain code

2014-11-16 Thread Johan Sigfrids
become an extension to normal macros? But first of all, a prototype is needed anyways... How deeply the prototype will be integrated later on depends on the feedback, I guess. 2014-11-16 20:01 GMT+01:00 Johan Sigfrids johan.s...@gmail.com javascript:: Your right. That is a problem

Re: [julia-users] Re: [ANN] Dierckx.jl: 1-d and 2-d splines as in scipy.interpolate

2014-11-07 Thread Johan Sigfrids
I believe both ApproXD.jl and Dierckx.jl need Julia 0.3, while Julia Studio is still stuck on 0.2. That is why you can't install them. Until Julia Studio gets updated to 0.3 you might be better off using something like IJulia or Juno. On Friday, November 7, 2014 7:48:41 PM UTC+2,

Re: [julia-users] Re: Accessing values outside functions vs. passing them to the function

2014-10-27 Thread Johan Sigfrids
Arrays are pass-by-reference, so only the reference is copied to the function. The data in the array is not moved or copied at all. This means it costs the same no matter how big the array is. On Monday, October 27, 2014 12:27:30 PM UTC+2, Nils Gudat wrote: Thanks for your answers. I was

[julia-users] Re: qustion about storing a read-only large structures inside a composite type

2014-10-26 Thread Johan Sigfrids
As I understand it in your immutable type GPDataType only stores the references the Matrix and Vector so it is only the reference which is immutable, not the arrays themselves, and it is only the reference which is passed by value. This also means that the values stored in the arrays

[julia-users] Re: Accessing values outside functions vs. passing them to the function

2014-10-24 Thread Johan Sigfrids
Operating on global variables in Julia is generally slower so you should definitely pass the array to the function. On Friday, October 24, 2014 7:43:53 PM UTC+3, Nils Gudat wrote: A general performance question: when writing functions that operate on a large number of variables stored in

Re: [julia-users] repmat :comparison with Matlab/Octave - 6x slow?

2014-10-14 Thread Johan Sigfrids
You can tell ones to construct a array on Ints by passing it a type parameter: ones(Int, 1, 3) With a length of three it doesn't make much difference but with a bigger array you save a lot of time avoiding the conversion. On Tuesday, October 14, 2014 3:14:38 AM UTC+3, Miguel Bazdresch wrote:

Re: [julia-users] Not fun

2014-10-06 Thread Johan Sigfrids
Would it not be possible to only define indexing on ASCIIString?

Re: [julia-users] Re: ANN: revamped Images based on Color, FixedPointNumbers

2014-10-03 Thread Johan Sigfrids
I think it sound like a good idea so I filed an issue. https://github.com/JuliaLang/julia/issues/8568 On Friday, October 3, 2014 5:57:35 PM UTC+3, Erik Schnetter wrote: I think Jan is asking for a feature of Pkg.update() that would require explicit confirmation of an update that changes the

[julia-users] Re: windows 7: cutpaste, window widthposition, etc

2014-09-23 Thread Johan Sigfrids
The first three questions aren't related to Julia REPL specifically. On Windows when you launch Julia it runs in a command prompt window, so all the normal command prompt stuff applies: you change setting by going to Properties in the drop down menu of the icon in the upper right, and you copy

[julia-users] Why does map allocate so much more than a list comprehension?

2014-09-18 Thread Johan Sigfrids
So I was looking at allocations in some code and I noticed I sped things up significantly by changing map to a list comprehension. Doing some microbenchmarking I noticed that map allocates far more memory than a list comprehension. Shouldn't they essentially be doing the same thing? data =

Re: [julia-users] Help needed with creating Julia package

2014-09-12 Thread Johan Sigfrids
Have you looked at http://Reexport.jlReexport.jl https://github.com/simonster/Reexport.jl? On Friday, September 12, 2014 1:57:06 AM UTC+3, Bill Hart wrote: OK, I can build Nemo. But how do I load modules from Nemo now that it is installed and built. For example using Nemo, using Rings,

Re: [julia-users] @inbounds is broken?

2014-08-29 Thread Johan Sigfrids
I believe that for simple cases the compiler is smart enough to remove bound checking on its own. In that case adding @inbounds won't help. On Friday, August 29, 2014 8:03:35 PM UTC+3, Ed Scheinerman wrote: I'd like to use @inbounds also to speed up code that I'm 100% sure has proper array

Re: [julia-users] Suggestion: Start using Julia 0.3-RC4

2014-08-19 Thread Johan Sigfrids
Is there a way for a user that downloads the RC4 binary to run the test suit? That would be a good way to help uncover those pesky bugs. On Monday, August 18, 2014 6:36:47 PM UTC+3, Stefan Karpinski wrote: +1,000,000 On Mon, Aug 18, 2014 at 11:25 AM, John Myles White johnmyl...@gmail.com

[julia-users] Re: style: parametric functions or abstract types on arguments

2014-08-19 Thread Johan Sigfrids
Performance wise it makes no difference. The JIT will produce the same code for all three: foo1(x::Real, y::Real) = x + y foo2{ T: Real}(x::T, y::T) = x + y foo3{T : Real, S : Real}(x::T, y::S) = x + y You can verify it by running @code_native on all of them. They will all result in the same

[julia-users] Re: unwanted behaviour in logical indexing

2014-08-18 Thread Johan Sigfrids
Maybe you are running into #5187 https://github.com/JuliaLang/julia/issues/5187? On Monday, August 18, 2014 3:11:44 PM UTC+3, Davide Lasagna wrote: Hi all, Is this a bug or a feature? julia idx = [1:10] 10-element Array{Int64,1}: 1 2 3 4 5 6 7 8 9 10 julia

Re: [julia-users] Simple Integer DataFrame Automatic Conversion to Float (InexactError())

2014-08-18 Thread Johan Sigfrids
Multiplying a DataFrame by a scalar has been deprecated and will not work once you update to Julia 0.3 and the associated DataFrames version. On Monday, August 18, 2014 6:10:44 PM UTC+3, Bradley Setzler wrote: Update: I found a 1-line command to convert everything in a DataFrame into a Float

[julia-users] Re: Suggestion: Start using Julia 0.3-RC4

2014-08-18 Thread Johan Sigfrids
For most Julia code I do I use IJulia https://github.com/JuliaLang/IJulia.jl. For more IDEish environment I use LightTable http://www.lighttable.com/, along with Juno aka Jupiter-LT https://github.com/one-more-minute/Jupiter-LT. Sometime I also just rely on Atom for simple text editor duties.

[julia-users] Re: what's the best way to do R table() in julia? (why does StatsBase.count(x,k) need k?)

2014-08-17 Thread Johan Sigfrids
I think countmap comes closest to giving you what you want: using StatsBase data = sample([a, b, c], 20) countmap(data) Dict{ASCIIString,Int64} with 3 entries: c = 3 b = 10 a = 7 On Sunday, August 17, 2014 4:45:21 PM UTC+3, Florian Oswald wrote: Hi I'm looking for the best way to

[julia-users] Re: my 2nd julia module (linear intepolator)

2014-08-15 Thread Johan Sigfrids
One warning I would give is about leaving a space between the macro name and the parenthesis with the arguments. This generally does not work in Julia because Julia has two different macro invocation forms and it mixes between them. For example a macro that returns a expression adding its

[julia-users] Re: JuliaCon Opening Session Videos Posted!

2014-08-11 Thread Johan Sigfrids
Yay! I've been eagerly awaiting these. On Monday, August 11, 2014 2:53:18 PM UTC+3, Jacob Quinn wrote: Hey all, Gather round and here the tales of a wonderous new language, presented by Tim Holy https://www.youtube.com/watch?v=FA-1B_amwt8list=PLP8iPy9hna6TSRouJfvobfxkZFYiPSvPdindex=1,

[julia-users] Re: A capability similar to R's CMD BATCH?

2014-08-03 Thread Johan Sigfrids
I think you could just use Julia's run command http://julia.readthedocs.org/en/latest/manual/running-external-programs/to run another instance of Julia and redirect the output to a file. On Sunday, August 3, 2014 8:04:37 PM UTC+3, Douglas Bates wrote: I have some long-running tasks that I

[julia-users] Re: A capability similar to R's CMD BATCH?

2014-08-03 Thread Johan Sigfrids
Or maybe not. run doesn't run asynchronously. On Sunday, August 3, 2014 9:07:33 PM UTC+3, Johan Sigfrids wrote: I think you could just use Julia's run command http://julia.readthedocs.org/en/latest/manual/running-external-programs/to run another instance of Julia and redirect the output

[julia-users] Re: Custom operators

2014-08-01 Thread Johan Sigfrids
I think the parsing is defined here: https://github.com/JuliaLang/julia/blob/master/src/julia-parser.scm On Friday, August 1, 2014 2:24:37 PM UTC+3, Marcus Appelros wrote: Adding a rule that every incidence of anewcustomoperator or 愛 be interpreted as a function shouldn't cause any

Re: [julia-users] OptionTypes.jl

2014-07-31 Thread Johan Sigfrids
Would a Array{Nullable{Float64}} mean that you couldn't use OpenBLAS algorithms on the data because the bool value is laid out interleaved with the data? On Thursday, July 31, 2014 11:16:19 PM UTC+3, John Myles White wrote: Array{Nullable{Float64}} is very appealing, but it's not equivalent

[julia-users] array doubling

2014-07-29 Thread Johan Sigfrids
MLBase.jl has som data repetition functionality: http://mlbasejl.readthedocs.org/en/latest/datapre.html#data-repetition

[julia-users] Re: [Gadfly] How do I put layers inside a facet/subplot?

2014-07-25 Thread Johan Sigfrids
I think you might have to put the Geom.subplot_grid inside the layers. On Friday, July 25, 2014 7:37:48 PM UTC+3, Leah Hanson wrote: I am trying to make a relatively complicated graph in Gadfly, and am struggling. This is some sample data with the same structure as my data. ~~~ julia t =

[julia-users] Re: early termination of @parallel for code

2014-07-09 Thread Johan Sigfrids
I think that if you do @sync @parallel for nn in doset ... end Then it will wait to finish before continuing execution. On Wednesday, July 9, 2014 7:22:06 PM UTC+3, Thomas Covert wrote: alright that didn't do it either. when I run this code interactively the write to disk steps get

[julia-users] Re: Gadfly and Jewel: label colors

2014-07-07 Thread Johan Sigfrids
Not ideal, but I do this: using Gadfly, RDatasets theme = Theme( minor_label_color=color(#aa), major_label_color=color(#dcdccc), point_label_color=color(#dcdccc), key_title_color=color(#cc), key_label_color=color(#dcdccc)) plot(dataset(car, SLID), x=Wages, color=Language,

[julia-users] Re: Testing OpenGL

2014-07-07 Thread Johan Sigfrids
There is an open issue https://github.com/JuliaLang/julia/issues/7054 for Pkg.rm() not removing broken packages. On Monday, July 7, 2014 10:32:00 PM UTC+3, Simon Danisch wrote: The flickering reflects the framerate, so congratulations to all of the people which got intense, unbearable

[julia-users] Re: Current state of the art for 3D plotting + movies?

2014-07-06 Thread Johan Sigfrids
I think there is a GSoC project ongoing to add OpenGL based plotting to Julia, but I don't know that it is in a usable state yet. On Sunday, July 6, 2014 10:01:29 AM UTC+3, Sheehan Olver wrote: I'm currently using matplotlib for 3d plotting, but it seems very slow, even though the # of

[julia-users] Re: Testing OpenGL

2014-07-06 Thread Johan Sigfrids
I get a windows with a triangle and a blue/black background, which I take it means everything Just Worked*™*. Easiest way to run the test is to do Pkg.test(ModernGL) On Monday, July 7, 2014 12:11:41 AM UTC+3, Simon Danisch wrote: Hi, I'm slowly trying to push out a stable version of GLPlot.

[julia-users] Re: How do you do interactive development in Julia?

2014-07-05 Thread Johan Sigfrids
There is a Autoreload.jl https://github.com/malmaud/Autoreload.jl package modeled after IPython's autoreload extension. On Saturday, July 5, 2014 2:47:24 AM UTC+3, Andrei Zh wrote: I'm trying to find my way developing Julia code interactively. In other languages (e.g. Python, R, Octave,

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-04 Thread Johan Sigfrids
) ErrorException(dropna not defined) I read the documentation and they both say the same thing but it doesn't seem to work in my case. Thoughts? Thanks, Don On Thursday, July 3, 2014 7:54:49 PM UTC-4, Johan Sigfrids wrote: You can use dropna() to convert a DataArray to a Array

[julia-users] Re: how to convert several DataFrame columns to type PooledDataArray for GLM regression

2014-07-04 Thread Johan Sigfrids
If you do dump(data) then you see that for that specific dataset :Sex is already pooled. They way to pool it if it wasn't areadly pooled would be pool!(data, :Sex). On Friday, July 4, 2014 10:46:17 PM UTC+3, Florian Oswald wrote: Hi, say I want to use the GLM package to run a regression

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-03 Thread Johan Sigfrids
You can use dropna() to convert a DataArray to a Array. This will obviously drop any missing values. On Friday, July 4, 2014 2:08:55 AM UTC+3, Donald Lacombe wrote: Patrick (and others), Another issue that has reared it's ugly head is that when I read the data using the Data Frames

[julia-users] Re: Using Distance Package for knn Weight Matrix

2014-07-02 Thread Johan Sigfrids
I don't know exactly how the Distance functions are to be used but if you do methods(pairwise) you see that it is only define if x and y are two dimensional. On Wednesday, July 2, 2014 5:22:58 PM UTC+3, Donald Lacombe wrote: Greetings! I am a new Julia user and have the following issue. I

Re: [julia-users] Re: GSoC: Julia IDE Progress update

2014-06-30 Thread Johan Sigfrids
I can't get Gadfly to plot anything. It gives me this error: WARNING: Jewel: pad_inner not defined in render at C:\Users\admin\.julia\v0.3\Gadfly\src\Gadfly.jl:643 in writemime at C:\Users\admin\.julia\v0.3\Gadfly\src\Gadfly.jl:736 in sprint at io.jl:465 in display_result at

Re: [julia-users] Re: GSoC: Julia IDE Progress update

2014-06-30 Thread Johan Sigfrids
, Johan Sigfrids wrote: I can't get Gadfly to plot anything. It gives me this error: WARNING: Jewel: pad_inner not defined in render at C:\Users\admin\.julia\v0.3\Gadfly\src\Gadfly.jl:643 in writemime at C:\Users\admin\.julia\v0.3\Gadfly\src\Gadfly.jl:736 in sprint at io.jl:465

[julia-users] Re: GSoC: Julia IDE Progress update

2014-06-29 Thread Johan Sigfrids
Do you need to add some package Julia side to make this work? On Sunday, June 29, 2014 12:46:21 PM UTC+3, Mike Innes wrote: Hey all, I've released the latest version of the Julia environment https://github.com/one-more-minute/Jupiter-LT I'm building. There are a whole bunch of

Re: [julia-users] Re: GSoC: Julia IDE Progress update

2014-06-29 Thread Johan Sigfrids
working you can of course run Pkg.add(Jewel) by hand – let me know if there are any issues with that and I'll see what I can do. On 29 June 2014 18:22, Johan Sigfrids johan.s...@gmail.com javascript: wrote: Do you need to add some package Julia side to make this work? On Sunday, June 29

Re: [julia-users] Re: GSoC: Julia IDE Progress update

2014-06-29 Thread Johan Sigfrids
\src\LightTable\eval.jl:32 in anonymous at C:\j\.julia\v0.3\Jewel\src\LightTable\eval.jl:28 Domingo, 29 de Junho de 2014 18:54:43 UTC+1, Johan Sigfrids escreveu: Well, apparently it had installed Jewel, bur running Pkg.update() did install a update for it. It is still throwing an error

[julia-users] Re: Help with getting an array of arrays into a 2D array

2014-06-16 Thread Johan Sigfrids
I suspect it is easier to just pre-allocate an array of the correct dimensions and then assign into it. Something like this: function lowpassarray(arr::Vector{Float64}) out = Array(Float64, length(arr), 3) s = 0.0 for i in 1:length(arr) out[i, 1] = arr[i] out[i, 2],

[julia-users] Re: Gadfly: adding plots to an existing plot

2014-06-10 Thread Johan Sigfrids
I think you can do it with: layer(..., Theme(default_color=color(red))) On Tuesday, June 10, 2014 12:56:19 PM UTC+3, Stéphane Laurent wrote: Mmm no really need in fact, it's easy with layer(). However I don't find how to control the color of a layer ? Le mardi 10 juin 2014 11:00:04 UTC+2,

Re: [julia-users] Code running back? what happens?

2014-05-30 Thread Johan Sigfrids
b .+ 2 creates a new array, which then b is assigned to. On Friday, May 30, 2014 12:32:00 PM UTC+3, paul analyst wrote: I see, but what is the difference between: b [2,3] = 3 and b = b.+2 Paul W dniu 2014-05-30 10:11, Tomas Lycken pisze: @Paul, Try julia a = ones(5,5);

[julia-users] Re: How to make a function output silent?

2014-05-12 Thread Johan Sigfrids
Add a semicolon after the function call: c = myFunc(a,b);

[julia-users] Re: Why should computer scientists and computational statisticians invest in Julia instead of R?

2014-05-10 Thread Johan Sigfrids
Besides the performance, type system and multiple dispatch the Julia language also has several nice conveniences. 1. List comprehension which makes it easy to construct vectors and matrices of various kinds: julia [ sqrt(exp(i))-j for i = 1:8, j = 1:8] 8x8 Array{Float64,2}: 0.648721

[julia-users] Re: Slicing in julia compared to numpy

2014-05-09 Thread Johan Sigfrids
I don't understand this bit: Numpy's notation has the advantage to make the most expensive operations harder to write, it also easily reminds us that arrays in numpy are row-major. How does this make the more expensive operation harder to write? To me (but I didn't design Julia so what do I

Re: [julia-users] array with different column types

2014-05-08 Thread Johan Sigfrids
I myself have been hitting my head against the wall that is meta-programming in Julia. I think I can answer your first question at least. Q1: This is because the line poly = emptyPoly doesn't create a new copy of a ploygon but a reference to the empty one so that both poly and emptyPoly refer

Re: [julia-users] array with different column types

2014-05-08 Thread Johan Sigfrids
that this is not true. On Thursday, May 8, 2014, Johan Sigfrids johan.s...@gmail.com wrote: I myself have been hitting my head against the wall that is meta-programming in Julia. I think I can answer your first question at least. Q1: This is because the line poly = emptyPoly doesn't create

Re: [julia-users] array with different column types

2014-05-08 Thread Johan Sigfrids
Apparently its something that's been fixed or changed after 0.2. It works fine on 0.3. On Thursday, May 8, 2014 7:03:03 PM UTC+3, Stéphane Laurent wrote: If I'm using your code verbatim I get julia removeLine(poly,1) ErrorException(type Poly has no field op) julia versioninfo()

[julia-users] Re: [newb] objects with state

2014-05-07 Thread Johan Sigfrids
Julia does not have classes so in that sense functions and data are separate. What Julia has as objects is composite types where state is maintained in the object. You then define methods on functions outside the type that operate on types. Because of multiple dispatch you cannot tie a

[julia-users] Re: methodswith() gives incomplete list

2014-05-05 Thread Johan Sigfrids
that that actually worked. There is also a old open issue in #5067https://github.com/JuliaLang/julia/issues/5067, but it seems abandoned. Ivar kl. 14:41:45 UTC+2 mandag 5. mai 2014 skrev Johan Sigfrids følgende: I figured I could use methodswith() to find what functions I can call on a LmMod in GLM

[julia-users] Re: Panoramic DataPlotting

2014-04-21 Thread Johan Sigfrids
I look forward to being able to plot data in a 3D space and then explore it with a Occulus Rift.

[julia-users] GLM lm error

2014-03-20 Thread Johan Sigfrids
Sounds like this issue I had: https://github.com/JuliaStats/GLM.jl/issues/61 The solution was to update Julia.

[julia-users] Re: The then keyword

2014-03-20 Thread Johan Sigfrids
Too bad there isn't a inverse if statement like: do_stuff() if i == 1

[julia-users] Re: Basic Operating System in Julia

2014-03-19 Thread Johan Sigfrids
I'm no expert on writing OSes but without an OS you have no memory management, so no heap. I don't think Julia's memory model would work. There is a reason OS kernels are written in C. You need a language which lets you read and write directly to memory addresses. If you want something better

[julia-users] Re: performance compared to mathematica

2014-03-16 Thread Johan Sigfrids
I wonder if there is some closed-form solution do the Divisor Function that Mathematica might be using in DivisorSigma[1, n]. That might explain how Mathematica is so fast.

[julia-users] Re: Module Names

2014-02-27 Thread Johan Sigfrids
If the file name is different from the module name you have to tell Julia to include it first: include(a.jl) using A foo() This is not necessary when the module and file name are the same. When you call using A command tries to include(A.jl). On Thursday, February 27, 2014 4:47:37 PM UTC+2,

Re: [julia-users] Tagging observations from a data frame based on a string variable

2014-02-27 Thread Johan Sigfrids
I would guess the problem is that you are using the left and right quotations marks rather than the vertical quotations mark, and Julia sees them as different characters. On Thursday, February 27, 2014 10:08:20 PM UTC+2, Henrik L Nordmark wrote: Thanks for your swift reply John! I thought

[julia-users] Re: What is a Number?

2014-02-24 Thread Johan Sigfrids
This is actually a really good question. I found myself wondering the same thing the other day. On Monday, February 24, 2014 1:54:59 PM UTC+2, andrew cooke wrote: Working on the finite field code I found myself asking what is a Number?. One answer is: julia Base.subtypetree(Number)

[julia-users] Order of evaluation in comprehension vs for loop

2014-02-15 Thread Johan Sigfrids
I've been playing with a Degree type in Julia, and have set it up so I can use ° to construct Degrees: module Degrees export Degree, ° immutable Degree{T:Number} :Number d::T end immutable DegreeSign end const ° = DegreeSign() *(num::Number, s::DegreeSign) = Degree(num)

Re: [julia-users] Order of evaluation in comprehension vs for loop

2014-02-15 Thread Johan Sigfrids
On Saturday, February 15, 2014 8:49:01 PM UTC+2, Kevin Squire wrote: You might have figured this out by now, if you have a parameterized family of types Degree{T}, there is no unparameterized version available, so you either have to 1) provide a default constructor which creates the

Re: [julia-users] Re: Functions in degrees

2014-02-05 Thread Johan Sigfrids
Oh, you beat me to it. I was just about to say that using a Degree type and dispatching on it would be a lot more Julian. In fact, I had this great idea on how to use the degree sign to construct degrees: module DegreeModule export Degree, DegreeSign, ° immutable Degree{T:Number} :Number

[julia-users] Re: operators and basic mathematical functions for DataFrames

2014-02-05 Thread Johan Sigfrids
Issue #484 https://github.com/JuliaStats/DataFrames.jl/pull/484 seems to indicate it is on purpose. On Wednesday, February 5, 2014 3:00:39 PM UTC+2, Christian Groll wrote: Since updating DataFrames and DataArrays recently, operators and basic functions are not working on DataFrames anymore.

[julia-users] Re: Error when opening notebook in IJulia

2014-02-03 Thread Johan Sigfrids
Yes, plain ipython notebooks work fine. On Monday, February 3, 2014 8:08:42 AM UTC+2, Steven G. Johnson wrote: This looks like an error on the IPython side, not in in Julia. If you just run ipython notebook to open a Python notebook (not IJulia), does it work? (Be aware that running a

  1   2   >