[julia-users] how to check if a type has a certain field
type Tech cl::Array{Float64,1} function Tech() this = new() this.cl=[1:4] this end end tech = Tech() How can I check if tech.asf is not a valid field?
[julia-users] Re: Julia will always be open source
On Sunday, May 10, 2015 at 1:33:58 AM UTC+1, Eric Forgy wrote: If we pay developers to clean up an existing package, it feels weird to just give the work we paid for away. Any thoughts on how I should think about this? I probably just need some education and am open to suggestions. I think others already responded adequately to this. It's certainly strange at first, but just because we're used to think in terms of goods that are produced by one person or organization and can't be improved by third-parties in a way that benefits everyone else (including the original creator). Open source projects (and collaborative projects in general, made possible by relatively recent developments like the Internet, robust DVCS, FOSS licenses, etc.) made this possible, and in this paradigm it is indeed more beneficial to embrace the collaboration aspect than to look at things from a purely competitive point of view. A good read about this topic (albeit certainly well-known enough that the suggestion is probably redundant) is Eric S. Raymond's The Cathedral and the Bazaar. Wikinomics by Don Tapscott is also an excellent resource, and a natural follow-up to the trends he had pointed out earlier in Growing Up Digital. It would be interesting if Github issues could be given a $ value, i.e. resolve this issue and receive $x in fees. This could be an effective way to prioritize :) That is actually exactly what is being done by BountySource http://bountysource.com: people can place bounties on specific issues, which get paid upon successful closing of the report. Take a look! On Sunday, May 10, 2015 at 4:20:15 AM UTC+8, Viral Shah wrote: As you all know, we are committed to Julia being high quality and open source. (...) Open source development will never cease. Hi Viral, I have a small request. Do you think it would make sense to include on Julia Computing's website (either on the home page or in an separate page) a note about this commitment to the open source aspect of Julia and the continued use of open development practices (public mailing lists, IRC channel, issue tracker, etc.)? I'd love to add you to the community-curated list of open companies being built here https://github.com/waldyrious/awesome-open-company#companies.
Re: [julia-users] how to check if a type has a certain field
Hi, you could look up the name in the list of fieldnames: in(:asf, names(Tech)) will return true if Tech has a field asf, false otherwise. I don't know what your usage scenario is, but perhaps a Dict() might be an alternative, where you can set arbitrary fields and query their existence with haskey? http://docs.julialang.org/en/release-0.3/stdlib/collections/?highlight=dict#Base.Dict Rene Am 12.05.2015 um 09:06 schrieb K leo cnbiz...@gmail.com: type Tech cl::Array{Float64,1} function Tech() this = new() this.cl=[1:4] this end end tech = Tech() How can I check if tech.asf is not a valid field?
Re: [julia-users] Suspending Garbage Collection for Performance...good idea or bad idea?
if you take each heap region and give them their own garbage collector and assign each thread/proces/fiber one, then you get another somewhat related approach for soft real time performance in GC'd languages (it's both for performance and safety parallelism) like you have in Erlang/Elixir (dynamically typed JITed/interpreted) or Nim (AOT, statically typed). On Tuesday, May 12, 2015 at 12:03:20 AM UTC+2, Michael Louwrens wrote: I am starting to read Region-Based Memory Management for a Dynamically-Typed Language http://link.springer.com/content/pdf/10.1007/b102225.pdf#page=240 it proposes a second inference system, region inference. I will read it fully in the morning but just scanning through their results they compare their regions to a GC. The GC library uses far more heap in most cases, though the region based system needs optimisation to be competitive. At one point they do state a combination of region based memory management and GC would be interesting. For a prototype implementation, being 2x-3x slower while mostly using far less memory is quite successful. The Div benchmark from Gabriel Scheme benchmarks was the most impressive in terms of heap usage using 32.2KB vs. 1219.6 for the GC'd version. In a memory constrained system this would be an interesting thing to look at, the outliers are a bit of a concern though. The Tak and Destruct benchmarks use almost 10x the amount of heap the GC did. If anything it was an interesting read. The emulated region based management sounds quite interesting in fact. Will go read up on the two Steven Sagaert mentioned. Haven't read too much about G1 and nothing at all on Azul Zing!
Re: [julia-users] how to check if a type has a certain field
It seems names() is deprecated now and fieldnames() is preferable. type myType a b c end fields = [a,B,c,d] #field names to test for f in fields println( in(symbol(f), fieldnames(myType))) end
RE: [julia-users] Access Windows registry from Julia?
I think there should be a WindowsAPI.jl package where people can put all wrappers for the low level C interfaces that the Windows API defines. It could (over time) hold all the data structure definitions, and wrappers for the various Win32 function calls. Maybe a higher level registry package could then depend on that WindowsAPI.jl package? From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of Simon Byrne Sent: Tuesday, May 12, 2015 3:55 AM To: julia-users@googlegroups.com Subject: [julia-users] Access Windows registry from Julia? The Windows registry useful to determine installation paths of other software and whatnot. I've hacked together some code using the REG QUERY command: https://github.com/JuliaStats/RCall.jl/blob/e4ba35cf45ca2eb041f660642449b8259c2f30e3/deps/build.jl#L13 but it is somewhat complicated (and potentially unreliable) to parse. Has anyone had any luck using the C interface? It looks a little complicated, so if anyone has any examples, I would be grateful. I guess ideally we would want to wrap the C interface into package, similar to _winreg in Python: https://docs.python.org/2/library/_winreg.html Perhaps we need an up for grabs packages list? s P.S. On that note, perhaps we should put the Julia installation path in the registry, for other software that might need to find it: both R and Python do it.
[julia-users] Re: Julia will always be open source
About Julia Computing, is Stefan also going to be working full time for Julia Computing? As the second largest contributor (and most vocal!), I think that would be critical (and would be greatly reassuring to people betting on Julia...). His GitHub shows him living in NYC, but that he's an MIT Research Scientist... (I didn't know MIT had a satellite campus in NYC! ;-) ). -Scott On Saturday, May 9, 2015 at 4:20:15 PM UTC-4, Viral Shah wrote: Hello all, You may have seen today’s Hacker News story about Julia Computing: https://news.ycombinator.com/item?id=9516298 As you all know, we are committed to Julia being high quality and open source. The existence of Julia Computing was discussed a year ago at JuliaCon 2014, though we recognize that not everyone is aware. We set up Julia Computing to assist those who asked for help building Julia applications and deploying Julia in production. We want Julia to be widely adopted by the open source community, for research in academia, and for production software in companies. Julia Computing provides support, consulting, and training for customers, in order to help them build and deploy Julia applications. We are committed to all the three organizations that focus on different users and use cases of Julia: 1. The open source Julia project is housed at the NumFocus Foundation. http://numfocus.org/projects/ 2. Research on various aspects of Julia is anchored in Alan’s group at MIT. http://www-math.mit.edu/~edelman/research.php 3. Julia Computing works with customers who are building Julia applications. http://www.juliacomputing.com/ Our customers make Julia Computing self-funded. We are grateful that they have created full time opportunities for us to follow our passions. Open source development will never cease. You may have questions. Please shoot them here. We will respond back with a detailed blog post. -viral
[julia-users] Re: String performance in Julia
Yes, I care about faster conversions between string types. On Monday, May 11, 2015 at 10:52:28 PM UTC-4, Scott Jones wrote: I would like to get the performance of string handling in Julia improved (and also correct a number of flaws in handling Unicode). Currently, many of the operations are very slow (because of the way strings are represented, and also simply because the algorithms used were not as fast as they could be). For communicating with Java where the String type is always UTF-16, C/C++, where wide strings are either UTF-16 or UTF-32, databases (which frequently use UTF-16 in Asia, because UTF-8 can take more space, depending on the data), or using Unicode APIs in Windows or the ICU libraries which use UTF-16, the performance of the conversions between the ASCIIString/UTF8String types that Julia normally uses for strings and UTF-16 can be critical for an applications performance. I have a PR (#11004) to fix the performance issue #10959 I raised (in the GitHub repository ScottPJones/julia branch spj/fast_utf), if anybody would like to try this out. My own testing shows that it gives about a 2-10x improvement (most of the time, 10x), you can get my latest benchmark results along with the code I used to benchmark it at my gist, https://gist.github.com/ScottPJones/bb712f7b85d1d8d91a9a. I am curious if these sorts of performance improvements (along with better error handling and Unicode input validation) would be important to anybody else, as I am trying to convince people to merge this PR into the Julia base... Thanks, Scott
[julia-users] Use Julia color scheme in terminal
Hi folks, I recently switched to the solarized color scheme in my terminal. However I want to use the color scheme that is provided by the Julia REPL. How can I enable Julia to use its own color scheme? Cheers
[julia-users] Re: help with include_string
I hope to be able to easily plot some variables or formula based on a combination of variables. Typing in the ones at run time seems very convenient. On Wednesday, May 13, 2015, Yichao Yu yyc1...@gmail.com wrote: On Tue, May 12, 2015 at 5:21 PM, K leo cnbiz...@gmail.com javascript:; wrote: In this test case yes, but my intention is to input that string ( tech.cl in this test case) at run time, so in the real case, no. Is what you want executing arbitrary code from user input? Or do you only want to accept only a limit set of input. On Tuesday, May 12, 2015, Yichao Yu yyc1...@gmail.com javascript:; wrote: Can't you just use `y1 = tech.cl` here?
Re: [julia-users] Re: Julia will always be open source
Yes, that's correct – I'm also a cofounder of Julia Computing. On Tue, May 12, 2015 at 3:18 PM, Yichao Yu yyc1...@gmail.com wrote: On Tue, May 12, 2015 at 2:43 PM, Scott Jones scott.paul.jo...@gmail.com wrote: About Julia Computing, is Stefan also going to be working full time for Julia Computing? As the second largest contributor (and most vocal!), I I guess the answer is probably yes according to here[1] [1] http://karpinski.org/resume/ think that would be critical (and would be greatly reassuring to people betting on Julia...). His GitHub shows him living in NYC, but that he's an MIT Research Scientist... (I didn't know MIT had a satellite campus in NYC! ;-) ). -Scott On Saturday, May 9, 2015 at 4:20:15 PM UTC-4, Viral Shah wrote: Hello all, You may have seen today’s Hacker News story about Julia Computing: https://news.ycombinator.com/item?id=9516298 As you all know, we are committed to Julia being high quality and open source. The existence of Julia Computing was discussed a year ago at JuliaCon 2014, though we recognize that not everyone is aware. We set up Julia Computing to assist those who asked for help building Julia applications and deploying Julia in production. We want Julia to be widely adopted by the open source community, for research in academia, and for production software in companies. Julia Computing provides support, consulting, and training for customers, in order to help them build and deploy Julia applications. We are committed to all the three organizations that focus on different users and use cases of Julia: 1. The open source Julia project is housed at the NumFocus Foundation. http://numfocus.org/projects/ 2. Research on various aspects of Julia is anchored in Alan’s group at MIT. http://www-math.mit.edu/~edelman/research.php 3. Julia Computing works with customers who are building Julia applications. http://www.juliacomputing.com/ Our customers make Julia Computing self-funded. We are grateful that they have created full time opportunities for us to follow our passions. Open source development will never cease. You may have questions. Please shoot them here. We will respond back with a detailed blog post. -viral
[julia-users] Re: help with include_string
In this test case yes, but my intention is to input that string (tech.cl in this test case) at run time, so in the real case, no. On Tuesday, May 12, 2015, Yichao Yu yyc1...@gmail.com wrote: Can't you just use `y1 = tech.cl` here?
[julia-users] undefined symbol: omp_get_wtime_ with ccall to Pardiso.
Hello everyone, I am trying to call the Pardiso library (sparse solver library) in the following way: julia l = Libdl.dlopen(libparadiso, Libdl.RTLD_GLOBAL) Ptr{Void} @0x014e9510 julia init = Libdl.dlsym(l, pardisoinit) Ptr{Void} @0x7f920f989f50 julia pt = [0] julia dparm = zeros(64) julia err = [0] julia ccall(init, Void, (Ptr{Int}, Ptr{Int}, Ptr{Int}, Ptr{Float64}, Ptr{Int}) , pt, 1, 0, dparm, err) julia: symbol lookup error: /usr/lib/libparadiso.so: undefined symbol: omp_get_wtime_ and then julia crashes. Can anyone tell me how I get the openmp symbols into julia or what I have to do to fix the problem. Or even better if someone knows of an already existing Pardiso wrapper for julia. Best regards, Kristoffer
Re: [julia-users] JuliaCon registrations open
OK, am interested in volunteering for Julia generally, have prepared a message that fits better in the pinned post. Do send word if you find some JuliaCon task that can be handled from a distance, currently doing projects in Kenya so flying to Boston with a weeks notice would be hard.
[julia-users] Re: Julia will always be open source
Am interested in being part of this venture. Every undertaking must be motivated as optimally beneficient for the world as a whole, therefore the following proposal might be acceptable to all: Will do consulting on implementing Julian AI/physics/math in exchange for donations to charitable endeavors, one of which suitably can be a strictly non-profit project to spread Julia in the developing world. Credentials include top grades in online AI courses from Caltech and Stanford, several certificates in physics and maximum score on a official IQ-test taken by close to everyone in Sweden.
[julia-users] Re: Lexicon.jl Index() function?
Hi Florian, it says ` *ERROR: Index not defined`. *Is that the full output from the error message? When I run the example it doesn't produce an error. What versions of both Lexicon and Docile are you using? Also, is this on Julia 0.3 or 0.4? -- Mike On Tuesday, 12 May 2015 12:29:17 UTC+2, Florian Oswald wrote: Hi all, I'm trying to follow the steps outline in the Lexicon documentation http://lexiconjl.readthedocs.org/en/latest/api/Lexicon/ and I am stuck with this: using Lexicon, Docile, Docile.Interface index = Index() update!(index, save(docs/api/Lexicon.md, Lexicon)); update!(index, save(docs/api/Docile.md, Docile)); update!(index, save(docs/api/Docile.Interface.md, Docile.Interface)); # save a joined Reference-Index save(docs/api/api-index.md, index); it says `*ERROR: Index not defined`. * Where does the Index() function come from? thanks florian
[julia-users] Lexicon.jl Index() function?
Hi all, I'm trying to follow the steps outline in the Lexicon documentation http://lexiconjl.readthedocs.org/en/latest/api/Lexicon/ and I am stuck with this: using Lexicon, Docile, Docile.Interface index = Index() update!(index, save(docs/api/Lexicon.md, Lexicon)); update!(index, save(docs/api/Docile.md, Docile)); update!(index, save(docs/api/Docile.Interface.md, Docile.Interface)); # save a joined Reference-Index save(docs/api/api-index.md, index); it says `*ERROR: Index not defined`. * Where does the Index() function come from? thanks florian
Re: [julia-users] JuliaCon registrations open
That is mainly because we haven’t figured out volunteering yet. It is good to know though, and we will probably send out requests for volunteers closer to the event. -viral On 12-May-2015, at 3:04 pm, Marcus Appelros marcus.appel...@gmail.com wrote: Sent an email to the JuliaCon adress about volunteering but have not received a reply.
Re: [julia-users] Suspending Garbage Collection for Performance...good idea or bad idea?
On Tuesday, December 16, 2014 at 10:24:08 PM UTC+1, Stefan Karpinski wrote: I would love to figure out a way to bring the kind of automatic resource and memory release that Rust has to Julia, but the cost is some fairly finicky static compiler analysis that is ok for Rust's target demographic but fairly clearly unacceptable for Julia general audience. What we'd need is a more dynamic version of something like that. One idea I've had is to indicate ownership and enforce it at run-time rather than compile time – and eliminate run-time checks Given these semantics, it would be relatively easy to alloca the actual memory of the array, and only heap allocate the object itself, which could then reference the stack allocated memory. This is tough to implement, especially efficiently, but I have a bit of a suspicion that in Julia mutable objects – and this only makes sense for mutable objects that are inherently associated with a particular place in memory – are rarely performance critical in Julia. In my own area (image processing and numerical calculations), using high-level vector and array operations in the inner loop is very detrimental to performance in Julia, especially if allocation of storage space for temporary results is needed. In order to get a decent performance, I usually need to (i) manually unroll the matrix operactions (@devec works but not always) and (ii) preallocate the temporaries and the output outside of the loop. The can be done by hand but it is rather tedious and leads to ugly code. It would be good if the compiler could allocate the temporaries on the stack or in a region, so that they could be deallocated quickly. The compiler might need some help, such as annotating a particular object as alias-free, which would probably lead to rust-like annotations. But if it brings performance, I would not mind. Yours, Jan
[julia-users] Re: undefined symbol: omp_get_wtime_ with ccall to Pardiso.
Mostly likely, libpardiso isn't linked to libgomp. Check with ldd, and try dlopen'ing libgomp first. If this is the version of Pardiso from MKL, then it's probably using libiomp instead. A Pardiso wrapper package would be quite useful, though it's a pretty messy situation since Intel MKL includes an implementation of Pardiso that uses an older incompatible API. Based on availability and licensing, I suspect the MKL version of Pardiso would be more widely usable. On Tuesday, May 12, 2015 at 2:07:53 AM UTC-7, Kristoffer Carlsson wrote: Hello everyone, I am trying to call the Pardiso library (sparse solver library) in the following way: julia l = Libdl.dlopen(libparadiso, Libdl.RTLD_GLOBAL) Ptr{Void} @0x014e9510 julia init = Libdl.dlsym(l, pardisoinit) Ptr{Void} @0x7f920f989f50 julia pt = [0] julia dparm = zeros(64) julia err = [0] julia ccall(init, Void, (Ptr{Int}, Ptr{Int}, Ptr{Int}, Ptr{Float64}, Ptr{Int}) , pt, 1, 0, dparm, err) julia: symbol lookup error: /usr/lib/libparadiso.so: undefined symbol: omp_get_wtime_ and then julia crashes. Can anyone tell me how I get the openmp symbols into julia or what I have to do to fix the problem. Or even better if someone knows of an already existing Pardiso wrapper for julia. Best regards, Kristoffer
[julia-users] Thin Plate Splines
Hello all, I have a set of irregularly gridded data (x,y,z) and I am trying to create an interpolating surface using Thin Plate Splines. I couldn't find any existing Julia routines so I thought I'd just do it my self. Here is my implementation http://nbviewer.ipython.org/urls/gist.githubusercontent.com/lstagner/89964e63557ddb831e72/raw/49049103742450d80ee28d8876fa1a8b8037f970/tps.ipynb. As you can see its wrong. I been staring at it for a while now and I am beginning to think I must be hitting some sort of bug or quirk of the language. It either that or I did something wrong. If I get this to work I was thinking about incorporating it into one of the existing interpolation packages. Can anyone figure out why this is not working? Sources: http://www.geometrictools.com/Documentation/ThinPlateSplines.pdf http://user.engineering.uiowa.edu/~aip/papers/bookstein-89.pdf
Re: [julia-users] Access Windows registry from Julia?
It's likely to be quite a bit less efficient than going through the Win32 C API, but you can also do much of this through powershell which should be quicker to write: https://technet.microsoft.com/en-us/library/dd315270.aspx On Tuesday, May 12, 2015 at 9:22:10 AM UTC-7, David Anthoff wrote: I think there should be a WindowsAPI.jl package where people can put all wrappers for the low level C interfaces that the Windows API defines. It could (over time) hold all the data structure definitions, and wrappers for the various Win32 function calls. Maybe a higher level registry package could then depend on that WindowsAPI.jl package? *From:* julia...@googlegroups.com javascript: [mailto: julia...@googlegroups.com javascript:] *On Behalf Of *Simon Byrne *Sent:* Tuesday, May 12, 2015 3:55 AM *To:* julia...@googlegroups.com javascript: *Subject:* [julia-users] Access Windows registry from Julia? The Windows registry useful to determine installation paths of other software and whatnot. I've hacked together some code using the REG QUERY command: https://github.com/JuliaStats/RCall.jl/blob/e4ba35cf45ca2eb041f660642449b8259c2f30e3/deps/build.jl#L13 but it is somewhat complicated (and potentially unreliable) to parse. Has anyone had any luck using the C interface? It looks a little complicated, so if anyone has any examples, I would be grateful. I guess ideally we would want to wrap the C interface into package, similar to _winreg in Python: https://docs.python.org/2/library/_winreg.html Perhaps we need an up for grabs packages list? s P.S. On that note, perhaps we should put the Julia installation path in the registry, for other software that might need to find it: both R and Python do it.
Re: [julia-users] Installing JGUI: unknown package JGUI
The package does not seem to be registered in METADATA, yet - you can install it with Pkg.clone(https://github.com/jverzani/JGUI.jl.git;) though. Am 12.05.2015 um 13:49 schrieb Peter Kristan 5er.kris...@gmail.com: ERROR: unknown package JGUI in wait at task.jl:51 in sync_end at task.jl:311 in add at pkg/entry.jl:55 in anonymous at pkg/dir.jl:28 in cd at file.jl:30 in cd at pkg/dir.jl:28 I get the above error when trying to install the JGUI library with the command Pkg.add(JGUI), as written on this page. Does anyone know why this is and how to get around it? I can't seem to find any mention of this problem, or JGUI for that matter.
Re: [julia-users] String performance in Julia
I assume you're talking about https://github.com/JuliaLang/julia/pull/11004. This pull request is not mergeable in its current state since there are a significant number of comments that haven't been replied to and issues that haven't been fixed. The way forward is to fix the issues that have been pointed out and respond to comments that have been made. On Mon, May 11, 2015 at 10:52 PM, Scott Jones scott.paul.jo...@gmail.com wrote: I would like to get the performance of string handling in Julia improved (and also correct a number of flaws in handling Unicode). Currently, many of the operations are very slow (because of the way strings are represented, and also simply because the algorithms used were not as fast as they could be). For communicating with Java where the String type is always UTF-16, C/C++, where wide strings are either UTF-16 or UTF-32, databases (which frequently use UTF-16 in Asia, because UTF-8 can take more space, depending on the data), or using Unicode APIs in Windows or the ICU libraries which use UTF-16, the performance of the conversions between the ASCIIString/UTF8String types that Julia normally uses for strings and UTF-16 can be critical for an applications performance. I have a PR (#11004) to fix the performance issue #10959 I raised (in the GitHub repository ScottPJones/julia branch spj/fast_utf), if anybody would like to try this out. My own testing shows that it gives about a 2-10x improvement (most of the time, 10x), you can get my latest benchmark results along with the code I used to benchmark it at my gist, https://gist.github.com/ScottPJones/bb712f7b85d1d8d91a9a. I am curious if these sorts of performance improvements (along with better error handling and Unicode input validation) would be important to anybody else, as I am trying to convince people to merge this PR into the Julia base... Thanks, Scott
Re: [julia-users] Installing JGUI: unknown package JGUI
That worked, thanks!
[julia-users] Re: String performance in Julia
One thing, since i read the PR, isn't this something you could get from a library? Re-implementing the whole UTF-X/UTF-Y zoo looks like re-inventing the wheel.
[julia-users] Re: Julia will always be open source
There's one point from the HN thread (and echoed a few other places) that I'd like to add some thoughts on. For all those who're getting worried by this, I don't think there's any inherent problem. After all, this is exactly what Red Hat has been doing with Linux for years. One important difference between Red Hat and Julia Computing is that Linus Torvalds does not work for Red Hat. In fact, although many core contributors to Linux have worked for various distributions, Linus himself has gone to great lengths never to work for a single distribution so that he could always remain in a position of perceived neutrality. This led to some growing pains for some time when he had a day job at Transmeta, but since 2003 he has worked full-time on Linux for OSDL (now the Linux Foundation), a 501c6 nonprofit organization. My ideal would be to see something similar for Julia -- a nonprofit home that employs the core decision makers in Julia land. Of course this is a long-term solution, and what is needed right now is a solution for the short to medium term. And to be honest, I think when the time comes to have a more neutral organization, your customers are likely to push you in that direction anyway... Short of that, it might be worth studying some other models that exist now. LLVM/Apple is one that comes to mind, though that is part of a much larger company with a different kind of revenue source than Julia Computing will have. I don't know much about how (or how successfully) Apple has managed to keep LLVM a true community project while employing the project's leader, but it is perhaps an example to consider (and one that is especially relevant to Julia). Basically, I would love if you would keep in mind the ideal of having at least one of you work for a neutral organization in the future. Anything you can arrange for now that will allow such a transition to be done easily when the time comes is, I would think, a good idea. I am incredibly confident in the future of Julia and wish you all the best! Jim
[julia-users] How to cleen all vars and proces ?
How to cleen all vars and proces ? Is in Julia somthink like reload all modules ? Start again ? Paul
Re: [julia-users] Julia will always be open source
On 12-May-2015, at 2:06 pm, Waldir Pimenta waldir.pime...@gmail.com wrote: Hi Viral, I have a small request. Do you think it would make sense to include on Julia Computing's website (either on the home page or in an separate page) a note about this commitment to the open source aspect of Julia and the continued use of open development practices (public mailing lists, IRC channel, issue tracker, etc.)? I'd love to add you to the community-curated list of open companies being built here. I think this is a great idea. We will add our commitment to open source Julia to the website. -viral
[julia-users] Re: Lexicon.jl Index() function?
hi, I'm on julia 0.3.6. A Pkg.update() did *INFO: Upgrading Docile: v0.4.8 = v0.4.13* *INFO: Upgrading Lexicon: v0.1.4 = v0.1.9* and everything's fine. you guys work too fast! :-) sorry about that, my bad. I may have some more reasonable questions later on. florian On Tuesday, 12 May 2015 11:39:25 UTC+1, Michael Hatherly wrote: Hi Florian, it says ` *ERROR: Index not defined`. *Is that the full output from the error message? When I run the example it doesn't produce an error. What versions of both Lexicon and Docile are you using? Also, is this on Julia 0.3 or 0.4? -- Mike On Tuesday, 12 May 2015 12:29:17 UTC+2, Florian Oswald wrote: Hi all, I'm trying to follow the steps outline in the Lexicon documentation http://lexiconjl.readthedocs.org/en/latest/api/Lexicon/ and I am stuck with this: using Lexicon, Docile, Docile.Interface index = Index() update!(index, save(docs/api/Lexicon.md, Lexicon)); update!(index, save(docs/api/Docile.md, Docile)); update!(index, save(docs/api/Docile.Interface.md, Docile.Interface)); # save a joined Reference-Index save(docs/api/api-index.md, index); it says `*ERROR: Index not defined`. * Where does the Index() function come from? thanks florian
[julia-users] Access Windows registry from Julia?
The Windows registry useful to determine installation paths of other software and whatnot. I've hacked together some code using the REG QUERY command: https://github.com/JuliaStats/RCall.jl/blob/e4ba35cf45ca2eb041f660642449b8259c2f30e3/deps/build.jl#L13 but it is somewhat complicated (and potentially unreliable) to parse. Has anyone had any luck using the C interface? It looks a little complicated, so if anyone has any examples, I would be grateful. I guess ideally we would want to wrap the C interface into package, similar to _winreg in Python: https://docs.python.org/2/library/_winreg.html Perhaps we need an up for grabs packages list? s P.S. On that note, perhaps we should put the Julia installation path in the registry, for other software that might need to find it: both R and Python do it.
[julia-users] Is there a way of reading in Stata's dta file format?
I have found DataRead.jl https://github.com/WizardMac/DataRead.jl, but it appears to rely on a Mac-only package. Is there anything that works on all machines?
Re: [julia-users] String performance in Julia
On Tuesday, May 12, 2015 at 7:46:47 AM UTC-4, Stefan Karpinski wrote: I assume you're talking about https://github.com/JuliaLang/julia/pull/11004. This pull request is not mergeable in its current state since there are a significant number of comments that haven't been replied to and issues that haven't been fixed. The way forward is to fix the issues that have been pointed out and respond to comments that have been made. It had been languishing for about 8-9 days, after I had addressed all the issues from previous comments... Now that today I have been getting some feedback, I am working to address all of those comments, so that it could be merged. I wanted to get an idea if other people also considered these performance issues important or critical for what they are trying to do in Julia...
[julia-users] Re: String performance in Julia
Not really, and the code involved here is rather small, I'm only addressing conversions. Fancy stuff definitely should be handled by a library, such as the utf8proc that Julia already uses (although I have some serious reservations about that, after having dug into it, and fixed some serious encoding problems with it, as well as having seen some benchmark results comparing it to ICU). There is a ICU.jl wrapper, which I haven't tried yet, but since ICU always wants UTF-16 strings, and Julia's default is UTF-8, fixing and speeding up the conversions between UTF-8 - UTF-16 is even more important.
[julia-users] What's the reasoning to have 2 different import mechanisms: using vs import?
As far as I can tell using is almost like import except with import you can extend the functions and with using not (but then with using module you also can extend them???) and there are some differences in name resolution (fully qualified or not). Is it a performance optimization (reducing the search space for method resolution)? But then why also allow extension for using module ? Are there any plans to come to one mechanism in the future?
Re: [julia-users] What's the reasoning to have 2 different import mechanisms: using vs import?
Are there any plans to come to one mechanism in the future? Possibly: https://github.com/JuliaLang/julia/issues/8000 On Tue, May 12, 2015 at 9:34 AM, Steven Sagaert steven.saga...@gmail.com wrote: As far as I can tell using is almost like import except with import you can extend the functions and with using not (but then with using module you also can extend them???) and there are some differences in name resolution (fully qualified or not). Is it a performance optimization (reducing the search space for method resolution)? But then why also allow extension for using module ? Are there any plans to come to one mechanism in the future?
[julia-users] Re: JuliaCon registrations open
Sent an email to the JuliaCon adress about volunteering but have not received a reply.
[julia-users] Re: Lexicon.jl Index() function?
Great! Glad that's fixed. you guys work too fast! As a comment to the community in general: Lexicon/Docile is currently undergoing some improvements and redesign, so if anyone is interested in being involved in the effort they are more than welcome to drop by the repo issue lists. I may have some more reasonable questions later on. I've just added gitter.im chat rooms for both Docile/Lexicon that should be suitable for these kind of questions if they don't get satisfactory answers here. -- Mike On Tuesday, 12 May 2015 12:53:57 UTC+2, Florian Oswald wrote: hi, I'm on julia 0.3.6. A Pkg.update() did *INFO: Upgrading Docile: v0.4.8 = v0.4.13* *INFO: Upgrading Lexicon: v0.1.4 = v0.1.9* and everything's fine. you guys work too fast! :-) sorry about that, my bad. I may have some more reasonable questions later on. florian On Tuesday, 12 May 2015 11:39:25 UTC+1, Michael Hatherly wrote: Hi Florian, it says ` *ERROR: Index not defined`. *Is that the full output from the error message? When I run the example it doesn't produce an error. What versions of both Lexicon and Docile are you using? Also, is this on Julia 0.3 or 0.4? -- Mike On Tuesday, 12 May 2015 12:29:17 UTC+2, Florian Oswald wrote: Hi all, I'm trying to follow the steps outline in the Lexicon documentation http://lexiconjl.readthedocs.org/en/latest/api/Lexicon/ and I am stuck with this: using Lexicon, Docile, Docile.Interface index = Index() update!(index, save(docs/api/Lexicon.md, Lexicon)); update!(index, save(docs/api/Docile.md, Docile)); update!(index, save(docs/api/Docile.Interface.md, Docile.Interface)); # save a joined Reference-Index save(docs/api/api-index.md, index); it says `*ERROR: Index not defined`. * Where does the Index() function come from? thanks florian
[julia-users] Copying installed packages between different machines
I have built Julia on a Machine1 and have added new packages such as LightXML,TextPlots ( using Pkg.add(LightXML) ). I have ported the Julia binaries and libraries to another Machine2 ( same environment and OS ) and it works fine. How to copy the installed packages from Machine1 to Machine2 ? Where are the packages getting installed in Machine1 ? Note: Machine2 cannot build any package from source nor it has internet connectivity
[julia-users] Save history of REPL
Hi, i'd like to save all (or a part of) the history of commands typed in REPL in a file. Is there a way to do it? Thanks. Massimo -- View this message in context: http://julia-programming-language.2336112.n4.nabble.com/Save-history-of-REPL-tp19611.html Sent from the Julia Users mailing list archive at Nabble.com.
Re: [julia-users] Re: help with include_string
On Mon, May 11, 2015 at 10:34 PM, K leo cnbiz...@gmail.com wrote: I guess I found the problem, but don't know a solution. The following test code (same as the previous one except that I put them in a function) now produces the same problem as my real code. type Tech cl::Array{Float64,1} cm::Array{Float64,1} function Tech() this = new() this.cl=[1:4] this.cm=[6:10] this end end function mytest() tech = Tech() while true println(input a choice) ch = read(STDIN, Char) if ch=='l' y1 = include_string(tech.cl) Can't you just use `y1 = tech.cl` here? println(y1) elseif ch=='m' y1 = include_string(tech.cm) println(y1) elseif ch=='q' break end end end - _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type help() for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.3.8 (2015-04-30 23:40 UTC) _/ |\__'_|_|_|\__'_| | Official http://julialang.org release |__/ | x86_64-linux-gnu julia include(test.jl) mytest (generic function with 1 method) julia mytest() input a choice l ERROR: tech not defined in mytest at /home//Coding/Julia/test.jl:19 while loading string, in expression starting on line 1
Re: [julia-users] Copying installed packages between different machines
The packages are by default in ~/.julia/v0.3 (or v0.4 respectively). You can try to copy this over to Machine2 and see whether the packages you need work that way. One thing that will be missing are binary package dependencies which are installed using the package manager in a package's build step. When you see errors on Machine2 referring to a package X, you can try to run Pkg.build(X) and see whether Machine2 can install the dependencies. Hope that get's you started, Rene Am 12.05.2015 um 13:33 schrieb vishnu suganth vishnusuga...@gmail.com: I have built Julia on a Machine1 and have added new packages such as LightXML,TextPlots ( using Pkg.add(LightXML) ). I have ported the Julia binaries and libraries to another Machine2 ( same environment and OS ) and it works fine. How to copy the installed packages from Machine1 to Machine2 ? Where are the packages getting installed in Machine1 ? Note: Machine2 cannot build any package from source nor it has internet connectivity
Re: [julia-users] Save history of REPL
The history can be found in ~/.julia_history Am 12.05.2015 um 15:14 schrieb cameyo massimo.corinald...@regione.marche.it: Hi, i'd like to save all (or a part of) the history of commands typed in REPL in a file. Is there a way to do it? Thanks. Massimo -- View this message in context: http://julia-programming-language.2336112.n4.nabble.com/Save-history-of-REPL-tp19611.html Sent from the Julia Users mailing list archive at Nabble.com.
Re: [julia-users] How to cleen all vars and proces ?
workspace() will make a clean slate, but will not reload the modules, you will have to load them again. On Tue, May 12 2015, paul analyst paul.anal...@mail.com wrote: How to cleen all vars and proces ? Is in Julia somthink like reload all modules ? Start again ? Paul
Re: [julia-users] JuliaCon registrations open
On Tue, May 12, 2015 at 6:37 AM, Marcus Appelros marcus.appel...@gmail.com wrote: OK, am interested in volunteering for Julia generally, have prepared a message that fits better in the pinned post. Do send word if you find some JuliaCon task that can be handled from a distance, currently doing projects in Kenya so flying to Boston with a weeks notice would be hard. Hopefully this is the right place to ask.. Does the student ticket include the Workshops ?