Re: [julia-users] Juliacon 2015 videos?
Jack I've red the license, does this means that I have to ask personally every video expositor for permission to subtitle their videos? AFAICT this CC license only would apply to MIT am I right? Thanks! El lunes, 3 de agosto de 2015, 8:24:29 (UTC-5), Jack Minardi escribió: I gave a talk at JuliaCon this year. I recently received an email asking if I would respond with this text: I, the copyright holder, grant permission for MIT to distribute these files under the Creative Commons CC-BY-4.0 license ( https://creativecommons.org/licenses/by/4.0/) I did, and I assume most others did as well. So many of the videos will be released under CC-BY-4.0 On Monday, August 3, 2015 at 8:32:12 AM UTC-4, Ismael VC wrote: Kristoffer, everyone, I found 3 recent videos NOT from JuliaCon: Shashi Gowda - Escher: democratizing beautiful visualizations * https://youtu.be/2e0tOV80hh0 Viral B Shah - The many ways of parallel computing with Julia *https://youtu.be/HCcO-715acM PolyConf 15: Julia a fast dynamic language for technical computing / Stefan Karpinski * https://youtu.be/ag_NtJRmYg8 @Viral, @ Stefan and @Shashi, do you know the author/copy rights for these ones? What about the ones from JuliaCon? I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. If nobody is still sure of what license these are. Could somebody please tell me how or with whom I can find this information? Are there more recent videos like the ones I listed above? Is there a place where this video news are posted? I guess I'll 'll just start translating the videos from JuliaCon once they are released and hope that's ok. Could we plan in advance for next year and think about the licenses the videos should have, so I can stop annoying everyone with this? El lunes, 3 de agosto de 2015, 7:09:48 (UTC-5), Kristoffer Carlsson escribió: Any update on videos? On Tuesday, July 21, 2015 at 12:56:58 AM UTC+2, Luke Stagner wrote: ? On Saturday, July 11, 2015 at 9:11:15 AM UTC-7, Ismael VC wrote: I was also specially interested in translating David Sanders *Introduction to Julia* at SciPy 2014. I tried to get in contact with Enthought since January but I never got a reply: Message: I’d like add translated captions into Spanish to your Julia YouTube videos, and I was wondering how to go about it. I’ve seen a few on line tools, but I can’t import your video, from here for example: http://captiontube.appspot.com I get: Please enter a valid URL for this YouTube video. Note: if you do not own the video and it is private or cannot be embedded, you will not be able to import it. If you own the video, close this dialog and choose Personal Video to import it. bvIt’s supposed to allow me to import it so I can translate it and send the translations via e-mail to theEnthought YouTube account. Thank you very much! I just got this from their bot: We have received your support request (# 44258) and are reviewing it. On Sat, Jul 11, 2015 at 10:56 AM, Viral Shah vi...@mayin.org wrote: I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. Perhaps someone else may know. It would be great to have the spanish and other subtitles. -viral On 11-Jul-2015, at 8:16 pm, Ismael VC ismael...@gmail.com wrote: Also while I wait for this news I'd like to know which license is used currently for the videos that are already at the Julia Youtube channel. If it's ok I would also like to provide translated subtitles for some of these videos. I'm assuming this is something we all want as a community, I'm I right? @sorami are you guys at also interested in this? Id like to know which other stuff would you or anybody else expect to be part of juila-i10n. Is there anyone else interested in translating julia resources to other languages? On Sat, Jul 11, 2015 at 9:29 AM, Ismael VC ismael...@gmail.com wrote: @Viral thank you for the update! What I want is to be able to subtitle the videos, that's all. On Fri, Jul 10, 2015 at 9:52 PM, Viral Shah vi...@mayin.org wrote: We have to work through all these details still. -viral On Friday, July 10, 2015 at 11:19:31 PM UTC+5:30, Ismael VC wrote: Please could anyone tell me what's the situation with the videos copyrights would I be allowed to translate them into Spanish? El miércoles, 1 de julio de 2015, 7:07:18 (UTC-5), Hans-Peter escribió: Will there be videos of the 2015 Juliacon? Where... :-) Thanks.
Re: [julia-users] Juliacon 2015 videos?
From my reading of it, not at all, *if* you follow the terms: You must give appropriate credit, a link to the CC license, and indicate that you changed it (added subtitles). On Monday, August 3, 2015 at 11:23:35 AM UTC-4, Ismael VC wrote: Jack I've red the license, does this means that I have to ask personally every video expositor for permission to subtitle their videos? AFAICT this CC license only would apply to MIT am I right? Thanks! El lunes, 3 de agosto de 2015, 8:24:29 (UTC-5), Jack Minardi escribió: I gave a talk at JuliaCon this year. I recently received an email asking if I would respond with this text: I, the copyright holder, grant permission for MIT to distribute these files under the Creative Commons CC-BY-4.0 license ( https://creativecommons.org/licenses/by/4.0/) I did, and I assume most others did as well. So many of the videos will be released under CC-BY-4.0 On Monday, August 3, 2015 at 8:32:12 AM UTC-4, Ismael VC wrote: Kristoffer, everyone, I found 3 recent videos NOT from JuliaCon: Shashi Gowda - Escher: democratizing beautiful visualizations * https://youtu.be/2e0tOV80hh0 Viral B Shah - The many ways of parallel computing with Julia *https://youtu.be/HCcO-715acM PolyConf 15: Julia a fast dynamic language for technical computing / Stefan Karpinski * https://youtu.be/ag_NtJRmYg8 @Viral, @ Stefan and @Shashi, do you know the author/copy rights for these ones? What about the ones from JuliaCon? I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. If nobody is still sure of what license these are. Could somebody please tell me how or with whom I can find this information? Are there more recent videos like the ones I listed above? Is there a place where this video news are posted? I guess I'll 'll just start translating the videos from JuliaCon once they are released and hope that's ok. Could we plan in advance for next year and think about the licenses the videos should have, so I can stop annoying everyone with this? El lunes, 3 de agosto de 2015, 7:09:48 (UTC-5), Kristoffer Carlsson escribió: Any update on videos? On Tuesday, July 21, 2015 at 12:56:58 AM UTC+2, Luke Stagner wrote: ? On Saturday, July 11, 2015 at 9:11:15 AM UTC-7, Ismael VC wrote: I was also specially interested in translating David Sanders *Introduction to Julia* at SciPy 2014. I tried to get in contact with Enthought since January but I never got a reply: Message: I’d like add translated captions into Spanish to your Julia YouTube videos, and I was wondering how to go about it. I’ve seen a few on line tools, but I can’t import your video, from here for example: http://captiontube.appspot.com I get: Please enter a valid URL for this YouTube video. Note: if you do not own the video and it is private or cannot be embedded, you will not be able to import it. If you own the video, close this dialog and choose Personal Video to import it. bvIt’s supposed to allow me to import it so I can translate it and send the translations via e-mail to theEnthought YouTube account. Thank you very much! I just got this from their bot: We have received your support request (# 44258) and are reviewing it. On Sat, Jul 11, 2015 at 10:56 AM, Viral Shah vi...@mayin.org wrote: I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. Perhaps someone else may know. It would be great to have the spanish and other subtitles. -viral On 11-Jul-2015, at 8:16 pm, Ismael VC ismael...@gmail.com wrote: Also while I wait for this news I'd like to know which license is used currently for the videos that are already at the Julia Youtube channel. If it's ok I would also like to provide translated subtitles for some of these videos. I'm assuming this is something we all want as a community, I'm I right? @sorami are you guys at also interested in this? Id like to know which other stuff would you or anybody else expect to be part of juila-i10n. Is there anyone else interested in translating julia resources to other languages? On Sat, Jul 11, 2015 at 9:29 AM, Ismael VC ismael...@gmail.com wrote: @Viral thank you for the update! What I want is to be able to subtitle the videos, that's all. On Fri, Jul 10, 2015 at 9:52 PM, Viral Shah vi...@mayin.org wrote: We have to work through all these details still. -viral On Friday, July 10, 2015 at 11:19:31 PM UTC+5:30, Ismael VC wrote: Please could anyone tell me what's the situation with the videos copyrights would I be allowed to translate them into Spanish? El miércoles, 1 de julio de 2015, 7:07:18 (UTC-5), Hans-Peter escribió: Will there be videos of the 2015 Juliacon? Where... :-) Thanks.
Re: [julia-users] ANN: support for the orignial role of quiet NaNs
On Sun, 2 Aug 2015, Jeffrey Sarnoff wrote: Quiet NaNs (QNaNs) were introduced into the Floating Point Standard as a tool for applied numerical work. That's why there are so many of them (Float64s have nearly 2^52 of them, Float32s have nearly 2^23 and Float16s have nearly 2^10 QNaNs). AFAIK Julia and most other languages use one or two of each in most circumstances. Half of the QNaNs are in some sense positive and the other half negative (their sign bits can be queried, even though they are not magnitudes). While QNaNs are unordered by definition, they each have an embedded *payload:* an embedded integer value that exists to be set with information of reflective value. And then to carry it, propagating through the rest of the numerical work so it becomes available for use by the designer or investigator. A logical application for the many different quiet NaNs is to encode different types of meta-numeric value. Of course, there is the basic NaN, for example 0/0 = NaN. However using a different payload in the NaN might be used to signal NA (i.e. missing). One can think of many other fault states which arise in numerical computing with real data, such as value out of bounds, invalid value, etc. All these different states might be encoded using NaNs of different payloads. The devil is in the details, however. For example, the missing value NA propagates differently from the standard NaN. Consider: mean([1 2 NA 4 5]) = 3 mean([1 2 NaN 4 5]) = NaN. Therefore, the function mean() needs to know how to treat the NaN differently from the NA. Moreover, I believe that to make use of the different NaN payloads, hardware makers would need to build knowledge of the different NaN types (and propagation rules) into their floating point ALUs. Is this right? One can implement this scheme in software, but the problem is that one needs to match the NaN payload in software, which degrades floating point performance in a big way. Therefore, standardization and hardware support are important. My question: Have any hardware makers ever looked into utilizing the different NaN payloads for the above scheme? How about standardization bodies? Stuart
[julia-users] Re: ANN: Julia manager
That's a fair amount of code, and has a license that many in the Julia community would strongly prefer to avoid if at all possible, to do more or less the same thing as a script I wrote last year: https://github.com/JuliaLang/julialang.github.com/blob/master/install-julia.sh We don't really use that script very many places, but it was briefly useful for me to install Julia on Travis CI on multiple operating systems (Linux or Mac) before we got support for `language: julia` integrated into Travis. On Monday, August 3, 2015 at 3:32:14 AM UTC-7, Abel Siqueira wrote: Hello all, I would like to announce [Julia Manager]( https://github.com/abelsiqueira/julia-mngr), a CLI script to install and maintain Julia binaries for both release and nightly. It's very raw, so feel free to make suggestions. **It currently only supports GNU/Linux with bash.** Reasons to use this: - You want Julia release and nightly version at same time. - You only need the binaries. - You don't want to open the browser to get it. Reasons to not use this: - You only want one version (can be implemented) - You want to compile from source (can be implemented) - You know of a better way to do this (tell me) - You are using OSX (maybe can be implemented) - You are on Windows
[julia-users] [Doc] Arbitrary Precision Arithmetic section may be outdated
In the online help document Arbitrary Precision Arithmetic section (http://docs.julialang.org/en/latest/manual/integers-and-floating-point-numbers/), it uses `parse` to construct `BigInt`, and claims that promotion are not automatic. But in my experience (v0.3.11 and v0.4-dev), it is not the case. 12345678901234567890123456789000 + 1 12345678901234567890123456789001 typeof(ans) Base.GMP.BigInt
[julia-users] Re: ANN: support for the orignial role of quiet NaNs
Your way of using NaNs without them following the math out is reasonable. I would much rather be considering how glean which places in the spaces I review are best candidates for visits from participatory quiet nans, and how to speak that language without garbling words. The part that is most thought-provoking for me is where I may preposition a small, quiet flotilla somehow having equiped them with how to know when to gobble some context into the payload, and knowing they will --surf the math-- on out. It is a bit unquantumly -- these observers observe as the electromath happens, and they can ride it to our benefit, presumably. It seems that there is software architectural strength to accompany knowing productive ways of applying this tool and the mist or swarm of many at once. Its the sort of technology that is better understood when used. On Monday, August 3, 2015 at 5:00:15 PM UTC-4, Jason Riedy wrote: And Jeffrey Sarnoff writes: IEEE 754-2008 makes it clear that QNaN payload values are fare game: (is says details of NaN propagtion may have vender differences, and) Having been in the room at the time of utter despair... (And admittedly not having looked at your package yet.) One right way of using the NaN values without following their propagation is the following: - ensure the input has NaN payloads denoting something about their origin and the likelihood of causing issues later, - check the invalid flag at a felicitous time, then - scanning to the inputs to rank the possible issues. This somewhat fits a Lispy with-NaN-debugging macro style (that can at compile time ignore absolutely everything depending on the safety level). Naturally, it's not guaranteed to work, and I'm not at all sure how a user could fill in the payloads appropriately. If there is a good answer to filling in the payloads, well, the standard is up for revision...
Re: [julia-users] [Doc] Arbitrary Precision Arithmetic section may be outdated
On Mon, Aug 3, 2015 at 8:17 PM, Sisyphuss zhengwend...@gmail.com wrote: In the online help document Arbitrary Precision Arithmetic section (http://docs.julialang.org/en/latest/manual/integers-and-floating-point-numbers/), it uses `parse` to construct `BigInt`, and claims that promotion are not automatic. All what it says is true AFAICT. parse() can be use to construct them from AbstractStrings `parse(...)` is nothing different from what you get from typing a big number in the source code both should work. I don't know why it doesn't mention you can just type a big number so that could probably be added. However, type promotion between the primitive types above and BigInt/BigFloat is not automatic and must be explicitly stated. The promotion is not automatic and not likely to ever be. In the example you have below the result is BigInt because the first operand is a BigInt. But in my experience (v0.3.11 and v0.4-dev), it is not the case. 12345678901234567890123456789000 + 1 12345678901234567890123456789001 typeof(ans) Base.GMP.BigInt
[julia-users] Re: Cholesky of indefinite matrices
Try ldltfact. On Monday, August 3, 2015 at 4:27:43 PM UTC-7, Dominique Orban wrote: Certain indefinite matrices possess a LDL' factorization with D diagonal (note that this is not Bunch-Parlett/Kaufmann). In Julia 0.3, it was possible to compute this factorization: julia VERSION v0.3.8 julia A = [1.0 1 ; 1 -1]; julia LDL = cholfact(sparse(A)); julia ... but sadly, no more in 0.4: julia VERSION v0.4.0-dev+6441 julia A = [1.0 1 ; 1 -1]; julia LDL = cholfact(sparse(A)); ERROR: Base.LinAlg.PosDefException(1) in cholfact at sparse/cholmod.jl:1196 in cholfact at sparse/cholmod.jl:1219 That's too bad because for one, large-scale computational optimization can go a long way with the sparse factorization of such matrices, without resorting to the far more complicated (but sometimes necessary) 2x2 pivots. The existence and stability of this factorization has been studied in the literature, and it can be shown to exist for all so-called symmetric and quasi-definite matrices (a generalization of definite matrices). Turning off the pivot sign check in Cholesky is sufficient to implement it, so that's all that needs to be done in Cholmod. Any chance of re-enabling this feature?
[julia-users] Type promotion system
integer addition... operands are promoted to Int or UInt from narrower integer types (http://docs.julialang.org/en/latest/manual/integers-and-floating-point-numbers/) These catch-all rules first promote all operands to a common type ( http://docs.julialang.org/en/latest/manual/conversion-and-promotion/#man-conversion-and-promotion ) `Int8` is definitely not a subclass of `Int`, do this two assertions contradict to each other?
[julia-users] Re: Dispatching on Subtypes
Your errors are with the typo in Furniture (which leads to ERROR: UndefVarError: Furniture not defined) and the parentheses around your type parameterization here: julia f({T : Furnature})(::Type{T}) = 10 The correct function definition should be julia f{T : Furniture}(::Type{T}) = 10 On Monday, August 3, 2015 at 4:44:31 PM UTC-7, Jeffrey Sarnoff wrote: would you mind updating this, I just ran it and did not know how to change {T : Furnature} to Use Any[a,b, ..] instead, thank you julia abstract Furnature julia type Table : Furnature end julia f({T : Furnature})(::Type{T}) = 10 WARNING: deprecated syntax {a,b, ...}. Use Any[a,b, ...] instead. ERROR: syntax: invalid method name f({T:Furnature}) julia f(::Furnature) = 17 f (generic function with 1 method) julia f(Furniture) ERROR: UndefVarError: Furniture not defined julia f(Table) ERROR: MethodError: `f` has no method matching f(::Type{Table}) julia f(Table()) 17 On Thursday, July 23, 2015 at 1:59:43 PM UTC-4, Tom Breloff wrote: And to be complete, depending on your use-case: julia abstract Furniture julia type Table : Furniture end julia f(::Furniture) = 10 f (generic function with 1 method) julia f(Table()) 10 On Thursday, July 23, 2015 at 1:01:39 PM UTC-4, Vinuth Madinur wrote: Yes! Thats awesome. Thanks, Vinuth. On Thursday, July 23, 2015 at 10:10:04 PM UTC+5:30, Seth wrote: Is this what you're looking for? julia abstract Furniture julia type Table : Furniture end julia f{T:Furniture}(::Type{T}) = 10 f (generic function with 1 method) julia f(Furniture) 10 julia f(Table) 10 On Thursday, July 23, 2015 at 9:34:12 AM UTC-7, Vinuth Madinur wrote: Hi, Is there a way to do function dispatch on subtypes? For example, consider the following: abstract Furniture type Table : Furniture end f(::Type{Furniture}) = 10 f(Furniture) 10 f(Table) Error. How do I enable the same function to be called when I do f(Table)? Thanks, Vinuth.
[julia-users] Cholesky of indefinite matrices
Certain indefinite matrices possess a LDL' factorization with D diagonal (note that this is not Bunch-Parlett/Kaufmann). In Julia 0.3, it was possible to compute this factorization: julia VERSION v0.3.8 julia A = [1.0 1 ; 1 -1]; julia LDL = cholfact(sparse(A)); julia ... but sadly, no more in 0.4: julia VERSION v0.4.0-dev+6441 julia A = [1.0 1 ; 1 -1]; julia LDL = cholfact(sparse(A)); ERROR: Base.LinAlg.PosDefException(1) in cholfact at sparse/cholmod.jl:1196 in cholfact at sparse/cholmod.jl:1219 That's too bad because for one, large-scale computational optimization can go a long way with the sparse factorization of such matrices, without resorting to the far more complicated (but sometimes necessary) 2x2 pivots. The existence and stability of this factorization has been studied in the literature, and it can be shown to exist for all so-called symmetric and quasi-definite matrices (a generalization of definite matrices). Turning off the pivot sign check in Cholesky is sufficient to implement it, so that's all that needs to be done in Cholmod. Any chance of re-enabling this feature?
[julia-users] Re: Dispatching on Subtypes
(of course .. ) thank you On Monday, August 3, 2015 at 7:49:11 PM UTC-4, Seth wrote: Your errors are with the typo in Furniture (which leads to ERROR: UndefVarError: Furniture not defined) and the parentheses around your type parameterization here: julia f({T : Furnature})(::Type{T}) = 10 The correct function definition should be julia f{T : Furniture}(::Type{T}) = 10 On Monday, August 3, 2015 at 4:44:31 PM UTC-7, Jeffrey Sarnoff wrote: would you mind updating this, I just ran it and did not know how to change {T : Furnature} to Use Any[a,b, ..] instead, thank you julia abstract Furnature julia type Table : Furnature end julia f({T : Furnature})(::Type{T}) = 10 WARNING: deprecated syntax {a,b, ...}. Use Any[a,b, ...] instead. ERROR: syntax: invalid method name f({T:Furnature}) julia f(::Furnature) = 17 f (generic function with 1 method) julia f(Furniture) ERROR: UndefVarError: Furniture not defined julia f(Table) ERROR: MethodError: `f` has no method matching f(::Type{Table}) julia f(Table()) 17 On Thursday, July 23, 2015 at 1:59:43 PM UTC-4, Tom Breloff wrote: And to be complete, depending on your use-case: julia abstract Furniture julia type Table : Furniture end julia f(::Furniture) = 10 f (generic function with 1 method) julia f(Table()) 10 On Thursday, July 23, 2015 at 1:01:39 PM UTC-4, Vinuth Madinur wrote: Yes! Thats awesome. Thanks, Vinuth. On Thursday, July 23, 2015 at 10:10:04 PM UTC+5:30, Seth wrote: Is this what you're looking for? julia abstract Furniture julia type Table : Furniture end julia f{T:Furniture}(::Type{T}) = 10 f (generic function with 1 method) julia f(Furniture) 10 julia f(Table) 10 On Thursday, July 23, 2015 at 9:34:12 AM UTC-7, Vinuth Madinur wrote: Hi, Is there a way to do function dispatch on subtypes? For example, consider the following: abstract Furniture type Table : Furniture end f(::Type{Furniture}) = 10 f(Furniture) 10 f(Table) Error. How do I enable the same function to be called when I do f(Table)? Thanks, Vinuth.
[julia-users] Re: Sorting Out Scope Rules...
The easy way to get rid of the warning seems to be: changing: using goguts in my program to: include(goguts.jl) --- No scope hassles so far... On Sun, Aug 2, 2015 at 12:15 PM, Forrest Curo treegest...@gmail.com wrote: I have a program which uses Tk and Cairo to draw a gameboard in a window. I would like to put this as a function in a larger program; but the window and board persist and remain accessible only while the loop in that program continues to run. Okay, then, if I want to avoid clutter in the parts of the program that actually do anything, I can put them into a function and call that function each time the loop repeats This works, but I get a warning: 'requiring goguts did not define a corresponding module.' If I put the words module and end around my function, I no longer get the warning, but the arrangement stops working! Functions and variables defined in the original program stop being recognized in the new module; and if I put them into a third module it all turns to muddle. Should I just leave out the stuff about 'module' and go on getting the warning? -- or is there some way this kind of looping structure is properly supposed to be handled?
[julia-users] Re: Dispatching on Subtypes
would you mind updating this, I just ran it and did not know how to change {T : Furnature} to Use Any[a,b, ..] instead, thank you julia abstract Furnature julia type Table : Furnature end julia f({T : Furnature})(::Type{T}) = 10 WARNING: deprecated syntax {a,b, ...}. Use Any[a,b, ...] instead. ERROR: syntax: invalid method name f({T:Furnature}) julia f(::Furnature) = 17 f (generic function with 1 method) julia f(Furniture) ERROR: UndefVarError: Furniture not defined julia f(Table) ERROR: MethodError: `f` has no method matching f(::Type{Table}) julia f(Table()) 17 On Thursday, July 23, 2015 at 1:59:43 PM UTC-4, Tom Breloff wrote: And to be complete, depending on your use-case: julia abstract Furniture julia type Table : Furniture end julia f(::Furniture) = 10 f (generic function with 1 method) julia f(Table()) 10 On Thursday, July 23, 2015 at 1:01:39 PM UTC-4, Vinuth Madinur wrote: Yes! Thats awesome. Thanks, Vinuth. On Thursday, July 23, 2015 at 10:10:04 PM UTC+5:30, Seth wrote: Is this what you're looking for? julia abstract Furniture julia type Table : Furniture end julia f{T:Furniture}(::Type{T}) = 10 f (generic function with 1 method) julia f(Furniture) 10 julia f(Table) 10 On Thursday, July 23, 2015 at 9:34:12 AM UTC-7, Vinuth Madinur wrote: Hi, Is there a way to do function dispatch on subtypes? For example, consider the following: abstract Furniture type Table : Furniture end f(::Type{Furniture}) = 10 f(Furniture) 10 f(Table) Error. How do I enable the same function to be called when I do f(Table)? Thanks, Vinuth.
Re: [julia-users] $(esc(args)...)
Thank you for helping out again. It does work for $(map(esc, body)...), so it's probably a bug. I'll file an issue if no one comes up with something better. On Monday, August 3, 2015 at 11:03:47 PM UTC-4, Yichao Yu wrote: On Mon, Aug 3, 2015 at 10:47 PM, Cedric St-Jean cedric...@gmail.com javascript: wrote: I'm trying to write a macro that takes up a function definition and outputs another one. It starts like: macro mac(fdef) @capture(fdef, begin function fname_ (args__) body__ end end) :(function $(esc(fname)) ($(args...)) ... end) end Macrotools are very convenient for getting the args, but I have issues putting them back into place. I thought it wouldn't matter if they were gensym'ed, but it turns out that arguments like (x::SomeType) will have SomeType resolved in the macro's environment, which is obviously wrong. So I need to escape hygiene. Something like $(esc(args)...), but that does not work, as esc returns an Expr. I thought that $(map(esc, args)...) could make sense, but it's complaining that: :($(Expr(:error, \(escape x)\ is not a valid function argument name))) Enter code here... Seems that escape is not accepted in function arguments. Possibly a bug... which makes little sense to me. Any ideas? Cédric
[julia-users] Re: Type promotion system
If you accept that an Int8 is a narrower integer type than Int32|64 and that the two Int8 operands to an addition, subtraction, multiplication, are promoted to Ints before the operation occurs To minimize the practical impact of this overflow, It is hard to argue that they have first been promoted to a common type (common in the sense of 'shared'; they are both of this shared type -- in this example, they were of a narrower shared type before the promotion. If you read 'common' to mean a type that each operand reaches traversing its own supertype hierarchy, being promoted to a type that is a joint supertype; that is a very high bar for a language that is not at present offering inheritance of instantiable types. Following your sense that somewhere was a contradiction In applications where overflow is possible, explicit checking for wraparound produced by overflow is essential; ... To minimize the practical impact of this overflow, integer addition, subtraction, multiplication, and exponentiation operands are promoted to Int or UInt from narrower integer types. (However, divisions, remainders, and bitwise operations do not promote narrower types.). after reading that, I did not expect this: ```julia ``` On Monday, August 3, 2015 at 7:42:03 PM UTC-4, Sisyphuss wrote: integer addition... operands are promoted to Int or UInt from narrower integer types ( http://docs.julialang.org/en/latest/manual/integers-and-floating-point-numbers/ ) These catch-all rules first promote all operands to a common type ( http://docs.julialang.org/en/latest/manual/conversion-and-promotion/#man-conversion-and-promotion ) `Int8` is definitely not a subclass of `Int`, do this two assertions contradict to each other?
Re: [julia-users] $(esc(args)...)
On Mon, Aug 3, 2015 at 10:47 PM, Cedric St-Jean cedric.stj...@gmail.com wrote: I'm trying to write a macro that takes up a function definition and outputs another one. It starts like: macro mac(fdef) @capture(fdef, begin function fname_ (args__) body__ end end) :(function $(esc(fname)) ($(args...)) ... end) end Macrotools are very convenient for getting the args, but I have issues putting them back into place. I thought it wouldn't matter if they were gensym'ed, but it turns out that arguments like (x::SomeType) will have SomeType resolved in the macro's environment, which is obviously wrong. So I need to escape hygiene. Something like $(esc(args)...), but that does not work, as esc returns an Expr. I thought that $(map(esc, args)...) could make sense, but it's complaining that: :($(Expr(:error, \(escape x)\ is not a valid function argument name))) Enter code here... Seems that escape is not accepted in function arguments. Possibly a bug... which makes little sense to me. Any ideas? Cédric
[julia-users] $(esc(args)...)
I'm trying to write a macro that takes up a function definition and outputs another one. It starts like: macro mac(fdef) @capture(fdef, begin function fname_ (args__) body__ end end) :(function $(esc(fname)) ($(args...)) ... end) end Macrotools are very convenient for getting the args, but I have issues putting them back into place. I thought it wouldn't matter if they were gensym'ed, but it turns out that arguments like (x::SomeType) will have SomeType resolved in the macro's environment, which is obviously wrong. So I need to escape hygiene. Something like $(esc(args)...), but that does not work, as esc returns an Expr. I thought that $(map(esc, args)...) could make sense, but it's complaining that: :($(Expr(:error, \(escape x)\ is not a valid function argument name))) Enter code here... which makes little sense to me. Any ideas? Cédric
[julia-users] Re: Type promotion system
(cont.) after reading that, I did not expect this: ```julia julia a=typemax(Int8)+typemax(Int8) -2 julia a=typemax(Int8)*typemax(Int8) 1 julia a=typemin(Int8)-typemax(Int8) 1 ``` ``` On Monday, August 3, 2015 at 7:42:03 PM UTC-4, Sisyphuss wrote: integer addition... operands are promoted to Int or UInt from narrower integer types ( http://docs.julialang.org/en/latest/manual/integers-and-floating-point-numbers/ ) These catch-all rules first promote all operands to a common type ( http://docs.julialang.org/en/latest/manual/conversion-and-promotion/#man-conversion-and-promotion ) `Int8` is definitely not a subclass of `Int`, do this two assertions contradict to each other?
[julia-users] Re: How can I change R code to Julia code. It is always error. Thank you!
I think you really might want to take some time to go through the documentation and learn some of the basics of Julia, a good starting point might be http://julia.readthedocs.org/en/latest/manual/noteworthy-differences/ The first error is simply telling you that the result of *broadcast(*,Pr,GI[:,1,:]) *has dimension 4x3x3, while *F[:,1,:] *is an array of dimension 4x1x3. The second error says that you can't multiply a 4x1x3 array, while the third error says that you can't do this elementwise, either. The main problem seems to be that (e.g.) G.I[,1,] produces a 4x3 matrix in R, while GI[:,1,:] returns a 4x1x3 array in Julia. You need to make sure that the indexing you're using in Julia is actually returning the objects you're expecting. You should have a look at the reshape() and the squeeze() functions (e.g. in your second error, GI[:,2,:].*(squeeze(F[:,2-1,:],2)*Tr) would wok, although I'm not entirely sure that's what you're trying to achieve!
Re: [julia-users] How does Array type's Integer valued parameters and partial parameter specification work?
Oh, on your second part, you might want to check this: http://docs.julialang.org/en/latest/devdocs/types/ But, devdocs is intended for folks who want to know the internal details of things, and may not be the easiest place to start learning! --Tim On Saturday, August 01, 2015 12:23:26 PM Galen Lynch wrote: I'm a relatively new Julia user, but as I've been getting used to the Julia type system my confusion over what's going on with Array type parameters has only grown. Whereas most type parameters are types themselves, Arrays can take integer valued type parameters. Is it true, more generally, that Julia allows parameters to take on arbitrary values? For example, is there some sort of syntax to declare other types, of my own creation, that also have integer valued type parameters? I am additionally confused by the partial specification of Arrays type parameters, seen when entering Array{Int} into REPL which returns the type Array{Int, N}. This partial specification is also understood by the type hierarchy, as Array{T,2} : Array{T}. This seems to violate the otherwise invariant type hierarchy in Julia, which makes me wonder if this behavior is explicitly defined, or does it come from some other mechanism? For example, is there someplace in Base defining something along the lines of: abstract Array{T} abstract Array{T, N} : Array{T} call(::Type{Array{T}}, x...) = Array{T,length(x)}(x...) I tried poking around the arrays.jl file in Base but couldn't figure out the answer to these questions. Thanks in advance!
Re: [julia-users] How to load adule on only one process
Looks right to me. include(Pkg.dir(Images,src,Images.jl)) would be a bit more robust, though. (Shorter too.) --Tim On Sunday, August 02, 2015 11:49:37 PM Yakir Gagnon wrote: In the documents (p. 175): - include(“DummyModule.jl”) (page 309) loads the file on just a single process (whichever one executes the statement). - using DummyModule causes the module to be loaded on all processes; however, the module is brought into scope only on the one executing the statement. But how would one load say Images.jl (just a random example) on only one process (and maybe import only some functions, say imwrite)? Am I supposed to: include(joinpath(homedir(),.julia/v0.4/Images/src/Images.jl))
[julia-users] ANN: Julia manager
Hello all, I would like to announce [Julia Manager]( https://github.com/abelsiqueira/julia-mngr), a CLI script to install and maintain Julia binaries for both release and nightly. It's very raw, so feel free to make suggestions. **It currently only supports GNU/Linux with bash.** Reasons to use this: - You want Julia release and nightly version at same time. - You only need the binaries. - You don't want to open the browser to get it. Reasons to not use this: - You only want one version (can be implemented) - You want to compile from source (can be implemented) - You know of a better way to do this (tell me) - You are using OSX (maybe can be implemented) - You are on Windows
Re: [julia-users] How does Array type's Integer valued parameters and partial parameter specification work?
This isn't specific to arrays: julia type MyType{N} val::NTuple{N,Int} end julia obj = MyType((1,2,3)) MyType{3}((1,2,3)) julia foo{N}(::MyType{N}) = This has $N entries foo (generic function with 1 method) julia foo(obj) This has 3 entries julia bar(obj::MyType{2}) = OK bar (generic function with 1 method) julia bar(obj) ERROR: `bar` has no method matching bar(::MyType{3}) julia obj2 = MyType((5,6)) MyType{2}((5,6)) julia bar(obj2) OK --Tim On Saturday, August 01, 2015 12:23:26 PM Galen Lynch wrote: I'm a relatively new Julia user, but as I've been getting used to the Julia type system my confusion over what's going on with Array type parameters has only grown. Whereas most type parameters are types themselves, Arrays can take integer valued type parameters. Is it true, more generally, that Julia allows parameters to take on arbitrary values? For example, is there some sort of syntax to declare other types, of my own creation, that also have integer valued type parameters? I am additionally confused by the partial specification of Arrays type parameters, seen when entering Array{Int} into REPL which returns the type Array{Int, N}. This partial specification is also understood by the type hierarchy, as Array{T,2} : Array{T}. This seems to violate the otherwise invariant type hierarchy in Julia, which makes me wonder if this behavior is explicitly defined, or does it come from some other mechanism? For example, is there someplace in Base defining something along the lines of: abstract Array{T} abstract Array{T, N} : Array{T} call(::Type{Array{T}}, x...) = Array{T,length(x)}(x...) I tried poking around the arrays.jl file in Base but couldn't figure out the answer to these questions. Thanks in advance!
[julia-users] How can I change R code to Julia code. It is always error. Thank you!
julia* GI* 4x8x3 Array{Float64,3}: [:, :, 1] = 0.250.250.250.250.125 0.125 0.125 0.25 0.250.125 0.0625 0.0625 0.125 0.125 0.0625 0.125 0.0625 0.250.125 0.250.0625 0.0625 0.250.125 0.125 0.0625 0.250.125 0.125 0.125 0.125 0.25 [:, :, 2] = 0.25 0.25 0.25 0.25 0.125 0.125 0.125 0.25 0.25 0.125 0.00.00.125 0.125 0.125 0.125 0.125 0.25 0.125 0.25 0.125 0.00.25 0.125 0.125 0.00.25 0.125 0.125 0.125 0.125 0.25 [:, :, 3] = 0.5 0.5 0.5 0.5 0.0 0.0 0.0 0.5 0.5 0.0 0.0 0.0 0.0 0.0 0.25 0.0 0.25 0.5 0.0 0.5 0.25 0.0 0.5 0.0 0.0 0.0 0.5 0.0 0.0 0.0 0.0 0.5 julia* Tr* 3x3 Array{Float64,2}: 0.998003 0.00199601 9.98002e-7 0.000998003 0.9980040.000998003 9.98002e-7 0.00199601 0.998003 julia *Pr* 1x3 Array{Float64,2}: 0.25 0.5 0.25 *Julia code:* * function forward(GI::Array,Tr::Array,Pr::Array)* *nsamp = size(GI,1)* *nmark = size(GI,2)* *F = GI* *F[:,1,:] = broadcast(*,Pr,GI[:,1,:])* *for i=2:nmark* * F[:,i,:] = GI[:,i,:].*(F[:,i-1,:]*Tr)* * S = F[:,i,1] + F[:,i,2] + F[:,i,3] * * F[:,i,:] = broadcast(/,S',F[:,i,:]) * * end* *return F[:,:,:]* * end* *R code:* *forward - function(G.I,Tr,Pr)* *{* *n.samp - dim(G.I)[1]* *n.mark - dim(G.I)[2]* *F - G.I* *F[,1,] - sweep(G.I[,1,],2,Pr,*)* *for (i in 2:n.mark)* *{* *F[,i,] - G.I[,i,]*(F[,i-1,]%*%Tr)* *S - F[,i,1] + F[,i,2] + F[,i,3]* *F[,i,] - sweep(F[,i,],1,S,/)* *}* *return(F)* *}* when it run, the error: julia* F[:,1,:] = broadcast(*,Pr,GI[:,1,:])* ERROR: DimensionMismatch(tried to assign 4x3x3 array to 4x1x3 destination) in throw_setindex_mismatch at operators.jl:233 (repeats 2 times) when i=2, error: julia* F[:,2,:] = GI[:,2,:].*(F[:,2-1,:]*Tr)* ERROR: `*` has no method matching *(::Array{Float64,3}, ::Array{Float64,2}) julia* F[:,2,:] = GI[:,2,:].*(F[:,2-1,:].*Tr)* ERROR: arrays could not be broadcast to a common size in broadcast_shape at broadcast.jl:40 in .* at broadcast.jl:278 How can I change the R code to Julia code? Thank you!
[julia-users] How to load adule on only one process
In the documents (p. 175): - include(“DummyModule.jl”) (page 309) loads the file on just a single process (whichever one executes the statement). - using DummyModule causes the module to be loaded on all processes; however, the module is brought into scope only on the one executing the statement. But how would one load say Images.jl (just a random example) on only one process (and maybe import only some functions, say imwrite)? Am I supposed to: include(joinpath(homedir(),.julia/v0.4/Images/src/Images.jl))
[julia-users] Re: ANN: support for the orignial role of quiet NaNs
And Jeffrey Sarnoff writes: AFAIK Julia and most other languages use one or two of each in most circumstances. And many chips produce only one, the platform's canonical NaN. Some pass one of the argument NaNs through but rarely will specify which.
Re: [julia-users] Juliacon 2015 videos?
Any update on videos? On Tuesday, July 21, 2015 at 12:56:58 AM UTC+2, Luke Stagner wrote: ? On Saturday, July 11, 2015 at 9:11:15 AM UTC-7, Ismael VC wrote: I was also specially interested in translating David Sanders *Introduction to Julia* at SciPy 2014. I tried to get in contact with Enthought since January but I never got a reply: Message: I’d like add translated captions into Spanish to your Julia YouTube videos, and I was wondering how to go about it. I’ve seen a few on line tools, but I can’t import your video, from here for example: http://captiontube.appspot.com I get: Please enter a valid URL for this YouTube video. Note: if you do not own the video and it is private or cannot be embedded, you will not be able to import it. If you own the video, close this dialog and choose Personal Video to import it. bvIt’s supposed to allow me to import it so I can translate it and send the translations via e-mail to theEnthought YouTube account. Thank you very much! I just got this from their bot: We have received your support request (# 44258) and are reviewing it. On Sat, Jul 11, 2015 at 10:56 AM, Viral Shah vi...@mayin.org wrote: I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. Perhaps someone else may know. It would be great to have the spanish and other subtitles. -viral On 11-Jul-2015, at 8:16 pm, Ismael VC ismael...@gmail.com wrote: Also while I wait for this news I'd like to know which license is used currently for the videos that are already at the Julia Youtube channel. If it's ok I would also like to provide translated subtitles for some of these videos. I'm assuming this is something we all want as a community, I'm I right? @sorami are you guys at also interested in this? Id like to know which other stuff would you or anybody else expect to be part of juila-i10n. Is there anyone else interested in translating julia resources to other languages? On Sat, Jul 11, 2015 at 9:29 AM, Ismael VC ismael...@gmail.com wrote: @Viral thank you for the update! What I want is to be able to subtitle the videos, that's all. On Fri, Jul 10, 2015 at 9:52 PM, Viral Shah vi...@mayin.org wrote: We have to work through all these details still. -viral On Friday, July 10, 2015 at 11:19:31 PM UTC+5:30, Ismael VC wrote: Please could anyone tell me what's the situation with the videos copyrights would I be allowed to translate them into Spanish? El miércoles, 1 de julio de 2015, 7:07:18 (UTC-5), Hans-Peter escribió: Will there be videos of the 2015 Juliacon? Where... :-) Thanks.
Re: [julia-users] How does Array type's Integer valued parameters and partial parameter specification work?
Awesome, thanks so much! On Mon, Aug 3, 2015 at 6:58 AM, Tim Holy tim.h...@gmail.com wrote: Oh, on your second part, you might want to check this: http://docs.julialang.org/en/latest/devdocs/types/ But, devdocs is intended for folks who want to know the internal details of things, and may not be the easiest place to start learning! --Tim On Saturday, August 01, 2015 12:23:26 PM Galen Lynch wrote: I'm a relatively new Julia user, but as I've been getting used to the Julia type system my confusion over what's going on with Array type parameters has only grown. Whereas most type parameters are types themselves, Arrays can take integer valued type parameters. Is it true, more generally, that Julia allows parameters to take on arbitrary values? For example, is there some sort of syntax to declare other types, of my own creation, that also have integer valued type parameters? I am additionally confused by the partial specification of Arrays type parameters, seen when entering Array{Int} into REPL which returns the type Array{Int, N}. This partial specification is also understood by the type hierarchy, as Array{T,2} : Array{T}. This seems to violate the otherwise invariant type hierarchy in Julia, which makes me wonder if this behavior is explicitly defined, or does it come from some other mechanism? For example, is there someplace in Base defining something along the lines of: abstract Array{T} abstract Array{T, N} : Array{T} call(::Type{Array{T}}, x...) = Array{T,length(x)}(x...) I tried poking around the arrays.jl file in Base but couldn't figure out the answer to these questions. Thanks in advance!
[julia-users] Readtimearray function in Julia TimeSeries package
I would like to read a csv file of the following form with readtimearray: ,ES1 Index,VG1 Index,TY1 Comdty,RX1 Comdty,GC1 Comdty 1999-01-04,1391.12,3034.53,66.515625,86.2,441.39 1999-01-05,1404.86,3072.41,66.3125,86.17,440.63 1999-01-06,1435.12,3156.59,66.4375,86.32,441.7 1999-01-07,1432.32,3106.08,66.25,86.22,447.67 1999-01-08,1443.81,3093.46,65.859375,86.36,447.06 1999-01-11,1427.84,3005.07,65.71875,85.74,449.5 1999-01-12,1402.33,2968.04,65.953125,86.31,442.92 1999-01-13,1388.88,2871.23,66.21875,86.52,439.4 1999-01-14,1366.46,2836.72,66.546875,86.73,440.01 However, here's what I get when I evaluate readtimearray(myfile.csv) ERROR: `convert` has no method matching convert(::Type{UTF8String}, ::Float64) in push! at array.jl:460 in readtimearray at /home/juser/.julia/v0.3/TimeSeries/src/readwrite.jl:25 What is it that I am not seeing?
Re: [julia-users] Juliacon 2015 videos?
Kristoffer, everyone, I found 3 recent videos NOT from JuliaCon: Shashi Gowda - Escher: democratizing beautiful visualizations * https://youtu.be/2e0tOV80hh0 Viral B Shah - The many ways of parallel computing with Julia *https://youtu.be/HCcO-715acM PolyConf 15: Julia a fast dynamic language for technical computing / Stefan Karpinski * https://youtu.be/ag_NtJRmYg8 @Viral, @ Stefan and @Shashi, do you know the author/copy rights for these ones? What about the ones from JuliaCon? I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. If nobody is still sure of what license these are. Could somebody please tell me how or with whom I can find this information? Are there more recent videos like the ones I listed above? Is there a place where this video news are posted? I guess I'll 'll just start translating the videos from JuliaCon once they are released and hope that's ok. Could we plan in advance for next year and think about the licenses the videos should have, so I can stop annoying everyone with this? El lunes, 3 de agosto de 2015, 7:09:48 (UTC-5), Kristoffer Carlsson escribió: Any update on videos? On Tuesday, July 21, 2015 at 12:56:58 AM UTC+2, Luke Stagner wrote: ? On Saturday, July 11, 2015 at 9:11:15 AM UTC-7, Ismael VC wrote: I was also specially interested in translating David Sanders *Introduction to Julia* at SciPy 2014. I tried to get in contact with Enthought since January but I never got a reply: Message: I’d like add translated captions into Spanish to your Julia YouTube videos, and I was wondering how to go about it. I’ve seen a few on line tools, but I can’t import your video, from here for example: http://captiontube.appspot.com I get: Please enter a valid URL for this YouTube video. Note: if you do not own the video and it is private or cannot be embedded, you will not be able to import it. If you own the video, close this dialog and choose Personal Video to import it. bvIt’s supposed to allow me to import it so I can translate it and send the translations via e-mail to theEnthought YouTube account. Thank you very much! I just got this from their bot: We have received your support request (# 44258) and are reviewing it. On Sat, Jul 11, 2015 at 10:56 AM, Viral Shah vi...@mayin.org wrote: I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. Perhaps someone else may know. It would be great to have the spanish and other subtitles. -viral On 11-Jul-2015, at 8:16 pm, Ismael VC ismael...@gmail.com wrote: Also while I wait for this news I'd like to know which license is used currently for the videos that are already at the Julia Youtube channel. If it's ok I would also like to provide translated subtitles for some of these videos. I'm assuming this is something we all want as a community, I'm I right? @sorami are you guys at also interested in this? Id like to know which other stuff would you or anybody else expect to be part of juila-i10n. Is there anyone else interested in translating julia resources to other languages? On Sat, Jul 11, 2015 at 9:29 AM, Ismael VC ismael...@gmail.com wrote: @Viral thank you for the update! What I want is to be able to subtitle the videos, that's all. On Fri, Jul 10, 2015 at 9:52 PM, Viral Shah vi...@mayin.org wrote: We have to work through all these details still. -viral On Friday, July 10, 2015 at 11:19:31 PM UTC+5:30, Ismael VC wrote: Please could anyone tell me what's the situation with the videos copyrights would I be allowed to translate them into Spanish? El miércoles, 1 de julio de 2015, 7:07:18 (UTC-5), Hans-Peter escribió: Will there be videos of the 2015 Juliacon? Where... :-) Thanks.
Re: [julia-users] Juliacon 2015 videos?
I gave a talk at JuliaCon this year. I recently received an email asking if I would respond with this text: I, the copyright holder, grant permission for MIT to distribute these files under the Creative Commons CC-BY-4.0 license ( https://creativecommons.org/licenses/by/4.0/) I did, and I assume most others did as well. So many of the videos will be released under CC-BY-4.0 On Monday, August 3, 2015 at 8:32:12 AM UTC-4, Ismael VC wrote: Kristoffer, everyone, I found 3 recent videos NOT from JuliaCon: Shashi Gowda - Escher: democratizing beautiful visualizations * https://youtu.be/2e0tOV80hh0 Viral B Shah - The many ways of parallel computing with Julia *https://youtu.be/HCcO-715acM PolyConf 15: Julia a fast dynamic language for technical computing / Stefan Karpinski * https://youtu.be/ag_NtJRmYg8 @Viral, @ Stefan and @Shashi, do you know the author/copy rights for these ones? What about the ones from JuliaCon? I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. If nobody is still sure of what license these are. Could somebody please tell me how or with whom I can find this information? Are there more recent videos like the ones I listed above? Is there a place where this video news are posted? I guess I'll 'll just start translating the videos from JuliaCon once they are released and hope that's ok. Could we plan in advance for next year and think about the licenses the videos should have, so I can stop annoying everyone with this? El lunes, 3 de agosto de 2015, 7:09:48 (UTC-5), Kristoffer Carlsson escribió: Any update on videos? On Tuesday, July 21, 2015 at 12:56:58 AM UTC+2, Luke Stagner wrote: ? On Saturday, July 11, 2015 at 9:11:15 AM UTC-7, Ismael VC wrote: I was also specially interested in translating David Sanders *Introduction to Julia* at SciPy 2014. I tried to get in contact with Enthought since January but I never got a reply: Message: I’d like add translated captions into Spanish to your Julia YouTube videos, and I was wondering how to go about it. I’ve seen a few on line tools, but I can’t import your video, from here for example: http://captiontube.appspot.com I get: Please enter a valid URL for this YouTube video. Note: if you do not own the video and it is private or cannot be embedded, you will not be able to import it. If you own the video, close this dialog and choose Personal Video to import it. bvIt’s supposed to allow me to import it so I can translate it and send the translations via e-mail to theEnthought YouTube account. Thank you very much! I just got this from their bot: We have received your support request (# 44258) and are reviewing it. On Sat, Jul 11, 2015 at 10:56 AM, Viral Shah vi...@mayin.org wrote: I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. Perhaps someone else may know. It would be great to have the spanish and other subtitles. -viral On 11-Jul-2015, at 8:16 pm, Ismael VC ismael...@gmail.com wrote: Also while I wait for this news I'd like to know which license is used currently for the videos that are already at the Julia Youtube channel. If it's ok I would also like to provide translated subtitles for some of these videos. I'm assuming this is something we all want as a community, I'm I right? @sorami are you guys at also interested in this? Id like to know which other stuff would you or anybody else expect to be part of juila-i10n. Is there anyone else interested in translating julia resources to other languages? On Sat, Jul 11, 2015 at 9:29 AM, Ismael VC ismael...@gmail.com wrote: @Viral thank you for the update! What I want is to be able to subtitle the videos, that's all. On Fri, Jul 10, 2015 at 9:52 PM, Viral Shah vi...@mayin.org wrote: We have to work through all these details still. -viral On Friday, July 10, 2015 at 11:19:31 PM UTC+5:30, Ismael VC wrote: Please could anyone tell me what's the situation with the videos copyrights would I be allowed to translate them into Spanish? El miércoles, 1 de julio de 2015, 7:07:18 (UTC-5), Hans-Peter escribió: Will there be videos of the 2015 Juliacon? Where... :-) Thanks.
Re: [julia-users] Re: How can I change R code to Julia code. It is always error. Thank you!
You'll probably want to step through the code as it executes, rather than blindly trying to translate from R and hoping it works. The interactive experience in the REPL is quite helpful for quickly correcting things that don't do what you expect them to. On Mon, Aug 3, 2015 at 5:50 AM, Nils Gudat nils.gu...@gmail.com wrote: I think you really might want to take some time to go through the documentation and learn some of the basics of Julia, a good starting point might be http://julia.readthedocs.org/en/latest/manual/noteworthy-differences/ The first error is simply telling you that the result of *broadcast(*,Pr,GI[:,1,:]) *has dimension 4x3x3, while *F[:,1,:] *is an array of dimension 4x1x3. The second error says that you can't multiply a 4x1x3 array, while the third error says that you can't do this elementwise, either. The main problem seems to be that (e.g.) G.I[,1,] produces a 4x3 matrix in R, while GI[:,1,:] returns a 4x1x3 array in Julia. You need to make sure that the indexing you're using in Julia is actually returning the objects you're expecting. You should have a look at the reshape() and the squeeze() functions (e.g. in your second error, GI[:,2,:].*(squeeze(F[:,2-1,:],2)*Tr) would wok, although I'm not entirely sure that's what you're trying to achieve!
Re: [julia-users] Juliacon 2015 videos?
Thank you very much Jack, then it's all set, I'll keep waiting for the videos! El lunes, 3 de agosto de 2015, 8:24:29 (UTC-5), Jack Minardi escribió: I gave a talk at JuliaCon this year. I recently received an email asking if I would respond with this text: I, the copyright holder, grant permission for MIT to distribute these files under the Creative Commons CC-BY-4.0 license ( https://creativecommons.org/licenses/by/4.0/) I did, and I assume most others did as well. So many of the videos will be released under CC-BY-4.0 On Monday, August 3, 2015 at 8:32:12 AM UTC-4, Ismael VC wrote: Kristoffer, everyone, I found 3 recent videos NOT from JuliaCon: Shashi Gowda - Escher: democratizing beautiful visualizations * https://youtu.be/2e0tOV80hh0 Viral B Shah - The many ways of parallel computing with Julia *https://youtu.be/HCcO-715acM PolyConf 15: Julia a fast dynamic language for technical computing / Stefan Karpinski * https://youtu.be/ag_NtJRmYg8 @Viral, @ Stefan and @Shashi, do you know the author/copy rights for these ones? What about the ones from JuliaCon? I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. If nobody is still sure of what license these are. Could somebody please tell me how or with whom I can find this information? Are there more recent videos like the ones I listed above? Is there a place where this video news are posted? I guess I'll 'll just start translating the videos from JuliaCon once they are released and hope that's ok. Could we plan in advance for next year and think about the licenses the videos should have, so I can stop annoying everyone with this? El lunes, 3 de agosto de 2015, 7:09:48 (UTC-5), Kristoffer Carlsson escribió: Any update on videos? On Tuesday, July 21, 2015 at 12:56:58 AM UTC+2, Luke Stagner wrote: ? On Saturday, July 11, 2015 at 9:11:15 AM UTC-7, Ismael VC wrote: I was also specially interested in translating David Sanders *Introduction to Julia* at SciPy 2014. I tried to get in contact with Enthought since January but I never got a reply: Message: I’d like add translated captions into Spanish to your Julia YouTube videos, and I was wondering how to go about it. I’ve seen a few on line tools, but I can’t import your video, from here for example: http://captiontube.appspot.com I get: Please enter a valid URL for this YouTube video. Note: if you do not own the video and it is private or cannot be embedded, you will not be able to import it. If you own the video, close this dialog and choose Personal Video to import it. bvIt’s supposed to allow me to import it so I can translate it and send the translations via e-mail to theEnthought YouTube account. Thank you very much! I just got this from their bot: We have received your support request (# 44258) and are reviewing it. On Sat, Jul 11, 2015 at 10:56 AM, Viral Shah vi...@mayin.org wrote: I am pretty sure that JuliaCon 2014 videos are under some sort of Creative Commons, but can’t quite remember which exact one. Perhaps someone else may know. It would be great to have the spanish and other subtitles. -viral On 11-Jul-2015, at 8:16 pm, Ismael VC ismael...@gmail.com wrote: Also while I wait for this news I'd like to know which license is used currently for the videos that are already at the Julia Youtube channel. If it's ok I would also like to provide translated subtitles for some of these videos. I'm assuming this is something we all want as a community, I'm I right? @sorami are you guys at also interested in this? Id like to know which other stuff would you or anybody else expect to be part of juila-i10n. Is there anyone else interested in translating julia resources to other languages? On Sat, Jul 11, 2015 at 9:29 AM, Ismael VC ismael...@gmail.com wrote: @Viral thank you for the update! What I want is to be able to subtitle the videos, that's all. On Fri, Jul 10, 2015 at 9:52 PM, Viral Shah vi...@mayin.org wrote: We have to work through all these details still. -viral On Friday, July 10, 2015 at 11:19:31 PM UTC+5:30, Ismael VC wrote: Please could anyone tell me what's the situation with the videos copyrights would I be allowed to translate them into Spanish? El miércoles, 1 de julio de 2015, 7:07:18 (UTC-5), Hans-Peter escribió: Will there be videos of the 2015 Juliacon? Where... :-) Thanks.
[julia-users] Re: Readtimearray function in Julia TimeSeries package
I'm not familiar with TimeSeries, but perhaps you should check if readtimearray automatically detects headers? On Monday, August 3, 2015 at 8:07:37 AM UTC-4, Danny Zuko wrote: I would like to read a csv file of the following form with readtimearray: ,ES1 Index,VG1 Index,TY1 Comdty,RX1 Comdty,GC1 Comdty 1999-01-04,1391.12,3034.53,66.515625,86.2,441.39 1999-01-05,1404.86,3072.41,66.3125,86.17,440.63 1999-01-06,1435.12,3156.59,66.4375,86.32,441.7 1999-01-07,1432.32,3106.08,66.25,86.22,447.67 1999-01-08,1443.81,3093.46,65.859375,86.36,447.06 1999-01-11,1427.84,3005.07,65.71875,85.74,449.5 1999-01-12,1402.33,2968.04,65.953125,86.31,442.92 1999-01-13,1388.88,2871.23,66.21875,86.52,439.4 1999-01-14,1366.46,2836.72,66.546875,86.73,440.01 However, here's what I get when I evaluate readtimearray(myfile.csv) ERROR: `convert` has no method matching convert(::Type{UTF8String}, ::Float64) in push! at array.jl:460 in readtimearray at /home/juser/.julia/v0.3/TimeSeries/src/readwrite.jl:25 What is it that I am not seeing?
[julia-users] Re: Readtimearray function in Julia TimeSeries package
You should file a bug report here: https://github.com/JuliaStats/TimeSeries.jl/issues This readtimearray(fname::String; meta=Nothing, format::String=””) methods doesn’t exist, the documentation must be out of date: julia methods(readtimearray) # 1 method for generic function readtimearray: readtimearray(fname::String) at /home/juser/.julia/v0.4/TimeSeries/src/readwrite.jl:4 http://timeseriesjl.readthedocs.org/en/latest/readwrite.html#readtimearray The documentation doesn’t say anything about the header (it just says readtimearray is a wrapper of readcsv), but neither removing the header manually nor Pkg.update(); Pkg.checkout(TimeSeries) solve this issue. El lunes, 3 de agosto de 2015, 7:07:37 (UTC-5), Danny Zuko escribió: I would like to read a csv file of the following form with readtimearray: ,ES1 Index,VG1 Index,TY1 Comdty,RX1 Comdty,GC1 Comdty 1999-01-04,1391.12,3034.53,66.515625,86.2,441.39 1999-01-05,1404.86,3072.41,66.3125,86.17,440.63 1999-01-06,1435.12,3156.59,66.4375,86.32,441.7 1999-01-07,1432.32,3106.08,66.25,86.22,447.67 1999-01-08,1443.81,3093.46,65.859375,86.36,447.06 1999-01-11,1427.84,3005.07,65.71875,85.74,449.5 1999-01-12,1402.33,2968.04,65.953125,86.31,442.92 1999-01-13,1388.88,2871.23,66.21875,86.52,439.4 1999-01-14,1366.46,2836.72,66.546875,86.73,440.01 However, here's what I get when I evaluate readtimearray(myfile.csv) ERROR: `convert` has no method matching convert(::Type{UTF8String}, ::Float64) in push! at array.jl:460 in readtimearray at /home/juser/.julia/v0.3/TimeSeries/src/readwrite.jl:25 What is it that I am not seeing?
[julia-users] Re: ANN: support for the orignial role of quiet NaNs
There are ways it could be more fulfilling. With (-)(QNaN1, QNaN2) and with (/), Julia appears to propogate the one on the left, QNaN1. The situation with (+) an (*) is more opaque and I'll assume that has to do with Julia's deep preservation of commutivity. As I understand it, the intent is to pick up useful, localized situational reporting (e.g. the intensity of activity over some model-trust sub-region or to obtain a more direct read of the structural stress on the cross members of a bridge by getting information from within bolts as the computer modelling and analysis continues. If it were to be done, we tell them where to start and when to stay. When they have gathered something, the move on by proaogating through the numerical computation.The aquired payloads would serve as a sketch of detail from the internals of computational terrain. IEEE 754-2008 makes it clear that QNaN payload values are fare game: (is says details of NaN propagtion may have vender differences, and) The following value-changing transformations, among others, preserve the literal meaning of the source code: .. ― Changing the payload or sign bit of a quiet NaN. Graspable, in my estimation, with instructable, or at least disciplined and non-contrarian NaN propogators. On Monday, August 3, 2015 at 3:58:37 PM UTC-4, Jeffrey Sarnoff wrote: Jason, If the software or circuitry is IEEE 758-2008 compliant, all those quiet NaNs are usable. Most vendors select one or two of them (for quiet 64bit nans, usually 0x7ff8 and/or 0xfff8) and do everything NaN related with, say, those two. I hope vendors are not saying they have a Standards complying product when that is untrue. About compliance and NaNs, my impression is you don`t have to use them, but they are expected to be present. They may play by different rules. Stuart, The horse and arriage similie for a quiet nan makes sense to me. Travelling in unfamiliar places, occasionally noticing something of interest .. or getting a reminder .. and gathering some small, revealing information to place it in the carriage knowing that and it will arrive with me when the horse returns home. As I read it (his paper, not my redaction), William Kahan expressed an abiding regard for the efficacy and utillity of quiet NaNs as a numerical software engineers' participatory tool. That's what prompted me to to write the module. Thank you both for the thoughts. On Monday, August 3, 2015 at 12:56:57 PM UTC-4, Jason Riedy wrote: And Jeffrey Sarnoff writes: AFAIK Julia and most other languages use one or two of each in most circumstances. And many chips produce only one, the platform's canonical NaN. Some pass one of the argument NaNs through but rarely will specify which.
[julia-users] Re: ANN: support for the orignial role of quiet NaNs
And Jeffrey Sarnoff writes: IEEE 754-2008 makes it clear that QNaN payload values are fare game: (is says details of NaN propagtion may have vender differences, and) Having been in the room at the time of utter despair... (And admittedly not having looked at your package yet.) One right way of using the NaN values without following their propagation is the following: - ensure the input has NaN payloads denoting something about their origin and the likelihood of causing issues later, - check the invalid flag at a felicitous time, then - scanning to the inputs to rank the possible issues. This somewhat fits a Lispy with-NaN-debugging macro style (that can at compile time ignore absolutely everything depending on the safety level). Naturally, it's not guaranteed to work, and I'm not at all sure how a user could fill in the payloads appropriately. If there is a good answer to filling in the payloads, well, the standard is up for revision...
Re: [julia-users] question about altering the shape of a 3-d array
Oh, that's entirely something different then. I was going to suggest you to take a look at https://github.com/Jutho/TensorOperations.jl for more operations such as the contraction along arbitrary dimensions of tensors written in Julia, since this is very commonly needed in DMRG algorithms.
[julia-users] Re: ANN: support for the orignial role of quiet NaNs
Jason, If the software or circuitry is IEEE 758-2008 compliant, all those quiet NaNs are usable. Most vendors select one or two of them (for quiet 64bit nans, usually 0x7ff8 and/or 0xfff8) and do everything NaN related with, say, those two. I hope vendors are not saying they have a Standards complying product when that is untrue. About compliance and NaNs, my impression is you don`t have to use them, but they are expected to be present. They may play by different rules. Stuart, The horse and arriage similie for a quiet nan makes sense to me. Travelling in unfamiliar places, occasionally noticing something of interest .. or getting a reminder .. and gathering some small, revealing information to place it in the carriage knowing that and it will arrive with me when the horse returns home. As I read it (his paper, not my redaction), William Kahan expressed an abiding regard for the efficacy and utillity of quiet NaNs as a numerical software engineers' participatory tool. That's what prompted me to to write the module. Thank you both for the thoughts. On Monday, August 3, 2015 at 12:56:57 PM UTC-4, Jason Riedy wrote: And Jeffrey Sarnoff writes: AFAIK Julia and most other languages use one or two of each in most circumstances. And many chips produce only one, the platform's canonical NaN. Some pass one of the argument NaNs through but rarely will specify which.
Re: [julia-users] How to build Julia in a portable way (for compute farm deployment)?
Hello Jameson, I have more/less the same issue as Glen H---I need to build a single Julia for a large cluster with a varied set of x86_64 architectures. My strategy would be to build on the newest arch (to get maximum dynamic openblas support) but with restricted ARCH/MARCH setting, x86_64 / x86-64 (mind the _ - difference). Indeed the oldest arch is an AMD with SSE2 but not SSE3, the rest is Intel core2 and higher up. However, today's 0.4-dev download with Make.user ARCH=x86_64 MARCH=x86-64 gives on fresh make (after download): checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for x86_64-linux-gcc... gcc -march=x86_64 -m64 checking whether the C compiler works... no configure: error: in `/homes/eva/q/qleuween/src/julia/deps/libuv': configure: error: C compiler cannot create executables See `config.log' for more details make[1]: *** [libuv/config.status] Error 77 make: *** [julia-deps] Error 2 To me it seems that libuv is using an ARCH setting for MARCH, but I don't know how to circumvent this. Cheers, ---david On Thursday, September 11, 2014 at 4:50:34 AM UTC+2, Jameson wrote: openblas defaults to detecting the runtime system and picking the best code to run for that computer. The recommendation to remove `sys.so` has been deprecated. Setting ARCH / MARCH is now the preferred solution. (note that core2 is not the least common denominator, since there exist some AMD chips without some of the core2 instructions – instead use x86_64 / x86-64) On Wed, Sep 10, 2014 at 10:17 PM, Glen Hertz glen@gmail.com javascript: wrote: Hi, I'm trying to deploy Julia to users in a compute farm environment with many machines running on different CPUs. This has been discussed here: https://groups.google.com/forum/?fromgroups=#!searchin/julia-users/make$20dist/julia-users/B8x6CYbFUNY/Ph5Cunhl5EwJ The recommendation was to use `make dist` which builds a tarball that doesn't include `sys.so` and you can move it to any machine. With the 0.3 release `make dist` builds `sys.so` so I removed it but the executable is still not portable. What are the most likely steps to build Julia so it works on different hardware? I did something like this (on a RHEL 5.5 system): Make.user: FC=gfortran44 CC=gcc44 CXX=g++44 MARCH=core2 OPENBLAS_TARGET_ARCH=CORE2 (I updated binutils, python and patchelf). When I run `make dist` it crease a tarball with a `sys.so` so I deleted it. It still segfaults. It doesn't seem like `OPENBLAS_TARGET_ARCH` is working since `versioninfo()` shows it was compiled for `Nehalem`. Note, to rebuild I did: ``` cp Make.user .. git clean -xdf cp ../Make.user . make dist ``` Please let me know if there is something better I can try out and if I get something working I can update the documentation. Thanks, Glen