[julia-users] What is the deal with macros that do not return expressions?

2016-10-01 Thread Lyndon White
I was generally under the impression that a macro always had the return a `Expr` and that doing otherwise would make the compiler yell at me. Apparently I was wrong, at least about the second part: https://github.com/ChrisRackauckas/ParallelDataTransfer.jl/issues/3 macro ex_timestwo(x)

[julia-users] [ANN]: Deoplete-Julia: Fairly decent syntax completions in Neovim

2016-09-25 Thread Lyndon White
Ok, I've had this kicking around for months. It has taken me until now to get around to actually packaging it up so that anyone could use it. Check it out: https://github.com/JuliaEditorSupport/deoplete-julia It actually works pretty well (even if I can't write reasonable code in demos):

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-19 Thread Lyndon White
On Sunday, 18 September 2016 21:36:24 UTC+8, K leo wrote: > > I am also wondering what information I should look into. > Learn to use valgrind -- it is a life skill (like knowing how to do a tax return :-P) http://valgrind.org/ Julia specific instructions are at:

[julia-users] Re: ANN: DelegationMacros v0.0.3

2016-09-06 Thread Lyndon White
Nice work. I spotted https://github.com/Jeffrey-Sarnoff/Delegate.jl last week and was pretty keen on it. Yet to use it but really looks like it will solve a lot of my irritation with Composition as a Inheritance. What is the relationship between Delegate.jl and DelegateMacros.jl? Is Delegate.jl

[julia-users] Re: Saving and Loading data (when JLD is not suitable)

2016-08-30 Thread Lyndon White
On Wednesday, 31 August 2016 12:47:37 UTC+8, Lyndon White wrote: > > > So I have one of the models, saved using their custom format ( > https://github.com/sbos/AdaGram.jl/blob/master/src/util.jl#L94) > It is *6Gb*, and takes ages to load and save. > I switch to JLD, *13Gb* ev

[julia-users] Saving and Loading data (when JLD is not suitable)

2016-08-30 Thread Lyndon White
I like JLD. I really do. But I have a problem that it can't solve -- not due to a limitation of JLD, but due to HDF5. HDF5 is (AFAIK) designed with rectangular arrays in mind -- everything else is secondary. If your the type you are trying to serialize is more or less a Structure of Arrays,

[julia-users] Re: How to set JULIA_NUM_THREADS for remote workers?

2016-08-17 Thread Lyndon White
On a per machine basis, some `profile` initialisations files run even when your login shell is used (ie even if a command is specified in the SSH parameter, i.e. even when starting julia workers), where as others only run if you start a shell script or an interactive shell (rc) If your default

Re: [julia-users] I would like to display links to new Julia Questions from StackOverflow in the Gitter Sidebar

2016-07-09 Thread Lyndon White
thanks. It is working On Sunday, 10 July 2016 12:25:52 UTC+8, Jacob Quinn wrote: > > Just sent it to you. > > On Sat, Jul 9, 2016 at 10:11 PM, Lyndon White <oxin...@ucc.asn.au > > wrote: > >> >> Hi all, >> We were discussing this in the gitter c

[julia-users] I would like to display links to new Julia Questions from StackOverflow in the Gitter Sidebar

2016-07-09 Thread Lyndon White
eople who were on gitter at the time I brought it up, and showed the demonstration were in favor, I think. Regards Lyndon White

[julia-users] Re: Master list of constants

2016-07-05 Thread Lyndon White
You can use the `names` function to search a module for all constants it defines. By evaluating the names to get the values, then checking if they are Irrational (formerly known as MathConst?) By doing this, I conclude that the ASCII name for the Euler-Mascheroni constant (γ) is eulergamma

[julia-users] Re: Julia community stewards

2016-06-29 Thread Lyndon White
Excellent quality people. Good of them to step up to formally take on the nontechnical roles -- ontop of the very significant technical roles most (all?) are already playing. As such, can we new get a formal response from one of these Stewards to Bridging the IRC and Gitter

[julia-users] Re: VS code extension

2016-06-21 Thread Lyndon White
I would be happy to transfer https://github.com/oxinabox/julia-vim-completions to an Org. Though probably worth waiting til it is wrapped up into a form people who are not me can use. On Wednesday, 22 June 2016 06:26:52 UTC+8, David Anthoff wrote: > > Hi all, > > > > I’ve created a new

[julia-users] Re: Let's Bridge the IRC and Gitter

2016-06-21 Thread Lyndon White
> > Alright, I have reset this up. >> > There has been a fair bit of shouting by new usered on IRC of the "Hell, anyone here" kind. So I figure the need. This is now running on a microVM (1core, 700MB of RAM) from https://nectar.org.au/ Which is from the Australian

Re: [julia-users] Re: Private Forks of Julia Repositories

2016-06-03 Thread Lyndon White
I am doing this right now, via Loadpath. Set the loadpath in your `.juliarc.jl` so that an extra folder (where you are working) is also in your loadpath. Control it with Git, (not the julia package mananger). Everything is fine and normal ,it is just another git repo. I have no interest in

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Lyndon White
And on that take a look at all the interlanguage operations. I have some old notes, I wrote: Julia is well know for its excellent Foreign Function Interface (FFI). What you might not know is that it is more than C, Fortran and Python. There are many more. In theory we could daisy chain off of

[julia-users] Re: Does anyone use BBEditTextWrangler-julia.plist?

2016-05-27 Thread Lyndon White
I am not. Re: Generating lists exports automatically, a simple call to `names(Base)` would probably do it. I'm doing more complex lists of exports in https://github.com/oxinabox/julia-vim-completions Julia reflection is strong enough, for this kinda thing.

[julia-users] Re: Question about passing/using module as argument

2016-05-27 Thread Lyndon White
It is useful, some methods in Base, eg `names`, take modules as parameters. So 1, is yes it is intended -- if for purposes of reflection if nothing else.

[julia-users] Re: Let's Bridge the IRC and Gitter

2016-05-24 Thread Lyndon White
c > 11:54 < acetoline> I mean even the julia google groups pages look pretty > deserted > ... > 13:28 < jballanc> Lyndon: I could definitely see the value in merging > freenode > and gitter > 13:29 < jballanc> Currently my solution of connec

[julia-users] Re: Let's Bridge the IRC and Gitter

2016-05-22 Thread Lyndon White
Alright for purpose of testing, I have created an instance of gitter-irc-bot on Heroku. The program was suggested by ScottPJones. It shows up on IRC as *GitterBot*. and on gitter as *oxinabot *with a little robot icon saying IRC. See github profile

[julia-users] Let's Bridge the IRC and Gitter

2016-05-22 Thread Lyndon White
Hi all, So it should be generally known that Julia has a IRC Channel: http://webchat.freenode.net/?channels=julia and a Gitter https://gitter.im/JuliaLang/julia The Gitter is (AFAICT) moderately active, with a mix of new-comers and experienced users. The IRC is not. As of the last week or so I

[julia-users] Re: Julia Utopia: Share your tips and tricks to efficient coding in Julia

2016-05-17 Thread Lyndon White
*My tip: Use your `.juliarc.jl` to add your current work to your path.*So much less annoying than constantly put `push!(LOAD_PATH, directory)` at the top of various files. For example I have: function add_to_path(directory) if isdir(directory) push!(LOAD_PATH,

[julia-users] Re: ANN: JuMP 0.13 released (or, JuMP dumps camelCase)

2016-04-29 Thread Lyndon White
> > I like new clean syntax. > I threw together a simple substitution script, to apply the changes. You can use it online on https://repl.it/CL6c/6 Just change the original text in the left, for what ever is being updated. Then run it and copy from the right. I am tempted to go through all

[julia-users] Re: What are the best ways to define scenarios?

2016-04-28 Thread Lyndon White
Define a type (possibly immutable) per sensation, with the constants Create a function that operates on that type that carries out the scenario. loop (or map (or pmap)) through an array of the aforementioned type, applying the aforementioned function. On Friday, 29 April 2016 09:15:40 UTC+8, K

[julia-users] Re: When using julia-vim should basic syntax completion work?

2016-04-24 Thread Lyndon White
Ok, finally worked it out. Its not ideal, as it will only give local completions if there is no syntax completions but it is better than nothing. I'ld rather it was the other way round, only give syntax if there is not local completions. but can't seem to make that work. """Completions

[julia-users] When using julia-vim should basic syntax completion work?

2016-04-24 Thread Lyndon White
As I understand it, VIM should be working out what completions to use based on the syntax highlighting file. So I should at least get basic stuff like `using` and `function` autocompleting? I am using vim 7.4 with super tab. I never got my head around using completions, I just followed install

[julia-users] Re: Should Iterators be nonmutating?

2016-04-22 Thread Lyndon White
chline` be > the state of the iterator (instead of the `nada` returned by `next`). > > Opening an issue (perhaps with a PR of a fix) could be the next step. > Unless someone finds some other logic for keeping `Eachline` the way it is. > > On Friday, April 22, 2016 at 7:09:13 AM UTC+3, Lyndon

Re: [julia-users] Any downside of using a symbol as an interned string?

2016-04-22 Thread Lyndon White
@Tamas thanks Can you clarify a Dict of strings to what? Ints? Loose a lot of interpretablity that way. On Friday, 22 April 2016 19:08:11 UTC+8, Tamas Papp wrote: > > I would be more concerned about style than speed -- symbols as strings > is an ancient Lisp technique in NLP, but IMO a Dict of

[julia-users] Any downside of using a symbol as an interned string?

2016-04-22 Thread Lyndon White
When tokenizing large files, it is normal to end up with many many multiples of the same string. Normal julia strings are not interned. Which means if you accumulate a large list of tokens, you end up duplicating a lot of strings, which uses unnesc memory. When you are tokenizing documents that

[julia-users] Re: Function check without @assert

2016-04-22 Thread Lyndon White
*TL;DR; Assert is no slower than exception throwing& the problem is people expect it to be a `nop` if optimisation is turned on. and a `nop` is much faster than an assert*(*I haven't actually tested this), Its not that assert is slow. it is that traditionally (and we are talking going back

[julia-users] Should Iterators be nonmutating?

2016-04-21 Thread Lyndon White
I am writing some iterators that work with `IO`. I thought, so that my iterators would not mutate, I would `deepcopy` the IO item, and store it as part of my state. (then only my state would mutate, and no-one cares probably (unless they were trying to `tee` for free)) But `deepcopying` IO

[julia-users] Re: Packaging Julia project for Open Respoducable Science

2016-02-11 Thread Lyndon White
I just realized that not only am I dependent on Julia packages. but via PyCall, I am also dependent on python packages. How utterly terrifying packaging this will be. I suspect I will end up failing to meet the goal of a package anyone can just click and run. But I can at least release all the

[julia-users] Packaging Julia project for Open Respoducable Science

2016-02-11 Thread Lyndon White
I've been working in IJulia for all of my experimental needs. I am now submitting the paper and I wish to submit my code and data along with it. I also probably should include a copy of julia. Since my code works in Julia 0.5, but I am confidant it doesn't work in any prior versions (such as

[julia-users] Is the Actor model for parallelism a good paradigm for Julia

2016-02-01 Thread Lyndon White
Hi, So I do a lot of batch processing, for machine learning. I have a lot of RAM, 45Gb, and 12 cores. My normal method for parallel processing is to replicate any common shared read-only memory across all workers, using @everywhere. Then process my data with pmap, or a variation of my own

[julia-users] Why does using behave the way it does with regards to remote workers?

2015-11-25 Thread Lyndon White
Hi all, a discussion on the IRC channel prompts me to ask. >From a design point of view why does `using` behave the way it does to remote workers? Assume some module called `FooModule` which exports `bar` `using FooModule` locally loads the module, and brings it into scope -- so running locally

[julia-users] Re: Too many packages?

2015-07-14 Thread Lyndon White
For your interest: of your core packages: numpy, scipy, sympy, matplotlib, and f2py numpy functionlity should be all in Base. Sympy has a julia version https://github.com/jverzani/SymPy.jl, wrapping pyCall, and it is great. Similarly so does matplotlib https://github.com/stevengj/PyPlot.jl,

[julia-users] Re: preferred syntax for creating empty vectors?

2015-06-19 Thread Lyndon White
Nice thing about: Int[] is that it is visially similar to a empty Array comprehension, eg Int[round(Int, x) for x in xs] On Friday, 19 June 2015 23:49:01 UTC+8, Seth wrote: I note that Int[] works in 0.3 and 0.4, but Vector{Int}() and Array{Int,1}() were introduced at some point in

[julia-users] Re: Julia equivalent for real threads

2015-06-15 Thread Lyndon White
You can do it with the parallel stuff. Without using sharedmemory, and with using processes instead of threads. Its not particularly nice but here is how it goes: (Tested in 0.39) first add a second process (before the @everywhere calls): pidB = addprocs(1)[1] A mockup of your blocking

[julia-users] Re: Never use Containers of abstract types? Aways Union with containers of subtypes, or use containers of Typed Parameterized containers?

2015-06-11 Thread Lyndon White
Oh, wait you meant that Matrix{Union(...)} should have same performance as Matrix{Number}? Yes, I also assume that (I guess I should test). But Union{Matrix{Float64}, Matrix{Number},...} is fast. --- On Friday, 12 June 2015 08:47:12 UTC+8, Lyndon White wrote: On Thursday, 11 June 2015 21

[julia-users] Re: Never use Containers of abstract types? Aways Union with containers of subtypes, or use containers of Typed Parameterized containers?

2015-06-11 Thread Lyndon White
On Thursday, 11 June 2015 21:26:25 UTC+8, andrew cooke wrote: i don't know of any docs that justify this, but i would assume that Union and Number would have very similar performance. You would be wrong. Union and {T:Number} have similar performance. Number performed 1000x worse. For

[julia-users] Never use Containers of abstract types? Aways Union with containers of subtypes, or use containers of Typed Parameterized containers?

2015-06-10 Thread Lyndon White
Containers of abstract types are not performant, This is documented in the performance notes section of the manual. However containers of concrete types are not generic. For example, I am currently redoing a large section of code from using Float64s to using Numbers, so that I can use

[julia-users] Is anyone, anywhere using Julia on a supercomputer/cluster

2015-04-28 Thread Lyndon White
Hi, I have a big numerical problem that julia is nice for. But I really want to farm it out over a few hundren cores. I know my local research supercomputing provider (iVec since I am in Western Australia), prefers it if you are running programs in C or Fortran. But I know they have run things