Yes I'm using 0.4. Thank you for these infos.
2016-10-27 21:29 GMT+02:00 Steven G. Johnson :
>
>
> On Thursday, October 27, 2016 at 1:23:47 PM UTC-4, DNF wrote:
>>
>> All higher-order functions? I thought it was mainly anonymous functions.
>> Either way, that's a seriously big slowdown.
>>
>
> Al
2016-10-26 13:09 GMT+02:00 DNF :
> I don't have the impression that reduce is slow. The reduce function that
> you're using is complicated and may have features that preclude
> optimizations, such as vectorization.
>
I don't know exactly why, the difference is bigger than what I was
expected. for
Sorry reduce was a bad idea, even if syntax is nice, it's really slow and
greedy.
V1 can take advantage of @inbounds and @simd optimizations:
http://docs.julialang.org/en/release-0.5/manual/performance-tips/#performance-annotations
I hope reduce will be optimized in future because here it express
maybe with reduce ?
```
function mapeBase_v4(A::Vector{Float64}, F::Vector{Float64})
function abscount(prev, current)
current[2] == 0.0 && return prev
index, item = current
(prev[1] + abs( 1 - F[index] / item), prev[2] + 1)
end
reduce(abscount, (0.0, 0), enumerate(A))
end
```
20
Hello,
I see no answer so I'll try to help.
Before, just in case, I think it's not a good approach to look at
performance first.
A better one would consist to write clean code that express your intents
first and then if it's necessary profile and optimize.
You should profile, because I have differ
Hi,
there is a library that let you specify the encoding type when opening
files:
https://github.com/nalimilan/StringEncodings.jl
2016-10-20 19:32 GMT+02:00 :
> Julia ver 5 is OK , but is new problem with space after ś, ć . More in new
> post...
>
> Paul
>
> W dniu środa, 19 października 2016 15
I find assertions really usefull for examples in documentation and
sometimes in code for devs (by far better than comments).
http://c2.com/cgi/wiki?DoNotUseAssertions
2016-04-22 8:45 GMT+02:00 Lyndon White :
>
> *TL;DR; Assert is no slower than exception throwing& the problem is
> people expect
end
>
> in separate code:
>import Foo
>
>
>
>
>
>
> On Wednesday, March 16, 2016 at 9:42:37 PM UTC+8, Gregory Salvan wrote:
>>
>> Hi,
>> I don't understand the way of importing/using modules, or including files.
>> I've look a
Hi,
when you want to add methods on Base module (like getindex, getfield...)
you use "import Base.getindex" then write a new function with new types
args.
for exemple to add methods in B.jl on functionA from A.jl
import A.functionA
function functionA(...)
end
Is what you were looking for?
Le
Hi,
I don't understand the way of importing/using modules, or including files.
I've look at documentation (FAQ and modules) and into this list for old
subjects, and tested all solutions I found.
with julia version 0.4.3 on gentoo
directory structure looks like:
package.jl (directory)
|_ src
10 matches
Mail list logo