Re: [julia-users] Re: High-performance metric collector in Julia

2015-05-20 Thread Scott Jones
It still helps a lot, because you can have many reporting programs, each talking to different processes on the server, and those processes are able to get the transactions done very quickly, with multiple write daemons and journaling daemons doing the actual I/O from the shared buffer pool. (a

Re: [julia-users] Re: High-performance metric collector in Julia

2015-05-20 Thread Andrei
But it also means that this trick won't work with separate machines for database (metric server) and reporting program, which is one of the goals. On Thu, May 21, 2015 at 12:19 AM, Scott Jones wrote: > > > On Wednesday, May 20, 2015 at 4:26:40 PM UTC-4, Andrei Zh wrote: >> >> >> Well, if th

[julia-users] Re: Julia tutorial in Singapore, June 5

2015-05-20 Thread Eric Forgy
Any chance you guys can make a stop in Hong Kong? :) On Thursday, May 21, 2015 at 12:16:45 PM UTC+8, Jiahao Chen wrote: > > Prof. Alan Edelman and I will be presenting a half day Julia tutorial in > University Town, Singapore on June 5. The Julia tutorial will be held as > part of a full day wor

[julia-users] Julia tutorial in Singapore, June 5

2015-05-20 Thread Jiahao Chen
Prof. Alan Edelman and I will be presenting a half day Julia tutorial in University Town, Singapore on June 5. The Julia tutorial will be held as part of a full day workshop on emerging high performance cloud computing technologies. Also presenting will be Prof. Saman Amarasinghe, who will be p

Re: [julia-users] Re: Construct range with custom type

2015-05-20 Thread Chris
Wow, thanks for the effort you put in, I really appreciate it. Wanted to give you some feedback. I tried copy/pasting your code into the REPL (v0.3.8), and got a segfault: julia> rnge = JDate(1):0.5:JDate(2) signal (11): Segmentation fault: 11 _ZNK4llvm5Value10getContextEv at /Applications/Jul

[julia-users] Re: Interesting little syntax (not a bug, IMO, just a consequence of the way the parser works)

2015-05-20 Thread Scott Jones
Now I can't get that to reproduce... I think this must have been a consequence of memory corruption, due to the bug I ran across with large tuples (issue #11330, nicely fixed by yuyichao, not very long after I reported it! [but too late to have saved me from this...]) On Tuesday, May 19, 2015

Re: [julia-users] Re: Selective dispatching on an Int

2015-05-20 Thread Yichao Yu
On Wed, May 20, 2015 at 6:43 PM, Josh Langsfeld wrote: > Ideally, I would like to write > > func{N::Int}(::Type{Val{N}) = N > > and get no-method errors if N is a float, symbol, etc... Has there been > previous discussion on this topic? According to this comment[1], this have been brought up but

[julia-users] Re: Selective dispatching on an Int

2015-05-20 Thread Josh Langsfeld
Ideally, I would like to write func{N::Int}(::Type{Val{N}) = N and get no-method errors if N is a float, symbol, etc... Has there been previous discussion on this topic? On Wednesday, May 20, 2015 at 5:28:26 PM UTC-4, Josh Langsfeld wrote: > > I want to implement some functionality in multiple

[julia-users] Re: IDE Julia

2015-05-20 Thread John Myles White
En general, escribimos en ingles en esta lista. Has probado Juno? -- John On Wednesday, May 20, 2015 at 3:33:08 PM UTC-7, perico garcia wrote: > > IDE Julia como cuando Anaconda o Spyder ?? Sería el factor determinante > para la expansión del lenguaje de programación. >

[julia-users] IDE Julia

2015-05-20 Thread perico garcia
IDE Julia como cuando Anaconda o Spyder ?? Sería el factor determinante para la expansión del lenguaje de programación.

[julia-users] Method ambiguity when defining new Number types

2015-05-20 Thread Jutho
Dear julia users, When looking at e.g. BLAS functions, they have a general format of adding a scaled result array to an existing array, which itself can also be scaled; e.g. AB could be the result of a matrix multiplication of matrices A and B, and the BLAS gemm! function (using Julia's name) a

Re: [julia-users] Winston package problem

2015-05-20 Thread El suisse
Hi Massimo is only a warning or the plot does not appear?¿ Regards 2015-05-20 11:28 GMT-03:00 cameyo : > Hi all, > i have the following problem with REPL (Julia 0.3.8 - windows 7 64 bit): > > using Winston > Warning: could not import Base.Text on Tk > > Can you help me? > > Massimo > > > > -- >

[julia-users] Selective dispatching on an Int

2015-05-20 Thread Josh Langsfeld
I want to implement some functionality in multiple methods and have the dispatch controlled by an Int variable "N". The trick is I want one method to be called if N == 0 and another one to be called for all other values of N. Is there a way I can do this with "Val{N}" without making the method

Re: [julia-users] Re: best way to traverse a binary tree

2015-05-20 Thread El suisse
Hi Steven thanks for reply and your time¡¡¡ yes i use the built-in PriorityQueue, but not very well. As you mentioned I will try encoded on the fly(like the python code) Regards 2015-05-19 22:22 GMT-03:00 Steven G. Johnson : > For this particular coding problem, I would use the built-in Priori

[julia-users] Re: Some DataFrames questions

2015-05-20 Thread David Gold
Whoops, should be for i in firstyear:lastyear for row in 1:n (df[row, :col1_*i] .<= 2*(df[row, :colx_*i]) | df[row, :col1_*i] .> 400*(df[row, :colx_*i]) | df[row, :col2_*i] .> 5000) && (df[row, :col_*i] = NA) end end On Wednesday, May 20, 2015 at 4:21:34 PM UTC-4, D

Re: [julia-users] Re: High-performance metric collector in Julia

2015-05-20 Thread Scott Jones
On Wednesday, May 20, 2015 at 4:26:40 PM UTC-4, Andrei Zh wrote: > > >>> > Well, if they don't use any tricks like passing data through shared memory > or heavy batching, then it's pretty impressive. But, as you mentioned, in > this particular case Caché is not an option. > I would say that *a

[julia-users] Re: trying to do a simple parallel program with Julia

2015-05-20 Thread Fred
Hi ! I found the "bug" : a dot was missing in pmap(process_table,{"tab.csv","tab2csv"}) instead of pmap(process_table,{"tab.csv","tab2.csv"}) The program works perfectly, I have to change my glasses 8-)

[julia-users] Re: Travis build failures, but Pkg.test() works?

2015-05-20 Thread Seth
Travis shows $ julia -e 'versioninfo()' Julia Version 0.4.0-dev+4850 and I'm on Version 0.4.0-dev+4911. On Wednesday, May 20, 2015 at 1:23:55 PM UTC-7, Tony Kelman wrote: > > There haven't been new Linux nightly builds for about 5 days, there was a > power outage last week and there have bee

Re: [julia-users] Re: Generate polynomial expression on the fly

2015-05-20 Thread Júlio Hoffimann
Thanks Daniel, I remember Base.Cartesian from previous posts, will definitively check it. -Júlio

[julia-users] Re: Travis build failures, but Pkg.test() works?

2015-05-20 Thread Seth
On Wednesday, May 20, 2015 at 1:18:48 PM UTC-7, Tomas Lycken wrote: > > Just to make sure: what does Pkg.status() say about the package version? > (are you on master or a tag?) Thanks. I'm on master. But the Travis build that's kicking off is also for master.

[julia-users] Re: Generate polynomial expression on the fly

2015-05-20 Thread Daniel O'Malley
Julio, I think Base.Cartesian will be helpful for this (in particular, @nloops and @nexprs): http://julia.readthedocs.org/en/latest/devdocs/cartesian/ One issue that will come up is if you do something like "@nexprs 2 j->(i_j = 1)", the "2" in there can't be a variable. You can work around thi

Re: [julia-users] Re: Generate polynomial expression on the fly

2015-05-20 Thread Júlio Hoffimann
Thank you Matt, I used itertools for similar problems in the past, will check it again. -Júlio

Re: [julia-users] Re: High-performance metric collector in Julia

2015-05-20 Thread Andrei Zh
> > >> I was able to get 2M/sec without transactions, and 909K/sec with >>> transactions (so it's durable), on my laptop, using Caché... (from >>> InterSystems... I used to consult for them) >>> They do have a free single user database engine, Globals, that you might >>> be able to use... I don

[julia-users] Re: Travis build failures, but Pkg.test() works?

2015-05-20 Thread Tony Kelman
There haven't been new Linux nightly builds for about 5 days, there was a power outage last week and there have been some lingering problems since then. Check the output of versioninfo from Travis. On Wednesday, May 20, 2015 at 1:18:48 PM UTC-7, Tomas Lycken wrote: > > Just to make sure: what d

Re: [julia-users] Re: Generate polynomial expression on the fly

2015-05-20 Thread Matt Bauman
Here's how I'd approach the problem, in pseudo-code: R = [] # This could be typed and pre-allocated with the proper length for i=1:N factors = combinations_with_replacement(Xj, i) for f in factors push!(R, prod(f)) end end The only trouble is that combinations_with_replacemen

[julia-users] Re: Some DataFrames questions

2015-05-20 Thread David Gold
I don't think the @where macro will help you in this case, since it creates a new dataframe out of the selected subsets. If there is a way to use the macro as-is actually to modify the input dataframe, I don't see it. However, I don't know if you really need macros here. First, you can use str

[julia-users] Travis build failures, but Pkg.test() works?

2015-05-20 Thread Tomas Lycken
Just to make sure: what does Pkg.status() say about the package version? (are you on master or a tag?)

Re: [julia-users] Re: Construct range with custom type

2015-05-20 Thread Josh Langsfeld
That particular error was just because the <= operator was implemented and there was no fallback method to give an informative error. I sent in a PR to fix that: #11372 . Beyond that, I managed to get it working by adding a couple more methods. I

[julia-users] Travis build failures, but Pkg.test() works?

2015-05-20 Thread Seth
Hi, I've got a problem with LightGraphs right now: Travis is reporting the build failing (see https://travis-ci.org/JuliaGraphs/LightGraphs.jl/jobs/63368942), relevant info copied below: Warning: both LightGraphs and Base export "blkdiag"; uses of it in module Main must be qualified ERROR: L

Re: [julia-users] Re: Generate polynomial expression on the fly

2015-05-20 Thread Júlio Hoffimann
David, thank you very much for the detailed explanation, will read through it. Steven, sorry for not explaining the problem clearly. My issue is basically trying to figure out a way to loop over all possible combinations of exponents (e1, e2, e3) for which the sum is less or equal to N and generat

Re: [julia-users] Re: Generate polynomial expression on the fly

2015-05-20 Thread Steven G. Johnson
On Wednesday, May 20, 2015 at 1:47:07 AM UTC-4, Júlio Hoffimann wrote: > I'm actually trying to pass in a matrix X and get out the associated > Vandermonde-like matrix as numbers. > Metaprogramming is almost certainly the wrong paradigm here... if you are thinking of generating an expression a

[julia-users] Re: Some DataFrames questions

2015-05-20 Thread Nils Gudat
I think I have to give up and grudgingly revert to pandas/R - I just tried to do this within a loop, dropping observations based on comparisons of a number of columns numbered by years with some transformations of other columns in the corresponding year. This is my (failed) attempt: for i = fir

[julia-users] Re: Some DataFrames questions

2015-05-20 Thread David Gold
Indeed. Maybe the linq-style macro could be used to make that more readable, though perhaps just as lengthy: https://github.com/JuliaStats/DataFramesMeta.jl#alternative-linq-macro On Wednesday, May 20, 2015 at 12:25:09 PM UTC-4, Nils Gudat wrote: > > That seems to do the trick, although the synt

[julia-users] Re: Some DataFrames questions

2015-05-20 Thread Nils Gudat
That seems to do the trick, although the syntax gets very messy very quickly - an example of replacing values in one column with those in another column, if three conditions are met: @where(df, array((:cond1).==0 & (:cond2.==1) & (:cond3.==1), false))[:col1] = @where(df, array((:cond1).==0 & (:

Re: [julia-users] Re: How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread David Gold
Mr. Wheeler beat me to it. Here's an example. julia> module Something export a, + a=[@sprintf("%02d",i) for i = 1:99] +(x::ASCIIString, y::ASCIIString) = a[parseint(x) + parseint(y)] end julia> using Something julia> a[1] + a[2] "03" On Wednesday, May 20, 2015 at

Re: [julia-users] Re: How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread David Gold
You can convert the strings from Mr Walker's method using parseint() and then give (+) a new method: julia> module Something export a, + a=[@sprintf("%02d",i) for i = 1:99] +(x::ASCIIString, y::ASCIIString) = a[parseint(x) + parseint(y)] end julia> a[1] + a[2] ERR

Re: [julia-users] Re: How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread Tim Wheeler
Could you just cast your strings to normal integers, do your arithmetic, and then convert it back to a string with the necessary zero-padding? ``` @sprintf("%02d", int("01")*int("02")) ``` On Wednesday, May 20, 2015 at 8:28:03 AM UTC-7, paul analyst wrote: > > Big thx, but I need: > 01*02=02 >

[julia-users] Re: Some DataFrames questions

2015-05-20 Thread David Gold
Re #1: Have you looked into the DataFramesMeta.jl experimental package? https://github.com/JuliaStats/DataFramesMeta.jl It may be able to help you, though I'm not sure. See in particular this issue: https://github.com/JuliaStats/DataFramesMeta.jl/issues/13. On Wednesday, May 20, 2015 at 11:17:

Re: [julia-users] Re: How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread Paul Analyst
Big thx, but I need: 01*02=02 like 1*2=2 Paul W dniu 2015-05-20 o 14:21, Kristoffer Carlsson pisze: In Julia you concatenate strings with * | julia>a=[@sprintf("%02d",i)fori =1:99]; julia>a[1]*a[2] "0102" | On Wednesday, May 20, 2015 at 10:05:08 AM UTC+2, paul analyst wrote: Txh, but

[julia-users] Some DataFrames questions

2015-05-20 Thread Nils Gudat
I have two questions regarding the usage of DataFrame: 1. How can I subset a DataFrame based on multiple criteria (similar to the pandas np.logical_and)? Consider: df = DataFrame(A = 1:3, B = 1:3) How do I get the subset of the DataFrame for which (for simplicity) A and B are 1? df[:A].==1 and

Re: [julia-users] Convert DataArray to DataFrame

2015-05-20 Thread Brandon Booth
Yep, there was a blank in the first row that I hadn't noticed. Thanks again. On Wednesday, May 20, 2015 at 10:31:13 AM UTC-4, David Anthoff wrote: > > I think that means you are reading an area where there is an empty cell in > the first row of the range. The first row is used for the column n

[julia-users] Winston package problem

2015-05-20 Thread cameyo
Hi all, i have the following problem with REPL (Julia 0.3.8 - windows 7 64 bit): using Winston Warning: could not import Base.Text on Tk Can you help me? Massimo -- View this message in context: http://julia-programming-language.2336112.n4.nabble.com/Winston-package-problem-tp20206.html Sent

RE: [julia-users] Convert DataArray to DataFrame

2015-05-20 Thread David Anthoff
I think that means you are reading an area where there is an empty cell in the first row of the range. The first row is used for the column names of the DataFrame, and so it can’t have an empty cell in it. Two possible ways out: - Make sure there are no empty cells in the first row

Re: [julia-users] Convert DataArray to DataFrame

2015-05-20 Thread Brandon Booth
So I tried it this morning and it works for several sheets, but not for one. When I run this: f = openxl("Data.XLSX") test = readxl(DataFrame, f, "Data!A1:C1885") I get the following error: NAException("Cannot convert DataArray with NA's to desired type") while loading In[3], in expression sta

Re: [julia-users] Re: Generate polynomial expression on the fly

2015-05-20 Thread David Gold
Sorry, should read "Here I've bound the above expression to the variable *'expr'* just for the sake of concision." On Wednesday, May 20, 2015 at 9:55:12 AM UTC-4, David Gold wrote: > > Have you read through this section of the docs? > http://docs.julialang.org/en/release-0.3/manual/metaprogramm

Re: [julia-users] Re: Generate polynomial expression on the fly

2015-05-20 Thread David Gold
Have you read through this section of the docs? http://docs.julialang.org/en/release-0.3/manual/metaprogramming/ It's quite helpful on this topic. In particular, note that expressions consist of three building blocks: the head, the arguments, and the return type. Don't worry about the latter (

[julia-users] Re: Tips on parallel performance?

2015-05-20 Thread Jason Morton
In case it helps someone else, the issue was just cache contention and not an issue with Julia. See https://github.com/JuliaLang/julia/issues/11354 On Tuesday, May 19, 2015 at 12:34:51 PM UTC-4, Jason Morton wrote: > > Done > > On Tuesday, May 19, 2015 at 6:45:25 AM UTC-4, Viral Shah wrote: >> >

Re: [julia-users] Re: How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread Kristoffer Carlsson
In Julia you concatenate strings with * julia> a=[@sprintf("%02d",i) for i = 1:99]; julia> a[1]*a[2] "0102" On Wednesday, May 20, 2015 at 10:05:08 AM UTC+2, paul analyst wrote: > > Txh, but unfortunatly is not to compute > > julia> a=[@sprintf("%02d",i) for i = 1:99]; > > julia> a[1]+a[2] >

Re: [julia-users] How to debug inlining wrong type:

2015-05-20 Thread Tim Holy
Works for me. Are you sure the error isn't in "anotherfunction"? I just deleted that line and got no error. (There's also a typo, you need eltype(A) instead of eltype(T).) --Tim On Wednesday, May 20, 2015 12:33:39 AM Sheehan Olver wrote: > I have an example that is along the lines of > > abstr

[julia-users] trying to do a simple parallel program with Julia

2015-05-20 Thread Fred
Hi ! I am trying to do a simple test of parallel computing with Julia. It is a program which read a dataframe and write the number of columns in a text file. I failed :/ The program gives the following error. If you have an idea how to solve it... Thanks in advance ;) $ julia main_parallel-

Re: [julia-users] Re: How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread Paul Analyst
Txh, but unfortunatly is not to compute julia> a=[@sprintf("%02d",i) for i = 1:99]; julia> a[1]+a[2] ERROR: MethodError: `+` has no method matching +(::ASCIIString, ::ASCIIString) Closest candidates are: +(::Any, ::Any, ::Any) +(::Any, ::Any, ::Any, ::Any...) I have in string data with ti

[julia-users] Re: How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread Jeff Waller
how close is this to what you need? *[@sprintf("%02d",i) for i = 1:99]*

[julia-users] How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread paul analyst
How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99) I need keep all digits on 2 positions 1 must be 01 10 must be 10 (I need compute on this and after save as Char) How define this format ? Paul

Re: [julia-users] Re: Symbolic relations package

2015-05-20 Thread Marcus Appelros
Real (100% score in the course) usage: http://artai.co/Plasma.html

[julia-users] How to debug inlining wrong type:

2015-05-20 Thread Sheehan Olver
I have an example that is along the lines of abstract Foo{T} Base.eltype{T}(::Foo{T})=T function foo(A::Foo) # assumes eltype(A) is a matrix and eltype(eltype(A)) is a number ret=Array(Foo{eltype(eltype(T))},0) push!(ret,anotherfunction(A)) end This is returning an error like expec