Re: [julia-users] Pkg.[update()/install()/build()] woes on Windows 10 64 bit

2015-09-27 Thread Evan Fields
t; >> >> >> *From:* julia...@googlegroups.com [mailto:julia...@googlegroups.com] *On >> Behalf Of *Tony Kelman >> *Sent:* Friday, September 25, 2015 2:35 PM >> *To:* julia-users <julia...@googlegroups.com> >> *Subject:* [julia-users] Re:

Re: [julia-users] Pkg.[update()/install()/build()] woes on Windows 10 64 bit

2015-09-29 Thread Evan Fields
So I deleted just ArrayViews from .julia, still got errors. Decided to delete the whole of .julia, did Pkg.add("Images"), and got this: _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _

[julia-users] Pkg.[update()/install()/build()] woes on Windows 10 64 bit

2015-09-25 Thread Evan Fields
I've been encountering problems with packages. Here's what happened: - I installed Julia 0.3.11 via the 64 bit .exe on julialang.org - Changed the install path to C:\Julia-0.3.11 but otherwise all default options - On Windows 10 x64, not using Cygwin or related - Right after

[julia-users] Re: function! vs. function

2016-06-12 Thread Evan Fields
Apologies if this is obvious, but: appending ! to a function name doesn't do anything special. It is convention to "append ! to names of functions that modify their arguments" (from the manual, section style guide). But this is just a naming convention and doesn't affect how the function is

[julia-users] Re: ANN: PkgSearch - a REPL utility for package discovery

2016-06-04 Thread Evan Fields
Hi, this looks great. Two comments from playing around a little bit. 1) PkgSearch.lookup fails if any of the arguments contain a space. In general maybe add to the documentation some notes about whitespace, case sensitivity, etc.? 2) The search seems to get confused between package names and

[julia-users] Re: Getting sequence of time and subset it

2016-05-30 Thread Evan Fields
I'm not 100% sure I understand your question, but let me give it a shot. First thing is to note why you're getting that MethodError. It's from the line println(si in sdt1[i, [:BreakTime1, :BreakTime2]]) Define sdt1 as you do (I just copied into a Julia REPL) and set i = 1 to for the first

[julia-users] Re: Getting sequence of time and subset it

2016-06-01 Thread Evan Fields
Of course there's a way :) You can use the isna function to check if a value is NA or not. There's also the dropna function which takes a DataArray as input and returns a regular Vector with the NA elements removed. You could try something like the following: firstbreakcol = 4 lastbreakcol =

[julia-users] Pkg operations hanging on Windows with Julia 0.4.6

2016-06-21 Thread Evan Fields
I upgraded from 0.4.5 to 0.4.6 today and did a little work with no issue. Then I ran Pkg.update() and apparently updated the cache of a few packages. When Pkg.update got to Conda, everything seemed to hang. After letting that run about 40 minutes I killed the Julia process, restarted, and tried

[julia-users] Re: JuliaCon schedule announced

2016-06-20 Thread Evan Fields
Can non-registered local Julia fans show up for the hackathon?

[julia-users] Re: ANN: JuMP 0.12 released

2016-03-08 Thread Evan Fields
Great to hear. Two minor questions which aren't clear (to me) from the documentation: - Once a user defined function has been defined and registered, can it be incorporated into NL expressions via @defNLExpr? - The documentation references both ForwardDiff.jl and ReverseDiffSparse.jl. Which is

[julia-users] Is there a performance penalty for defining functions inside functions?

2016-03-29 Thread Evan Fields
To keep namespaces clear and to help with code readability, I might like to do this: function mainFunc() function helper() do stuff return something end call helper() and do stuff return something end That way the helper function is only visible to the function

[julia-users] Re: Announcing JuDE: autocomplete and jump to definition support for Atom

2016-03-21 Thread Evan Fields
Looks great - I'm excited to try this out. Does the autocomplete work in the console as well? I recently tried Atom flavored Juno and was super impressed but found the lack of console completions a major pain point. Will this play nicely with Juno's packages?

[julia-users] Re: Announcing JuDE: autocomplete and jump to definition support for Atom

2016-03-21 Thread Evan Fields
Looks great - I'm excited to try this out. Does the autocomplete work in the console as well? I recently tried Atom flavored Juno and was super impressed but found the lack of console completions a major pain point. Will this play nicely with Juno's packages? On Sunday, March 20, 2016 at

[julia-users] Re: To solve optimization problem in julia is it necessary to add any module.

2016-03-25 Thread Evan Fields
It depends on what kind of problem you'd like to solve and how you'd like to solve it. - JuMP is a modeling interface that lies between you and a dedicated solver. JuMP lets you easily specify your problem, sends that problem to the solver, and retrieves output for you. JuMP itself is not a

[julia-users] Pkg.publish() : ERROR: There are no METADATA changes to publish

2016-05-20 Thread Evan Fields
Presumably I'm doing something dumb, but I'm at a loss. I'm trying to tag version 0.0.2 of TravelingSalesmanHeuristics in METADATA. With my local machine up to date with the remote github repository, I run Pkg.update() and Pkg.tag("TravelingSalesmanHeuristics.j", v"0.0.2") and get no errors.

[julia-users] Re: Pkg.publish() : ERROR: There are no METADATA changes to publish

2016-05-20 Thread Evan Fields
On further inspection I think this is because I managed to name the package repository TravelingSalesmanHeuristics.jl (rather than just TravelingSalesmanHeuristics). Indeed I just ran Pkg.add("TravelingSalesmanHeuristics") and now have in my .julia/v0.4 both TravelingSalesmanHeuristics and

Re: [julia-users] Re: Pkg.publish() : ERROR: There are no METADATA changes to publish

2016-05-20 Thread Evan Fields
> > Yes, thanks for your help. I did Pkg.add("TravelingSalesmanHeuristics") > and checked out master in that directory. Pkg.tag and Pkg.publish both > seemed to work fine. Surely this was all an unforced error on my part but hopefully someone in the future will find this thread useful.

[julia-users] Re: ANN: AffineSpaces.jl (work in progress)

2016-05-16 Thread Evan Fields
Very cool stuff; I could see this being really useful in heuristic vehicle routing work I do. By the way, in the readme should the 2d example which creates the line y = 1 first create the x-axis (y=0) and then offset? It looks like you're using the second component vector [0,1].

[julia-users] Re: Working with DataFrame columns types that are Nullable

2016-07-22 Thread Evan Fields
As far as I know, DataFrames are only backed by DataArrays. (I believe there's current work being done to upgrade the speed and type stability of DataFrames, in part by using Nullables.) It might be helpful to write a little convenience function like f(n) = isnull(n) ? NA : get(n) I will say

[julia-users] Re: ANN: Julia 0.5.0-rc2 now available

2016-08-13 Thread Evan Fields
Thanks Tony. Two questions, one related to Uwe's question: 1) I noticed earlier that 0.5.0-rc0 starts up much faster than 0.4.6 but is a little slower on initial function calls. Does it load or precompile less of the standard library on startup? 2) Is there / will there be a list of important

Re: [julia-users] Proposed solution for writing Enums

2016-08-23 Thread Evan Fields
@enum doesn't do what you want for enums?

[julia-users] Rescuing abandoned package

2016-09-02 Thread Evan Fields
I use the package GreatCircle for great circle distance calculations. On 0.4.x it generates depwarns, and it's incompatible with 0.5. I've opened a pull request with the tiny changes needed to use the package on 0.5, but there's been no response and

[julia-users] Re: dependent types in julia?

2016-09-14 Thread Evan Fields
How about something like the following? type CT{T} ctsum::Complex{T} ctsumsq::T end x = 1 + 2im ctx = CT(x, convert(decomplexify(typeof(x)), x * conj(x)) You could also make a convenience function so you don't have to do the converts yourself for the second argument. Have you seen the

[julia-users] Re: dependent types in julia?

2016-09-14 Thread Evan Fields
I'm not sure then, but hopefully someone here can help you out! Naively perhaps it feels like this makes the type inference impossible. Your function decomplexify always produces the same output for the same input, but what if you had a function that returned a different output (always of type

Re: [julia-users] ls()?

2016-09-14 Thread Evan Fields
Which can get gnarly on Windows, depending how you launched Julia. E.g. just launching from the Julia executable: shell> ls ERROR: could not spawn `ls`: no such file or directory (ENOENT) in _jl_spawn(::String, ::Array{String,1}, ::Ptr{Void}, ::Base.Process, ::RawFD, ::RawFD, ::RawFD) at

[julia-users] Re: PkgDev.tag issues

2016-09-24 Thread Evan Fields
I've had this problem as well so I'm eager to learn a solution. It was a while ago, but when this happened to me, git status in the metadata repo would show uncommitted changes. I think I had to reset metadata to a clean state, manually delete some tags in the package repository, and run the

[julia-users] Julia 0.5.0-rc2 allocates 6x as much as and runs 4x slower than Julia 0.4.6

2016-08-18 Thread Evan Fields
Unfortunately I haven't been able to find a minimal reproducing example, so first the relevant snippet then the whole function. I have some code which contains the following inner loop: for after in 1:(length(path) - 1) # can't insert after end of path counter += 1 c = inscost(k, after) if c <

[julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread Evan Fields
This looks really interesting. Can you give the high level comparison of how this compares to the various JuliaDiff tools and when to use one over the other?

[julia-users] Re: DataFrame Manipulation (like dplyr) Help

2016-08-26 Thread Evan Fields
I'm not sure if you'll find this any cleaner, but maybe something like function summary2(df, queries...) d = Dict() for query in queries name = query[1] f = query[2] col = query[3] d[name] = f(df[col]) end return d end Which could be used e.g. julia> summary2(dat,

Re: [julia-users] Re: Return type of eye()

2016-08-29 Thread Evan Fields
On Monday, August 29, 2016 at 9:39:19 AM UTC-4, JĂșlio Hoffimann wrote: > > I'd like to understand the existence of eye() in Julia, it is still not > clear to me. Is it because one wants type stability when updating a matrix > iteratively? Is this possibly a limitation from the design of the

Re: [julia-users] Do threads in a threaded loop have their own scope?

2016-10-11 Thread Evan Fields
I'm unsure if "bit shared" is a technical term I should know, or if "bit shared" is a smartphone typo for "not shared" which would describe my understanding of normal loops, where it seems each iteration doesn't have access to loop-only variables defined in a previous iteration. :) I guess the

[julia-users] Do threads in a threaded loop have their own scope?

2016-10-11 Thread Evan Fields
Let's say I have a type MyType and function f(mt::MyType) which is slow and stochastic. I have an object y::MyType, and I'd like to compute f(y) many times. If I write a loop like fvals = Vector{Float64}(100) Threads.@threads for i in 1:length(fvals) ycopy = deepcopy(y) fvals[i] = f(ycopy)

[julia-users] Re: Julia 0.5 Highlights

2016-10-12 Thread Evan Fields
Thanks for writing this up; it's helpful to see certain things highlighted and explained in more detail than news.md gives!