[julia-users] Re: Help understanding ASCIIString vs String

2015-04-23 Thread Test This
/Covariance_and_contravariance_%28computer_science%29 and there are various discussions in the mailing list about why this choice has been made in Julia. Regards - Avik On Wednesday, 22 April 2015 18:20:46 UTC+1, Test This wrote: Avik and Patrick, Thanks to both of you for clarifying this and for the alternative

[julia-users] Help understanding ASCIIString vs String

2015-04-22 Thread Test This
I defined a function function func(a::Params, b::String, c::Dict{String, Array{Int, 1}}, d::Dict{String, Array{Int, 1}}) ... end When I run the program, calling this function with func(paramvalue, H, d1, d2), I get an error saying func has no method matching (::Params, ::ASCIIString,

[julia-users] Re: Help understanding ASCIIString vs String

2015-04-22 Thread Test This
- Avik On Wednesday, 22 April 2015 14:14:06 UTC+1, Test This wrote: I defined a function function func(a::Params, b::String, c::Dict{String, Array{Int, 1}}, d::Dict{String, Array{Int, 1}}) ... end When I run the program, calling this function with func(paramvalue, H, d1, d2), I get

Re: [julia-users] ANN node-julia 1.0.0

2015-01-17 Thread Test This
Some basic questions: We know that Node is blocking on cpu intensive tasks. If I use the async option, are the calculations run separately. That is does it allow the mode process to continue with its event loop. If the answer is yes, what happens when julia is busy with a previous calculation

Re: [julia-users] ANN node-julia 1.0.0

2015-01-17 Thread Test This
I meant the node process not mode process. Blaming the autocorrect in iPad . . . On Saturday, January 17, 2015 at 10:53:36 AM UTC-5, Test This wrote: Some basic questions: We know that Node is blocking on cpu intensive tasks. If I use the async option, are the calculations run separately

Re: [julia-users] ANN node-julia 1.0.0

2015-01-17 Thread Test This
this line somewhere when the server starts. Otherwise, the start up time will increase the wait for the web clients. On Saturday, January 17, 2015 at 12:32:36 PM UTC-5, Jeff Waller wrote: On Saturday, January 17, 2015 at 10:53:36 AM UTC-5, Test This wrote: Some basic questions: We

Re: [julia-users] Re: Julia 0.3.4 - problem installing packages

2015-01-09 Thread Test This
`Pkg.update()` recently? On Thu, Jan 8, 2015 at 10:34 AM, Test This curiou...@gmail.com javascript: wrote: This might have been because I did not delete ~/.julia. I have not tried yet by deleting it on my Mac. However, I just installed 0.3.4 on Ubuntu and installed the above packages without any

[julia-users] Re: Switch to version 0.3.4 from 0.4.x on Ubuntu

2015-01-08 Thread Test This
. On Thursday, January 8, 2015 11:57:09 AM UTC-5, Test This wrote: Can someone please let me know how I can switch from version 0.4.0 to 0.3.4 or 0.3.2? I have added the *ppa:staticfloat/juliareleases *on Elliot Saba's page here: https://launchpad.net/~staticfloat/+archive/ubuntu/juliareleases

[julia-users] Re: Julia 0.3.4 - problem installing packages

2015-01-08 Thread Test This
that will work on Mac too. On Thursday, January 8, 2015 11:35:23 AM UTC-5, Test This wrote: Hello, I downloaded Julia 0.3.4 (dmg version) recently for Mac. I am using OS X 10.9.5. Today I tried installing some packages. Package Distributions and ArgParse installed fine (have not used them yet

[julia-users] Julia 0.3.4 - problem installing packages

2015-01-08 Thread Test This
Hello, I downloaded Julia 0.3.4 (dmg version) recently for Mac. I am using OS X 10.9.5. Today I tried installing some packages. Package Distributions and ArgParse installed fine (have not used them yet, but they did not throw any error). However, DataFrames and PyCall did not install. Here

[julia-users] Switch to version 0.3.4 from 0.4.x on Ubuntu

2015-01-08 Thread Test This
Can someone please let me know how I can switch from version 0.4.0 to 0.3.4 or 0.3.2? I have added the *ppa:staticfloat/juliareleases *on Elliot Saba's page here: https://launchpad.net/~staticfloat/+archive/ubuntu/juliareleases. and ran sudo apt-get update followed by sudo apt-get upgrade

Re: [julia-users] Weird error about nonexistence of a method

2014-12-12 Thread Test This
. On Thursday, December 11, 2014 11:54:55 PM UTC-5, Stefan Karpinski wrote: It is possible that you have managed to get into a state where there are two different types by the name Params. On Dec 11, 2014, at 9:10 PM, Test This curiou...@gmail.com javascript: wrote: I am running into what appears

Re: [julia-users] Weird error about nonexistence of a method

2014-12-12 Thread Test This
-5, Stefan Karpinski wrote: I would love to detect this kind of confusing situation and indicate what's happening better because obviously it's pretty confusing when you first encounter it. On Fri, Dec 12, 2014 at 4:37 AM, Test This curiou...@gmail.com javascript: wrote: Thanks Stefan

Re: [julia-users] Weird error about nonexistence of a method

2014-12-12 Thread Test This
it. You should only include dataTypes.jl in one place. On Fri, Dec 12, 2014 at 10:28 AM, Test This curiou...@gmail.com javascript: wrote: Hi Stefan, Please see below for what may be relevant code structure. I am happy to email the actual code off the list if you think that is necessary

[julia-users] Define composite types in a different file - constructor not defined error

2014-12-11 Thread Test This
I have two files: dataTypes.jl and paramcombos.jl In dataTypes.jl I have *type Params* * .* * . // field names and types* * .* *end* In paramcombos.jl I have *module paramcombos* *require(dataTypes.jl)* *function baseParams()* * params = Params( field1 = blah1, field2

Re: [julia-users] Define composite types in a different file - constructor not defined error

2014-12-11 Thread Test This
, Test This curiou...@gmail.com javascript: wrote: I have two files: dataTypes.jl and paramcombos.jl In dataTypes.jl I have *type Params* * .* * . // field names and types* * .* *end* In paramcombos.jl I have *module paramcombos* *require(dataTypes.jl

[julia-users] How to deal with a value that is sometimes a Dict and sometimes Nothing?

2014-11-28 Thread Test This
I have the following function: function getidforrec(db::PyObject, collectn::PyObject, rec, countername::ASCIIString) # check if rec exists; if so get its id r = doesrecexist(collectn, rec) if r return r[_id] else r = db[countername][:find_and_modify](

[julia-users] Re: How to deal with a value that is sometimes a Dict and sometimes Nothing?

2014-11-28 Thread Test This
Thank you so much. I will use that. On Friday, November 28, 2014 1:04:17 PM UTC-5, Steven G. Johnson wrote: On Friday, November 28, 2014 12:57:57 PM UTC-5, Test This wrote: if r It sounds like you want if r == nothing here.

[julia-users] Is Dict{ASCIIString, Any} not a superset of Dict{ASCIIString, Float64}?

2014-11-26 Thread Test This
I have the following function defined to check whether a record exists in a Mongodb database (thanks a million for PyCall, which make it easy to use pymongo to interact with mongodb in julia). function doesrecexist(collectn::PyObject, rec::Dict{ASCIIString,Any}) # checks if record

[julia-users] Re: Is Dict{ASCIIString, Any} not a superset of Dict{ASCIIString, Float64}?

2014-11-26 Thread Test This
correct in understanding that they can be of any type, however, they have to be the same type? Thank you. On Wednesday, November 26, 2014 7:17:48 PM UTC-5, Patrick O'Leary wrote: On Wednesday, November 26, 2014 6:01:56 PM UTC-6, Test This wrote: I have the following function defined to check

[julia-users] Re: Arrayfire and Julia

2014-11-17 Thread Test This
Happy to see thus reaction from a core julia developer. Hope julia makes parallel programming on CPUs and GPUs easier.

Re: [julia-users] Understanding memory usage

2014-11-14 Thread Test This
. That's being attributed to the first line of the for loop (the reasons are a little complex, and I'm late for a meeting). --Tim On Thursday, November 13, 2014 04:01:52 PM Test This wrote: On performance tips page of the Julia documentation, it says that one way to identify

[julia-users] Understanding memory usage

2014-11-13 Thread Test This
On performance tips page of the Julia documentation, it says that one way to identify performance problems is to look for unexpected memory usage. As suggested, I ran the code with --track-allocation=user option. The following are some lines from my code (including the type definitions at the