[julia-users] Re: How to vonvet Char to Float64, what wrong ?

2016-11-25 Thread Jeffrey Sarnoff
what is `a` and `typeof(a)` where `a = sort(unique(dane[:,4]))[3])` On Friday, November 25, 2016 at 3:35:21 AM UTC-5, program...@gmail.com wrote: > How to convert Char to Float? What wrong ? > > julia> eltype(sort(unique(dane[:,4]))[3]) > Char > > julia> (sort(unique(dane[:,4]))[3]) >

[julia-users] Re: How to vonvet Char to Float64, what wrong ?

2016-11-25 Thread Jeffrey Sarnoff
if `a = sort(unique(dane[:,4])[3])`, what is `(a, typeof(a))`? On Friday, November 25, 2016 at 3:35:21 AM UTC-5, program...@gmail.com wrote: > How to convert Char to Float? What wrong ? > > julia> eltype(sort(unique(dane[:,4]))[3]) > Char > > julia> (sort(unique(dane[:,4]))[3]) > "-.097" > >

[julia-users] Re: What is the value of time_ns() before it wraps?

2016-11-24 Thread Jeffrey Sarnoff
On Thursday, November 24, 2016 at 11:30:36 PM UTC-5, Jeffrey Sarnoff wrote: > The help says "Get the time in nanoseconds. The time corresponding to 0 is > undefined, and wraps every 5.8 years." I want to know the largest UInt64 > value that time_ns() can return: the (nonzero

[julia-users] What is the value of time_ns() before it wraps?

2016-11-24 Thread Jeffrey Sarnoff
The help says "Get the time in nanoseconds. The time corresponding to 0 is undefined, and wraps every 5.8 years." I want to know the largest UInt64 value that time_ns() can return: the (nonzero) value which would be followed by 0x01%UInt64.

[julia-users] Re: Indexing problem

2016-11-16 Thread Jeffrey Sarnoff
good things to know about how indexing works The indices for a Vector, or a column or row of a Matrix start at *1* ``` length(avector) # gets the number of elements in avector avector[1]# gets the first item in avector avector[end] # gets the final item in avector

[julia-users] Re: Why construction of Dict via generator is not type-stable?

2016-11-14 Thread Jeffrey Sarnoff
(afaik requires @generated functions to take everything to a type stable post-precompilation state) assuming (a1) If `typeof(x) == typeof(y)` then `typeof( t(x) )` is the same as `typeof( t(y) )`. (a2) If `typeof(x) != typeof(y)` then `typeof( t(x) )` might differ from `typeof( t(y) )`.

Re: [julia-users] Re: [Announcement] Moving to Discourse (Statement of Intent)

2016-11-14 Thread Jeffrey Sarnoff
+1 move ["don't think twice, its alright" -- Bob Dylan] On Thursday, November 10, 2016 at 3:26:59 AM UTC-5, Patrick Kofod Mogensen wrote: > > My take: make the move or don't. > > Stuff like forwarding posts only creates confusion, and people start > answering things that aren't seen by the

[julia-users] Re: entering an unicode symbol ?

2016-11-05 Thread Jeffrey Sarnoff
```julia u4DC0 = '\u4DC0' u4DC0 = '\U4DC0' ``` On Friday, November 4, 2016 at 8:01:57 AM UTC-4, Henri Girard wrote: > > Hi, > I want to enter a list of unicode like this one : > > U+4DC0 how to do it ? > regards > Henri > > > > >

Re: [julia-users] Re: how to report errors with context

2016-11-04 Thread Jeffrey Sarnoff
but I think I am on the > right track. > > [1] http://joeduffyblog.com/2016/02/07/the-error-model/ > > On Thu, Nov 03 2016, Tamas Papp wrote: > > > Unfortunately, the data is too large to fit in memory -- I must process > > it in a stream. > > > > I will

Re: [julia-users] Re: how to report errors with context

2016-11-03 Thread Jeffrey Sarnoff
or split the string into rows of strings and rows into individual value-keeper strings and put that into a matrix of strings and process the matrix, tracking row and col and checking for "error" On Thursday, November 3, 2016 at 5:15:06 AM UTC-4, Jeffrey Sarnoff wrote: > &

Re: [julia-users] Re: how to report errors with context

2016-11-03 Thread Jeffrey Sarnoff
uires two try-catch-end blocks with rethrow. > > Extremely convoluted mess with rethrow here: > https://gist.github.com/tpapp/6f67ff36a228f47a1792e011d9b0fc13 > > It does what I want, but it is ugly. A simpler solution would be > appreciated. I am sure I am missing something. &

Re: [julia-users] Parsing complex numbers

2016-11-02 Thread Jeffrey Sarnoff
+1 (imo) It would be a real contribution to Julia's way of just working well with this as with that for one with the requisite skill to make quick work of implementing parse(Complex, complex) and parse(Rational, rational) into v0.6 On Friday, October 28, 2016

[julia-users] Re: How do I use Guide.yticks() with a log scale?

2016-11-02 Thread Jeffrey Sarnoff
Try posting your question/concern here: discussing Plots.jl On Monday, October 24, 2016 at 4:14:45 PM UTC-4, Dean Schulze wrote: > > > When I plot the DataFrame below using Scale.y_log10 the y-axis has ticks > for half powers of 10 (e.g. 10^5.5). The

[julia-users] Re: how to report errors with context

2016-11-02 Thread Jeffrey Sarnoff
Tamas, running this typealias AkoString Union{String, SubString{String}} function parsefield{T <: Real, S <: AkoString}(::Type{T}, str::S) result = T(0) try result = parse(T, str) catch ArgumentError errormsg = string("Failed to parse \"",str,"\" as type ", T)

[julia-users] Re: Sys.CPU_CORES

2016-11-02 Thread Jeffrey Sarnoff
It works for me on Linux and Windows. On Wednesday, November 2, 2016 at 9:29:28 PM UTC-4, Júlio Hoffimann wrote: > > Hi, > > Sys.CPU_CORES returns the number of physical cores or processing units? Is > it portable across different OS? > > -Júlio >

Re: [julia-users] building julia 0.5.0 on FreeBSD 11

2016-11-02 Thread Jeffrey Sarnoff
Kostas, Please post the location of those patches for others' reference. Thanks On Wednesday, November 2, 2016 at 6:29:40 PM UTC-4, Kostas Oikonomou wrote: > > Thanks, I found an entire set of patches. > > On Sunday, October 30, 2016 at 10:28:40 PM UTC-4, Isaiah wrote: >> >> Just guessing here

[julia-users] Re: Calling Julia code from Python

2016-11-02 Thread Jeffrey Sarnoff
Alexi, While you may want it to be otherwise, Steven is right. There have been a few programming languages that were designed to be useful with very little instruction. Julia, Python, Java, and most other modern languages are not that way. And while it would be great if there really were a

Re: [julia-users] Recursive data structures with Julia

2016-11-02 Thread Jeffrey Sarnoff
John, Currently (v0.5) : Which uses of non-concrete types are performance friendly? What ways of using abstract types are a drag on performance? Regards, Jeffrey On Sunday, October 30, 2016 at 9:38:15 PM UTC-4, John Myles White wrote: > > Working with non-concrete types is often a problem for

[julia-users] Re: Error calculating eigs of pentadiagonal matrix.

2016-11-02 Thread Jeffrey Sarnoff
I have one suggestion: see if Andreas' LinearAlgebra.jl does any better. Pkg.clone(""https://github.com/andreasnoack/LinearAlgebra.jl;) using LinearAlgebra # ... If there is still difficulty, you may look at eigenGeneral.jl

[julia-users] Re: jl_stat_ctime

2016-11-01 Thread Jeffrey Sarnoff
, stat_time * 1.0e9) return FineComputerTime(nanosecs) end On Tuesday, November 1, 2016 at 3:44:07 PM UTC-4, Jeffrey Sarnoff wrote: > > Look at the help for tic() and toc(). > Do you care about interfacing directly with jl_ routines? If not, and you > are trying to make your

[julia-users] Re: jl_stat_ctime

2016-11-01 Thread Jeffrey Sarnoff
Look at the help for tic() and toc(). Do you care about interfacing directly with jl_ routines? If not, and you are trying to make your own harness ... perhaps this would help: #= Using immutable rather than type with fields that are simple and immediate values keeps information directly

Re: [julia-users] Re: Nemo AcbField error

2016-10-28 Thread Jeffrey Sarnoff
Bill, Consider distributing windows_build.txt ready to use with 64-bit machines and giving the changes to be made for 32-bit machines in comments. That reverses the current orientation, and fits more of the likely user base. I think that change gives you this: Note that windows_build.txt

Re: [julia-users] Re: Input a data from the console

2016-10-27 Thread Jeffrey Sarnoff
or, the more specific function read_integer(prompt::String="")::Int print(prompt) str = chomp(readline()) return parse(Int, str) end On Friday, October 28, 2016 at 1:17:54 AM UTC-4, Jeffrey Sarnoff wrote: > > with Yichao's help, > > > > typealias ParseableN

Re: [julia-users] Re: Input a data from the console

2016-10-27 Thread Jeffrey Sarnoff
d to standard output without a trailing newline before reading the input. days = input(Int, "How many days? ") """ function input{T<:ParseableNumber}(::Type{T}, prompt::String = "")::T print(prompt) str = chomp(readline()) return parse(T, str) end

Re: [julia-users] Re: Input a data from the console

2016-10-27 Thread Jeffrey Sarnoff
Thank you, that is helpful. On Friday, October 28, 2016 at 12:22:37 AM UTC-4, Yichao Yu wrote: > > On Fri, Oct 28, 2016 at 12:01 AM, Jeffrey Sarnoff > <jeffrey...@gmail.com > wrote: > > And although readline() yields a String, if you are asking for, say, a > Int >

[julia-users] Re: Input a data from the console

2016-10-27 Thread Jeffrey Sarnoff
And although readline() yields a String, if you are asking for, say, a Int or a Float64 value, you can add a second version of `input`: ``` typealias ParseableNumber Union{Float64, Float32, Signed, Unsigned, Bool} """ `input{T<:ParseableNumber}(::Type{T}, prompt::String="")::T` Read an

Re: [julia-users] Re: Nemo AcbField error

2016-10-27 Thread Jeffrey Sarnoff
ill. > > On 27 October 2016 at 21:39, digxx <diger_d...@hotmail.com> wrote: > >> >> >> Am Donnerstag, 27. Oktober 2016 21:25:54 UTC+2 schrieb Jeffrey Sarnoff: >>> >>> You are home free! Try arbfield(1) twice .. >>> >> >> Yes

Re: [julia-users] Re: Nemo AcbField error

2016-10-27 Thread Jeffrey Sarnoff
You are home free! Try arbfield(1) twice .. On Thursday, October 27, 2016 at 3:22:39 PM UTC-4, digxx wrote: > > > > Am Donnerstag, 27. Oktober 2016 20:24:19 UTC+2 schrieb Bill Hart: >> >> It could well be libflint-13.dll is the problem. It's just a copy of the >> other flint dll, so you can

Re: [julia-users] Re: Nemo AcbField error

2016-10-27 Thread Jeffrey Sarnoff
2016 at 1:51:31 PM UTC-4, digxx wrote: > > > > Am Donnerstag, 27. Oktober 2016 19:33:22 UTC+2 schrieb Jeffrey Sarnoff: >> >> libflint-13.dll appears to be a copy of libflint.dll with a different >> name and you can try copying libflint.dll to libflint-13.dll >> The .git

Re: [julia-users] Re: Nemo AcbField error

2016-10-27 Thread Jeffrey Sarnoff
It may be helpful to download https://eternallybored.org/misc/wget/current/wget64.exe and copy it `wget.exe` then put that file somewhere in your Path (not in the Nemo subdirectories). On Thursday, October 27, 2016 at 1:33:22 PM UTC-4, Jeffrey Sarnoff wrote: > > libflint-13.dll a

Re: [julia-users] Re: Nemo AcbField error

2016-10-27 Thread Jeffrey Sarnoff
libgmp-16.dll and not some other version in that directory. On Thursday, October 27, 2016 at 12:57:57 PM UTC-4, digxx wrote: > > Actually: > libflint-13.dll 14,156 KB > is missing for me > > also is .git\ > under Nemo > > Am Donnerstag, 27. Oktober 2016 18:32:48 UT

Re: [julia-users] Re: Nemo AcbField error

2016-10-27 Thread Jeffrey Sarnoff
With 64-bit Win7, in my directory for Julia packages under Nemo: .git\ benchmarks\ deps\ doc\ local\ src\ test\ .gitignore .travis.yml appveyor.yml LICENSE.md README.md REQUIRE todo.txt windows_build.txt in deps: antic\ arb\ flint2\ build.jl mpfr-3.1.3.tar.bz2 mpir-2.7.2.tar.bz2

[julia-users] Re: promote_op seems flakey (in a pure context)

2016-10-27 Thread Jeffrey Sarnoff
Do you have a minimal example? On Tuesday, October 25, 2016 at 8:26:46 PM UTC-4, Andy Ferris wrote: > > I seem to be getting non-deterministic behaviour from `promote_op`, e.g. > where the output of the function is different at the REPL, in a function > and in a generated function. > > Inside

[julia-users] Re: ANN: ParallelAccelerator v0.2 for Julia 0.5 released.

2016-10-27 Thread Jeffrey Sarnoff
With appreciation for Intel Labs' commitment, our thanks to the people who landed v0.2 of the ParallelAccelerator project. On Wednesday, October 26, 2016 at 8:13:38 PM UTC-4, Todd Anderson wrote: > > Okay, METADATA with ParallelAccelerator verison 0.2 has been merged so if > you do a standard

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread Jeffrey Sarnoff
Yes. Jeffrey Sarnoff > On Oct 26, 2016, at 8:04 PM, 'Bill Hart' via julia-users > <julia-users@googlegroups.com> wrote: > > The only thing I can think of to suggest is try it again from scratch in > Julia-0.4 so we can rule out the dlls being corrupted on our website

[julia-users] One more effort

2016-10-26 Thread Jeffrey Sarnoff
I can compare my dirs and dll names with yours and we can replay the cold startup -- tomorrow. I am away. Jeffrey Sarnoff

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread Jeffrey Sarnoff
you commented out too much -- try the other way uncomment the Nemo build file and remove the old git-bash and install the new git -- etc. On Wed, Oct 26, 2016 at 3:17 PM, digxx wrote: > > > Am Mittwoch, 26. Oktober 2016 20:51:48 UTC+2 schrieb Bill Hart: >> >> I mean as

[julia-users] Re: How do the file name / module name mapping rules work?

2016-10-26 Thread Jeffrey Sarnoff
A cleaner tack, for the moment is follow this general approach package name: MyPackagedModule.jl package content on github repositiory: https://github.com//MyPackagedModule.jl files/directories at the top level of the repository the files LICENSE README.md at the top level of the

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread Jeffrey Sarnoff
Your question is not at all silly. Forget about the gitbash installation -- *remove it*. Download the new git installer from : this web page and when it has downloaded, run it. Then open a terminal window and type `git --version`. If you see something

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread Jeffrey Sarnoff
for Nemo still relies on > Git being available on your machine. > > Bill. > > On 26 October 2016 at 01:43, Jeffrey Sarnoff <jeffrey...@gmail.com > > wrote: > >> send me all the messages output, please >> >> On Tue, Oct 25, 2016 at 7:41 PM, Jeffrey Sarnoff &

Re: [julia-users] Re: Nemo AcbField error

2016-10-25 Thread Jeffrey Sarnoff
send me all the messages output, please On Tue, Oct 25, 2016 at 7:41 PM, Jeffrey Sarnoff <jeffrey.sarn...@gmail.com> wrote: > What happens if you restart that Julia from the windows menu (if that does > not launch cygwin terminal) > and do >Pkg.build("Nemo") again? &

Re: [julia-users] Re: Nemo AcbField error

2016-10-25 Thread Jeffrey Sarnoff
What happens if you restart that Julia from the windows menu (if that does not launch cygwin terminal) and do >Pkg.build("Nemo") again? On Tue, Oct 25, 2016 at 7:37 PM, digxx wrote: > Sry but I followed precisely ur steps i.e.: > I installed a completely new version in

[julia-users] ANN: best practices choosing and using names

2016-10-25 Thread Jeffrey Sarnoff
from the introduction: It is easier to understand what `facial_recognition` does than it is to > understand what `facer` does. These brief guides collect information on best practices and sound > approaches using names with Julia. The material is available here

[julia-users] ANN: best practices choosing and using names

2016-10-25 Thread Jeffrey Sarnoff
from the introduction: It is easier to understand what `facial_recognition` does than it is to > understand what `facer` does. These brief guides collect information on best practices and sound > approaches using names with Julia. The material is available

[julia-users] Re: Comprehension (generator) with statement IF and the number of true

2016-10-25 Thread Jeffrey Sarnoff
this change saves some space: `count_zeros = length( find(x->x==0.0, actuals) )` On Tuesday, October 25, 2016 at 4:48:29 AM UTC-4, Jeffrey Sarnoff wrote: > > As given above, the time is in sum_reldiffs, the space is in the > count_zeros. > > On Tuesday, October 25, 2016 a

[julia-users] Re: parse Unicode string to Float64

2016-10-25 Thread Jeffrey Sarnoff
I got this log file: Circuit: * C:\Users\Jeff\Documents\LTspiceXVII\examples\test.asc Direct Newton iteration for .op point succeeded. current: i(r1)=2.5 Date: Tue Oct 25 03:55:44 2016 Total elapsed time: 0.134 seconds. tnom = 27 temp = 27 method = modified trap totiter = 2091 traniter = 2088

[julia-users] Re: Comprehension (generator) with statement IF and the number of true

2016-10-25 Thread Jeffrey Sarnoff
This may do what you want. function mapeBase_v3(actuals::Vector{Float64}, forecasts::Vector{Float64}) # actuals - actual target values # forecasts - forecasts (model estimations) sum_reldiffs = sumabs((x - y) / x for (x, y) in zip(actuals, forecasts) if x != 0.0) # Generator count_zeros =

[julia-users] Re: parse Unicode string to Float64

2016-10-25 Thread Jeffrey Sarnoff
I downloaded that software, did you create that log file? If so, how? It is likely that what is being stored in the log file is not a sequence of numbers in a vanilla format. So parsing it as a sequence of strings is not going to work. from their help: OK, that works for bitmaps, but can

[julia-users] Re: parse Unicode string to Float64

2016-10-24 Thread Jeffrey Sarnoff
This is rather odd, your character codes are control codes (0x02 STX, start of text; 0x05 ENQ, enquiry) and really do not belong in a numeric string. Do all the entries use that pattern "\x002\anumber.\x005\bnumber"? If so, and the intended number is anumber.bnumber, there would be a way. What

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

2016-10-24 Thread Jeffrey Sarnoff
Actually, all is good. The current docs do not take a stand on the use of case following an acronym. On Monday, October 24, 2016 at 1:38:39 PM UTC-4, Jeffrey Sarnoff wrote: > > update on package names that begin with an acronym .. following much > discussion, the rule which

[julia-users] Re: Trait for exactness of numbers

2016-10-24 Thread Jeffrey Sarnoff
for values, something like this may do: function isexact(x) if isa(x, Integer) || isa(x, Rational) true elseif isa(x, Complex) isExact(x.re) else false end end On Monday, October 24, 2016 at 2:09:09 PM UTC-4, jw3126 wrote: > > A couple of times I was

Re: [julia-users] Re: Nemo AcbField error

2016-10-24 Thread Jeffrey Sarnoff
and just run julia from the terminal, not cygwin On Monday, October 24, 2016 at 4:08:26 PM UTC-4, Jeffrey Sarnoff wrote: > > It is not clear to me what the difference is in your install and what I > did. I can do r=ArbField(64); r(1) .. there is a warning the first time, >

Re: [julia-users] Re: Nemo AcbField error

2016-10-24 Thread Jeffrey Sarnoff
It is not clear to me what the difference is in your install and what I did. I can do r=ArbField(64); r(1) .. there is a warning the first time, but it works. If you want, go back to the new installation and do > Pkg.build("Nemo") then (a) show us what it says [everything] and then try >

Re: [julia-users] Re: Nemo AcbField error

2016-10-24 Thread Jeffrey Sarnoff
4, Bill Hart wrote: > > We don't support Cygwin. The Nemo binaries are native Windows binaries. > > I was unaware there was a Cygwin version of Julia. > > Bill. > > On 24 October 2016 at 19:48, Jeffrey Sarnoff <jeffrey...@gmail.com > > wrote: > >> I tried th

Re: [julia-users] Re: Nemo AcbField error

2016-10-24 Thread Jeffrey Sarnoff
I tried this on windows, it worked: delete the directory Nemo (found with Pkg.dir() subdir Nemo)) delete the corresponding directory METADATA/Nemo (Pkg.dir("METADATA") subdir Nemo) and if they exist, .cache/Nemo, METADATA/.cache/Nemo restart Julia, do Pkg.update() >

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

2016-10-24 Thread Jeffrey Sarnoff
, October 14, 2016 at 3:15:44 PM UTC-4, Jeffrey Sarnoff wrote: > > Just clarifying: For a two part package name that begins with an acronym > and ends in a word > > the present guidance: > the acronym is to be uppercased and the second word is to be > capi

[julia-users] Re: Nemo AcbField error

2016-10-18 Thread Jeffrey Sarnoff
I do not get that error. Are you using the current versions of Julia nd Nemo? You may see a warning message with the first use each session. Here is a transcript:. Let me see yours, and the output of versioninfo(). > using Nemo > c = AcbField(64) Complex Field with 64 bits of precision and

[julia-users] Re: Nemo AcbField error

2016-10-17 Thread Jeffrey Sarnoff
The exported logic requires both the real and the imaginary parts be given. ComplexField = AcbField(64) complexValue = ComplexField(1, 0) On Monday, October 17, 2016 at 8:08:40 AM UTC-4, digxx wrote: > > push...

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

2016-10-16 Thread Jeffrey Sarnoff
One fact about big data is it keeps getting bigger. On Friday, October 14, 2016 at 1:00:35 PM UTC-4, Páll Haraldsson wrote: > > On Thursday, October 13, 2016 at 7:49:51 PM UTC, cdm wrote: >> >> from CloudArray.jl: >> >> "If you are dealing with big data, i.e., your RAM memory is not enough >> to

[julia-users] gathering advice on types

2016-10-16 Thread Jeffrey Sarnoff
Do you have words of wisdom, style, technique, efficiency or pragmatism regarding types in any of their forms (concrete, abstract, aliased, bits and parameters). We are gathering advice on types on gitter at JuliaPraxis .

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

2016-10-15 Thread Jeffrey Sarnoff
sion trees to wrap objects of certain types just > before printing seems to be working well. > > On Friday, October 14, 2016 at 4:23:27 AM UTC+2, Jeffrey Sarnoff wrote: >> >> I assume you meant x::T in type A{T}. Why do you want to do this: >> >>> Every time a Ra

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

2016-10-14 Thread Jeffrey Sarnoff
): the acronym is to be titlecased and the second word is to be capitalized, no separator. so: CssScripts, HtmlLinks What is behind the present guidance? On Saturday, October 8, 2016 at 8:42:05 AM UTC-4, Jeffrey Sarnoff wrote: > > I have created a new Organization on

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

2016-10-14 Thread Jeffrey Sarnoff
first pass at naming guidelines https://github.com/JuliaPraxis/Naming On Thursday, October 13, 2016 at 8:07:18 AM UTC-4, Páll Haraldsson wrote: > > 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

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

2016-10-13 Thread Jeffrey Sarnoff
l be called recursively > on all parts of the tree. Every time a Rational or Symbol or Bool is > encountered on any level, I want it to print differently than Base.show > does it. > > > On Tuesday, October 11, 2016 at 11:48:46 PM UTC+2, Jeffrey Sarnoff wrote: >> >

Re: [julia-users] how to do push! on a fieldname?

2016-10-11 Thread Jeffrey Sarnoff
Jeff's approach should be included in the performance hints doc On Tuesday, October 11, 2016 at 1:04:43 PM UTC-4, Jeff Bezanson wrote: > > If the performance of this matters, it will probably be faster to > iterate over `1:nfields(myt)`, as that will avoid (1) constructing the > array of

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

2016-10-11 Thread Jeffrey Sarnoff
t; I can't see a way around this. > > I'm not familiar with the idea of a fencing module. > > On Monday, October 10, 2016 at 11:30:18 PM UTC+2, Jeffrey Sarnoff wrote: >> >> You could wrap your redefinitions in a module M without exporting show >> explicitly. >> `

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

2016-10-10 Thread Jeffrey Sarnoff
You could wrap your redefinitions in a module M without exporting show explicitly. `using M` and accessing the your variation as `M.show` may give the localization you want. Should it not, then doing that within some outer working context, a fencing module, may add enough flexibility.

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

2016-10-09 Thread Jeffrey Sarnoff
JuliaPraxis is on github <https://github.com/JuliaPraxis> and gitter <https://gitter.im/JuliaPraxis/Lobby> ... bring our praxes. On Saturday, October 8, 2016 at 8:42:05 AM UTC-4, Jeffrey Sarnoff wrote: > > I have created a new Organization on github: *JuliaPraxis.* > E

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

2016-10-09 Thread Jeffrey Sarnoff
__JuliaPraxis__ is on [github](https://github.com/JuliaPraxis) and [gitter](https://gitter.im/JuliaPraxis/Lobby), welcoming growth.

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

2016-10-08 Thread Jeffrey Sarnoff
I have created a new Organization on github: *JuliaPraxis.* Everyone who has added to this thread will get an invitation to join, and so contribute. I will set up the site and let you know how do include your wor(l)d views. Anyone else is welcome to post to this thread, and I will send an

[julia-users] Re: multiple dispatch for operators

2016-10-07 Thread Jeffrey Sarnoff
Is there a way around the nonjuliance of Python within Python? Regards, Jeffrey On Friday, October 7, 2016 at 5:51:11 AM UTC-4, Sisyphuss wrote: > > In Julia,

[julia-users] Re: Representation of a material conditional (implication)

2016-10-06 Thread Jeffrey Sarnoff
acode. Julia is empty :-). > Can we hire some Martians to fill it up as we have ran out of Julians on > Earth? I'm happy I found this though. > > On Thursday, October 6, 2016 at 5:26:43 PM UTC-3, Jeffrey Sarnoff wrote: >> >> you are welcome to use >> implies(p::Bool, q::Boo

[julia-users] Re: Representation of a material conditional (implication)

2016-10-06 Thread Jeffrey Sarnoff
as-a-logical-operator#comment353607_184089> > > > Wikipedia also says the implication table is identical to that of ~p | q. > So instead just the below? > > julia> ~p | q > > false > > > I'll take that. > > On Thursday, October 6, 2016 at 4:08:00 PM

[julia-users] Re: Representation of a material conditional (implication)

2016-10-06 Thread Jeffrey Sarnoff
(the version using ifelse benchmarks faster on my system) On Thursday, October 6, 2016 at 3:05:50 PM UTC-4, Jeffrey Sarnoff wrote: > > here are two ways > > implies(p::Bool, q::Bool) = !(p & !q) > > implies(p::Bool, q::Bool) = ifelse(p, q, true) > > > > > On

[julia-users] Re: Representation of a material conditional (implication)

2016-10-06 Thread Jeffrey Sarnoff
here are two ways implies(p::Bool, q::Bool) = !(p & !q) implies(p::Bool, q::Bool) = ifelse(p, q, true) On Thursday, October 6, 2016 at 12:10:51 PM UTC-4, Kevin Liu wrote: > > How is an implication represented in Julia? > > >

[julia-users] Re: What is best practice for determining if a URL exists?

2016-10-06 Thread Jeffrey Sarnoff
ub.com/JuliaWeb/Requests.jl looks > reasonable > > On Thursday, October 6, 2016 at 2:01:54 PM UTC+2, Jeffrey Sarnoff wrote: >> >> ok, how (within Julia)? >> >> On Thursday, October 6, 2016 at 6:19:00 AM UTC-4, Johan Sigfrids wrote: >>> >>> I would pro

[julia-users] Re: What is best practice for determining if a URL exists?

2016-10-06 Thread Jeffrey Sarnoff
er 6, 2016 at 7:54:13 AM UTC+3, Jeffrey Sarnoff wrote: >> >> What is best practice for determining if a URL exists (known, >> retrievable, and not 404)? >> >

[julia-users] What is best practice for determining if a URL exists?

2016-10-05 Thread Jeffrey Sarnoff
What is best practice for determining if a URL exists (known, retrievable, and not 404)?

[julia-users] [ANN] TypedDelegation.jl

2016-10-01 Thread Jeffrey Sarnoff
When you want to use the fields of a type as arguments to a function or where you want to apply a type-wrapped version an imported operator, TypedDelegation is available. Eight macros are exported. Four are for use where one field within a type is needed, and four where two fields within a

[julia-users] Re: ANN: Julia v0.5.0 released!

2016-09-22 Thread Jeffrey Sarnoff
whoo-hoo! On Tuesday, September 20, 2016 at 5:08:44 AM UTC-4, Tony Kelman wrote: > > At long last, we can announce the final release of Julia 0.5.0! See the > release notes at > https://github.com/JuliaLang/julia/blob/release-0.5/NEWS.md for more > details, and expect a blog post with some

[julia-users] Re: julia installation broken

2016-09-16 Thread Jeffrey Sarnoff
I have had this happen, too. My suggestion is grounded in persistence rather than deep mastery of Julia's structural and file relationships. So someone else may have a more studied approach with some explaining. Until then, quit() Julia. To have an new install be really clean, first cd to

[julia-users] TIOBE Headline: Julia enters top 50 for the first time

2016-09-16 Thread Jeffrey Sarnoff
> It was a matter of time until Julia would hit the top 50. This month it > did so. The Julia programming language is meant for numerical computing. It > combines functional programming paradigms with high speed. In other words, > readable and stable code that performs. Chances are high that

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-15 Thread Jeffrey Sarnoff
Tom, the coarseness encountered when trying splatfields with type parameters: is it endemic and likely to persist or does this grow better in v0.6+? On Thursday, September 15, 2016 at 11:20:35 PM UTC-4, Tom Breloff wrote: > > I like splatfields but I think it's hard to make work with type

[julia-users] Re: Tracking down type instability

2016-09-15 Thread Jeffrey Sarnoff
Removing the @inlines may be useful while investigating. On Thursday, September 15, 2016 at 10:08:16 AM UTC-4, Ben Ward wrote: > > Hi I have two functions and a function which calls them: > > @inline function expected_distance(::Type{JukesCantor69}, p::Float64) > return -0.75 * log(1 - 4 * p

[julia-users] Brown Data Science blog: Register a Pkg, Why Concrete Types

2016-09-15 Thread Jeffrey Sarnoff
here are the links to Julia posts in Brown's Data Science blog: performance-and-type-stable-functions-in-julia registering-a-julia-package

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

2016-09-15 Thread Jeffrey Sarnoff
gt; > The type var is parameterized by 2 parameters, and the constructors take > care of the type computations, similar to Dan's suggestion. The invariant > checking you suggest could be added (but in my case would be a bit more > complicated) > > Jeffrey Sarnoff wrote: >

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

2016-09-15 Thread Jeffrey Sarnoff
Hi Neal, It is not good practice to leave out parts of the template that Dan offers. While it may work with some test data, it is very likely to fail in general use (particularly by/with use from other packages) and it may become incompatible in some specific manner with future releases. If

[julia-users] building a package without rebuilding a REQUIRES pkg

2016-09-14 Thread Jeffrey Sarnoff
If I have a package MainPkg with a REQUIRE file that holds "HelperPkg", and I do Pkg.add("HelperPkg");Pkg.build("HelperPkg"); is there a way to Pkg.add("MainPkg") without automatically rebuilding (the already current) HelperPkg?

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

2016-09-14 Thread Jeffrey Sarnoff
Thanks for updating your work. If there is a form that allows a function to be defined that has multidispatch over trait and also over type, please provide an example. (If it is already there, please direct me to that example). On Wednesday, September 14, 2016 at 6:04:04 AM UTC-4, Mauro wrote: >

[julia-users] Re: macro: with

2016-09-08 Thread Jeffrey Sarnoff
It is a good example for others who are looking to understand how to write a macro that facilitates field qualified access. On Wednesday, September 7, 2016 at 10:23:47 AM UTC-4, Tom Breloff wrote: > > Hey all... I just threw together a quick macro to save some typing when > working with the

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

2016-09-06 Thread Jeffrey Sarnoff
to delegate into/through and count of variables to operate over. I'd be happy to supply that with this. -- Jeffrey On Tuesday, September 6, 2016 at 9:56:31 PM UTC-4, Lyndon White wrote: > > Nice work. > I spotted https://github.com/Jeffrey-Sarnoff/Delegate.jl > last week and was

[julia-users] Any Julia pkgs using Polymer web components?

2016-09-06 Thread Jeffrey Sarnoff
If you know of work with Julia and Polymer, please share that information.

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

2016-09-06 Thread Jeffrey Sarnoff
to get the package, clone this git://github.com/JuliaArbTypes/DelegationMacros.jl.git <https://github.com/JuliaArbTypes/DelegationMacros.jl> On Tuesday, September 6, 2016 at 6:14:22 PM UTC-4, Jeffrey Sarnoff wrote: > > This offers updated macros to assist with delegating into/th

[julia-users] ANN: DelegationMacros v0.0.3

2016-09-06 Thread Jeffrey Sarnoff
This offers updated macros to assist with delegating into/through fields of a defined type. Two macros apply a function to field value(s) yielding the functional result; and two others do that and then rewrap the result in the source type. The exports are: @delegate_oneField,

Re: [julia-users] METADATA madness (my fault)

2016-09-06 Thread Jeffrey Sarnoff
..) to get you the correct > new tag. > > 5. You're good to do PkgDev.tag("ArbFloats", :minor) > > 6. Finally push your new tag to your ArbFloats repository -- git push > origin vX.Y.Z > > 7. make a METADATA PR from your fork of METADATA.jl > > > On Tue, Se

[julia-users] METADATA madness (my fault)

2016-09-06 Thread Jeffrey Sarnoff
I have yet to enter my package into the Julia ecosystem by publishing it or manually forking METADATA etc. As I was about to do that, I managed to destroy my local METADATA for the package. I can, by erasing the entry in METADATA (& cache & lib) use PkgDev to re-register the package, but when I

Re: [julia-users] New to Julia - Need some basic help

2016-09-05 Thread Jeffrey Sarnoff
and before all that, start with `julia> Pkg.update()` On Monday, September 5, 2016 at 5:47:10 PM UTC-4, Jeffrey Sarnoff wrote: > > Not easy to know what's happening there. > You might try: > > julia> quit() > julia> Pkg.rm("Cairo");Pkg.rm("Cairo"

Re: [julia-users] New to Julia - Need some basic help

2016-09-05 Thread Jeffrey Sarnoff
-7, Pigskin Ablanket >>>> wrote: >>>>> >>>>> So I tried all of this, but it looks like there was an error loading >>>>> the TK package. When I went to use Tk I got the following error message: >>>>> >>>>> ERROR

[julia-users] Re: Running Julia in Ubuntu

2016-08-31 Thread Jeffrey Sarnoff
click on this (doing that should start the downloading of a prebuit-for-arm copy of the development version of julia usually, you would not want the development version -- here, the alternative is to rebuild julia

[julia-users] Re: Announcing TensorFlow.jl, an interface to Google's TensorFlow machine learning library

2016-08-31 Thread Jeffrey Sarnoff
This is very nice, Jon. (interested parties) regards, Jeffrey

  1   2   3   4   5   6   >