[julia-users] Re: Loading a module without loading its submodules

2016-02-24 Thread Jeffrey Sarnoff
With Julia, submodules are present in support of the packaged module's purpose. If the submodule is in a separate file and the package module include()s the submodule's file, it is read. If the submodule is in the same file as the other module and it really is a submodule, then it is

[julia-users] Re: Some blog posts on Julia

2016-02-23 Thread Jeffrey Sarnoff
I found "Using Julia's C interface" clear, clean, copyable. Thanks for contributing. On Tuesday, February 23, 2016 at 2:34:20 AM UTC-5, Chris Rackauckas wrote: > > Hey, > I wanted to let everyone know I put a few blog posts out there on Julia. > You can find them here: > >

Re: [julia-users] New Database Package -- Postgres

2016-02-19 Thread Jeffrey Sarnoff
Thank you for Postgres from Julia. imo Postgres is the best open source relational database for working with temporal and spatiotemporal information (among other things). On Friday, February 19, 2016 at 7:22:31 AM UTC-5, Stefan Karpinski wrote: > > It also prevents repo naming conflicts, e.g.

Re: [julia-users] Re: Unitful.jl for physical units

2016-02-19 Thread Jeffrey Sarnoff
or a trader in a specific market) allow you to make further > assumptions and simplify. > > In particular, I don't see how exchange rates fit with SI units at all. > > Best, > > Tamas > > On Thu, Feb 18 2016, Jeffrey Sarnoff wrote: > > > I am thinking abo

[julia-users] Re: Unitful.jl for physical units

2016-02-18 Thread Jeffrey Sarnoff
I am thinking about how Currencies would fit with software for handling SI and other physical dimensions and the usual units of measure. The following approach seems workable and (mostly) not disruptive to the working and evolving code Andrew Keller offers the community. A currency behaves as a

[julia-users] Re: Unitful.jl for physical units

2016-02-18 Thread Jeffrey Sarnoff
Kristoffer, I am glad that you said this. In the future, I will write and be respectful of that. Kind regards, Jeffrey Sarnoff On Thursday, February 18, 2016 at 12:51:19 PM UTC-5, Kristoffer Carlsson wrote: > > Just for your info, you likely exclude a lot of non native speakers (like

[julia-users] Re: Unitful.jl for physical units

2016-02-18 Thread Jeffrey Sarnoff
Money (fiat value) as an econophysical dimension, with currencies the given units of measure and exchange rates the interconversion ratios with bid-asked spreads the ratios' associated uncertainties. The interconversion ratios & uncertainties are dynamic rather than internal system

Re: [julia-users] Re: Unitful.jl for physical units

2016-02-17 Thread Jeffrey Sarnoff
larify that >>>> Unitful is not strictly focused on the SI system. You'll see that you can >>>> use units of acre-feet, very much not an SI unit, which could be useful if >>>> you happen to manage a water reservoir in the United States, I guess. >>>

Re: [julia-users] Re: Unitful.jl for physical units

2016-02-17 Thread Jeffrey Sarnoff
d write methods that >> dispatch on the dimensions of a unit, the current answer is no, although >> maybe that could change eventually. >> >> Best, >> Andrew >> >> On Wednesday, February 17, 2016 at 3:25:37 AM UTC-8, Jeffrey Sarnoff >> wrote: >>

[julia-users] Re: Unitful.jl for physical units

2016-02-17 Thread Jeffrey Sarnoff
Jake, Julia's type system is well suited to do just that. Unitful is focused on units in SI system, things like Meters, Kilograms and Joules. One approach to abstract units like size, where size may be relative to the number of pixels on a screen or the width of a page, is define your own

[julia-users] Re: depsy.org

2016-02-12 Thread Jeffrey Sarnoff
story.org>. ( *Stefan, perhaps repost the meaning as a compelling new topic so that more people know and may email. *) On Thursday, January 7, 2016 at 11:48:56 AM UTC-5, Jeffrey Sarnoff wrote: > > Andreas, > > I find this on-topic. Depsy is built and run by Impactstory and fund

Re: [julia-users] Re: documentation suggestions

2016-02-12 Thread Jeffrey Sarnoff
Doug, I found some shelter after months of being bit by git using this (free for non-commercial use) www.syntevo.com/smartgit/ On Friday, February 12, 2016 at 12:49:27 PM UTC-5, Douglas Bates wrote: > > On Thursday, February 11, 2016 at 3:06:45 PM UTC-6, ivo welch wrote: >> >> >> hi

Re: [julia-users] quick 'n ez way to get allsupertypes(x), allsubtypes(x)?

2016-02-11 Thread Jeffrey Sarnoff
btypes(x)) : x concreteSubtypes(x) = [concreteSubtypesTree(x)...;] thanks for the assist On Thursday, February 11, 2016 at 8:41:50 AM UTC-5, Milan Bouchet-Valat wrote: > > Le mercredi 10 février 2016 à 14:12 -0800, Jeffrey Sarnoff a écrit : > > > > I need a tuple -- it could

Re: [julia-users] Re: documentation suggestions

2016-02-10 Thread Jeffrey Sarnoff
That is a reasonable want; it may take Anderson some time to institute scholarships for expertise in Julia If you were already expert with Julia, what would you have your students doing? for expertThat is a reasonable want. As an alternative, Anderson is not offering scholarships earmarked

Re: [julia-users] quick 'n ez way to get allsupertypes(x), allsubtypes(x)?

2016-02-10 Thread Jeffrey Sarnoff
/contrast the sets of tuples yielded, and maybe reorganizing a few. On Wednesday, February 10, 2016 at 4:12:42 AM UTC-5, Milan Bouchet-Valat wrote: > > Le mercredi 10 février 2016 à 00:47 -0800, Jeffrey Sarnoff a écrit : > > I want to Typename{T,N} as Abstract onlyif Typename.ab

Re: [julia-users] Re: documentation suggestions

2016-02-10 Thread Jeffrey Sarnoff
If you want to use it, the julia-jobs forum <https://groups.google.com/forum/#!forum/julia-jobs> exists to let people know of opportunities that are posted there. On Wednesday, February 10, 2016 at 5:47:46 PM UTC-5, Jeffrey Sarnoff wrote: > > That is a reasonable want; it may t

Re: [julia-users] quick 'n ez way to get allsupertypes(x), allsubtypes(x)?

2016-02-10 Thread Jeffrey Sarnoff
UTC-5, Milan Bouchet-Valat wrote: > > Le mercredi 10 février 2016 à 00:47 -0800, Jeffrey Sarnoff a écrit : > > I want to Typename{T,N} as Abstract onlyif Typename.abstract==true, > > otherwise Typename.abstract==false and I want to treat it as Concrete > > > > Mi

Re: [julia-users] Code introspection for generated function

2016-02-10 Thread Jeffrey Sarnoff
Tim -- would you repeat that with some simple content illustrative of a useful use for generation --- thx On Wednesday, February 10, 2016 at 5:27:12 AM UTC-5, Tim Holy wrote: > > On Tuesday, February 09, 2016 08:52:22 PM Andy Ferris wrote: > > What's the best way to find the code generated by a

Re: [julia-users] quick 'n ez way to get allsupertypes(x), allsubtypes(x)?

2016-02-10 Thread Jeffrey Sarnoff
with > TL <: T <: TU. You can describe this set using TypeVar, but you cannot just > write it down. > > Tommy > > On Wednesday, February 10, 2016 at 12:50:43 AM UTC+1, Jeffrey Sarnoff > wrote: >> >> I see that your definition pours the subtypes from a pitcher

Re: [julia-users] quick 'n ez way to get allsupertypes(x), allsubtypes(x)?

2016-02-10 Thread Jeffrey Sarnoff
in things like Array{T, N}, that is, a > type with a parameter. How do you handle those? Do you want to count them > as abstract or concrete? > > On Wednesday, February 10, 2016 at 9:10:16 AM UTC+1, Jeffrey Sarnoff wrote: >> >> Hello Tommy, >> >>

[julia-users] quick 'n ez way to get allsupertypes(x), allsubtypes(x)?

2016-02-09 Thread Jeffrey Sarnoff
Any advice on quick 'n EZ coding of something like these? allsupertypes(Irrational) == ( Real, Number, Any ) allsubtypes(Integer) == ( BigInt, Bool, Signed, Int128,Int16,Int32,Int64,Int8, Unsigned, UInt128,UInt16,UInt32,UInt64,UInt8 ) abstractsubtypes(Integer) == ( Signed, Unsigned )

Re: [julia-users] quick 'n ez way to get allsupertypes(x), allsubtypes(x)?

2016-02-09 Thread Jeffrey Sarnoff
rdi 09 février 2016 à 12:24 -0800, Jeffrey Sarnoff a écrit : > > Any advice on quick 'n EZ coding of something like these? > > > > allsupertypes(Irrational) == ( Real, Number, Any ) > > > > allsubtypes(Integer) == ( BigInt, Bool, Signed, > Int128,Int16,Int32,

[julia-users] Re: Dual licenses for Julia packages

2016-02-07 Thread Jeffrey Sarnoff
, February 7, 2016 at 6:17:14 PM UTC-5, Jeffrey Sarnoff wrote: >> >> The question is a legal question. This is* not* legal advice. >> >> I have not done this with any Julia code. I did do something similar >> some years ago with other source code. >>

[julia-users] Re: Dual licenses for Julia packages

2016-02-07 Thread Jeffrey Sarnoff
The question is a legal question. This is* not* legal advice. I have not done this with any Julia code. I did do something similar some years ago with other source code. Understanding that permission may be contingent on an agreement to pay money, the gist of it was: LICENCE: For strictly

[julia-users] Re: Dual licenses for Julia packages

2016-02-07 Thread Jeffrey Sarnoff
So there is no misunderstanding -- I deleted the prior post. I will relate whatever the lawyer I ask has to say about this. On Sunday, February 7, 2016 at 7:11:36 PM UTC-5, Jeffrey Sarnoff wrote: > > Well, maybe maybe not -- irrelevant, though. I was not advocating its use, > just

Re: [julia-users] Plotting with Plot

2016-02-01 Thread Jeffrey Sarnoff
(it is a reasonable question) If you want to use a .juliarc.jl file (notice the leading '.' in its name), create it. It usually would be placed as (linuxs) ~/.juliarc.jl (apple) /home/.juliarc.jl (win?)c:\Users\*you*\.juliarc.jl then put what you want to put inside On

Re: [julia-users] How to convert Int64 to Date

2016-01-23 Thread Jeffrey Sarnoff
Jacob, I agree -- in both directions: convert(::Type(Date), x::Int64) and convert(::Type(Int64), x::Date). Jeffrey On Saturday, January 23, 2016 at 12:20:53 PM UTC-5, Jacob Quinn wrote: > > The easiest way right now is to do > > Date(Dates.UTD(735685)) > > It's a bit awkward, and I think we

[julia-users] Re: newbie

2016-01-23 Thread Jeffrey Sarnoff
Welcome Patricia, As one who both has thoughts and is not familiar with nonseparable wavelets, any explanation or links for the non-specialist may help. Jeffrey Sarnoff On Friday, January 22, 2016 at 11:03:19 PM UTC-5, PattiMichelle Sheaffer wrote: > > I've been using IDL, matlab, and

Re: [julia-users] Re: How to combine @generated and @inline?

2016-01-20 Thread Jeffrey Sarnoff
I'd prefer @inline @generated because @generated @inline seems to say "generate this function inline" (not "inline the function generated") On Wednesday, January 20, 2016 at 2:50:55 PM UTC-5, Matt Bauman wrote: > > Yeah, I was thinking about that as I responded. An easier intermediate >

[julia-users] Re: help with a macro

2016-01-18 Thread Jeffrey Sarnoff
If you revise the macro as Stefan suggests, would you post the revision as a response here? On Thursday, January 14, 2016 at 8:09:23 AM UTC-5, richard@maths.ox.ac.uk wrote: > > This macro: > > macro clenshaw(x, c...) > bk1,bk2 = :(zero(t)),:(zero(t)) > N = length(c) > for k =

[julia-users] Re: Project ideas in julia

2016-01-18 Thread Jeffrey Sarnoff
And where do your interests lie? On Sunday, January 17, 2016 at 4:11:37 PM UTC-5, Patrick Kofod Mogensen wrote: > > What do you study? > > On Sunday, January 17, 2016 at 8:47:05 PM UTC+1, noufal n wrote: >> >> I'm a student and i wish to study and contribute to julia community. As a >> part my

[julia-users] Re: Dictionary lookup using only the hash value

2016-01-18 Thread Jeffrey Sarnoff
Steve, afaik, depending upon the hash implementation, the only advantage might be moderately faster lookup but the cost in generality often would outweigh that. On Thursday, January 14, 2016 at 10:44:01 PM UTC-5, vav...@uwaterloo.ca wrote: > > Could I ask what would be an application of this

[julia-users] Re: ANN: Sphinx extensions for Julia

2016-01-13 Thread Jeffrey Sarnoff
Thank you Sebastian. Please show a function that has one explicitly typed argument to the autodoc example, if it autodocs that argument's type. Consider recognizing arguments that have default values and autodoc the default value. Consider having a few keywords that you could set to autodoc

Re: [julia-users] Would the Complex{Bool}(false,true) == im approach be useful for Quaternion i,j,k?

2016-01-13 Thread Jeffrey Sarnoff
thanks On Wednesday, January 13, 2016 at 9:29:54 AM UTC-5, Stefan Karpinski wrote: > > That could be done but it doesn't seem useful enough to bother with. The > `im` constant is really just for notational convenience and doesn't make > anything faster. > > On Tuesday, January

[julia-users] Would the Complex{Bool}(false,true) == im approach be useful for Quaternion i,j,k?

2016-01-12 Thread Jeffrey Sarnoff
complex.jl defines im as Complex{Bool}(false,true). Is there a reason that re is not defined as Complex{Bool}(true,false}? If I were to build a parameterized collection of Quaternion types (different from Quaternions.jl), including Quaternion{Bool} and Quaternion{FloatNN}, is there an

[julia-users] Re: depsy.org

2016-01-07 Thread Jeffrey Sarnoff
Andreas, I find this on-topic. Depsy is built and run by Impactstory and funded by the National Science Foundation. They give as a contact email t...@impactstory.org. I sent a brief note as an interested third party (my tax dollars at work). Thanks, Jeffrey Sarnoff On Thursday, January 7

Re: [julia-users] Re: Why does this code never return?

2016-01-06 Thread Jeffrey Sarnoff
A module-limited reload, which seems potentially helpful to app flexibility and quite helpful to an IDE, would need to do the right thing with a module embedded in another module .. even when the outer module include()s a file containing the inner. On Tuesday, January 5, 2016 at 10:38:21 PM

Re: [julia-users] How to get untemplated typename?

2016-01-05 Thread Jeffrey Sarnoff
ing call(::TypeName, > ::Float64)* > > Closest candidates are: > > BoundsError() > > BoundsError(*::Any...*) > > DivideError() > > ... > > > > *julia> **typeof(f).name.primary(4.0)* > > *Foo{Float64}(4.0)* > > > > On Monday, January

[julia-users] Re: multiple methods with keyword arguments?

2016-01-05 Thread Jeffrey Sarnoff
If you want all methods to use the same keyword arguments, define each method with the same keyword arguments. You can declare keyword arguments' types. function foo(a::Int; test::Bool = true) if test a else 0 end end function foo(a::AbstractFloat; test::Bool = true)

[julia-users] Re: Recurrence Quantification Analysis

2016-01-05 Thread Jeffrey Sarnoff
I have not seen any until yours. How are people making use of RQA (what does it do best)? On Monday, January 4, 2016 at 8:48:24 PM UTC-5, Helios De Rosario wrote: > > Hi all. Is anybody working on Recurrence Quantification Analysis (RQA) > with Julia? > > There are libraries for RQA in other

Re: [julia-users] ANN: Float128 and Float{256,512,1024} for common math

2016-01-04 Thread Jeffrey Sarnoff
Revised module links and type names: this module allows any one or more of the four precisions to be selected: ArbFloats.jl these modules export each ArbFloatNN type separately: ArbFloats30.jl

Re: [julia-users] How to get untemplated typename?

2016-01-04 Thread Jeffrey Sarnoff
try Foo.name (without the '.primary'), and as Mauro says (try not to use it much) On Monday, January 4, 2016 at 5:39:53 AM UTC-5, Mauro wrote: > > This should do the trick: > > Foo.name.primary > > (I think this defeats type inference, so try not to use it in > performance critical code) >

Re: [julia-users] How to get untemplated typename?

2016-01-04 Thread Jeffrey Sarnoff
I meant: typeof(f).name On Monday, January 4, 2016 at 6:27:43 AM UTC-5, Jeffrey Sarnoff wrote: > > try Foo.name (without the '.primary'), and as Mauro says (try not to use > it much) > > > On Monday, January 4, 2016 at 5:39:53 AM UTC-5, Mauro wrote: >> >

Re: [julia-users] ANN: Float128 and Float{256,512,1024} for common math

2016-01-04 Thread Jeffrey Sarnoff
Ok, ArbFloatNN it will be. On Mon, Jan 4, 2016 at 12:12 PM, Stefan Karpinski <ste...@karpinski.org> wrote: > I think the ArbFloatNN names seem clearest. Calling these DigitsNN does > seem misleading since digits are technically only decimal. > > On Sun, Jan 3, 2016 at 11:05 P

Re: [julia-users] ANN: Float128 and Float{256,512,1024} for common math

2016-01-03 Thread Jeffrey Sarnoff
tility and internal efficiency. On Sunday, January 3, 2016 at 3:24:11 PM UTC-5, Jeffrey Sarnoff wrote: > > OK, I am changing the names. > > On Sunday, January 3, 2016 at 3:10:21 PM UTC-5, Fredrik Johansson wrote: >> >> >> On Saturday, January 2, 2016 at 5:50:58 PM UTC+1, Scott

Re: [julia-users] ANN: Float128 and Float{256,512,1024} for common math

2016-01-03 Thread Jeffrey Sarnoff
And I'll make the internal Ball value available using showball() -- other requests? On Sunday, January 3, 2016 at 3:28:53 PM UTC-5, Jeffrey Sarnoff wrote: > > Unless there is objection, I will use Digits35, Digits75, Digits150, > Digits300 (and adjust the rounding accordingly). >

Re: [julia-users] ANN: Float128 and Float{256,512,1024} for common math

2016-01-03 Thread Jeffrey Sarnoff
OK, I am changing the names. On Sunday, January 3, 2016 at 3:10:21 PM UTC-5, Fredrik Johansson wrote: > > > On Saturday, January 2, 2016 at 5:50:58 PM UTC+1, Scott Jones wrote: >> >> This is very interesting! I'm curious as to how it will compare to >> Unums, as it seems both Fredrik

Re: [julia-users] ANN: Float128 and Float{256,512,1024} for common math

2016-01-03 Thread Jeffrey Sarnoff
Unless there is objection, I will use Digits35, Digits75, Digits150, Digits300 (and adjust the rounding accordingly). On Sunday, January 3, 2016 at 3:24:11 PM UTC-5, Jeffrey Sarnoff wrote: > > OK, I am changing the names. > > On Sunday, January 3, 2016 at 3:10:21 PM UTC-5, Fredr

Re: [julia-users] Detecting the constructor calls & return calls in an expr

2016-01-03 Thread Jeffrey Sarnoff
unction f(x::Int64) >y = Foo(x) > > end > > On Sunday, January 3, 2016 at 8:28:04 PM UTC-8, Jeffrey Sarnoff wrote: >> >> Are you trying to instrument all creation of typed instances? >> >> On Sunday, January 3, 2016 at 11:24:25 PM UTC-5, Jeffrey Sarnoff w

Re: [julia-users] ANN: Float128 and Float{256,512,1024} for common math

2016-01-03 Thread Jeffrey Sarnoff
etc. or Arb*, or ArbFloat*? > Distinguishing Arb floating types from plain old IEEE floats is good, IMO, > since these seem a lot more interesting! ;-) > > On Sunday, January 3, 2016 at 4:53:31 PM UTC-5, Jeffrey Sarnoff wrote: >> >> FloatHigher.jl <https://github.com/J-Sarno

Re: [julia-users] Detecting the constructor calls & return calls in an expr

2016-01-03 Thread Jeffrey Sarnoff
Hi Julia, The simplest way to do this is to make Foo a type and define its type constructor to behave as you wish. type Foo n::Float64 end function Foo(n::Float64) record = createRecordForFooDB(n) saveRecordInFooDB(record) println("saved Foo($(n)) to DB") end On Sunday, January

Re: [julia-users] Detecting the constructor calls & return calls in an expr

2016-01-03 Thread Jeffrey Sarnoff
y. For every constructor of every type, > That makes it a bit problematic. > Thanks > > > > On Sunday, January 3, 2016 at 7:59:11 PM UTC-8, Jeffrey Sarnoff wrote: >> >> Hi Julia, >> >> The simplest way to do this is to make Foo a type and define its type >>

Re: [julia-users] Detecting the constructor calls & return calls in an expr

2016-01-03 Thread Jeffrey Sarnoff
Are you trying to instrument all creation of typed instances? On Sunday, January 3, 2016 at 11:24:25 PM UTC-5, Jeffrey Sarnoff wrote: > > Do you want to create DB entries when other programmer's types are called? > > On Sunday, January 3, 2016 at 11:22:10 PM UTC-5, Julia

Re: [julia-users] Detecting the constructor calls & return calls in an expr

2016-01-03 Thread Jeffrey Sarnoff
I can get you halfway there: julia> Base.call{T<:Function}(fn::T, arg::Any) = begin println("I see: ($fn($arg))"); fn(arg) end call (generic function with 1037 methods) julia> Base.call{T<:Function}(fn::T, arg1::Any, arg2::Any) = begin println("I see: ($fn($arg1,$arg2))"); fn(arg1,arg2) end

Re: [julia-users] ANN: Float128 and Float{256,512,1024} for common math

2016-01-03 Thread Jeffrey Sarnoff
ed something else, so as not to cause confusion > with the IEEE standard binary floating point types? > > Do you have any benchmarks comparing these to BigFloats with precision set > to 128, 256, 512, 1024 bits? > > Scott > > On Thursday, December 31, 2015 at 2:50:55 AM U

Re: [julia-users] ANN: Float128 and Float{256,512,1024} for common math

2015-12-30 Thread Jeffrey Sarnoff
y Fredrik Johannson about ball arithmetic in general > and how he implements it in Arb: > > http://fredrikj.net/blog/2013/10/tradeoffs-in-ball-arithmetic/ > > On Tue, Dec 29, 2015 at 11:30 PM, Jeffrey Sarnoff < > jeffrey.sarn...@gmail.com> wrote: > >> >> FloatHigher

Re: [julia-users] Is it possible to initialize a type parameter with promote_type()?

2015-12-29 Thread Jeffrey Sarnoff
On Mon, Dec 28, 2015 at 11:38 PM, Jeffrey Sarnoff <jeffrey...@gmail.com > > wrote: > >> is there a way to do accomplish this? >> >> immutable Ivl{B<:AkoBound, R<:Real} # R <-- >> promote_type(typeof(lo),typeof(hi)) >> lo::Real

[julia-users] ANN: Float128 and Float{256,512,1024} for common math

2015-12-29 Thread Jeffrey Sarnoff
FloatHigher.jl Accurate high precision floating point math computed quickly. Fredrik Johannson's Arb, included with Nemo.jl, does the work. The type[s] that this module exports is user selectable, one or more of { Float128, Float256, Float512,

[julia-users] Is it possible to initialize a type parameter with promote_type()?

2015-12-28 Thread Jeffrey Sarnoff
is there a way to do accomplish this? immutable Ivl{B<:AkoBound, R<:Real} # R <-- promote_type(typeof(lo),typeof(hi)) lo::Real # allow lo, hi to differ in type (subtypes of Real) hi::Real ?? end

[julia-users] Re: Help needed with understanding types and arguments re: methods(Complex)

2015-12-22 Thread Jeffrey Sarnoff
e.. what does it mean? Is ::Type{} casting a Complex number? So do you then have to say something like Complex(self, realpart, imagpart)? On Tuesday, 22 December 2015 16:27:36 UTC+2, Jeffrey Sarnoff wrote: > > Think of Complex as complex number factory. As with any factory, this one > t

[julia-users] Re: Help needed with understanding types and arguments re: methods(Complex)

2015-12-22 Thread Jeffrey Sarnoff
Think of Complex as complex number factory. As with any factory, this one takes in some raw material, one or two numbers that are some subtype of Real, and produces its product -- a Complex number. And this makes sense mathematically; Real numbers are 'real number part' of Complex numbers, so

[julia-users] Re: Survey: what documentation platforms do you use? Are you happy?

2015-12-20 Thread Jeffrey Sarnoff
Whatever you decide, pandoc should help you automate translation, and it is strong enough to lean on. I have not used a markup system with readable raw files and good math support and just enough flexibility. On Sunday, December 20, 2015 at 1:43:35 PM UTC-5, Tomas Lycken

[julia-users] using types with params that nest types?

2015-12-19 Thread Jeffrey Sarnoff
I am unclear about how higher order parameterizations, some nested, best govern method dispatch. Here is a simplified exemplar. What of this is appropriate --how is it approached? #= n talleys the number of system Floats used as an extended accumulator F is the floating

[julia-users] Re: why are various NaNs isequal?

2015-12-18 Thread Jeffrey Sarnoff
(more) this discussion https://github.com/JuliaLang/julia/issues/8343 On Friday, December 18, 2015 at 9:23:48 AM UTC-5, Jeffrey Sarnoff wrote: > > here is the relevant discussion: > https://github.com/JuliaLang/julia/issues/5314 > > On Friday, December 18, 2015 at 8:09:10

[julia-users] Re: why are various NaNs isequal?

2015-12-18 Thread Jeffrey Sarnoff
here is the relevant discussion: https://github.com/JuliaLang/julia/issues/5314 On Friday, December 18, 2015 at 8:09:10 AM UTC-5, Tamas Papp wrote: > > For example, > > julia> isequal(NaN,NaN16) > true > > julia> isequal(NaN,NaN32) > true > > This is of course documented in the manual,

Re: [julia-users] Re: Strange behavior using "^" (power function)

2015-12-17 Thread Jeffrey Sarnoff
Chris, That package is no longer supported and it is missing division, sqrt .. Would a double-double type supporting (+),(-),(*),(sqrt) suffice for your work? I have written that as part of something else, and am willing to separate it out for others to use. Jeffrey On Thursday, December

Re: [julia-users] Re: Using macros to override lots of operators for a user-defined type

2015-12-16 Thread Jeffrey Sarnoff
Thanks. This link may be of interest to you: wrapping and delegating <https://groups.google.com/forum/#!msg/julia-dev/MV7lYRgAcB0/-tS50TreaPoJ> On Wednesday, December 16, 2015 at 4:54:07 PM UTC-5, Greg Plowman wrote: > > > On Thursday, December 17, 2015 at 12:12:06 AM UTC+11,

Re: [julia-users] Re: Using macros to override lots of operators for a user-defined type

2015-12-16 Thread Jeffrey Sarnoff
Useful stuff, Greg. I would like to see the way you implemented handing copy constructors, unary operators, etc. Would you mind collecting them in a gist or posting a link to the file[s]? On Wednesday, December 16, 2015 at 5:22:24 AM UTC-5, Greg Plowman wrote: > > I have exactly the same

[julia-users] Re: ANN: FlexFloat, interval valued, stretchy floats for accuracy (each is 2-stateful, if desired)

2015-12-11 Thread Jeffrey Sarnoff
l > > -simon > > On Friday, 11 December 2015 05:09:27 UTC, Jeffrey Sarnoff wrote: >> >> FlexFloat <https://github.com/J-Sarnoff/FlexFloat.jl> is available -- >> see the front page for a better sense of its purpose. >> >>

[julia-users] ANN: FlexFloat, interval valued, stretchy floats for accuracy (each is 2-stateful, if desired)

2015-12-10 Thread Jeffrey Sarnoff
FlexFloat is available -- see the front page for a better sense of its purpose.

[julia-users] Re: conditional dependencies on packages with macros

2015-12-08 Thread Jeffrey Sarnoff
s present, and false when the package is not present, before trying to load it: `` isdir(joinpath(Pkg.dir(),"Package") ``` On Tuesday, December 8, 2015 at 11:02:17 AM UTC-5, Jeffrey Sarnoff wrote: if isdir(joinpath(Pkg.dir(),"Package")) ... else ... end On Monday, December

[julia-users] Is the accuracy of Julia's elementary functions (exp, sin ..) known?

2015-12-08 Thread Jeffrey Sarnoff
``` julia> x, exp(x), Float64(exp(big(x))) (0.05489354701373524,1.0564281487582248,1.0564281487582246) ``` Is it known that e.g. all elementary functions return a value v such that true value is in: prevfloat(v)..nextfloat(v)? Are tighter results known for some functions?

[julia-users] Re: conditional dependencies on packages with macros

2015-12-08 Thread Jeffrey Sarnoff
if isdir(joinpath(Pkg.dir(),"Package")) ... else ... end On Monday, December 7, 2015 at 10:50:56 AM UTC-5, Seth wrote: > > Is there a way to specify a conditional dependency (that is, use package > Foo if it's available and define functions that use things from Foo; > otherwise, don't

[julia-users] Re: Using DataFrames

2015-12-08 Thread Jeffrey Sarnoff
Looking at http://dataframesjl.readthedocs.org/en/latest/io.html#advanced-options-for-reading-csv-files, there is an option *eltypes .* On Tuesday, December 8, 2015 at 7:24:26 AM UTC-5, Vishnu Raj wrote: > > Hi, > I have a CSV file with values represented as 2.345 and 1.23e2 (say) and no >

Re: [julia-users] Re: constructors and parametric typealias

2015-12-08 Thread Jeffrey Sarnoff
While close, constructors and conversions are not exactly the same. see the first two paragraphs here For your typealias, by including the type of number there is no

[julia-users] Re: Can somebody provide an advice as to how to fix this?

2015-12-04 Thread Jeffrey Sarnoff
I just ran Juliabox and found it working. On Friday, December 4, 2015 at 3:22:23 PM UTC-5, Arin Basu wrote: > > I posted the "internal server error: 500" on juliabox discussion group, > but it did not work. There was one response asking me to fix the SSH key. > > Is it something to be fixed by

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

2015-12-03 Thread Jeffrey Sarnoff
We need a few frendly gateguides (so, usually there would not be many days delay) to assure whatever wants assurance. If you share with me what this means "this work meets Julia's community guidelines and so ready for METADATA registration," (and direct me to any relevant threads/doc), I will

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

2015-12-03 Thread Jeffrey Sarnoff
*ahh to advertise as do movies, using quotes as collage* "We have found ... working with [Julia is] simply more pleasant and user-friendly than working with our old codebase. ...[using Julia] has made our development workflow significantly more robust.. [and makes] it easy to be much more

[julia-users] Re: Julia Docker images

2015-12-03 Thread Jeffrey Sarnoff
Do Gallium and Cxx now come along with "docker run -it julia"? On Tuesday, October 13, 2015 at 9:15:29 PM UTC-4, Jonathan Malmaud wrote: > > There's an official Julia docker repository now: > https://hub.docker.com/_/julia/ > > There is a PR to uptdate it to 0.4: >

[julia-users] Re: Julia career advice question (x-post r/julia)

2015-12-01 Thread Jeffrey Sarnoff
Hello; assuming you are a student, and have a couple years before getting hired becomes paramount, I'd recommend becoming facile with Julia and Python, separately. Your intuition about Julia's horizon is very good, and right. And looking two years out, there will be much more 'want' than

[julia-users] Re: Julia career advice question (x-post r/julia)

2015-12-01 Thread Jeffrey Sarnoff
I am not current with tutorials for either language. This may help: Python (not to be missed) Robert Sedgewick's new book "Introduction To Programming in Python" (Python explained) The second edition of "Python Programming" by John Zelle (short pithy code) The third

Re: [julia-users] help using abstract types & code to play well with others' types based on Real or Float

2015-12-01 Thread Jeffrey Sarnoff
JeffB's FixedPointNumbers does it; seeing that, I have a model. On Tuesday, December 1, 2015 at 2:05:25 PM UTC-5, Jeffrey Sarnoff wrote: > > As an example: using JuliaGeometry/Quaternion.jl and initializing a > Quaternion with FlexFloats instead of Float64s. I have all of the >

[julia-users] help using abstract types & code to play well with others' types based on Real or Float

2015-12-01 Thread Jeffrey Sarnoff
I am working on a module that uses bounded intervals. It would be great if the result were easy to use with other's packaged floating-point based or Real derived types. They work like stretchy Float64s, and support arith, exp, log, [a]trig[h], and cdf+pdf+quantile for univariate continuous

Re: [julia-users] help using abstract types & code to play well with others' types based on Real or Float

2015-12-01 Thread Jeffrey Sarnoff
There may be some way to leverage the promotion system for this purpose. I do not know how to do that. On Tuesday, December 1, 2015 at 12:30:57 PM UTC-5, Jeffrey Sarnoff wrote: > > Yes -- it rocks. Promotion+conversion needs to know detailed stuff about > the destination type (unsur

Re: [julia-users] help using abstract types & code to play well with others' types based on Real or Float

2015-12-01 Thread Jeffrey Sarnoff
))" for some method f, > types T1/2, and values x1/2 and get your result, then I expect the > promotion system will work fine. > > On Tuesday, December 1, 2015, Jeffrey Sarnoff <jeffrey...@gmail.com > > wrote: > >> There may be some way to leverage the pro

[julia-users] Re: Proposal: NoveltyColors.jl

2015-11-30 Thread Jeffrey Sarnoff
How about using dictionaries -- xkcd[:skyblue] = 0x06c2ac? This would open up the way for source specific named colors (e.g. paints). On Monday, November 30, 2015 at 5:38:10 PM UTC-5, Alex Mellnik wrote: > > On a related note, I've been thinking that it would be nice to include the > results

Re: [julia-users] [ANN] more error-free transformations

2015-11-25 Thread Jeffrey Sarnoff
keeping a close eye on the package. Thanks > Jeffrey. > > On Wednesday, November 25, 2015, Jeffrey Sarnoff < > jeffrey.sarn...@gmail.com> wrote: > >> >> These are distinct operators that substitute directly for (+),(-),(*),(/) >> in situations where one want

Re: [julia-users] [ANN] more error-free transformations

2015-11-25 Thread Jeffrey Sarnoff
5 at 9:19:08 AM UTC-5, Tom Breloff wrote: > > Thanks Jeffrey. Can you expand on the specifics of the package? What > would you say are the primary use cases? How does this differ from interval > arithmetic or Unums? > > On Wednesday, November 25, 2015, Jeffrey Sarnoff <jeff

Re: [julia-users] [ANN] more error-free transformations

2015-11-25 Thread Jeffrey Sarnoff
anks Jeffrey. Can you expand on the specifics of the package? What > would you say are the primary use cases? How does this differ from interval > arithmetic or Unums? > > On Wednesday, November 25, 2015, Jeffrey Sarnoff <jeffrey...@gmail.com > > wrote: > >> Error

[julia-users] [ANN] more error-free transformations

2015-11-25 Thread Jeffrey Sarnoff
ErrorFreeArith.jl offers error-free transformations not (yet?) included in the ErrorFreeTransforms package by dsiem. These operations convey the usual arithmetic result accompanied by a residual value that is usually lost to rounding. This gives

Re: [julia-users] Re: Better alternative to find all permutations?

2015-11-20 Thread Jeffrey Sarnoff
Arrays are indexed sequences of indexable sequences of arrays .. to ground. An array may exist whereof two or more distinct indices find content deemed indistinguishable were it devoid of the indexicalic contextualization that finds. And one may count all the stars were the canopy devoid of of

Re: [julia-users] Re: Better alternative to find all permutations?

2015-11-19 Thread Jeffrey Sarnoff
I agree, permutations() should give the distinguishable permutations; allpermutations() should give each and every one. On Thursday, November 19, 2015 at 4:30:54 PM UTC-5, Stefan Karpinski wrote: > > It is the same code. However, I do think that there's a strong case to be > made that when the

[julia-users] What if a Union of abstract types were Abstract?

2015-11-18 Thread Jeffrey Sarnoff
#= What if a Union of abstract types were Abstract? =# import Base: super, subtypes, typeof # pretend typeof can be overloaded type AbstractUnion end super(u::Union) = typejoin(u.types...) subtypes(u::Union)= [ [(t.abstract ? subtypes(t) : [t]) for t in

[julia-users] Re: Moore foundation grant.

2015-11-11 Thread Jeffrey Sarnoff
! On Wednesday, November 11, 2015 at 3:00:50 AM UTC-5, Viral Shah wrote: > > Yes, we are really excited. This grant is to focus on core Julia compiler > infrastructure and key math libraries. Much of the libraries focus will be > on statistical Computing. > > -viral >

Re: [julia-users] help with a macro to stringize high precision floating point values

2015-11-03 Thread Jeffrey Sarnoff
UTC-5, Páll Haraldsson wrote: > > On Tuesday, November 3, 2015 at 11:14:16 AM UTC, Jeffrey Sarnoff wrote: >> >> where I copy/paste into julia to use her parsing algs >> > > [I'm not sure this is against the community standards (as has been > discussed).. To me thi

Re: [julia-users] help with a macro to stringize high precision floating point values

2015-11-03 Thread Jeffrey Sarnoff
pic: Jeffrey, will your Float128 library be correctly-rounded? > > >> >> On Monday, November 2, 2015, David P. Sanders <dpsa...@gmail.com> wrote: >> >>> >>> >>> El lunes, 2 de noviembre de 2015, 6:35:46 (UTC-6), Milan Bouchet-Valat >

[julia-users] has anyone implemented minimax function approximation with BigFloats?

2015-11-02 Thread Jeffrey Sarnoff
Has anyone implemented minimax (or near minimax) function approximation over a given interval using BigFloats?

[julia-users] help with a macro to stringize high precision floating point values

2015-11-02 Thread Jeffrey Sarnoff
I have many values like 0.6584871727288045313850172023417636020375045372547107712468813403 that come from Maple and I would like to avoid doing this by copy/paste for each one: Float128(parse(BigFloat,"0.6584871727288045313850172023417636020375045372547107712468813403")) I tried writing a macro

[julia-users] Re: Julia license/patents possibly use "Universal Permissive License"?

2015-11-02 Thread Jeffrey Sarnoff
One reason to stay with MIT License is that it has been in wide use for some time. The UPL is newer, and in these matters, there is quite a bit of import in subtle wording; experience clarifies. If you, or someone else wants to make the UPL rights available, just say e.g. (I am not a lawyer)

[julia-users] Re: what is best practice for allowing pre-'using' selection of a module-level setting

2015-10-23 Thread Jeffrey Sarnoff
Thank you -- clearly given. On Friday, October 23, 2015 at 12:07:07 PM UTC-4, Steven G. Johnson wrote: > > > > On Friday, October 23, 2015 at 8:37:58 AM UTC-4, Jeffrey Sarnoff wrote: >> >> I want to allow users of my Float12x module the choice of faster

<    1   2   3   4   5   6   >