[julia-users] Re: julia-i18n: Translators and reviewer needed!

2016-10-13 Thread rafzalan
> > Ismael : "I have enabled that option, please let me know if it's fixed > now, so I can put the Persian translations back on production, thanks! " until this moment I cant see any change in Persian layout, both on live preview or staging site, using different browsers.

[julia-users] Re: julia-i18n: Translators and reviewer needed!

2016-10-13 Thread rafzalan
Very good news, even though I don't have enough permission to check the option, but waiting for Persian to move on. On Friday, October 14, 2016 at 3:46:27 AM UTC+3:30, Ismael Venegas Castelló wrote: > > Ihave finally got word from Transifex, it seems this feature wasnt > supported in Live, but

Re: [julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Michele Zaffalon
No worries, I had the same question and I happened to have that web page open. On Fri, Oct 14, 2016 at 1:05 AM, Florian Oswald wrote: > Oh! Sorry I didn't get that. Thanks! > > > On Thursday, 13 October 2016, Michele Zaffalon > wrote: > >>

[julia-users] eachline() work with pmap() is slow

2016-10-13 Thread lovebufan
I want to process each line of a large text file (100G) in parallel using the following code pmap(process_fun, eachline(the_file)) however, it seems that pmap is slow. following is a dummy experiment: julia> writedlm("tmp.txt",rand(10,100)) # produce a large file julia> @time for l in

Re: [julia-users] python-like generators?

2016-10-13 Thread Ralph Smith
According to the manual, Tasks are coroutines. The Wikipedia article relates them to generators. For any recovering C programmers in the audience, this related article might remind you why

[julia-users] Re: redefining Base method for `show`

2016-10-13 Thread Jeffrey Sarnoff
I assume you meant x::T in type A{T}. Why do you want to do this: > Every time a Rational or Symbol or Bool is encountered on any level, I > want it to print differently than Base.show does it. > Do you want to adorn it (like "3//5" -> "{3//5}") or alter it (like "3//5" -> "2//5")? Also, I

Re: [julia-users] ERROR: Target architecture mismatch

2016-10-13 Thread Valentin Churavy
Since KNL is just a new platform the default version of the LLVM compiler that Julia is based on does not support it properly. During our testing at MIT we found that we needed to switch to the current upstream of LLVM (or if anybody reads this at a later time LLVM 4.0) You can do that by

Re: [julia-users] ERROR: Target architecture mismatch

2016-10-13 Thread ABB
Sigh... build failed. I'm including the last part that worked and the error message which followed: JULIA usr/lib/julia/inference.ji essentials.jl generator.jl reflection.jl options.jl promotion.jl tuple.jl range.jl expr.jl error.jl bool.jl number.jl int.jl signal (4): Illegal instruction

Re: [julia-users] Re: translating julia

2016-10-13 Thread Ismael Venegas Castelló
Hello Milan, I have already changed the review option, so now only the reviewed strings are shown in production, un reviewed strings are still shown in staging. I have named you team administrator so you can review and even organize the French team, if there is anything else I can do for you,

[julia-users] Re: julia-i18n: Translators and reviewer needed!

2016-10-13 Thread Ismael Venegas Castelló
Ihave finally got word from Transifex, it seems this feature wasnt supported in Live, but they implemented it because of us! :D Hi Ismael, > > Thank you for contacting Transifex support and submitting your request. > > Regarding your case, I would like to mention that in case of Live, RTL >

Re: [julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Florian Oswald
Oh! Sorry I didn't get that. Thanks! On Thursday, 13 October 2016, Michele Zaffalon wrote: > From ASTInterpreter's README: > >- `stuff runs stuff in the current frame's context > > > On Thu, Oct 13, 2016 at 5:47 PM, Florian Oswald

[julia-users] shared array of user defined type

2016-10-13 Thread Alexandros Fakos
Hi, Is there a way to create a shared array of a user defined composite type? I want to parallelize using pmap() on a function f() which has as arguments user defined composite types. Thanks, Alex

Re: [julia-users] Re: Julia 0.5 Highlights

2016-10-13 Thread Stefan Karpinski
On Thu, Oct 13, 2016 at 12:26 PM, Brian Rogoff wrote: > Great summary, thanks so much! > > Being a fan of typeful functional programming, I really like the return > type annotations and FP performance improvements. Is there a way to > describe a precise return type for a

[julia-users] Re: What is really "big data" for Julia (or otherwise), 1D or multi-dimensional?

2016-10-13 Thread cdm
from CloudArray.jl: "If you are dealing with big data, i.e., your RAM memory is not enough to store your data, you can create a CloudArray from a file." https://github.com/gsd-ufal/CloudArray.jl#creating-a-cloudarray-from-a-file so, this package dev contemplates system dependent

Re: [julia-users] ERROR: Target architecture mismatch

2016-10-13 Thread ABB
Awesome. Thanks. I'll try it again then. I appreciate the help. (Austin is also my name. I save space in my memory by going to school at, living in and being a guy with the same name.) On Thursday, October 13, 2016 at 1:40:09 PM UTC-5, Erik Schnetter wrote: > > AB > > You're speaking of

Re: [julia-users] ERROR: Target architecture mismatch

2016-10-13 Thread Erik Schnetter
AB You're speaking of Stampede, if I might guess from the "austin" prefix in your email address. I would treat the old and the new section of the machines as separate, since they are not binary compatible. If you are really interested in the KNL part, then I'd concentrate on these, and use the

Re: [julia-users] ERROR: Target architecture mismatch

2016-10-13 Thread ABB
This is great - thanks for getting back to me so quickly. To follow up, I have two small questions: - To build specifically for the KNL system I should include something like "JULIA_CPU_TARGET = knl" in the Make.user file? - Part of the system is KNL, part of it is "Intel Xeon E5 Sandy Bridge

RE: [julia-users] Filtering DataFrame with a function

2016-10-13 Thread Júlio Hoffimann
That is really cool David, I fully agree with this modularization :) -Júlio

Re: [julia-users] ERROR: Target architecture mismatch

2016-10-13 Thread Erik Schnetter
AB Using "core2" is a fallback that will work on very old machines. In your case -- if this happens to be a more modern, uniform HPC system -- you might want to use a different architecture. For example, if you're building on the compute nodes, and never run on the front end, then the default

Re: [julia-users] HDF5, how to save string data to file?

2016-10-13 Thread Steven G. Johnson
HDF5.jl supports writing strings. For some reason, datatype(String) doesn't work, but datatype("This is a string") works. So just pass the string data, and not the string type, to datatype. Even simpler, just do write(g, "/dane", "my string"), for example.

Re: [julia-users] Re: Julia 0.5 Highlights

2016-10-13 Thread Steven G. Johnson
On Wednesday, October 12, 2016 at 9:40:27 PM UTC-4, Steven G. Johnson wrote: > > > > On Wednesday, October 12, 2016 at 9:26:54 PM UTC-4, Stefan Karpinski wrote: >> >> That's a fair point. It seems like it could/should be handled by the same >> (not-yet-implemented) mechanism that ensures that

[julia-users] Re: Julia 0.5 Highlights

2016-10-13 Thread Brian Rogoff
Great summary, thanks so much! Being a fan of typeful functional programming, I really like the return type annotations and FP performance improvements. Is there a way to describe a precise return type for a higher order function? The examples of Function I've seen have neither the arguments

RE: [julia-users] Filtering DataFrame with a function

2016-10-13 Thread David Anthoff
Yes, I think the general plan of the DataFrames maintainers is to largely rely on packages like Query and StructuredQueries for data manipulation. There is another benefit of having this kind of query infrastructure in its own package: all the query operations that I showed that use Query

Re: [julia-users] Memory allocation issue when using external packages in module

2016-10-13 Thread Yichao Yu
Likely https://github.com/JuliaLang/julia/issues/18465 On Thu, Oct 13, 2016 at 11:56 AM, Jan wrote: > Hi! > > I´ve tried to reduce my problem to a smaller one, but I didn´t succeed. > However, I hope someone can help me even though the problem description is > a bit

Re: [julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Michele Zaffalon
>From ASTInterpreter's README: - `stuff runs stuff in the current frame's context On Thu, Oct 13, 2016 at 5:47 PM, Florian Oswald wrote: > how can I print the value of a variable while in debug mode? > > > > On Thursday, 13 October 2016 17:19:12 UTC+2, Michele

[julia-users] Memory allocation issue when using external packages in module

2016-10-13 Thread Jan
Hi! I´ve tried to reduce my problem to a smaller one, but I didn´t succeed. However, I hope someone can help me even though the problem description is a bit long and involves github. To summerize my problem: when I include one external package (BlackBoxOptim) in my module one of my functions

Re: [julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Florian Oswald
how can I print the value of a variable while in debug mode? On Thursday, 13 October 2016 17:19:12 UTC+2, Michele Zaffalon wrote: > > Aside from Gallium.jl, you should also check ASTInterpreter.jl > 's README which gives the list > of commands. The

Re: [julia-users] Filtering DataFrame with a function

2016-10-13 Thread Júlio Hoffimann
Hi Alex, That is closer to what I had in mind originally, but I actually solved the problem by reorganizing my algorithm to avoid filters. Thank you, -Júlio 2016-10-13 8:21 GMT-07:00 Alex Mellnik : > Hi Júlio, > > If you're just interested in using an arbitrary function

Re: [julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Florian Oswald
works pretty good actually!! soem more examples on teh readme woulnd't hurt though i guess. On 13 October 2016 at 17:18, Michele Zaffalon wrote: > Aside from Gallium.jl, you should also check ASTInterpreter.jl > 's README

Re: [julia-users] Are SubArrays intended to work with BLAS functions?

2016-10-13 Thread Josh Day
Sure thing: https://github.com/JuliaLang/julia/issues/18908

Re: [julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Michele Zaffalon
Aside from Gallium.jl, you should also check ASTInterpreter.jl 's README which gives the list of commands. The documentation seems to be spread across the two packages. On Thu, Oct 13, 2016 at 5:15 PM, Florian Oswald wrote: >

Re: [julia-users] Filtering DataFrame with a function

2016-10-13 Thread Alex Mellnik
Hi Júlio, If you're just interested in using an arbitrary function to filter on rows you can do something like: df = DataFrame(Fish = ["Amir", "Betty", "Clyde"], Mass = [1.2, 3.3, 0.4]) filter(row) = (row[:Fish][1] != "A")&(row[:Mass]>1) df = df[[filter(r) for r in eachrow(df)],:] Is that what

Re: [julia-users] Are SubArrays intended to work with BLAS functions?

2016-10-13 Thread Stefan Karpinski
Seems like a bug to me. Can you file an issue? On Thu, Oct 13, 2016 at 10:13 AM, Josh Day wrote: > After much confusion, I discovered That BLAS.syr! gives incorrect results > when using a view. Is this a bug, or is it not recommended to use views > with BLAS functions?

Re: [julia-users] Re: Performance of release 0.5.0 v 0.4.6.0

2016-10-13 Thread Stefan Karpinski
Increasing coverage of Julia's own code base was a major effort during 0.5 – it's not a user-facing change but it's very important. If you want to run performance tests, they can be found under test/perf. There are also a significant number of benchmarks that can be found in the BaseBenchmarks

Re: [julia-users] Re: I have two data collection for mapreduce() vs. generator, which is correct/better implementation? (Julia 0.5)

2016-10-13 Thread Stefan Karpinski
540 ulps does seem kind of big. On Thu, Oct 13, 2016 at 4:21 AM, DNF wrote: > That seems right: > > julia> f(a, p) > 781.4987197415827 > > julia> f(reverse(a), reverse(p)) > 781.4987197415213 > > > But I'm pretty surprised the effect is that big. > > On Thursday, October 13,

[julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Florian Oswald
hi, i usually used Debug.jl to debug code, which is great, but errors on julia 0.5: https://github.com/toivoh/Debug.jl/issues/80 I have no idea how to use Gallium.jl just from looking at the examples. Anyone? thanks.

Re: [julia-users] Re: canonical binary representation for Array

2016-10-13 Thread Michele Zaffalon
I wish there was documentation for the file format aside from the MATLAB implementation which also just uses `reshape`. The only sure thing about the format is that the first byte of the file is the endianness. On Thu, Oct 13, 2016 at 3:38 PM, Steven G. Johnson wrote:

[julia-users] Re: why do we have Base.isless(a, ::NAtype) but not Base.isless(a, ::Nullable)?

2016-10-13 Thread Florian Oswald
ok i found the conversation here: https://groups.google.com/d/topic/julia-users/W6yyV4i_W_k/discussion On Thursday, 13 October 2016 15:45:23 UTC+2, Florian Oswald wrote: > > I mean, do I have to cycle through the array and basically clean it of > #NULL before findign the maximium or is there

[julia-users] Re: Dictionary type inference

2016-10-13 Thread Steven G. Johnson
I've filed an issue for further discussion: https://github.com/JuliaLang/julia/issues/18906

Re: [julia-users] HDF5, how to save string data to file?

2016-10-13 Thread Erik Schnetter
You could look at the JLD package instead of using HDF5 directly. The HDF5 package might be missing support for variable-length strings. -erik On Thu, Oct 13, 2016 at 6:36 AM, wrote: > how to save string data to file? What wrong ? > > julia> dset = d_create(g,

Re: [julia-users] Re: What's the status of SIMD instructions from a user's perspective in v0.5?

2016-10-13 Thread Florian Oswald
Hi Erik, that's great thanks. I may have a hot inner loop where this could be very helpful. I'll have a closer look and come back with any questions later on if that's ok. cheers florian On Thursday, 13 October 2016 16:24:03 UTC+2, Erik Schnetter wrote: > > If you want to use the SIMD

Re: [julia-users] Re: What's the status of SIMD instructions from a user's perspective in v0.5?

2016-10-13 Thread Erik Schnetter
If you want to use the SIMD package, then you need to manually vectorized the code. That is, all (most of) the local variables you're using will have a SIMD `Vec` type. For convenience, your input and output arrays will likely still hold scalar values, and the `vload` and vstore` functions access

[julia-users] Are SubArrays intended to work with BLAS functions?

2016-10-13 Thread Josh Day
After much confusion, I discovered That BLAS.syr! gives incorrect results when using a view. Is this a bug, or is it not recommended to use views with BLAS functions? julia> a1 = zeros(2,2); a2 = zeros(2, 2); x = randn(5, 2); julia> BLAS.syr!('U', 1.0, view(x, 1, :), a1) 2×2

[julia-users] Re: How to properly close IJulia Notebooks (so that finalizers are run)

2016-10-13 Thread Fabian Gans
This is exactly what I did (see OP). Still, it looks like the finalizers are not run. On Thursday, October 13, 2016 at 3:59:49 PM UTC+2, Steven G. Johnson wrote: > > If you just close the notebook window, the process is still running (and > you can re-connect to it via the Jupyter dashboard).

[julia-users] Re: Dictionary type inference

2016-10-13 Thread Steven G. Johnson
No, promote_type is working. I think this is intended behavior: if you construct a Dict with keys and/or values of different types, then it will default to using Any. For example: julia> Dict(3=>4, 3.5=>4.5) Dict{Any,Any} with 2 entries: 3 => 4 3.5 => 4.5 This was true in Julia 0.4

[julia-users] Re: How to properly close IJulia Notebooks (so that finalizers are run)

2016-10-13 Thread Steven G. Johnson
If you just close the notebook window, the process is still running (and you can re-connect to it via the Jupyter dashboard). You need to choose "Close and Halt" from the Jupyter file menu.

[julia-users] Re: Performance of release 0.5.0 v 0.4.6.0

2016-10-13 Thread Steven G. Johnson
runtests() runs correctness tests, not performance tests. 0.5 added many more tests, hence they are slower.

[julia-users] Re: What's the status of SIMD instructions from a user's perspective in v0.5?

2016-10-13 Thread Florian Oswald
ok thanks! and so I should define my SIMD-able function like function vadd!{N,T}(xs::Vector{T}, ys::Vector{T}, ::Type{Vec{N,T}}) @assert length(ys) == length(xs) @assert length(xs) % N == 0 @inbounds for i in 1:N:length(xs) xv = vload(Vec{N,T}, xs, i) yv =

[julia-users] Dictionary type inference

2016-10-13 Thread Steven G. Johnson
Probably there is a missing promote_type rule Try promote_type(typeof(sin),typeof(cos)) ... if this gives Any, please file an issue. (I would try it myself, but am on my phone.)

[julia-users] Re: why do we have Base.isless(a, ::NAtype) but not Base.isless(a, ::Nullable)?

2016-10-13 Thread Florian Oswald
I mean, do I have to cycle through the array and basically clean it of #NULL before findign the maximium or is there another way? On Thursday, 13 October 2016 15:42:02 UTC+2, Florian Oswald wrote: > > i'm trying to understand why we don't have something similar in terms of > comparison for

[julia-users] How to properly close IJulia Notebooks (so that finalizers are run)

2016-10-13 Thread Fabian Gans
I am using julia-0.5.0 and IJulia 1.3.2 When I close a Notebook through File-> Close and Halt or through Kernel->Restart, my object finalizers don't seem to be run. A min-script to reproduce this would be: type MyType end x=MyType() finalizer(x,x->open(f->println(f,"Finalizer did

[julia-users] why do we have Base.isless(a, ::NAtype) but not Base.isless(a, ::Nullable)?

2016-10-13 Thread Florian Oswald
i'm trying to understand why we don't have something similar in terms of comparison for Nullable as we have for DataArrays NAtype (below). point me to the relevant github conversation, if any, is fine. How would I implement methods to find the maximium of an Array{Nullable{Float64}}? like so?

Re: [julia-users] Re: canonical binary representation for Array

2016-10-13 Thread Steven G. Johnson
write on a numeric array will output the raw bytes, i.e. Column-major data in the native byte order. Matlab arrays are also column major, so reading a Matlab-produced binary format is probably straightforward, but you have to be careful of the byte order. Obviously, you'll have to read the

[julia-users] Performance of release 0.5.0 v 0.4.6.0

2016-10-13 Thread Jeremy Cavanagh
Hi All, Congratulations are due to all those who prepared the 0.5.0 release. However, I am somewhat confused by the new release's performance. Out of interest I did a single run of Base.runtests() using both release 0.5.0 and release 0.4.6 with some rather surprising and disappointing results.

Re: [julia-users] Re: canonical binary representation for Array

2016-10-13 Thread Michele Zaffalon
I guess I was not clear enough: I cannot change the file format, so a Julia-specific solution is not going to work. On Thu, Oct 13, 2016 at 2:54 PM, FANG Colin wrote: > Are you trying to serialise Julia objects? Why don't you try json or > msgpack or so as your encoding? >

[julia-users] Re: What's the status of SIMD instructions from a user's perspective in v0.5?

2016-10-13 Thread Valentin Churavy
If you want explicit simd the best way right now is the great SIMD.jl package https://github.com/eschnett/SIMD.jl it is builds on top of VecElement. In many cases we can perform automatic vectorisation, but you have to start Julia with -O3 On Thursday, 13 October 2016 22:15:00 UTC+9, Florian

[julia-users] Re: How to write data to new line in outfile.txt

2016-10-13 Thread jmarcellopereira
Hello Use data frame that is much better than txt file. Em quinta-feira, 13 de outubro de 2016 08:08:53 UTC-3, program...@gmail.com escreveu: > > How to write data to new line in outfile.txt file, in this script data i > still writing in the same line > > io=open("outfile.txt", "w" >

[julia-users] What's the status of SIMD instructions from a user's perspective in v0.5?

2016-10-13 Thread Florian Oswald
i see on the docs http://docs.julialang.org/en/release-0.5/stdlib/simd-types/?highlight=SIMD that there is a vecElement that is build for SIMD support. I don't understand if as a user I should construct vecElement arrays and hope for some SIMD optimization? thanks.

Re: [julia-users] ANN: RawArray.jl

2016-10-13 Thread Páll Haraldsson
[Explaining more, and correcting typo..] On Sunday, October 9, 2016 at 12:04:35 AM UTC, Páll Haraldsson wrote: > FLIF is not a replacement for all uses (multidimensional, would be > interesting to know if could to be extended to..), but seem to be the best > option for non-lossy image

[julia-users] Re: canonical binary representation for Array

2016-10-13 Thread Páll Haraldsson
RawArray.jl (or alternatives..) may be what you need, at least helpful/informative discussion (and looking at code, maybe telling you what you need to know): https://groups.google.com/forum/#!searchin/julia-users/rawarray%7Csort:relevance/julia-users/ulkiPhGcv-0/TqyX8g9LBwAJ On Thursday,

Re: [julia-users] python-like generators?

2016-10-13 Thread Mauro
Isn't this the same as tasks in Julia? http://docs.julialang.org/en/release-0.5/stdlib/parallel/ Although, note that their performance is not on par with start-next-done iteration. On Thu, 2016-10-13 at 14:46, Neal Becker wrote: > julia-0.5 supports generator expressions,

Re: [julia-users] python-like generators?

2016-10-13 Thread Tom Breloff
I've used them, and I think a Julia Task is a better comparison. So while the syntax is different you can accomplish the same thing. On Thursday, October 13, 2016, Neal Becker wrote: > julia-0.5 supports generator expressions, ala python, which is very nice. > > Any

[julia-users] Re: canonical binary representation for Array

2016-10-13 Thread FANG Colin
Are you trying to serialise Julia objects? Why don't you try json or msgpack or so as your encoding? The default serialize could also work but you need to be careful it doesn't guarantee version safe.

[julia-users] Re: Transpose view of a matrix

2016-10-13 Thread Andreas Noack
The plan is that the transpose function will return this eventually and within the 1.0 time frame but it's not done yet. It will probably not be a PermutedDimsArray though because it wouldn't do the right thing for the conjugate transpose of a complex matrix. On Wednesday, October 12, 2016 at

[julia-users] python-like generators?

2016-10-13 Thread Neal Becker
julia-0.5 supports generator expressions, ala python, which is very nice. Any thoughts on supporting the more general python generator functions, as described e.g.: https://wiki.python.org/moin/Generators? I haven't used them much myself (well, once), but they seem a really cool idea.

[julia-users] Re: How do I move an array of strings from C to Julia?

2016-10-13 Thread Páll Haraldsson
I find it likely that this supports my case (there could be other reasons.. but Java's FFI is built on JNI, and ultimately on ccall). http://juliainterop.github.io/JavaCall.jl/ "Multidimensional arrays, either as arguments or return values are not supported. Since Java uses Array-of-Arrays,

Re: [julia-users] How to write data to new line in outfile.txt

2016-10-13 Thread programistawpf
THX, :) W dniu czwartek, 13 października 2016 14:13:14 UTC+2 użytkownik Michele Zaffalon napisał: > > What about a newline with write(f, "\n") before writing the next block of > data into the file? > > On Thu, Oct 13, 2016 at 1:08 PM, > wrote: > >> How to write data to

[julia-users] Re: How do I move an array of strings from C to Julia?

2016-10-13 Thread Páll Haraldsson
On Wednesday, October 12, 2016 at 4:19:17 PM UTC, Michael Eastwood wrote: > > So what is the best way to get an array of strings from C back into Julia? > I want Julia to take ownership of the memory. Do I need to query the length > of each string ahead of time? > I'm kind of guessing here, but

Re: [julia-users] How to write data to new line in outfile.txt

2016-10-13 Thread Michele Zaffalon
What about a newline with write(f, "\n") before writing the next block of data into the file? On Thu, Oct 13, 2016 at 1:08 PM, wrote: > How to write data to new line in outfile.txt file, in this script data i > still writing in the same line > > io=open("outfile.txt",

Re: [julia-users] Re: Julia and the Tower of Babel

2016-10-13 Thread Páll Haraldsson
On Sunday, October 9, 2016 at 9:59:12 AM UTC, Michael Borregaard wrote: > > > So when I came to julia I was struck by how structured the package > ecosystem appears to be, yet, in spite of the micropackaging. [..] I think > there are a number of reasons for this difference, but I also believe

[julia-users] Re: Julia and the Tower of Babel

2016-10-13 Thread Páll Haraldsson
On Friday, October 7, 2016 at 3:35:46 PM UTC, Gabriel Gellner wrote: > `atol/rtol` versus > > `abstol/reltol` versus `abs_tol/rel_tol` > For the latter "versus" at least (and other examples), this would be solved by style-insensitivity, as in Nimrod (or Nim) language, the only one I've

[julia-users] How to write data to new line in outfile.txt

2016-10-13 Thread programistawpf
How to write data to new line in outfile.txt file, in this script data i still writing in the same line io=open("outfile.txt", "w" o=open("dump.txt") for i=1:100 temp=readline(o) poz=findin(temp,",")[3] write(io, temp[1:poz-1]) end close(o) close(io) Paul

[julia-users] Re: Is 0.6(nightlies) pretty much broken?

2016-10-13 Thread Neal Becker
Seems to be fixed with rm -rf ~/.julia Strange that Pkg.rm/Pkg.add didn't seem to fix it Neal Becker wrote: > Seems like nothing I try is working now: > Version 0.6.0-dev.896 (2016-10-07 08:16 UTC) > Commit 38a63bd* (3 days old master) > x86_64-redhat-linux > > julia> using Polynomials > INFO:

[julia-users] Re: What is really "big data" for Julia (or otherwise), 1D or multi-dimensional?

2016-10-13 Thread Páll Haraldsson
On Thursday, October 13, 2016 at 1:17:32 AM UTC, cdm wrote: > > > do you have traditional main memory RAM in mind here ... ? > Yes (how big arrays people are working with; but also if bigger files, how big), and no: > with flash memory facilitating tremendous advances > in (near) in-memory

[julia-users] HDF5, how to save string data to file?

2016-10-13 Thread programistawpf
how to save string data to file? What wrong ? julia> dset = d_create(g, "/dane", datatype(String), dataspace(nol)) ERROR: `datatype` has no method matching datatype(::Type{String}) julia> dset = d_create(g, "/dane", datatype(UTF8String), dataspace(nol)) ERROR: `datatype` has no method matching

[julia-users] Control package name prefix in expressions returned by macros

2016-10-13 Thread Helios De Rosario
Hi, I would like to know how to control the way in which package name prefixes are added in the expressions returned by macros. Let's take a simple example macro, which takes an function call and replaces the first argument by a function "foo" of that argument: macro composefoo(ex) x =

[julia-users] Re: How to convert a jpeg base64 encoded string to Image

2016-10-13 Thread lovebufan
no, it does not... just because "image/jpeg" will produce an error. On Thursday, October 13, 2016 at 3:55:22 PM UTC+8, Andreas Lobinger wrote: > > Why does stringmime("image/png" produce jpeg? > > On Thursday, October 13, 2016 at 7:44:42 AM UTC+2, love...@gmail.com > wrote: >> >> I have some

[julia-users] Re: I have two data collection for mapreduce() vs. generator, which is correct/better implementation? (Julia 0.5)

2016-10-13 Thread DNF
That seems right: julia> f(a, p) 781.4987197415827 julia> f(reverse(a), reverse(p)) 781.4987197415213 But I'm pretty surprised the effect is that big. On Thursday, October 13, 2016 at 9:49:00 AM UTC+2, Kristoffer Carlsson wrote: > > I think you will not add the numbers in the same order

[julia-users] Re: Dictionary type inference

2016-10-13 Thread Michele Zaffalon
With one element only, type inference gives: julia> typeof(Dict(sin => sin)) Dict{Base.#sin,Base.#sin} On Thursday, October 13, 2016 at 9:26:37 AM UTC+2, David van Leeuwen wrote: > > Hello, > > I have stumbled across the following type inference issue for `Dict`s in > julia-v0.5: > > julia>

[julia-users] Re: How to convert a jpeg base64 encoded string to Image

2016-10-13 Thread Andreas Lobinger
Why does stringmime("image/png" produce jpeg? On Thursday, October 13, 2016 at 7:44:42 AM UTC+2, love...@gmail.com wrote: > > I have some jpeg images saved as base64 encoded strings (such strings can > be produced by ```stringmime("image/png", convert(Image, rand(5,5)))``` > using Images.jl).

[julia-users] Re: I have two data collection for mapreduce() vs. generator, which is correct/better implementation? (Julia 0.5)

2016-10-13 Thread Kristoffer Carlsson
I think you will not add the numbers in the same order when SIMD is used. Floating point addition is not commutative so you get slightly different answers. On Thursday, October 13, 2016 at 9:14:31 AM UTC+2, DNF wrote: > > This is about twice as fast with, with @simd: > > function f2(a, p) >

[julia-users] Dictionary type inference

2016-10-13 Thread David van Leeuwen
Hello, I have stumbled across the following type inference issue for `Dict`s in julia-v0.5: julia> typeof(Dict(sin => sin, cos => cos)) Dict{Any,Any} julia> typeof(Dict(x => x for x in [sin, cos])) Dict{Function,Function} In Julia-0.5, functions got their own type. I was surprised to see

[julia-users] Re: I have two data collection for mapreduce() vs. generator, which is correct/better implementation? (Julia 0.5)

2016-10-13 Thread DNF
This is about twice as fast with, with @simd: function f2(a, p) @assert length(a) == length(p) s = 0.0 @simd for i in eachindex(a) @inbounds s += abs((a[i] - p[i])/a[i]) end return 100s/length(a) end julia> @benchmark f(a, p) BenchmarkTools.Trial: samples:

[julia-users] Re: How to convert a jpeg base64 encoded string to Image

2016-10-13 Thread lovebufan
Well, by trial & error, I found the correct function is ``readblob``. On Thursday, October 13, 2016 at 1:44:42 PM UTC+8, love...@gmail.com wrote: > > I have some jpeg images saved as base64 encoded strings (such strings can > be produced by ```stringmime("image/png", convert(Image,

[julia-users] canonical binary representation for Array

2016-10-13 Thread Michele Zaffalon
I need to write a 4 dimensional a array to file and use write(f, a). What is the canonical binary representation of a ? It looks like the the line above is equivalent to write(f, reshape(a, prod(size(a Is the

Re: [julia-users] Filtering DataFrame with a function

2016-10-13 Thread Jacob Quinn
I think the Julia ecosystem is evolving tremendously in this respect. I think originally, there were a lot of these "mammoth" packages that tried to provide everything and the kitchen sink. Unfortunately, this has led to package bloat, package inefficiencies in terms of load times and