Re: [julia-users] what is "type piracy"?

2016-11-03 Thread Spencer Russell
As far as I know "type piracy" is not a widespread term in CS, but has popped up in the Julia community. Basically it refers to violations of the Julia guideline that a package shouldn't define methods of functions it doesn't own on types it doesn't own. For example, if package A exports a

Re: [julia-users] [ANNOUNCE] TestSetExtensions.jl

2016-10-31 Thread Spencer Russell
> > This package addresses this issue (albeit a little differently) > > I do believe having a more featured Base.Test with a few more > batteries included is an overall boon. > > > On Monday, October 31, 2016 at 12:25:47 PM UTC-4, Spencer > Russell wrote: >> I'm not

Re: [julia-users] [ANNOUNCE] TestSetExtensions.jl

2016-10-31 Thread Spencer Russell
, mmus wrote: > Will these improvements make into Base.Test ? > > On Monday, October 31, 2016 at 12:53:37 AM UTC-4, Spencer > Russell wrote: >> I think in general the culture in the Julia community is very pro- >> testing, which I really appreciate. I saw your post recently

Re: [julia-users] [ANN] JuliaBerry org: Julia on the Raspberry Pi

2016-10-31 Thread Spencer Russell
I love the logo! -s On Mon, Oct 31, 2016, at 08:39 AM, Simon Byrne wrote: > Avik and myself have put together an organisation for those interested > on using Julia on the Raspberry Pi: > > https://juliaberry.github.io/ > > (the name was chosen to avoid confusing with JuliaPy). > > Contributions

Re: [julia-users] Unit Testing: should I use Base.Test instead of FactCheck?

2016-10-30 Thread Spencer Russell
I generally have pretty granular `@testset`s, which can have messages attached that are printed on failure. That way I still get a description of what failed. I think the lack of indentation for nested testsets is a regression that hit 0.5 (BaseTestNext on 0.4 indents nested testsets), and

Re: [julia-users] [ANNOUNCE] TestSetExtensions.jl

2016-10-30 Thread Spencer Russell
I think in general the culture in the Julia community is very pro-testing, which I really appreciate. I saw your post recently about PyTest, but I’m generally pretty happy with the built-in `@testset` / `@test` system, and just wanted some lightweight convenience functionality that wouldn’t

Re: [julia-users] [ANNOUNCE] TestSetExtensions.jl

2016-10-30 Thread Spencer Russell
ly integrate printing messages after failed tests? > > https://groups.google.com/d/msg/julia-users/_cZ8y_-JAVA/8EcTWdxcAQAJ > > cheers > > On Thursday, 27 October 2016 17:27:38 UTC+2, Spencer Russell wrote: > Hey All, > > I just registered the TestSetExtensions package, w

[julia-users] [ANNOUNCE] TestSetExtensions.jl

2016-10-27 Thread Spencer Russell
Hey All, I just registered the TestSetExtensions package, which collects some extensions and convenience utilities to maximize your testing enjoyment. It builds on the new Base.Test infrastructure in Julia v0.5 (also available in v0.4 with the BaseTestNext package). It's designed so that you

[julia-users] lowest-latency way to use @manipulate + Plotly to update data?

2016-10-18 Thread Spencer Russell
Is there any lower-latency way to live-update data in a jupyter notebook than this? ``` p = plot(scatter()) @manipulate for phase=0.0:0.01:2pi e = sin(linspace(0.0, 2pi, 50)+phase) restyle!(p, y=[e]) end p ``` It’s not too bad, but I’m greedy. -s

Re: [julia-users] Why for loop slower than the vectorized operation?

2016-09-24 Thread Spencer Russell
Take a look at the performance tips in the manual: http://docs.julialang.org/en/release-0.5/manual/performance-tips/ One of the main things is to avoid accessing global variables, and everything declared at the top-level in the

[julia-users] does quote...end really create a QuoteNode?

2016-08-27 Thread Spencer Russell
the metaprogramming docs say that `quote…end` produces a `QuoteNode`, but when I try: julia> quo = quote x=2 y=3 end quote # none, line 2: x = 2 # none, line 3: y = 3 end julia> noquo = :( x=2; y=3) quote x = 2 y = 3 end and `dump` the

Re: [julia-users] Trouble figuring out some AsyncCondition behavior

2016-07-26 Thread Spencer Russell
send, Cint, (Ptr{Void}, ), asynccond.handle) wait(endcond) # make sure the async task woke up # if we get here then the waiter was successfully woken println("woke, n: $n") end maybe this will be helpful to someone (or to future me). -s > On Jul 26, 2016, at 3:54 PM, Spencer Russ

Re: [julia-users] Trouble figuring out some AsyncCondition behavior

2016-07-26 Thread Spencer Russell
e run the 2nd `uv_async_send`, so then when we wait on `waitcond` we wait forever. So perhaps the question is - why is the async task being woken up without calling `uv_async_send`? -s > On Jul 26, 2016, at 3:44 PM, Spencer Russell <s...@media.mit.edu> wrote: > > I'm

[julia-users] Trouble figuring out some AsyncCondition behavior

2016-07-26 Thread Spencer Russell
I'm seeing some behavior with `AsyncCondition`s (on 0.5) that I don't understand. I'm not sure if it's a bug or expected behavior. Here’s a minimal example that doesn’t work the way I expect: begin # wrapped for easy REPL-pasting asynccond = Base.AsyncCondition() waitcond = Condition() n = 0

Re: [julia-users] [ANN] JuliaAudio Organization and a slew of packages

2016-03-21 Thread Spencer Russell
ld contain examples. > > > > On Sunday, March 20, 2016 at 2:31:28 AM UTC-7, Spencer Russell wrote: > Hey there, Julians. > > So AudioIO has been languishing for some time now, and I’ve been busily > working away at the next generation. One of the issues with AudioIO is t

Re: [julia-users] Signal Processing related project for GSOC 2016

2016-03-20 Thread Spencer Russell
Hi Rishabh, Please poke around the various packages at JuliaAudio, they are pretty much ready to replace AudioIO at this point. The basic stream and file I/O should be working pretty well, though I’m sure there are many rough edges to smooth. I think integrating with more DSP functionality

[julia-users] [ANN] JuliaAudio Organization and a slew of packages

2016-03-20 Thread Spencer Russell
Hey there, Julians. So AudioIO has been languishing for some time now, and I’ve been busily working away at the next generation. One of the issues with AudioIO is that it was a lot to swallow if you just wanted to play or record some audio. I’ve been focusing on getting the fundamental APIs

Re: [julia-users] Simultaneous audio playback / recording.

2016-01-18 Thread Spencer Russell
AudioIO is going to be going deprecated soon in favor of a family of packages that are each a bit more focused and simpler to interface with. They’re not quite release-ready but have been making a lot of progress lately, and I wanted folks to know what’s coming before you sink a bunch of time

[julia-users] Checking for boxing

2016-01-14 Thread Spencer Russell
Is there a way to check for whether values are getting boxed/unboxed short of looking at the llvm code? As an example, here’s a simple function that I wouldn’t expect to need any boxes: julia> function isnullptr{T}(x::Ptr{T}) x == Ptr{T}(0) end isnullptr (generic function with 1

Re: [julia-users] can I load specific lines of a script file into REPL without copy/paste?

2016-01-05 Thread Spencer Russell
The Atom interface [1] works really well for that sort of thing. You can just highlight the lines you want to run and press ctrl+enter to execute them. -s [1]:https://github.com/JunoLab/atom-julia-client On Tue, Jan 5, 2016, at 11:54 AM, Taylor Maxwell wrote: > I have looked around and haven't

Re: [julia-users] Re: what's the difference btwn multiple dispatch and c++ overloading?

2015-12-23 Thread Spencer Russell
Instead of using "compile-time" and "run-time", is it fair to say that overloading selects a method based on the type of the expression (what you see in the code in front of you), whereas dispatch selects a method based on the type of the value (which might be a sub-type of the expression type)?

Re: [julia-users] A trivial multiplication and Julia is giving wrong output. Why ?

2015-12-23 Thread Spencer Russell
Hi Ümit, You're hitting integer overflow: http://docs.julialang.org/en/release-0.4/manual/faq/#why-does-julia-use-native-machine-integer-arithmetic Each of your operands can fit in an Int32, but the product can't. See the linked info for some strategies for dealing with this. -s On Wed, Dec

[julia-users] Favorite intro tutorials?

2015-12-14 Thread Spencer Russell
What introductory tutorials or resources are people liking these days? I'm particularly interested in people who have just learned Julia recently, but obviously interested to hear from anyone. What was most helpful for you? Sometimes I get questions from friends or colleagues who are interested

[julia-users] Version dependent REQUIRE entry?

2015-12-13 Thread Spencer Russell
Is there a mechanism for REQIRE entries (when developing a package) that depend on the Julia version? For instance, I’m developing a package using the new testing framework in Julia 0.5, which is available in the BaseTestNext package for 0.4. Currently BaseTestNext is listed as not compatible

Re: [julia-users] Version dependent REQUIRE entry?

2015-12-13 Thread Spencer Russell
Oh, just realized that the upper-bound on BaseTestNext is listed as “0.5”, not “0.5-“, so currently things are actually OK and BaseTestNext is installable on 0.5 dev versions. So this will only be a problem once there’s a 0.5 release. Carry on! -s > On Dec 13, 2015, at 9:53 PM, Spen

Re: [julia-users] Collections

2015-12-02 Thread Spencer Russell
Can you clarify what problem you’re trying to solve? Julia has several collection types and various operations on them, so it’s possible that the functionality you’re looking for exists under a different name. -s > On Dec 1, 2015, at 4:33 PM, joaonunoc...@gmail.com wrote: > > Hello, > > >

Re: [julia-users] newbie in julia type performance

2015-12-02 Thread Spencer Russell
Did you run each one before timing them, to make sure you’re not timing the compilation? -s > On Dec 1, 2015, at 11:07 PM, Jorge Johnson wrote: > > Hi, > I made my first julia function. > I build two functional identical functions, the first one using types and the >

Re: [julia-users] State of Audio Processing File IO (Is AudioIO Maintained?)

2015-11-27 Thread Spencer Russell
Hi Michael, AudioIO has definitely been limping a bit in the past year, but there are bright spots on the horizon. Recent work on AudioIO has been in a separate branch [1] as I get ready to merge in some substantial work done in a recent PR [2] that I will be reviewing and merging shortly,

Re: [julia-users] linspace-like range generators and keyword ordering

2015-11-12 Thread Spencer Russell
Can you give a little more context for what you’re trying to do? I’m not clear on the various behaviors you want from the different `timespace` variants. I’m actually not sure whether the order can be relied on, but I think the proposed API might be confusing for users of your function because

Re: [julia-users] Deprecation warnings using julia on Atom

2015-10-27 Thread Spencer Russell
the time being and not waste anyone's time any further with what is > essentially a minor inconvenience. > > Cheers, > > Colin > > > > > On Wednesday, 28 October 2015 11:37:21 UTC+11, Spencer Russell wrote: > `Pkg.checkout(…)` operates an an already-installed

Re: [julia-users] Deprecation warnings using julia on Atom

2015-10-27 Thread Spencer Russell
`Pkg.checkout(…)` operates an an already-installed package, so it must be run after `Pkg.add(…)`. -s > On Oct 27, 2015, at 8:31 PM, colintbow...@gmail.com wrote: > > I suppose I could clone the master branch. Is that a bad idea? > > On Wednesday, 28 October 2015 11:30:43 UTC+11,

Re: [julia-users] Help on optimization problem

2015-10-23 Thread Spencer Russell
vasis > > > On Tuesday, October 20, 2015 at 11:12:44 PM UTC-4, Spencer Russell wrote: > I have a bunch of points in 3D whose positions I know approximately, with > low-noise distance measurements between them (not necessarily fully > connected). I want to improve my es

Re: [julia-users] Julia and Object-Oriented Programming

2015-10-22 Thread Spencer Russell
Julia has a well-developed C API, so you can embed it inside other applications. Info on using it is here: http://docs.julialang.org/en/release-0.4/manual/embedding/ -s > On Oct 22, 2015, at 3:07 PM, ssarkarayushnet...@gmail.com

Re: [julia-users] Re: A question of Style: Iterators into regular Arrays

2015-10-21 Thread Spencer Russell
On Wed, Oct 21, 2015, at 11:38 AM, Gabriel Gellner wrote: > No that is a good point. Often you can use an iterator where an > explicit array would also work. The issue I guess is that this puts > the burden on the developer to always write generic code that when you > would want to accept an Array

Re: [julia-users] Re: A question of Style: Iterators into regular Arrays

2015-10-21 Thread Spencer Russell
On Wed, Oct 21, 2015, at 12:08 PM, Steven G. Johnson wrote: > On Wednesday, October 21, 2015 at 11:50:32 AM UTC-4, Spencer Russell wrote:  >> >> For efficiency you'll still want to use a concrete Vector field if >> you're defining your own types, but luckily there seems to b

Re: [julia-users] Re: A question of Style: Iterators into regular Arrays

2015-10-21 Thread Spencer Russell
On Wed, Oct 21, 2015, at 04:07 PM, Gabriel Gellner wrote: > That doesn't feel like a reason that they can't be iterators, rather > that they might be slow ;) a la python. My point is not about speed > but the consistency of the language. Are there many cases in Julia > where there is a special

Re: [julia-users] Naming convention

2015-10-09 Thread Spencer Russell
> On Oct 9, 2015, at 6:48 PM, cdm wrote: > people can choose to be offended by anything they like ... > consulting the wiki for a snapshot in time for "she": > She is also used instead of it for things to which feminine gender is > conventionally attributed: > >a

Re: [julia-users] How do I pass an event handle via ccall?

2015-09-27 Thread Spencer Russell
I’m not that familiar with the FDTI library, but it looks like you’ll need to write some platform-specific code (the PDF describes windows and linux code, not sure if the linux code is also supposed to work on OSX). So you’d use `ccall` to set up the handle as per the FTDI docs. One tricky bit

Re: [julia-users] Is there a tutorial on how to set up my own Julia cluster?

2015-09-25 Thread Spencer Russell
Hi Ismael, So I don’t actually know anything about setting up a Julia cluster specifically, but it sounds like you do indeed need to have an SSH server set up on each machine. That’s actually not very uncommon on linux boxes and it’s very possible there’s already one running by default. One

Re: [julia-users] Stateflow equivalent in Julia

2015-09-25 Thread Spencer Russell
Welcome to Julia! To get useful answers you’re going to need to provide quite a bit more detail on what problems you’re running into. What did you try? What errors are you getting? Are there specific concepts from the documentation that you’re having trouble with? -s > On Sep 25, 2015, at

Re: [julia-users] Why two based indexing? [A package.. it's not the default..]

2015-09-25 Thread Spencer Russell
I understand it as a meditation (koan?) on the futility of arguing about where indices should begin, and where they come to rest. Hold it lightly, and be enlightened. -s > On Sep 25, 2015, at 7:00 AM, Páll Haraldsson > wrote: > >

Re: [julia-users] Subtyping from DArray.jl

2015-09-23 Thread Spencer Russell
Nope, it is not possible. See http://docs.julialang.org/en/latest/manual/types for more info. Particularly the section: One particularly distinctive feature of Julia’s type system is that concrete types may not subtype each other: all concrete

Re: [julia-users] Re: Juno stopped working - error message

2015-09-22 Thread Spencer Russell
Hi Haoran, Try pinning the Compat package by running `Pkg.pin("Compat", v"0.7.0")` If you're running Julia 0.3.11 that should be the newest version that will install, so I'm not sure how you ended up with Compat 0.7.3 (which is currently tagged to be 0.4 and newer). That's a pretty recent change

Re: [julia-users] Re: Juno stopped working - error message

2015-09-22 Thread Spencer Russell
he method you told me but it > still doesn't work. > I also tried to pinned back everything just like how Serge was doing, but it > still doesn't work, here is my status now. > > > 在 2015年9月22日星期二 UTC-7上午11:13:50,Spencer Russell写道: > Hi Haoran, > > Try pinning the C

Re: [julia-users] Juno stopped working - error message

2015-09-22 Thread Spencer Russell
do you suggest i to do? > > > > 在 2015年9月22日星期二 UTC-7下午8:50:00,Spencer Russell写道: > Can you cut/paste your session with the error into a gist? That might help > track down more specifically what’s causing the issue. > > -s > > On Sep 22, 2015, at 11:46 PM,

Re: [julia-users] When does colon indexing get evaluated / converted?

2015-09-20 Thread Spencer Russell
Can you post the code (or link to the repo) where you define your FArray type? -s > On Sep 21, 2015, at 12:38 AM, 'Greg Plowman' via julia-users > wrote: > > To further clarify, I thought I could specialise getindex / setindex! on > colon type argument. > > see

Re: [julia-users] When does colon indexing get evaluated / converted?

2015-09-20 Thread Spencer Russell
Hi Greg, This doesn’t answer your question directly, but I recommend you check out the Interfaces chapter of the manual for some good info on creating your own array type. To get indexing working the most important parts are:

Re: [julia-users] Julia code 5x to 30x slower than Matlab code

2015-09-19 Thread Spencer Russell
Hi Adam, Welome to Julia! Just to check - are you calling your `simulation(…)` function before you time it? Otherwise your timing will include the time it takes to compile the function, which happens the first time it’s called with a given set of argument types. Your `param` dict is of type

Re: [julia-users] Re: Juno + Julia 0.4

2015-09-18 Thread Spencer Russell
Most keyboard shortcuts that use “cmd” on OSX are replaced by “ctrl” on Linux. -s > On Sep 18, 2015, at 12:46 PM, Sisyphuss wrote: > > I have just read the documentation of Atom. I wonder how could you use it in > a Linux keyboard, where there is no "cmd" key. >

Re: [julia-users] Re: IDE for Julia

2015-09-17 Thread Spencer Russell
I agree that Atom has some speed issues. With so much buy-in though I'm hoping that things get better on that front. Also be careful about what packages you have installed. Atom makes it really easy to subscribe to events on things like cursor moves, which can slow things down a lot if packages

Re: [julia-users] Help with a parameterized function declaration

2015-09-17 Thread Spencer Russell
rther down the line I may go back on it. -s > > > > On Thu, Sep 17, 2015 at 2:10 PM, Spencer Russell > <s...@media.mit.edu> wrote: >> __ >> I think my question boils down to: "How do I define a method catches >> any subtype of a parametric supertype, b

[julia-users] Help with a parameterized function declaration

2015-09-17 Thread Spencer Russell
I think my question boils down to: "How do I define a method catches any subtype of a parametric supertype, but access the unparameterized part of the subtype within the function body?" Say I have this type: abstract AbstractFoo{N, T} <: AbstractArray{T, 2} type Foo1{N, T} <: AbstractFoo{N,

Re: [julia-users] Help with a parameterized function declaration

2015-09-17 Thread Spencer Russell
1{2,Float64})SYSTEM: show(lasterr) caused an error > > julia> tmp.data > 1x2 Array{Float64,2}: > 0.696612 0.337268 > > > > On Thu, Sep 17, 2015 at 4:14 PM, Spencer Russell <s...@media.mit.edu > <mailto:s...@media.mit.edu>> wrote: > On Thu, Sep 17, 2015

Re: [julia-users] Re: Help me understand counterintuitive result with type delcaration

2015-09-16 Thread Spencer Russell
There’s an issue where Jeff describes the reasoning here: https://github.com/JuliaLang/julia/issues/5532 > On Sep 16, 2015, at 3:57 PM, j verzani wrote: > > The return value of the function is value of the last expression

Re: [julia-users] Midi.jl - a package for manipulating MIDI data

2015-09-13 Thread Spencer Russell
This is the only implementation of MIDI in Julia, so I’d think it’s OK to go with MIDI.jl and have it be a nucleus for MIDI-releated development in Julia. I can probably contribute to MIDI device I/O on Linux and OSX, so if you’ve got Windows covered then we’re good to go. I’ll get a bit more

[julia-users] julian style for assignments in a try block?

2015-09-03 Thread Spencer Russell
I often find myself wanting to do an assignment inside a try...catch block, as in the following real-world code I'm working on to read from a Channel until it's closed global outbox = Channel() @async while true    try        t, data = take!(outbox)    catch e        # InvalidStateException is

Re: [julia-users] julian style for assignments in a try block?

2015-09-03 Thread Spencer Russell
Ah yes. That works. Good idea, thanks for the tip. -s On Thu, Sep 3, 2015, at 05:12 PM, Mike Innes wrote: > Would `t, data = try take!(outbox) catch ...` work? > > On Thu, 3 Sep 2015 at 22:08 Spencer Russell <s...@media.mit.edu> wrote: >> __ >> I often find myself

[julia-users] Differences between @async and @schedule?

2015-09-02 Thread Spencer Russell
From the docs I gather that `@schedule operation()` is equivalent to `schedule(@task operation())`, In that `operation()` will be wrapped in a task and added as a runnable item in the scheduler queue. `@async` says it wraps the expression in a closure rather than a task, but likewise adds it

Re: [julia-users] IDE for Julia

2015-08-31 Thread Spencer Russell
I think it uses the first julia kernel that Jupyter reports, and I haven't seen a way to switch it aside from ensuring that I only have one IJulia kernel installed. It was a bit ago, but I think I just deleted the one I didn't want from ~/.ipython/kernels/. -s On Mon, Aug 31, 2015, at 11:25 PM,

Re: [julia-users] Benchmarking Julia HttpServer

2015-08-19 Thread Spencer Russell
Can you include the code you’re using for the HTTP server and for testing (maybe link to a gist if the code is larger than email-appropriate)? Also make sure you’ve checked out the performance tips FAQ: http://docs.julialang.org/en/release-0.3/manual/performance-tips/

Re: [julia-users] Is some Autocorrelation function in Julia?

2015-08-09 Thread Spencer Russell
http://docs.julialang.org/en/release-0.3/stdlib/math/#Base.xcorr http://docs.julialang.org/en/release-0.3/stdlib/math/#Base.xcorr You can use the cross-correlation to compute an auto-correlation by using the same vector for both arguments. -s On Aug 9, 2015, at 8:17 AM, paul analyst

Re: [julia-users] Manual Memory Pool w Contiguous Entries

2015-07-26 Thread Spencer Russell
If you have an array of immutables you can replace the elements with new ones: julia immutable Immut x::Int64 y::Float64 end julia a = Array(Immut, 5) 5-element Array{Immut,1}: Immut(140562692057328,6.9447197253385e-310) Immut(493921239054,6.94471970408933e-310)

[julia-users] recv from UdpSocket with timeout?

2015-07-16 Thread Spencer Russell
Is there a way to use a timeout with `recv(sock::UdpSocket)`? -s

Re: [julia-users] Deep Dreams via Mocha?

2015-07-10 Thread Spencer Russell
I don't know about the caffe interoperability, but there's already a ProtoBuf.jl[1]. It may be that the only thing preventing a Julia variant is someone doing it. -s On Fri, Jul 10, 2015, at 11:31 AM, Jeff Waller wrote: So the deep dreams setup is available and the notebook is very simple here

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

2015-07-08 Thread Spencer Russell
On Wed, Jul 8, 2015, at 01:28 PM, Stefan Karpinski wrote: The real question with any notion of privacy is private from whom? Methods don't belong to any particular argument, so which of their arguments' private fields are they allowed to fiddle with? And what about more granular permissions

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

2015-07-06 Thread Spencer Russell
On Mon, Jul 6, 2015, at 10:29 AM, Scott Jones wrote: The problem is, how are you going to police all of the _ accesses, to give somebody crap about it? Are you going to have to grep all of the registered packages constantly? This seems like something a Linter could check, and organizations

[julia-users] Hydrogen package on Atom editor

2015-07-05 Thread Spencer Russell
Hey all, I just discovered the Hydrogen https://atom.io/packages/hydrogen package for the Atom editor which hooks into a Jupyter kernel. I just tested it a little and it seems to work fine. It doesn’t to a bunch of the cool things that Mike’s Juno http://junolab.org/ package does(profiler

Re: [julia-users] Re: Why Julia is not faster than Matlab ?

2015-06-12 Thread Spencer Russell
There are a bunch of useful tips for making your Julia code faster here: http://docs.julialang.org/en/release-0.3/manual/performance-tips/ There tends to be a lot of discussion on the list on relative performance between Julia and other languages, and the core team keeps track of performance

Re: [julia-users] Re: Write your GNU Radio blocks in Julia

2015-04-21 Thread Spencer Russell
For now can you just wrap all your libjulia access in a shared mutex on the wrapper side? Obviously you'll lose the benefits of parallelism while you're in Julia land, but it beats a segfault. -s On Tue, Apr 21, 2015, at 09:46 AM, Jay Kickliter wrote: Yes, you can run in separate processes and

Re: [julia-users] Write your GNU Radio blocks in Julia

2015-04-20 Thread Spencer Russell
Super cool! One of my labmates has been playing around with SDR and I was thinking that Julia would be great for that. Please bring a demo to JuliaCon! -s On Mon, Apr 20, 2015, at 12:14 PM, Miguel Bazdresch wrote: I'm using GnuRadio on Ubuntu mainly. I may not have a chance to try it out

Re: [julia-users] Creating custom IJulia widgets

2015-03-11 Thread Spencer Russell
This is super helpful, thanks for writing it up! -s On Mon, Mar 9, 2015, at 11:19 AM, Avi Ruderman wrote: Hi all, I spent the last couple of days building some custom IJulia widgets. I struggled to find a clear explanation online of how to do this. So I thought I would put together a

Re: [julia-users] Publishing a package

2015-02-19 Thread Spencer Russell
I went through a bit of this in earlier AudioIO versions where I had a C shim around PortAudio. I think this commit[1] should be a decent one to see how I was doing it. Eventually I ended up pre-compiling and shipping binaries, before finally ditching the C code and writing it in pure Julia.

Re: [julia-users] prevent yield in task

2015-02-03 Thread Spencer Russell
Has there been any discussion on a mechanism (either in the language or by convention) for marking calls that might block? I couldn't find any issues and the only list discussion was this one[1], which describes running into the problem. A simple list of calls that might yield isn't super useful

Re: [julia-users] Reading in a config file. What is the best practise in Julia ?

2015-01-13 Thread Spencer Russell
You could also write your config file in YAML and use YAML.jl. I'm somewhat partial to YAML for config files as it keeps simple things simple (like a bunch of key-value pairs), but also allows more complex data structures like nested lists if you need them. As far as I know there isn't a

Re: [julia-users] Julia for mobile app development

2014-12-30 Thread Spencer Russell
Once it's running on ARM it should be possible to use the C API to call into Julia code from ObjC, right? I suppose that doesn't address the OP question about GUI dev in Julia, but at least using Julia for compute within a mobile app should be pretty feasible in the not-so-distant future. peace,

Re: [julia-users] Julia for mobile app development

2014-12-30 Thread Spencer Russell
to begin with. On 30 December 2014 at 16:55, Spencer Russell spencer.f.russ...@gmail.com wrote: Once it's running on ARM it should be possible to use the C API to call into Julia code from ObjC, right? I suppose that doesn't address the OP question about GUI dev in Julia, but at least using

Re: [julia-users] Julia for large scale software development

2014-12-26 Thread Spencer Russell
On Friday, December 26, 2014 5:32:39 PM UTC-5, Páll Haraldsson wrote: Maybe I should just put my blinders on, just not look at other languages more. I'm pretty convinced all the others I know are obsolete (for new code).. I just might be missing something with the newer languages. Julia

Re: [julia-users] Re: Announcing RobotOS.jl

2014-12-22 Thread Spencer Russell
Do your robotics applications have any realtime (or soft realtime) requirements? I suppose if folks are using python then that's already out the door, but possibly in the future wrapping the C++ interface could be a path towards more deterministic performance, along with the GC work that's being

Re: [julia-users] Re: Control system library for Julia?

2014-09-30 Thread Spencer Russell
I'm looking forward to some sort of flag or option to turn on the incremental GC, and trying to understand a bit more about the design space. My naive thought process goes something like this: 1. The total time to collect garbage probably grows with number of objects and total size to be

Re: [julia-users] Lint.jl status update

2014-09-13 Thread Spencer Russell
Any comments on how Lint.jl and @astrieanna's also-awesome TypeCheck.jl relate? Are you two working together, or are there different use cases for the two libraries? peace, s On Sat, Sep 13, 2014 at 3:34 PM, Tony Fong tony.hf.f...@gmail.com wrote: Fellow Julians, I think it is time to post

Re: [julia-users] Re: citing Julia

2014-09-12 Thread Spencer Russell
Off-topic LaTeX comment: I'm citing some of these for an extended abstract I'm submitting, and I noticed that when I open the PDFs on my linux machine I get lots of brightly-colored boxes around the links within the document. My understanding is that the hyperref package adds the boxes, but

[julia-users] Travis builds failing on pull requests

2014-08-28 Thread Spencer Russell
My travis builds work fine on my repository, but it seems when people try to fork and submit pull requests it has problems. I see in the travis log that the git command exited status 1, but I don't see any output giving a clue as to what happened. Have people seen this before? I've pasted the

Re: [julia-users] Re: Travis builds failing on pull requests

2014-08-28 Thread Spencer Russell
instead: https://github.com/ssfrr/AudioIO.jl/pull/24 =) // T On Thursday, August 28, 2014 4:00:47 PM UTC+2, Spencer Russell wrote: My travis builds work fine on my repository, but it seems when people try to fork and submit pull requests it has problems. I see in the travis log

[julia-users] Tip: Changing IJulia kernel version

2014-08-27 Thread Spencer Russell
I just wanted to share a tip that has come in handy lately that might not be obvious. If you have multiple versions of Julia installed and want to change which one is used by IJulia as the kernel, just run whichever julia you want it to use and use Pkg.build(IJulia) This will reconfigure IJulia

Re: [julia-users] BinDeps: How to test new provider?

2014-08-22 Thread Spencer Russell
Hi Lucas, Thanks for working on this. Currently the fact that BinDeps doesn't install arch packages is the one thing keeping AudioIO from working on pkg.julialang.org. I don't actually have an arch machine handy, but if you get it merged into BinDeps I'll be using it ASAP. On Sunday, August

[julia-users] RFC: Colored output API

2014-08-22 Thread Spencer Russell
I just filed an issue [1] that currently the print_with_color() doesn't seem to use the correct colors on my system. While checking it out, I was thinking that print_with_color might fit in nicely with Color.jl. We could pull print_with_color out of Base and add all the color terminal codes to

[julia-users] `ccall: could not find function jl_uv_dlopen` with 0.3.0-rc1

2014-08-19 Thread Spencer Russell
jl_uv_dlopen was added 2 weeks ago and is now used by BinDeps, so older Julia installs are breaking. Installing 0.3.0-rc4 fixes the issue. Just in case anyone else runs into the issue. peace, s

Re: [julia-users] JuliaCon Opening Session Videos Posted!

2014-08-14 Thread Spencer Russell
Thanks for all the hard work on these! The videos so far have come out awesome and the presenters are really easy to understand. Good capture at the event, good post work, and good projection by the presenters. The JuliaCon organizers put a HUGE amount of work into making a great conference, so

Re: [julia-users] module/function/type scope confusion

2014-08-01 Thread Spencer Russell
The Modules documentation [1] was recently updated with a nice table that's helpful in understanding what the various using and import statements actually do. One tricky bit is that there's a difference between bringing a name into scope and making it available for method extension. Specifically

Re: [julia-users] OptionTypes.jl

2014-07-31 Thread Spencer Russell
This is really great stuff. I think that figuring this out and incorporating it into idiomatic Julia code would be a really great step forward in writing code that's fast AND safe. I really liked your thoughts during JuliaCon regarding the difference between Epistemological missingness(Absence of

Re: [julia-users] Re: audio- How to play mp3 or ogg file?

2014-07-27 Thread Spencer Russell
AudioIO should handle any sound files that libsndfile can handle, which includes ogg but not MP3. I've considered maybe adding MP3 support using the LAME library, but in general MP3 brings along with it sufficient patent issues that I'd rather not deal with. peace, s On Sun, Jul 27, 2014 at

[julia-users] ccall not finding library installed with Homebrew.jl

2014-07-27 Thread Spencer Russell
Now that Homebrew.jl has support for many more packages, I'm trying to get AudioIO up to speed so portaudio and libsndfile can get installed more automatically. I'm getting Homebrew.jl to install the libraries using BinDeps, but it looks like julia isn't finding libsndfile.dylib #get the latest

Re: [julia-users] ccall not finding library installed with Homebrew.jl

2014-07-27 Thread Spencer Russell
Awesome, thanks Elliot! I didn't realize how to connect the library pulled in by BinDeps and ccall. peace, s On Sun, Jul 27, 2014 at 1:54 PM, Elliot Saba staticfl...@gmail.com wrote: Just to make this a little more clear, I've submitted a PR here https://github.com/ssfrr/AudioIO.jl/pull/18

Re: [julia-users] ++ as string concatenation operator

2014-07-22 Thread Spencer Russell
Why is string concatenation done with * not + https://groups.google.com/d/topic/julia-users/nQg_d_n0t1Q/discussion peace, s On Tue, Jul 22, 2014 at 4:58 PM, Stefan Karpinski ste...@karpinski.org wrote: many threads: search string concatenation On Tue, Jul 22, 2014 at 1:55 PM, Ben Arthur

Re: [julia-users] Re: Jupyter project

2014-07-16 Thread Spencer Russell
ஃ isn't too bad (via http://shapecatcher.com/) peace, s On Wed, Jul 16, 2014 at 4:38 PM, Steven G. Johnson stevenj@gmail.com wrote: It inspires Unicode envy too; they have a Unicode codepoint (♃) for their project, whereas I don't think we'll ever get the Julia logo into Unicode. On

Re: [julia-users] Re: Why is string concatenation done with * not +

2014-07-02 Thread Spencer Russell
It's a bit tricky to track down the relevant discussions, but this one seems like one of the most to-the-point: https://groups.google.com/forum/#!msg/julia-dev/4K6S7tWnuEs/RF6x-f59IaoJ peace, s On Wed, Jul 2, 2014 at 3:40 PM, Patrick O'Leary patrick.ole...@gmail.com wrote: On Wednesday, July

[julia-users] Allocation differences in while and for loops, and from @time and @allocated

2014-06-28 Thread Spencer Russell
Dear big Julia meta-brain, I'm seeing some strange allocation behavior that I don't understand, so I built a minimal example that seems to be doing the same things. Here's the sample: https://gist.github.com/ssfrr/b4885e3fc10ea3f2ab9d 1. I'm getting different allocation numbers when I use

[julia-users] Re: Allocation differences in while and for loops, and from @time and @allocated

2014-06-28 Thread Spencer Russell
Also, to make sure that it's not some MathConst-related thing I changed `2pi` to `2.0f0` in the loop and saw no difference. peace, s On Sat, Jun 28, 2014 at 12:50 PM, Spencer Russell s...@mit.edu wrote: Dear big Julia meta-brain, I'm seeing some strange allocation behavior that I don't

Re: [julia-users] Re: Allocation differences in while and for loops, and from @time and @allocated

2014-06-28 Thread Spencer Russell
Thanks for the pointer to that thread. After reading it I did an even simpler example and found that in general, @time reports a different amount when called from the global context: https://github.com/JuliaLang/julia/issues/7450 peace, s On Sat, Jun 28, 2014 at 1:13 PM, Ivar Nesje

Re: [julia-users] Re: Performance of accessing object data

2014-06-26 Thread Spencer Russell
. With the change above, there isn't really a point to calling gc() at all, since only with_alloc allocates. Simon On Wednesday, June 25, 2014 3:24:38 PM UTC-4, Spencer Russell wrote: Mystery solved. In #3 I was missing the indexing `[i]` so I was adding a constant to the whole array instead of just

  1   2   >