[julia-users] Re: Reducing algorithm obfuscation

2014-06-07 Thread Andrew Simper
Hi Billou, thanks for letting me know about the | esc part! I'll make a new topic to cover the macro part of this post. On Friday, June 6, 2014 5:33:38 PM UTC+8, Billou Bielour wrote: For the macro problem, note that arguments of macro are expressions, or Symbols: Just as functions map a

Re: [julia-users] negative power throws error

2014-06-07 Thread Ivar Nesje
One thing that is a stupid bug is that the DomainError does not tell the user what domain he is outside, and that he might want to add `.` after the exponent in order to get a Float64 result. sqrt(-1) does a much better job in that regard. There are some efficiency concerns about adding a

[julia-users] Re: biconjugate gradient stabilized method

2014-06-07 Thread Jutho
That's a strange line of reasoning. Why not contribute to IterativeSolvers with the things you're interested and skilled in (linear solvers using Krylov)? It's of course up to you, but I would certainly prefer a less general name then KrylovSolvers.jl for a package that contains linear solvers

[julia-users] Is there Code for Multi layer perceptron?

2014-06-07 Thread ccsv . 1056915
I am just wondering if there is code for multi layer perceptron anywhere in julia with parallel processing and iRprop+ for gradient decent?

[julia-users] How to load a script with plots?

2014-06-07 Thread yi lu
Hello, I am loading a script with plots using module Winston. However, after it loads the script, the plot is omitted. How to get it work? I use julia -L test.jl to load that script. And I can do plot in REPL. By the way, how to reload a script which has just edited? Yi

Re: [julia-users] ANN: Lint.jl - a little code lint tool

2014-06-07 Thread Tim Holy
Ah, it is a package already. Oops. --Tim On Friday, June 06, 2014 02:22:22 PM Tony Fong wrote: Hello, First of all, let me say it's been a real pleasure working in the Julia environment. I have been coming from a very different platform, and I noticed myself making mistakes of a certain

Re: [julia-users] ANN: Lint.jl - a little code lint tool

2014-06-07 Thread Tim Holy
Actually, I was right the first time. Needs to be registered before `Pkg.add(Lint)` will work. --Tim On Saturday, June 07, 2014 05:34:13 AM Tim Holy wrote: Ah, it is a package already. Oops. --Tim On Friday, June 06, 2014 02:22:22 PM Tony Fong wrote: Hello, First of all, let me

Re: [julia-users] negative power throws error

2014-06-07 Thread Tim Holy
We should be doing a much better job of getting these kinds of things into the FAQ. I added a new section for this one: http://docs.julialang.org/en/latest/manual/faq/#why-does-julia-give-a- domainerror-for-perfectly-sensible-operations --Tim On Saturday, June 07, 2014 12:53:50 AM Ivar Nesje

Re: [julia-users] ANN: Lint.jl - a little code lint tool

2014-06-07 Thread Tony Fong
Sorry, I just tried to go through the docs, now I'm stuck at creating a pull request. I have no idea what I'm doing... On Saturday, June 7, 2014 5:48:19 PM UTC+7, Tim Holy wrote: Actually, I was right the first time. Needs to be registered before `Pkg.add(Lint)` will work. --Tim On

Re: [julia-users] Is there Code for Multi layer perceptron?

2014-06-07 Thread John Myles White
I don’t think there’s any reliable neural network Julia code published so far. — John On Jun 7, 2014, at 1:18 AM, ccsv.1056...@gmail.com wrote: I am just wondering if there is code for multi layer perceptron anywhere in julia with parallel processing and iRprop+ for gradient decent?

Re: [julia-users] Help with writing a macro to for fetch, process, store pattern

2014-06-07 Thread Jameson Nash
A macro can't do this because a macro can't see types. But I don't need a macro to get an even more efficient version of your attempted optimization. I just add the immutable keyword: *immutable* Point x::Float64 y::Float64 end On Sat, Jun 7, 2014 at 3:35 AM, Andrew Simper

Re: [julia-users] Re: running scripts

2014-06-07 Thread Jameson Nash
ARGS should be accessible (and modifiable) from a script file typically I would structure code like this so that one file contains the library and one file contains the command line interface. then you can directly run it, or use it from the REPL ./julia scriptrunner.jl arg1 arg2

Re: [julia-users] Is there Code for Multi layer perceptron?

2014-06-07 Thread João Felipe Santos
I've seen some simple examples of neural networks on Github but nothing seems to be complete and/or reliable. If I had infinite time, I would like to experiment with ForwardDiff.jl to do automatic differentiation of expressions to generate backprop expressions for arbitrary MLP architectures

Re: [julia-users] Re: step function like behaviour

2014-06-07 Thread Stefan Karpinski
That's because ifelse is just a function, not an operator with special syntax. The ternary operator is just a one-line form of the if-else and requires the condition to be a single boolean value. It is a genuine control flow construct, not a function. On Fri, Jun 6, 2014 at 11:54 PM, David

Re: [julia-users] PSA: new ~/.julia_history format

2014-06-07 Thread cnbiz850
Lately, every time I start up julia I got the following error. And every time I have to delete ~/.julia_history. Why? -- $ julia _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation:

Re: [julia-users] PSA: new ~/.julia_history format

2014-06-07 Thread Stefan Karpinski
That's definitely a problem. Could you file an issue? Ideally, including example contents from a produced ~/.julia_history file. On Sat, Jun 7, 2014 at 6:28 PM, cnbiz850 cnbiz...@gmail.com wrote: Lately, every time I start up julia I got the following error. And every time I have to delete

Re: [julia-users] PSA: new ~/.julia_history format

2014-06-07 Thread cnbiz850
Perhaps it does not happen at every start. More likely at the start of every new day. I just deleted .julia_history2, restarted julia, and did not get that error. Will see tomorrow. On 06/08/2014 06:30 AM, Stefan Karpinski wrote: That's definitely a problem. Could you file an issue?

Re: [julia-users] PSA: new ~/.julia_history format

2014-06-07 Thread Stefan Karpinski
Please do let me know of it continues to be broken for you. On Jun 7, 2014, at 6:41 PM, cnbiz850 cnbiz...@gmail.com wrote: Perhaps it does not happen at every start. More likely at the start of every new day. I just deleted .julia_history2, restarted julia, and did not get that error.

Re: [julia-users] Re: step function like behaviour

2014-06-07 Thread Zahirul ALAM
thanks guys for all of these :) On Saturday, 7 June 2014 14:25:08 UTC-4, David Einstein wrote: It makes sense now. The ternary operator only evaluates one branch, while a function would force both to be evaluated. So the answer to the original question should be inside_disc(x,y,radius)

[julia-users] Delaying argument eval/check in @printf

2014-06-07 Thread Jeff Waller
Hello all, Recall this thread? https://groups.google.com/forum/#!searchin/julia-users/printf/julia-users/7Sn5yys0UJE/c7eoI4AqBPIJ Well I had to drop that effort because of several projects for a while, but have been able to return to it recently and I believe I have a solution. To refresh