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

2016-08-31 Thread Jeffrey Sarnoff
some of the interested parties On Wednesday, August 31, 2016 at 6:31:58 PM UTC-4, Jonathan Malmaud wrote: > > Hello, > I'm pleased to announce the

[julia-users] Re: I want to publish a package into the Julia Ecosystem

2016-08-30 Thread Jeffrey Sarnoff
, Jeffrey Sarnoff wrote: > > I tried the way given in the new latest [docs] ( > http://docs.julialang.org/en/latest/manual/packages/#man-manual-publish) > to deal with the METADATA manually. > It seems METADATA has outgrown github defaults: Sorry, we had to > truncate this directory t

[julia-users] Re: I want to publish a package into the Julia Ecosystem

2016-08-30 Thread Jeffrey Sarnoff
the list. I think it wrong to try to do that with missing METADATA, no? On Tuesday, August 30, 2016 at 4:51:09 PM UTC-4, Jeffrey Sarnoff wrote: > > Please give me a way that requires no imagination (mourning Gene Wilder). > > The github repository is here: > https://github.co

[julia-users] I want to publish a package into the Julia Ecosystem

2016-08-30 Thread Jeffrey Sarnoff
Please give me a way that requires no imagination (mourning Gene Wilder). The github repository is here: https://github.com/JuliaArbTypes/ArbFloats.jl I have read related: v0.4 does not help me, and generalities are unfamiliar to me. julia> PkgDev.publish() INFO: Validating METADATA INFO:

[julia-users] Re: Syntax to create nested types in Julia

2016-08-27 Thread Jeffrey Sarnoff
In an object-oriented language, an instance of a class is an element of computation (1 is an instance of the class Integer, and Integer is a subclass of Number). In a type-guided language, a realization of a type is an element of computation (1 is a realization of type Int, and type Int is a

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

2016-08-24 Thread Jeffrey Sarnoff
(before all that, rename the file to something simple like "everyday.jl") On Thursday, August 25, 2016 at 1:05:20 AM UTC-4, Jeffrey Sarnoff wrote: > > on an empty area of the windows desktop, RIGHT-CLICK and select new > > shortcut. > where it says type the location

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

2016-08-24 Thread Jeffrey Sarnoff
, Pigskin Ablanket wrote: >> >> Looks like his comment got deleted. Will try it today and follow up. >> Thanks again for all the help >> >> On Tuesday, August 23, 2016 at 10:44:19 PM UTC-4, Jeffrey Sarnoff wrote: >>> >>> As Steven mentioned, star

[julia-users] Re: Avoiding duplicate code when defining concrete subtypes of an abstract type

2016-08-24 Thread Jeffrey Sarnoff
You may be stepping twice where once does nicely. `abstract Currency` establishes Currency as an abstract type [in Julia, by convention, type names are capitalized; it helps others to stay with that practice]. If we want to use it `abstract Cash <: Currency` establishes Cash as

[julia-users] Re: algorithmic linear algebra question

2016-08-24 Thread Jeffrey Sarnoff
good thought -- I must be missing an expected function julia> #Pkg.clone("git://github.com/JuliaArbTypes/ArbFloats.jl.git") julia> using GenericSVD, ArbFloats julia> setprecision(ArbFloat,53); julia> n,m = 4,2; julia> srand(1); julia> X = randn(n,m) 4×2 Array{Float64,2}: 0.297288 -0.839027

[julia-users] algorithmic linear algebra question

2016-08-24 Thread Jeffrey Sarnoff
I have a numeric type where m is a square matrix of that type. I can do m', inv(m), det(m), lu(m), qr(m). svd, eig do not work as I have no svdfact! or eigfact! routines specialized for this type. Is there a way to combine those actions to make a function that does one or more of

[julia-users] Re: CDF of a multivariate normal distribution

2016-08-24 Thread Jeffrey Sarnoff
It is in Distributions.jl http://distributionsjl.readthedocs.io/en/latest/multivariate.html#multivariate-normal-distribution On Tuesday, August 23, 2016 at 12:45:33 PM UTC-4, james...@gmail.com wrote: > > Hi: > > Can anyone suggest how to compute the cdf of a multivariate normal > distribution

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

2016-08-23 Thread Jeffrey Sarnoff
, 2016 at 5:06:33 PM UTC-4, Pigskin Ablanket wrote: > > No problem. If you get a chance - great > > On Saturday, August 20, 2016 at 12:13:40 PM UTC-4, Jeffrey Sarnoff wrote: >> >> There is a way -- after the weekend. >> >> On Friday, August 19, 2016 at 8:04

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

2016-08-23 Thread Jeffrey Sarnoff
at 5:06 PM, Pigskin Ablanket <pigskinablan...@gmail.com > wrote: > No problem. If you get a chance - great > > > On Saturday, August 20, 2016 at 12:13:40 PM UTC-4, Jeffrey Sarnoff wrote: >> >> There is a way -- after the weekend. >> >> On Friday, August 19,

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

2016-08-20 Thread Jeffrey Sarnoff
? Not sure if you can know that or not. > > I was just looking for a way yo shortcut that long as heck include string > I have now. Cause I will run that daily and lord knows I mistyped it like > 10 times. > > On Friday, August 19, 2016 at 7:28:40 PM UTC-4, Jeffrey Sarnoff wro

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

2016-08-19 Thread Jeffrey Sarnoff
Works Thank you so much. Found my error in the code. > > I am curious if there is a way to shortcut the command as I would want to > run this daily to test and it seems like a lot to type correctly. > > Thanks for the time today > > On Friday, August 19, 2016 at 6:26:3

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

2016-08-19 Thread Jeffrey Sarnoff
\DFS\\NHL\\Julia\\code_for_Github.jl") > > Look correct? > > I made the changes to the paths in the file as well > > "C:\\Users\\JHerron\\Documents\\Documents\\Personal\\DFS\\NHL\\Julia\\example_skaters.csv" > > On Friday, August 19, 2016 at 6:01:50 PM UTC-4

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

2016-08-19 Thread Jeffrey Sarnoff
at boot.jl:261* > *in include_from_node1 at loading.jl:320* > > On Friday, August 19, 2016 at 4:49:16 PM UTC-4, Jeffrey Sarnoff wrote: >> >> the "i" in include should be lower case >> >> On Fri, Aug 19, 2016 at 3:17 PM, Pigskin Ablanket <pigs

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

2016-08-19 Thread Jeffrey Sarnoff
the "i" in include should be lower case On Fri, Aug 19, 2016 at 3:17 PM, Pigskin Ablanket wrote: > I tried Include("C:Users\\JHerron\\My_Documents\\My_Documents/Person > al\\DFS/NHL\\Julia/code_for_Github.jl") > (I hope that was what you meant to do). > > I got:

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

2016-08-19 Thread Jeffrey Sarnoff
ude_from_node1 at loading.jl:320 > > > On Friday, August 19, 2016 at 11:56:14 AM UTC-4, Jeffrey Sarnoff wrote: >> >> ok -- I got it started. >> >> Because that github is not set up as a Julia package, you can put the >> files (the .jl and the .cs

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

2016-08-19 Thread Jeffrey Sarnoff
the dots) path_skaters = "C:/Users/../example_skaters.csv"]. then to run it, julia> include("C:/Users/../codefile.jl") # replace the dots and 'codefile' On Friday, August 19, 2016 at 11:36:31 AM UTC-4, Jeffrey Sarnoff wrote: > > hold on -- its not open() > &g

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

2016-08-19 Thread Jeffrey Sarnoff
hold on -- its not open() On Fri, Aug 19, 2016 at 11:35 AM, Pigskin Ablanket < pigskinablan...@gmail.com> wrote: > I get a different error now. Open("code_for_github.jl") returns *ERROR: > UndefVarError: Open not defined* > > > On Friday, August 19, 2016 at 11:

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

2016-08-19 Thread Jeffrey Sarnoff
UTC-4, Pigskin Ablanket wrote: > > Ok, so it showed me the following: > C:\Users\Name\AppData\Local\Julia-0.4.6 > > Should I still run the update? > > On Friday, August 19, 2016 at 10:48:41 AM UTC-4, Jeffrey Sarnoff wrote: >> >> on a Win7 system running Julia (v0

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

2016-08-19 Thread Jeffrey Sarnoff
USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) > -- LAPACK: libopenblas64_ > -- LIBM: libopenlibm > -- LLUM: libLLUM-3.3 > > Its work computer > > On Friday, August 19, 2016 at 10:04:20 AM UTC-4, Jeffrey Sarnoff wrote: >> >> Please show me >> julia> versioninf

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

2016-08-19 Thread Jeffrey Sarnoff
ocess.jl:262 > > I am attaching a screen shot > > On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote: >> >> what do you see with this (in Julia, note the backtics are not single >> quotes) >> julia> run(`pwd`) >> >> On Friday,

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

2016-08-19 Thread Jeffrey Sarnoff
What is the machine/OS you are using? Is it yours, a school's? On Friday, August 19, 2016 at 10:04:20 AM UTC-4, Jeffrey Sarnoff wrote: > > Please show me > julia> versioninfo() > > > On Friday, August 19, 2016 at 10:02:36 AM UTC-4, Pigskin Ablanket wrote: >> >>

Re: [julia-users] Re: lower triangular matrix in julia

2016-08-19 Thread Jeffrey Sarnoff
Is this what you want, or are you looking for a more general way to construct nxn matrices like this 4x4 matrix, or something else? julia> m = [ [0,1,2,3] [1,0,4,5] [2,3,0,6] [4,5,6,0] ] 4×4 Array{Int64,2}: 0 1 2 4 1 0 3 5 2 4 0 6 3 5 6 0 On Friday, August 19, 2016 at 9:01:06

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

2016-08-19 Thread Jeffrey Sarnoff
what do you see with this (in Julia, note the backtics are not single quotes) julia> run(`pwd`) On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote: > > Ok - This makes sense to me...but: > > When I proceeded with julia>;pwd this is the response I got: Error: could > not

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

2016-08-19 Thread Jeffrey Sarnoff
figure out where.as I dont know what > directory I have Julia working in (if that makes sense). > > > > On Friday, August 19, 2016 at 8:40:31 AM UTC-4, Jeffrey Sarnoff wrote: >> >> Where is the code that you downloaded, what is the http:// of that? >> >>

[julia-users] Re: lower triangular matrix in julia

2016-08-19 Thread Jeffrey Sarnoff
I'm guessing you have worked with R, because the example you give uses NA as if it were an integer. Julia does not have NA that way (there is special class of Nullable types that either are valued with e.g. an Int or else isnull .. probably you do not need that right now). Would using floating

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

2016-08-19 Thread Jeffrey Sarnoff
Where is the code that you downloaded, what is the http:// of that? On Friday, August 19, 2016 at 6:09:05 AM UTC-4, Pigskin Ablanket wrote: > > Ok, I am trying to familiarize myself with a study published using Julia. > I have Julia up and running, but cant seep to get the actual code open. >

[julia-users] Re: Error in `/usr/local/bin/julia': malloc(): smallbin double linked list corrupted

2016-08-17 Thread Jeffrey Sarnoff
moving this to be an issue #18098 <https://github.com/JuliaLang/julia/issues/18098> On Wednesday, August 17, 2016 at 7:13:33 PM UTC-4, Jeffrey Sarnoff wrote: > > My code uses a stable C library's initialization and freeing (as a > finalizer) routines via ccall. I do not do anyt

[julia-users] Re: Error in `/usr/local/bin/julia': malloc(): smallbin double linked list corrupted

2016-08-17 Thread Jeffrey Sarnoff
My code uses a stable C library's initialization and freeing (as a finalizer) routines via ccall. I do not do anything with Julia internals overtly. On Wednesday, August 17, 2016 at 6:43:36 PM UTC-4, Jeffrey Sarnoff wrote: > > Is this the fault of my code or does the fault lie els

[julia-users] Error in `/usr/local/bin/julia': malloc(): smallbin double linked list corrupted

2016-08-17 Thread Jeffrey Sarnoff
Is this the fault of my code or does the fault lie elsewhere? v0.5rc2, the log is available: error.txt

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

2016-08-17 Thread Jeffrey Sarnoff
t, so it can be in a .profile > or so (which probably won't be run anyway for the worker processes). > > > On Wednesday, August 17, 2016 at 12:00:16 PM UTC+2, Jeffrey Sarnoff wrote: >> >> Hi Oliver, >> >> I omitted two letters "the environment" should have been &q

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

2016-08-17 Thread Jeffrey Sarnoff
et) environment variables for remote > workers. > > Cheers, > > Oliver > > > On Wednesday, August 17, 2016 at 12:16:11 AM UTC+2, Jeffrey Sarnoff wrote: >> >> Hi Oliver, >> As I understand it: >> JULIA_NUM_THREADS is an environment variable read by

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

2016-08-16 Thread Jeffrey Sarnoff
Hi Oliver, As I understand it: JULIA_NUM_THREADS is an environment variable read by the local invocation of Julia. It is not a run-time passable value. If your remote workers are remotely local invocations of Julia and in the environment JULIA_NUM_THREADS has been preset, then the remote

[julia-users] Re: where is libmpfr found?

2016-08-16 Thread Jeffrey Sarnoff
with > "..", "lib". > If using a system library, one would presumably need to query the system > loader to get a reliable value. > > On Monday, August 15, 2016 at 5:30:48 PM UTC-4, Jeffrey Sarnoff wrote: >> >> What is the generally applicable expression which, from within Julia, >> gives the full path to libmpfr? >> >

[julia-users] where is libmpfr found?

2016-08-15 Thread Jeffrey Sarnoff
What is the generally applicable expression which, from within Julia, gives the full path to libmpfr?

[julia-users] Re: BigInt / BigFloat / Bitshift

2016-08-10 Thread Jeffrey Sarnoff
> > What is the difference between >> and >>> ? from the help (in the REPL, at the prompt press the question mark and then enter >> or >>>) >>(x, n) Right bit shift operator, x >> n. For n >= 0, the result is x shifted right by n bits, where n >= 0, filling with 0s if x >= 0, 1s if x

[julia-users] Re: What do do when @less does not work?

2016-08-10 Thread Jeffrey Sarnoff
Páll FYI this is most current of the evolving approaches to extended precision https://github.com/JuliaArbTypes/ArbFloats.jl On Wednesday, August 10, 2016 at 2:58:16 PM UTC-4, Jeffrey Sarnoff wrote: > > When one writes a module/package that implements a new type it is prudent > t

Re: [julia-users] Adding tuples

2016-08-10 Thread Jeffrey Sarnoff
n without Val. > > It probably depends a lot on the application and what the compiler can > handle. > > Bill. > > On 10 August 2016 at 20:45, Jeffrey Sarnoff <jeffrey...@gmail.com > > wrote: > >> relative to the same thing without the Val >> >> &

[julia-users] Re: What do do when @less does not work?

2016-08-10 Thread Jeffrey Sarnoff
When one writes a module/package that implements a new type it is prudent to provide a type-specific value hashing function. This is particularly important for immutable types where hash codes and isequal are more tightly coupled than they are with mutable types. memhash_seed is a

Re: [julia-users] Adding tuples

2016-08-10 Thread Jeffrey Sarnoff
relative to the same thing without the Val On Wednesday, August 10, 2016 at 2:45:06 PM UTC-4, Jeffrey Sarnoff wrote: > > that slows it down by a factor of 5 > > On Wednesday, August 10, 2016 at 2:37:25 PM UTC-4, Bill Hart wrote: >> >> How about compared with: >> >

Re: [julia-users] Adding tuples

2016-08-10 Thread Jeffrey Sarnoff
that slows it down by a factor of 5 On Wednesday, August 10, 2016 at 2:37:25 PM UTC-4, Bill Hart wrote: > > How about compared with: > > ntuple(i -> a[i] + b[i], Val{N}) > > > On 10 August 2016 at 20:32, Jeffrey Sarnoff <jeffrey...@gmail.com > > wrote: > >

Re: [julia-users] Adding tuples

2016-08-10 Thread Jeffrey Sarnoff
Bill, Following Eric's note, I tried (with a,b equi-length tuples) function addTuples(a,b) ca = CartesianIndex(a) cb = CartesianIndex(b) return (ca+cb).I end for me, with 100 values it ran ~60% faster, and with 1000 values much much faster than ntuple(i -> a[i] + b[i], N) On

[julia-users] Re: Does a wrapper for gmtime exist

2016-07-27 Thread Jeffrey Sarnoff
Andy, You are welcome to use https://github.com/J-Sarnoff/UTime.jl Pkg.clone("https://github.com/J-Sarnoff/UTime.jl;) using UTime localtime() 2016-07-27T14:41:37.497-04:00 ut() 2016-07-27T18:41:42Z gmt() # gmt aliases ut 2016-07-27T18:41:45Z alocaltime = localtime()

[julia-users] Re: [ANN] Nemo 0.5 released

2016-07-26 Thread Jeffrey Sarnoff
Congratulations on the new release. On Tuesday, July 26, 2016 at 5:07:44 PM UTC-4, Bill Hart wrote: > > Hi all, > > We are pleased to release version 0.5 of Nemo, our computer algebra > package written in Julia. > > Instructions on how to get Nemo are on our website: > >

[julia-users] Re: Setting socket options in ZMQ.jl

2016-07-26 Thread Jeffrey Sarnoff
> > How are ZMQ socket options specified in Julia? the attached file may help you On Monday, July 18, 2016 at 6:15:52 PM UTC-4, Salman Haider wrote: > > > ZeroMQ has an option where the subscribe socket only keeps the last > message. I was wondering if there is a way to specify that. >

[julia-users] Re: Issue with Pkg.update() after fresh Julia installation on Windows 7 system

2016-07-25 Thread Jeffrey Sarnoff
Why not follow their advice: > > > *Go to the Packages → Julia → Open Terminal menu and* > *run Pkg.update()in Julia, then try again.* > *If you still see an issue, please report it to:*_ > http://discuss.junolab.org/_ On Wednesday, July 20, 2016 at 4:16:03 PM UTC-4, Pedro Hussain wrote: > >

Re: [julia-users] Re: Strange performance issue in filling in a matrix column

2016-07-23 Thread Jeffrey Sarnoff
Michael, I have been in that position -- let me file the performance issue on your behalf. Then you can follow this link to see what I did to make it an issue. Welcome, Jeffrey On Saturday, July 23, 2016 at 11:36:13 AM UTC-4,

[julia-users] Re: Which package downgrades other packages?

2016-07-22 Thread Jeffrey Sarnoff
+1 On Friday, July 22, 2016 at 10:24:30 PM UTC-4, Tony Kelman wrote: > > Maybe a useful function to write and submit to PkgDev would be go through > all installed packages, check the METADATA requires file for all the > installed versions and display a list of upper-bounded dependencies and >

[julia-users] Re: Error on indexing of UTF8String

2016-07-22 Thread Jeffrey Sarnoff
This is explained here unicode-and-utf-8 . You want to use `nextind`: name2="김아무개" name2[1] '김' nextind(name2,1) 4 name2[4] '아' name2[ nextind(name2,4) ] '무' name2[nextind(name2,nextind(name2,4))] '개' On Friday, July

Re: [julia-users] How to make an unsafe_string safe?

2016-07-22 Thread Jeffrey Sarnoff
Thank you.

[julia-users] How to make an unsafe_string safe?

2016-07-22 Thread Jeffrey Sarnoff
I have a ccall to a library that returns a C-string `cstr = ccall(__)`. I understand that v0.5/current practice is to do `jstr = unsafe_string(cstr)` upon obtaining `cstr`. The cstr is freed by another ccall. If I want to use or return that string as a Julia String type, do I need to do

[julia-users] Re: A workaround to use "." to access class member functions - is it unJulian?

2016-07-22 Thread Jeffrey Sarnoff
(big step ..!) On Friday, July 22, 2016 at 2:28:09 PM UTC-4, Zhong Pan wrote: > > OK, I admit, it's ugly. :-) > > Now I realize it's also wrong. In the example, the > inner-constructor-created member function split() cannot see member > variable "N"; it can only see parameter "n" that is

[julia-users] Re: A workaround to use "." to access class member functions - is it unJulian?

2016-07-22 Thread Jeffrey Sarnoff
Too much riffle-raffle for the gain you mention (imo). On Friday, July 22, 2016 at 1:01:42 PM UTC-4, Zhong Pan wrote: > > Most people coming from the object-oriented programming (OOP) world are > used to using "." to access member methods/functions of a class. Consider > the following simple

Re: [julia-users] howto import fix_dec?

2016-07-21 Thread Jeffrey Sarnoff
thanks, I think I found the problem -- my float() function should force Float64 On Thursday, July 21, 2016 at 4:36:53 PM UTC-4, Jeffrey Sarnoff wrote: > > I thought I could specialize fix_dec(), the catchall is something like > `fix_dec(x::AbstractFloat, n::Int)` and I had intended

Re: [julia-users] howto import fix_dec?

2016-07-21 Thread Jeffrey Sarnoff
I thought I could specialize fix_dec(), the catchall is something like `fix_dec(x::AbstractFloat, n::Int)` and I had intended to define `fix_dec{P}(x::ArbFloat{P}, n::Int)`. On Thursday, July 21, 2016 at 4:31:37 PM UTC-4, Yichao Yu wrote: > > On Thu, Jul 21, 2016 at 3:42 PM, Jeffrey S

[julia-users] howto import fix_dec?

2016-07-21 Thread Jeffrey Sarnoff
I got this error ERROR: StackOverflowError: in fix_dec(::ArbFloats.ArbFloat{116}, ::Int64) at ./printf.jl:932 (repeats 8 times) I tried to import Base.fix_dec, Core.fix_dec to override the definition -- neither worked.

[julia-users] Re: Fast higher order differentiation

2016-07-17 Thread Jeffrey Sarnoff
I do not have your answer, your question is a good one. On Sunday, July 17, 2016 at 11:13:38 AM UTC-4, Young Chun wrote: > > I have an optimization problem that involves series of high order > derivatives of f(x). > So, to get a decent value, I need to calculate higher order derivative at >

Re: [julia-users] Re: ANN: Algebraic numbers

2016-07-13 Thread Jeffrey Sarnoff
Take Tommy's advice! On Wed, Jul 13, 2016 at 6:13 AM, Tommy Hofmann wrote: > Looks cool! > > It is quite different to Hecke. You work in the field of all algebraic > numbers, while Hecke works with elements inside an algebraic number field. > > I skimmed over the code and

[julia-users] Re: A Very Simple Benchmark for Brutal-force Loops in Several Languages: revised, Julia is fast!

2016-07-12 Thread Jeffrey Sarnoff
Zong, we would be pleased to increment the tally of Julia users with your use. On Tuesday, July 12, 2016 at 12:00:02 PM UTC-4, Zhong Pan wrote: > > Ferran, > > I can totally understand Fortran is still the king of fast and efficient > numerical calculation in terms of computation time and

[julia-users] Re: Any suggested mono font for julia with unicode?

2016-07-12 Thread Jeffrey Sarnoff
DejaVu Sans Mono has many more math symbols and more arrows than Source Code Pro http://dejavu-fonts.org/wiki/Main_Page http://dejavu-fonts.org/wiki/Download On Tuesday, July 12, 2016 at 8:52:17 PM UTC-4, Jeffrey Sarnoff wrote: > > Source Code Pro is better than the default &

[julia-users] Re: Any suggested mono font for julia with unicode?

2016-07-12 Thread Jeffrey Sarnoff
Source Code Pro is better than the default https://github.com/adobe-fonts/source-code-pro To get more symbols than are provided in that font, ... On Tuesday, July 12, 2016 at 8:43:55 PM UTC-4, Po Choi wrote: > > I find that some mono fonts doesn't display distinguishable greek letters > in

[julia-users] Re: ANN: Algebraic numbers

2016-07-12 Thread Jeffrey Sarnoff
(in your README examples, this line does balks: x = 1 + sqrt6) On Tuesday, July 12, 2016 at 8:34:38 PM UTC-4, Alireza Nejati wrote: > > Indeed! > > Hecke.jl also has some similar abilities. > > On Wednesday, July 13, 2016 at 12:29:28 PM UTC+12, Jeffrey Sarnoff wrote: >&

[julia-users] Re: ANN: Algebraic numbers

2016-07-12 Thread Jeffrey Sarnoff
(another good use of Nemo!) On Tuesday, July 12, 2016 at 8:21:18 PM UTC-4, Alireza Nejati wrote: > > Ever wanted to do exact arithmetic, geometry, and so on? Well now you can: > > https://github.com/anj1/AlgebraicNumbers.jl >

[julia-users] Re: Calling all users of ParallelAccelerator.

2016-07-12 Thread Jeffrey Sarnoff
Thank you Todd, thank you Intel. The Black-Scholes example helped me understand this capability. I am pleased it continues to be developed, and that it becomes better still when released for v0.5. On Tuesday, July 12, 2016 at 4:23:05 PM UTC-4, Todd Anderson wrote: > > Hello, > > I'm one

[julia-users] Re: Want: "Deprecation" badge for Github

2016-07-12 Thread Jeffrey Sarnoff
+1 quell the ASCII noise [some find the unexpected TTY spew quite scary] and .. how does one stop those messages, or have the badges 'leveled up'? On Tuesday, July 12, 2016 at 1:15:24 PM UTC-4, Erik Schnetter wrote: > > Our Julia projects live on Github, and many projects proudly present >

Re: [julia-users] Re: PriorityQueue for fast large network simulation

2016-07-12 Thread Jeffrey Sarnoff
orityQueue(UInt32,Float64) ). > Are Int64 keys faster? > Best > Rainer > > >> El martes, 12 de julio de 2016, 7:34:43 (UTC-4), Jeffrey Sarnoff escribió: >>> >>> Is it possible to set up a priority queue with integer keys instead? >>

Re: [julia-users] How to determine the type of a complex data structure

2016-07-12 Thread Jeffrey Sarnoff
You may be misreading the guidance. There is no advantage to putting a parameter into the type when that parameter is not used anywhere. type Ions_frag mz::Float64 intensity::Float64 charge::Int64 end if your use involves changing the fields' values after creating an ions_frag

[julia-users] Re: Writable arrays

2016-07-12 Thread Jeffrey Sarnoff
Arrays are immutable. > > On Tuesday, July 12, 2016 at 2:09:30 PM UTC+2, Jeffrey Sarnoff wrote: >> >> If your arrays keep their shape and dimensionality, the FixedSizeArrays >> <https://github.com/SimonDanisch/FixedSizeArrays.jl> package is >> worthwhile. >> &g

[julia-users] Re: MathLink error while using Mathematica from Julia

2016-07-12 Thread Jeffrey Sarnoff
Thanks. This is what I get: > > > /Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/clojure:/usr/local/go/bin > > > - Rangarajan > > On Tuesday, July 12, 2016 at 4:41:27 PM UTC+5:30, Jeffrey Sarnoff wro

[julia-users] Re: printing datatables

2016-07-12 Thread Jeffrey Sarnoff
I cannot replicate your output, it looks as advertised on my machine. Make sure you have the current version and try it with a tiny database that you create and populate using SQLite.jl. On Wednesday, June 15, 2016 at 11:43:28 AM UTC-4, Erwin Kalvelagen wrote: > > In

[julia-users] Re: Writable arrays

2016-07-12 Thread Jeffrey Sarnoff
If your arrays keep their shape and dimensionality, the FixedSizeArrays package is worthwhile. On Wednesday, June 15, 2016 at 1:41:38 PM UTC-4, Robert DJ wrote: > > In a function that modifies an array argument I would like to pass at > least

[julia-users] Re: how can i rewrite my code to make use of the parallel feature of julia?

2016-07-12 Thread Jeffrey Sarnoff
Here are a few answers to similar questions, after the docs -- that is a good place to start. https://groups.google.com/forum/#!searchin/julia-users/parallel/julia-users/fe1yZawvvi0/kjX-ZIJwpCAJ https://groups.google.com/forum/#!searchin/julia-users/parallel/julia-users/vt2hS9h36a0/_rqJ0Uj_Wy8J

[julia-users] Re: PriorityQueue for fast large network simulation

2016-07-12 Thread Jeffrey Sarnoff
> > Is it possible to set up a priority queue with integer keys instead? > Yes. julia> pq=Collections.PriorityQueue() Base.Collections.PriorityQueue{Any,Any,Base.Order.ForwardOrdering} with 0 entries julia> pq[1]=10;pq[2]=5;pq[3]=20; julia> pq

[julia-users] Re: MathLink error while using Mathematica from Julia

2016-07-12 Thread Jeffrey Sarnoff
post your path, as much of it as you want to make public (launch Applications > Utilities > Terminal, type echo $PATH) On Tuesday, July 12, 2016 at 5:42:37 AM UTC-4, Rangarajan Krishnamoorthy wrote: > Hi, > I have Mathematica 10.4.1 installed on my OS X. I am trying to connect to > Mathematica

[julia-users] Re: Postgres type questions

2016-07-12 Thread Jeffrey Sarnoff
It is unlikely that the examples you want for this package have been written. You might also look at https://github.com/JuliaDB/PostgreSQL.jl If you think there is something that is not working properly, you could post an issue at https://github.com/NCarson/Postgres.jl/issues. On Monday, July

[julia-users] Re: Dear Sublime Text Users

2016-07-10 Thread Jeffrey Sarnoff
using it On Saturday, July 9, 2016 at 5:49:59 PM UTC-4, Randy Lai wrote: > > You need to have some unicodes highlighted and then run the reverse lookup > command. > > I am using the default font on Mac (I suppose). >

Re: [julia-users] best practices for using Julia to generate+save Julia source code

2016-07-05 Thread Jeffrey Sarnoff
typo -- Mauro On Tuesday, July 5, 2016 at 3:26:13 AM UTC-4, Jeffrey Sarnoff wrote: > > Hi Mauio, > Using another parameter is ok if it solves things in a way that precludes > wanting other synthetic parameters for each sort of Both that is of interest > e.g `( (size,digi

Re: [julia-users] best practices for using Julia to generate+save Julia source code

2016-07-05 Thread Jeffrey Sarnoff
, but maybe ok? > > On Mon, 2016-07-04 at 23:06, Jeffrey Sarnoff <jeffrey...@gmail.com > > wrote: > > Are there styles/approaches/packages/practices that may make simple and > > untedious using Julia to generate and fill templated Julia source code? > > My use

[julia-users] Re: best practices for using Julia to generate+save Julia source code

2016-07-04 Thread Jeffrey Sarnoff
Tony -- thank you for feedback, I will look at Mustache.jl .. ( sigh ) On Monday, July 4, 2016 at 7:37:05 PM UTC-4, Tony Kelman wrote: > > Are you building up a representation of the code an Expr objects? Maybe > just show on those could be decent to start with? There's also Mustache.jl

[julia-users] Re: best practices for using Julia to generate+save Julia source code

2016-07-04 Thread Jeffrey Sarnoff
Tony -- thank you for feedback, I will look at Mustache.jl .. (I let my macro-making unreadiness express self-frustration < sigh >) On Monday, July 4, 2016 at 8:08:10 PM UTC-4, Jeffrey Sarnoff wrote: > > Tony, if I were comfortable building these as Expr objects, I would

[julia-users] Re: best practices for using Julia to generate+save Julia source code

2016-07-04 Thread Jeffrey Sarnoff
Tony, if I were comfortable building these as Expr objects, I would be doing this (more pressing) with that: trait Status Planned, Designed, Developed, Tested, Released end trait Refinement trait Accuracy <: Refinement Exact, Faithful, Approximate end trait Precision <: Refinement

[julia-users] best practices for using Julia to generate+save Julia source code

2016-07-04 Thread Jeffrey Sarnoff
Are there styles/approaches/packages/practices that may make simple and untedious using Julia to generate and fill templated Julia source code? My use case is to complete facets of type declarations that require more symbiosis of parameters than Julia learned to do while in kindergarten.

[julia-users] Re: MYSQL/MARIADB Big INSERT

2016-07-03 Thread Jeffrey Sarnoff
While I am not a user of MariaDB/MySQL, this may be of help. The most common way to speed bulk record insertion avoids your current 1 record per insertion loop by inserting multiple values [rows] with each INSERT. In SQL: INSERT INTO MyTable (id, firstname, lastname) VALUES (1,

Re: [julia-users] using in try catch block

2016-07-03 Thread Jeffrey Sarnoff
Re: Pkg.is_installed(_), Pkg.is_missing(_) Pkg.has(_) On Monday, June 27, 2016 at 1:48:41 PM UTC-4, Yichao Yu wrote: > > On Mon, Jun 27, 2016 at 1:43 PM, Cameron McBride > wrote: > > > > > > On Mon, Jun 27, 2016 at 1:02 PM, Yichao Yu > wrote: >

Re: [julia-users] Re: Nothing conditional operator

2016-06-29 Thread Jeffrey Sarnoff
Good. Perhaps this is appropriate as a template for others. On Wednesday, June 29, 2016 at 6:24:35 PM UTC-4, Yaakov Borstein wrote: > > > > On Monday, March 21, 2016 at 1:56:34 AM UTC+2, Jeffrey Sarnoff wrote: >> >> Redis itself is written in C. They document GET key: >

[julia-users] preANN: ArbFloats. the sequel. (extended precision *values* as floating point numbers)

2016-06-25 Thread Jeffrey Sarnoff
If the first ArbFloats.jl was proof of concept, this one is concept of proof. This is a pre-announcement in response to some requests for access and my preference. These quantities are information-richest floating point representations of using arithmetic, elementary and some special

[julia-users] ANN: Errorfree Transforms for Arithmetic, Faster MultiDirected Rounding

2016-06-24 Thread Jeffrey Sarnoff
These ?require v0.5-, some may well work correctly with v0.4.6+ (I don't have that handy). FastDirectedRounding,jl was written for work with floating point intervals, where there is much switching of rounding direction. The the use of errorfree transformations to speed rounding is my own

[julia-users] Re: Deepcopy of BigInt and BigFloat (#16999)

2016-06-19 Thread Jeffrey Sarnoff
With apologies for the deletions -- there were unintended editing errors of some consequence -- my comment, now as intended is found in this thread https://github.com/JuliaLang/julia/pull/16999. On Saturday, June 18, 2016 at 6:33:37 PM UTC-4, Scott Jones wrote: > > @rfourquet commented in

[julia-users] Re: Deepcopy of BigInt and BigFloat (#16999)

2016-06-18 Thread Jeffrey Sarnoff
There is risk in adopting as practice a policy of "Use nomenclature that provides computational attributes with well-understood labels, but do not attach to the label the attributable semantic intent." That one can flip a bit within an occurrence of an immutable type does strip the

[julia-users] Re: Deepcopy of BigInt and BigFloat (#16999)

2016-06-18 Thread Jeffrey Sarnoff
There is risk in adopting as practice a policy of "Use nomenclature that provides computational attributes with well-understood labels, but do not attach to the label the attributable semantic intent." That one can flip a bit within an occurrence of an immutable type does strip the

Re: [julia-users] Conditional Definition of Functions?

2016-06-16 Thread Jeffrey Sarnoff
> On Thu, 2016-06-16 at 16:38, Jeffrey Sarnoff <jeffrey...@gmail.com > > wrote: > > that is not right, please enter it as an issue > > https://github.com/JuliaLang/julia/issues > > > > (include your minimal example as > > ```julia > > >

Re: [julia-users] Conditional Definition of Functions?

2016-06-16 Thread Jeffrey Sarnoff
that is not right, please enter it as an issue https://github.com/JuliaLang/julia/issues (include your minimal example as ```julia ``` and the commit id) On Thursday, June 16, 2016 at 10:11:23 AM UTC-4, Chris Rackauckas wrote: > > It fails when you put it in a function: > > function g(a) >

[julia-users] Re: Remez algorithm

2016-06-16 Thread Jeffrey Sarnoff
super On Thursday, June 16, 2016 at 3:22:52 AM UTC-4, Simon Byrne wrote: > > I realise this is a bit late to the party, but in case anyone is still > interested (or happens to be searching in future), I've created: > https://github.com/simonbyrne/Remez.jl > > The code is mostly based on some

[julia-users] Re: ANN: Delegate.jl, delegation and type re-wrapped delegation

2016-06-15 Thread Jeffrey Sarnoff
a - (hi - t)) + (b - t) > hi, lo > end > type HiLo hi::Float64; lo::Float64; end; > @traject_2fields1var HiLo hi lo [ renormalize, ]; > myHiLo = renormalize( HiLo(12.5, 8000.3) ) > # HiLo(8012.89,4.44089e-14) > showall(myHiLo) > # HiLo(8012.8,4.440892098500

Re: [julia-users] Re: Defining a new numeric type with minimal effort

2016-06-15 Thread Jeffrey Sarnoff
Kevin, I just announced https://github.com/Jeffrey-Sarnoff/Delegate.jl <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FJeffrey-Sarnoff%2FDelegate.jl=D=1=AFQjCNHTBYGzcvaZidLimgK3JlXU8s14Zg> -- it does what you want. On Saturday, June 11, 2016 at 12:15:23 PM UTC-4, Kevin Squire

[julia-users] ANN: Delegate.jl, delegation and type re-wrapped delegation

2016-06-15 Thread Jeffrey Sarnoff
> > Pkg.clone("https://github.com/Jeffrey-Sarnoff/Delegate.jl;) > using Delegate import <, <=, +, * immutable AnInt val::Int end int1 = AnInt(1) int2 = AnInt(2) @delegate_1field2vars AnInt.val [ (<), (<=) ]; # plain results @traje

Re: [julia-users] Re: Defining a new numeric type with minimal effort

2016-06-11 Thread Jeffrey Sarnoff
. Now, I slowly wrap my mind around the idea that there s > nothing to inherit... > But srsly, is there no way of making all functions that accept Reals also > accept Probabilities? I can't reimplement them all, can I? Think of *(a,b), > sin(a), /(a,b) > > On Saturda

<    1   2   3   4   5   6   >