[julia-users] JuliaCon 2016: Call For Proposals Deadline Extension

2016-03-18 Thread Pontus Stenetorp
/eXlP0KsQ1U Call for Participation closes: March 20th, 23:59 (UTC-11) On behalf of the JuliaCon 2016 organisers, Pontus Stenetorp

Re: [julia-users] Re: JuliaCon 2016: Program Committee Office Hours on the 5th of March at 15:00 UTC

2016-03-03 Thread Pontus Stenetorp
On 3 March 2016 at 11:47, Bart Janssens wrote: > > Should we already fill in the proposal form for JuliaCon before this > session, to improve upon it later, or is it better to just submit after? Either way is fine. I imagine that it is easiest for us on the PC if you have a

Re: [julia-users] Re: JuliaCon 2016: Second Call For Proposals

2016-02-25 Thread Pontus Stenetorp
On 25 February 2016 at 20:12, Cedric St-Jean wrote: > > Out of curiosity, how many people attended last year? There are not official numbers by any means, but around 250 in 2015. This was quite a significant increase compared to 2014 when I think we were about 50 people

Re: [julia-users] Re: Why can't julia make the most of the system resource?

2015-12-20 Thread Pontus Stenetorp
On 19 December 2015 at 20:02, wrote: > >> As can be seen, all the 8 cores of my pc is being used by the julia >> program, however, only 35% of the system resource is covered. My julia code >> mainly does the fft operates in a loop. I use fftw.set_num_threads(8) >> outside the

Re: [julia-users] Re: split a utf-8 string

2015-11-22 Thread Pontus Stenetorp
On 22 November 2015 at 01:46, wrote: > > On Sunday, November 22, 2015 at 10:02:03 AM UTC+10, James Gilbert wrote: >> >> The spaces in your string are '\u3000' the ideographic space. >> isspace('\u3000') returns true, and split(s) is supposed to split on all >> space characters,

Re: [julia-users] Re: For loop = or in?

2015-10-29 Thread Pontus Stenetorp
I have to agree with Stefan that this is turning into bikeshedding [1]. My personal bias is towards `in`, probably due to my many years of Python, but I am convinced that both keeping the current duality or picking one of them will not lead to a mental overload. In fact, in order for us to stop

Re: [julia-users] Re: TinySegmenter benchmark

2015-10-21 Thread Pontus Stenetorp
On 21 October 2015 at 17:49, Stefan Karpinski wrote: > > That's an excellent performance comparison case study! Nice work, Chezou and > nice blog post (the Google translation is pretty readable). Very readable indeed and I am always happy to see more NLP code in Julia!

Re: [julia-users] Re: ERROR: curve_fit not defined

2015-09-21 Thread Pontus Stenetorp
On 21 September 2015 at 08:30, testertester wrote: > > YAK ALERT: ABANDON SHI(T)P > I'll try installing it on Windows tomorrow. Every attempt at installing > 0.3.11 on ubuntu failed no matter how many dependencies I installed. Also, > the link to download the .debs no

Re: [julia-users] can't use Pkg.update()

2015-09-19 Thread Pontus Stenetorp
On 19 September 2015 at 08:23, Shubham Bhushan wrote: > > I have been trying to use Pkg.update and I keep getting these > julia> Pkg.update() > INFO: Updating METADATA... > fatal: Not a git repository (or any of the parent directories): .git > fatal: Not a git repository

Re: [julia-users] Re: opencv python api in Julia

2015-09-18 Thread Pontus Stenetorp
On 18 September 2015 at 15:51, Christof Stocker wrote: > > Actually, now that I think of it, thats not completely true. I did look at a > MIT licensed code that is very related. Although my code is not in any way > based on it. But I guess it's fair to say that it

Re: [julia-users] Re: Convert datetime string that has AM/PM to datetime, without using Calendar.jl

2015-09-09 Thread Pontus Stenetorp
On 9 September 2015 at 01:05, Ian Butterworth wrote: > > I managed to make it work by removing the last 3 characters from the input > string, and using single format characters. > Also caught a bug that occurs when the hour in the string = 12, and it's PM. > I believe

Re: [julia-users] Re: Convert datetime string that has AM/PM to datetime, without using Calendar.jl

2015-09-08 Thread Pontus Stenetorp
On 8 September 2015 at 22:31, Ian Butterworth wrote: > > On Tuesday, 8 September 2015 17:27:25 UTC-4, Ian Butterworth wrote: >> >> I current use Calendar.jl to convert a datetime that contains AM/PM to the >> datetime type like this: >> datetime_string = "2015-08-12

Re: [julia-users] How to delete a file?

2015-09-06 Thread Pontus Stenetorp
On 6 September 2015 at 18:37, J Luis wrote: > >> You may also be interested in `mktemp` [1]. >> >> Pontus >> >> [1]: http://julia.readthedocs.org/en/latest/stdlib/file/#Base.mktemp > > Yes, indeed but the the returned 'io' file is closed/removed when? (docs are > too short

Re: [julia-users] How to delete a file?

2015-09-06 Thread Pontus Stenetorp
On 6 September 2015 at 17:18, J Luis wrote: > > domingo, 6 de Setembro de 2015 às 16:57:27 UTC+1, René Donner escreveu: >> >> Am 06.09.2015 um 17:56 schrieb J Luis : >> >> > Let's say that in a script I had to create a temporary file. How do I >> > delete it

Re: [julia-users] FYI: PackageEvaluator/pkg.julialang.org badge URL change

2015-09-02 Thread Pontus Stenetorp
On 2 September 2015 at 08:46, Iain Dunning wrote: > > In an effort to prepare for a reality where Julia 0.3, 0.4, and 0.5-dev will > all be in the wild simultaneously, I had to change the PackageEvaluator > badge URL scheme. I also took the opportunity to change the badge

Re: [julia-users] Re: How to define an array of floating point numbers?

2015-08-18 Thread Pontus Stenetorp
On 18 August 2015 at 10:22, Uwe Fechner uwe.fechner@gmail.com wrote: Ok, the following definition works on Julia 0.4, but not with 0.3: FloatArray = Union{Array{Float32, 1}, Array{Float64, 1}} function sum(x::FloatArray). Any idea? I would simply go with: function

Re: [julia-users] Re: ANN: JuliaGPU mailing list

2015-08-16 Thread Pontus Stenetorp
On 16 August 2015 at 17:55, Uwe Fechner uwe.fechner@gmail.com wrote: is there a reason, why only group members can read this group? The usual policy is, that everybody can read and only group members can post. No, I simply messed up the configuration. Thank you for noticing and

[julia-users] ANN: JuliaGPU mailing list

2015-08-15 Thread Pontus Stenetorp
Everyone, I have gradually been pushed towards GPU computing and was looking for a forum to join in order to keep up with the latest on GPU computing and Julia. However, it turned out that the JuliaGPU organisation did not have a mailing list, so after confirming the situation with Tim Holy I

[julia-users] Re: Finding the index of the n-th occurrence of a predicate in an Array

2015-07-17 Thread Pontus Stenetorp
On 17 July 2015 at 15:07, David Gold david.gol...@gmail.com wrote: If you don't care about short-circuiting after finding the nth occurrence you could of course just do `find(f, A)[n]`. For my specific application, n should be fairly small so this is an excellent option. I must have

[julia-users] Finding the index of the n-th occurrence of a predicate in an Array

2015-07-17 Thread Pontus Stenetorp
Everyone, I just recently needed to find the index of the n-th occurrence of a predicate an Array and was a bit surprised that there was not a convenience function in Base. Rolling one on your own is simple, but I somehow expected to find something in Base to get the same functionality.

Re: [julia-users] Re: Help in understanding Julia's ways

2015-07-07 Thread Pontus Stenetorp
On 7 July 2015 at 04:12, Ismael VC ismael.vc1...@gmail.com wrote: Couldn't we just get a warning and let people shoot themselves in their foot if that's what they want? Something like: Warning: Using private method/type in module Foo at foo.jl:n. I like that you are trying to find some

Re: [julia-users] Is it possible to comiple application written on Julia to binary?

2015-06-12 Thread Pontus Stenetorp
On 12 June 2015 at 08:27, Vladislav Falfushinsky vladislav.falfushin...@gmail.com wrote: Is it possible to comiple application written on Julia to binary? The words that you are looking for are static compilation. It is in the works, you can find more information regarding the current status

Re: [julia-users] Re: Sampling a Discrete Probability Distribution Using a Vector

2015-05-28 Thread Pontus Stenetorp
Thanks a bundle everyone, I could not have hoped for a better set of answers. The Darts, Dice, and Coins page is excellent, the original papers are also very accessible, something that I have experienced with a lot of early Computer Science papers. In case anyone is interested in where Vose's

Re: [julia-users] Packing and Unpacking several Matrixes into flat vectors

2015-05-28 Thread Pontus Stenetorp
Sorry to be late to the party, catching up with my mailing list backlog. On Thursday, May 14, 2015 at 2:03:27 AM UTC-7, Tim Holy wrote: On Wednesday, May 13, 2015 11:50:00 PM Lyndon White wrote: function unpack!(nn::NN, θ::Vector) W_e_len = length(nn.W_e) b_e_len =

[julia-users] Sampling a Discrete Probability Distribution Using a Vector

2015-05-26 Thread Pontus Stenetorp
Everyone, tl;dr: When trading memory for computation time by sampling from a discrete probability distribution by sampling uniformly from a vector, is there a good way to decide on the size of the vector? Code attached to the e-mail. First of all, my apologies if this has been answered

[julia-users] Parsing 12-hour Clock Timestamps

2015-04-19 Thread Pontus Stenetorp
Everyone, I am currently parsing some data that unfortunately uses a 12-hour clock format. Reading the docs [1] and the source, [2] I am now fairly certain that `Base.Dates` currently lacks support to parse something like `Apr 1, 2015 1:02:03 PM`. Am I correct in this? Also, what would you

Re: [julia-users] What happened to hist2d! ?

2015-04-19 Thread Pontus Stenetorp
On 19 April 2015 at 17:56, DumpsterDoofus peter.richter@gmail.com wrote: According to the 0.3.7 documentation at http://julia-demo.readthedocs.org/en/stable/stdlib/math.html?highlight=hist2d!#Base.hist2d!, the function hist2d! is included as a standard function. However, when I type

Re: [julia-users] difficulty disabling multicore BLAS?

2015-03-06 Thread Pontus Stenetorp
On 7 March 2015 at 01:57, Steven G. Johnson stevenj@gmail.com wrote: Is there any reason why blas_set_num_threads(1) would not be sufficient to disable additional cores? Given the code [1], I would say no. I do however always have `export OPENBLAS_NUM_THREADS=1` in my `.bashrc`, since I

[julia-users] [ANN] Hinton.jl: Hinton diagram plotting, now also in the terminal

2014-12-29 Thread Pontus Stenetorp
Everyone, Over Christmas I have taken a few hours here and there to put together a small library to generate Hinton diagrams. These diagrams are commonly used to analyse small to medium-sized matrices. Since I tend to spend most of my time in the terminal it supports both standard graphics

Re: [julia-users] ERROR: unknown package Hinton

2014-12-29 Thread Pontus Stenetorp
On 29 December 2014 at 22:14, Milan Bouchet-Valat nalimi...@club.fr wrote: Le lundi 29 décembre 2014 à 13:54 +0100, Paul Analyst a écrit : julia Pkg.add(Hinton) ERROR: unknown package Hinton Doesn't seem it's a registered package. Instructions are given on the package webpage:

Re: [julia-users] Re: How can I sort Dict efficiently?

2014-12-15 Thread Pontus Stenetorp
On 16 December 2014 at 04:39, Stefan Karpinski ste...@karpinski.org wrote: I'm not sure how this technique applies any less to strings than to numbers. Can you clarify what your concern is? I am suspecting that what he wants to do is to limit the size of a vocabulary (set of tokens) by

Re: [julia-users] Re: Community Support for Julia on Travis CI

2014-12-11 Thread Pontus Stenetorp
On 12 December 2014 at 00:28, Stefan Karpinski ste...@karpinski.org wrote: Btw, can I be added to the JuliaCI org? No idea who, but someone has taken care of it. If someone else wants to join, just give us a poke. On 12 December 2014 at 00:49, Nils Gudat nils.gu...@gmail.com wrote: Excuse

[julia-users] Community Support for Julia on Travis CI

2014-12-10 Thread Pontus Stenetorp
use of it and we will hopefully soon also add support to test specific Julia release branches and numbers. Pontus Stenetorp [1]: http://blog.travis-ci.com/2014-12-10-community-driven-language-support-comes-to-travis-ci/ [2]: https://github.com/JuliaCI

Re: [julia-users] Re: home page content

2014-12-09 Thread Pontus Stenetorp
On 10 December 2014 at 08:43, Leah Hanson astriea...@gmail.com wrote: Seeing code examples of a type and a couple of functions that use it would probably give a good idea of what the code looks like. This would be excellent, maybe with some JavaScript magic we could have a set of examples to

Re: [julia-users] Missing newline in file output?

2014-12-08 Thread Pontus Stenetorp
On 8 December 2014 at 17:11, Greg Plowman greg.plow...@gmail.com wrote: The file contains LF only, which apparently Notepad doesn't interpret properly. Interestingly, the equivalent C code (Visual C++ for Windows) creates CR/LF pairs. Presumably this is Microsoft specific, specifically for

Re: [julia-users] parallel installation of 0.3 and 0.4?

2014-12-07 Thread Pontus Stenetorp
On 7 December 2014 at 19:57, Andreas Lobinger lobing...@gmail.com wrote: How can i use two different versions of julia in parallel? Obviously i can have two directories with a local build and the executable, and two repositories of packets in .julia/v0.3 and .julia/v0.4. The command-line

Re: [julia-users] UInt should be Uint in documentation

2014-11-24 Thread Pontus Stenetorp
On 25 November 2014 at 15:01, Ronald L. Rivest rivest@gmail.com wrote: There is an apparent bug (or family of bugs) in the documentation julia.pdf. The document says unsigned integer is of type UInt, while the julia system only accepts Uint (lowercase i instead of uppercase I). This

Re: [julia-users] UInt should be Uint in documentation

2014-11-24 Thread Pontus Stenetorp
On 25 November 2014 at 16:16, Ronald L. Rivest rivest@gmail.com wrote: You are correct; my apologies for this post. No worries, we are all happy to help. I was reading documentation for development version 0.4.0 but running 0.3.2. So, I guess UInt will be the new Uint as of 0.4.0...

Re: [julia-users] Dict performance with String keys

2014-11-20 Thread Pontus Stenetorp
On 21 November 2014 03:41, Stefan Karpinski ste...@karpinski.org wrote: I'm currently working on an overhaul of byte vectors and strings, which will be followed by an overhaul of I/O (how one typically gets byte vectors). It will take a bit of time but all things string and I/O related should

Re: [julia-users] Re: Simple Finite Difference Methods

2014-11-20 Thread Pontus Stenetorp
On 21 November 2014 05:35, Mauro mauro...@runbox.com wrote: - it's ok to re-do someone elses examples as long as you don't look at source code. However, that is probably a bit tricky as examples are usually mixed with code. Having been involved WiFi drivers back-in-the-day, it is insane

Re: [julia-users] Dict performance with String keys

2014-11-19 Thread Pontus Stenetorp
On 20 November 2014 10:05, Greg Lee egreg...@gmail.com wrote: Is there a faster way to do the following, which builds a dictionary of unique tokens and counts? I share your frustration regarding this. It should be mentioned though that converting tokens to integers is a fairly standard

Re: [julia-users] travis for os x packages

2014-11-10 Thread Pontus Stenetorp
On 11 November 2014 10:49, Tony Kelman t...@kelman.net wrote: I don't want to steal Pontus Stenetorp's thunder since he did all the work, but there's a PR open here https://github.com/travis-ci/travis-build/pull/318 that will sooner or later add community maintained support for Julia directly

[julia-users] ERROR: syntax: invalid character ∀

2014-10-14 Thread Pontus Stenetorp
Everyone, Recently I came up with the idea of turning variables like allfoo into ∀foo (I find the latter token significantly easier to parse visually) by using the lovely Unicode completion and by slightly abusing mathematical notation. However, this is not possible and I am not sure why.

Re: [julia-users] Re: ERROR: syntax: invalid character ∀

2014-10-14 Thread Pontus Stenetorp
On 15 October 2014 11:35, Steven G. Johnson stevenj@gmail.com wrote: On Tuesday, October 14, 2014 9:36:58 PM UTC-4, Pontus Stenetorp wrote: julia ∀foo = [17, 4711] ERROR: syntax: invalid character ∀ Julia only allows a subset of unicode math characters (category Sm

Re: [julia-users] Re: Advise on Julia composite type to replace MATLAB struct

2014-10-13 Thread Pontus Stenetorp
On 13 October 2014 20:39, mfjon...@hotmail.com wrote: Thank you for this very clear (!) example. I have worked hours on implementing my composite type, but the Julia documentation is not particularly informative on more difficult composite types (like mine). Could you/or anyone else please

Re: [julia-users] Re: Advise on Julia composite type to replace MATLAB struct

2014-10-12 Thread Pontus Stenetorp
On 13 October 2014 07:34, mfjon...@hotmail.com wrote: Just to be sure that I understand your advice: an immutable should not be used for an object with large arrays? Hence the need for a composite type? The answer to mutable or not is more complicated than that and depends on how you want

Re: [julia-users] Function to get Index of nonzero entries in sparse vector

2014-10-10 Thread Pontus Stenetorp
On 10 October 2014 17:07, JVaz joanvazquezmol...@gmail.com wrote: I have a sparse vector, is there any function that returns an array with the index of its nonzero entires? E.g I have A 1048576x1 sparse matrix with 2 Float64 entries: [1 , 1] = 0.5 [32801 , 1] = 0.5

Re: [julia-users] 64 bit system: Force Float default to Float32

2014-10-08 Thread Pontus Stenetorp
On 9 October 2014 09:58, Hubert Soyer hubert.so...@gmail.com wrote: Is there any way to make floats in Julia default to 32 bit on a 64 bit system? At least in a lot of my work 32 bit precision is just fine and the speed I could potentially gain by simply switching is enormous. I think

[julia-users] Make a Copy of an Immutable with Specific Fields Changed

2014-09-18 Thread Pontus Stenetorp
Everyone, As a former Python addict, I recently found myself wanting to generate a copy of an immutable object with only a single or a few values changed. I tried to find an answer to this question but either my search query skills or my lack of energy towards the end of my workday hindered me.

Re: [julia-users] Make a Copy of an Immutable with Specific Fields Changed

2014-09-18 Thread Pontus Stenetorp
On 18 September 2014 18:22, Rafael Fourquet fourquet.raf...@gmail.com wrote: I think the idiomatic way remains to be designed: https://github.com/JuliaLang/julia/issues/5333. Thanks a bundle Rafael, I did indeed miss that issue. There also seems to be a pull-request from @nolta implementing

[julia-users] `ContiguousView`s Into a Single Contiguous `Array`

2014-08-26 Thread Pontus Stenetorp
Everyone, A fairly common pattern in Machine Learning is to use a single contiguous chunk of memory for all of your parameters, as this makes operations such as regularisation trivial. I took a quick stab at achieving this using ArrayViews.jl, but I am not entirely pleased with what I could come

Re: [julia-users] GUI in Julia

2014-08-12 Thread Pontus Stenetorp
On 13 August 2014 09:24, ccsv.1056...@gmail.com wrote: Are there any GUI packages for julia available yet or is it too early to ask? If you head over to the available packages list [1], there are several. While I have not experimented with them myself, Gtk.jl [2] and Tk.jl [3] seems to be

[julia-users] issubtype introspection oddities

2014-07-18 Thread Pontus Stenetorp
as on the last line. I am sure that I am missing something here and I would very much appreciate if someone could tell me what aspect of Julia introspection that I have yet to understand. Regards, Pontus Stenetorp

Re: [julia-users] issubtype introspection oddities

2014-07-18 Thread Pontus Stenetorp
Hello Mauro, On 18 July 2014 18:32, Mauro mauro...@runbox.com wrote: this is a bug. Running it inside vs outside of a function shows the same issue: julia @show issubtype(fieldtype(foo, :bar), Array) issubtype(fieldtype(foo,:bar),Array) = true true julia f() = @show

[julia-users] Build failing with: `libopenspecfun.so.0': File exists

2014-07-10 Thread Pontus Stenetorp
. Apparently there are some shared library symlink leftovers that are not desirable, possibly due to a version bump. Just clean them out with `rm deps/openspecfun/libopenspecfun.*`, run the standard `make testall` and you should be good to go again. Regards, Pontus Stenetorp

[julia-users] `for i in ${SCALAR}`

2014-06-18 Thread Pontus Stenetorp
Everyone, I am sure that there is a perfectly good reason for the parser to allow a construct like: for i in 17; println(i); end But, I am unable to see how this can be useful/helpful since a loop like this will only ever execute once. I have now had two bugs stemming from this behaviour,

Re: [julia-users] Re: `for i in ${SCALAR}`

2014-06-18 Thread Pontus Stenetorp
On 18 June 2014 19:52, Tim Holy tim.h...@gmail.com wrote: Pontus, if your function call is sometimes returning a range and sometimes returning an integer, then you may have a type-stability issue anyway. To make it type-stable, you may want to have it return 17:17. I think I formulated myself

Re: [julia-users] @printf

2014-06-11 Thread Pontus Stenetorp
it would be useful. Regards, Pontus Stenetorp

Re: [julia-users] What editor/environment do you use when developing in Julia?

2014-05-04 Thread Pontus Stenetorp
On 5 May 2014 03:10, Aerlinger aerlin...@gmail.com wrote: I'm using vim for the most part but was hoping to get a feel on what other people are using or if there are good alternatives out there. I've tried Julia Studio but it still seems a little too young feature-wise to be usable at this