[julia-users] Is 0.6(nightlies) pretty much broken?

2016-10-12 Thread Neal Becker
Seems like nothing I try is working now: Version 0.6.0-dev.896 (2016-10-07 08:16 UTC) Commit 38a63bd* (3 days old master) x86_64-redhat-linux julia> using Polynomials INFO: Recompiling stale cache file /home/nbecker/.julia/lib/v0.6/Polynomials.ji for module Polynomials. WARNING: The call to compi

[julia-users] Re: Is 0.6(nightlies) pretty much broken?

2016-10-13 Thread Neal Becker
Seems to be fixed with rm -rf ~/.julia Strange that Pkg.rm/Pkg.add didn't seem to fix it Neal Becker wrote: > Seems like nothing I try is working now: > Version 0.6.0-dev.896 (2016-10-07 08:16 UTC) > Commit 38a63bd* (3 days old master) > x86_64-redhat-linux > > julia>

[julia-users] python-like generators?

2016-10-13 Thread Neal Becker
julia-0.5 supports generator expressions, ala python, which is very nice. Any thoughts on supporting the more general python generator functions, as described e.g.: https://wiki.python.org/moin/Generators? I haven't used them much myself (well, once), but they seem a really cool idea.

[julia-users] ccall interface Arrays

2015-03-24 Thread Neal Becker
How are Arrays passed between julia and C? Any examples? -- Those who fail to understand recursion are doomed to repeat it

[julia-users] builing 0.3.8 - lots of 'fatal:' error messages

2015-03-24 Thread Neal Becker
after git clone, and make OPENBLAS_TARGET_ARCH=NEHALEM I see a lot of messages like: fatal: Needed a single revision fatal: This operation must be run in a work tree fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, lik

[julia-users] ArrayView no broadcasting?

2015-03-25 Thread Neal Becker
I can assign a single element of a view: julia> view(a,:,:)[1,1] = 2 2 julia> a 10x10 Array{Int64,2}: 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3

[julia-users] trying pyjulia (calling julia-0.4 from python)

2015-08-11 Thread Neal Becker
Any ideas? j = julia.Julia() ERROR: UndefVarError: dlpath not defined in process_options at ./client.jl:284 in _start at ./client.jl:411 --- JuliaErrorTraceback (most recent call last) in ()

[julia-users] [newb] howto reinterpret array indexes?

2014-07-11 Thread Neal Becker
In numpy, I might do a = np.arange (10) b = a.reshape (2, 5) now b is a 'view' of a, and modifications to b will change a. How do I do the equivalent in julia?

[julia-users] my first julia function

2014-07-16 Thread Neal Becker
As a first exercise, I wanted to code magnitude squared of a complex 1-d array. Here is what I did: mag_sqr{T} (x::Array{Complex{T},1}) = sum(real(x).*real(x)+imag(x).*imag(x)) Is this a "good" approach? I'm wondering if it's not very efficient, since I expect it would compute matrixes of eleme

[julia-users] Re: my first julia function

2014-07-16 Thread Neal Becker
Dahua Lin wrote: > With the latest Julia, you can do this by > sumabs2(x) > > Dahua > > > On Wednesday, July 16, 2014 9:57:54 AM UTC-5, Neal Becker wrote: >> >> As a first exercise, I wanted to code magnitude squared of a complex >> 1-d array. Here is

[julia-users] [newb] namespaces?

2014-07-17 Thread Neal Becker
One thing that surprises me, coming from a largely python background, is there seems to be little use of namespaces in julia. For example, it seems that everything in the standard library is just part of one global namespace. If true, this does seem to go against trends in modern design, I beli

[julia-users] what does Pkg "dirty" mean?

2014-07-30 Thread Neal Becker
julia> Pkg.add ("IJulia") INFO: Installing IJulia v0.1.12 INFO: Building Nettle INFO: Building ZMQ INFO: Building IJulia Found IPython version 2.1.0 ... ok. Creating julia profile in IPython... (Existing KernelManager.kernel_cmd setting in ipython_config.py is untouched.) (Existing IPythonWidget.ex

[julia-users] Re: what does Pkg "dirty" mean?

2014-07-30 Thread Neal Becker
at those "changes" are? > > On Wed, Jul 30, 2014 at 9:49 AM, Neal Becker > wrote: > >> julia> Pkg.add ("IJulia") >> INFO: Installing IJulia v0.1.12 >> INFO: Building Nettle >> INFO: Building ZMQ >> INFO: Building IJulia >>

[julia-users] Re: Re: what does Pkg "dirty" mean?

2014-07-30 Thread Neal Becker
believe the package installation did. Is this a bug in package management? Stefan Karpinski wrote: > Go into ~/.julia/IJulia and use git commands to see what the status is and > what changed. > > > On Wed, Jul 30, 2014 at 9:57 AM, Neal Becker > wrote: > >> Stefan Karpin

[julia-users] [newb] confused about constructors

2014-07-30 Thread Neal Becker
As a learning exercise, I am trying to code a simple FIR filter. As a start, it has 2 fields and a constructor: type FIR{in_t, coef_t} in::Vector{in_t} coef::Vector{coef_t} FIR (in_::Vector{in_t}, coef_::Vector{coef_t}) = (x=new(); x.in = zeros(in_t, size (in_)); x.coef = coef_;) end

[julia-users] Re: [newb] confused about constructors

2014-07-30 Thread Neal Becker
gt; prohibit function invocation with spaces between function names and > parentheses. So it’s better to write FIR(a, b) than to write FIR (a, b). > > — John > > On Jul 30, 2014, at 8:00 AM, Neal Becker > wrote: > >> As a learning exercise, I am trying to code a simple F

[julia-users] emacs ess julia trouble

2014-07-31 Thread Neal Becker
I am trying emacs ess mode for julia. I added to .emacs: (require 'ess-site) (require 'julia-mode) (setq inferior-julia-program-name "/home/nbecker/.local/bin/julia") I can invoke a julia shell, using M-x julia. But if I visit a julia source file, there are no ess functions. There is no ess

[julia-users] Re: emacs ess julia trouble

2014-07-31 Thread Neal Becker
Neal Becker wrote: > I am trying emacs ess mode for julia. I added to .emacs: > > (require 'ess-site) > (require 'julia-mode) > (setq inferior-julia-program-name "/home/nbecker/.local/bin/julia") > > I can invoke a julia shell, using M-x julia. >

[julia-users] 1st test about 10x slower than c++

2014-07-31 Thread Neal Becker
Attached is my 1st attempt at julia, it is a simple FIR filter, which I translated from my c++ version. It is benchmarking about 10x slower than python wrapped c++ version. Any suggestions?module firmod type FIR{in_t,coef_t} in::Vector{in_t} coef::Vector{coef_t} function FIR (coef::

[julia-users] Re: 1st test about 10x slower than c++

2014-07-31 Thread Neal Becker
ike Patrick said, globals should usually be declared with > 'const'. > > On Thursday, July 31, 2014 8:38:33 AM UTC-7, Neal Becker wrote: >> >> Attached is my 1st attempt at julia, it is a simple FIR filter, which I >> translated from my c++ version. >> &g

[julia-users] Re: 1st test about 10x slower than c++

2014-08-01 Thread Neal Becker
here: https://gist.github.com/lendle/897eea1e5458eedb8e43. > > On Thursday, July 31, 2014 10:10:13 AM UTC-7, Neal Becker wrote: >> >> Daniel Jones wrote: >> >> > >> > Here's a version that's 7x faster (and almost 8x if you disable bounds >> >

[julia-users] Re: 1st test about 10x slower than c++

2014-08-04 Thread Neal Becker
Very interesting code. One question: It appears the variables "xleftover" (and similar) are never used?

[julia-users] equivalent of python list?

2014-08-04 Thread Neal Becker
What would be similar to python list type? A container that has an efficient append. A common use is construct an empty list, then grow it by calling append.

[julia-users] Re: equivalent of python list?

2014-08-05 Thread Neal Becker
our container correctly ahead of time, 2) have terrible > performance, or 3) allocate something that's definitely bigger than you > need, and then keep track of how much of it you've used yourself and throw > away the excess at the end. > > > On Monday, August 4, 2014 4:16:27 PM UTC-7, Neal Becker wrote: >> >> What would be similar to python list type? A container that has an >> efficient >> append. A common use is construct an empty list, then grow it by calling >> append. >> >>

[julia-users] Re: 1st test about 10x slower than c++

2014-08-05 Thread Neal Becker
f you do a lot of DSP work and need speed, I also have IPPDSP.jl > <https://github.com/JayKickliter/IPPDSP.jl>. > > On Monday, August 4, 2014 3:40:07 PM UTC-6, Neal Becker wrote: >> >> Very interesting code. One question: >> >> It appears the variables "xlef

[julia-users] Re: Re: equivalent of python list?

2014-08-05 Thread Neal Becker
Kevin Squire wrote: > On Tue, Aug 5, 2014 at 4:08 AM, Neal Becker > wrote: > >> Thanks. I don't think that's really equivalent though. I believe >> python's list >> is not contiguous, and can efficiently handle insertions and deletions, >> both

[julia-users] my 2nd julia module (linear intepolator)

2014-08-15 Thread Neal Becker
As another learning exercise, I converted my python 1-d linear interpolator module to julia. Any suggestions/comments on improvements? https://gist.github.com/anonymous/19526d1455ba7dc9f48f

[julia-users] functions with state?

2014-08-15 Thread Neal Becker
I'm trying to do numerical integration. I want a function that has state information. Let's say I'm trying to integrate some function F over x. In addition, F has some state function F (x, state) = In python (and in c++), one way is to make F a class (which can have state), and overload th

[julia-users] Re: functions with state?

2014-08-15 Thread Neal Becker
generic function to apply that object to its argument. > > > On Fri, Aug 15, 2014 at 2:20 PM, Neal Becker > wrote: > >> I'm trying to do numerical integration. I want a function that has state >> information. >> >> Let's say I'm trying to

[julia-users] array element-wise bit shift?

2014-08-22 Thread Neal Becker
Well, this doesn't work all_syms = [0:3] all_syms .>> 0 ERROR: `.>>` has no method matching .>>(::Array{Int64,1}, ::Int64) -- -- Those who don't understand recursion are doomed to repeat it

[julia-users] Re: array element-wise bit shift?

2014-08-22 Thread Neal Becker
Steven G. Johnson wrote: > Doesn't seems to be defined right now. Of course, you can just do [i >> 0 > for i in all_syms] and it will be just as fast as a vectorized version > would be. Vectorization is a convenience, though. https://github.com/JuliaLang/julia/issues/8086 -- -- Those who don'

[julia-users] simple indexing question

2014-08-22 Thread Neal Becker
Trying to translate some of my simple numpy into julia. Probably I should just learn to stop vectorizing everything, but it's hard to resist the allure of compact notation julia> bit_mask 2x4 Array{Int64,2}: 0 1 0 1 0 0 1 1 OK, now find all the nonzero indices in bit_mask: julia> findn

[julia-users] Re: simple indexing question

2014-08-22 Thread Neal Becker
I should explain the real problem more clearly. I transmit a vector of symbols x[0...N-1], N denoting the time instant. Each symbol can take on some set of values from a set S, where the size(S) is usually a power of 2. I receive a vector of values over some channel, and compute the log-likel

[julia-users] broadcasting question

2014-08-22 Thread Neal Becker
using Distance euclidean ([1:10;1:10], [1:10]) ERROR: DimensionMismatch("The lengths of a and b must match.") in get_common_len at /home/nbecker/.julia/v0.4/Distance/src/common.jl:11 in sumsqdiff at /home/nbecker/.julia/v0.4/Distance/src/metrics.jl:40 in euclidean at /home/nbecker/.julia/v0.4/

[julia-users] stride tricks?

2014-08-26 Thread Neal Becker
In numpy, array contents can be re-interpreted without copying. The indexing of an array is defined by it's strides, and by altering the strides we can get different views. http://nbviewer.ipython.org/github/ipython-books/cookbook-code/blob/master/notebooks/chapter04_optimization/06_stride_tri

[julia-users] Re: stride tricks?

2014-08-26 Thread Neal Becker
o reverse strides. > > Cheers, > > Tobi > > Am Dienstag, 26. August 2014 14:26:46 UTC+2 schrieb Neal Becker: >> >> In numpy, array contents can be re-interpreted without copying. The >> indexing of >> an array is defined by it's strides, and by alte

[julia-users] Re: Re: stride tricks?

2014-08-26 Thread Neal Becker
is should be easy to do with https://github.com/timholy/ArrayViewsAPL.jl, > and much easier to use than having to think about strides explicitly. We just > need to finish stagedfunctions. > > --Tim > > On Tuesday, August 26, 2014 08:45:38 AM Neal Becker wrote: >> I was thinking particu

[julia-users] Re: Re: Re: stride tricks?

2014-08-26 Thread Neal Becker
3d broadcasting array out of a 2d object, with broadcasting on the > middle axis. > > --Tim > > On Tuesday, August 26, 2014 09:56:22 AM Neal Becker wrote: >> I guess I'm not quite clear on whether ArrayViews, or ArrayViewsAPL would >> support synthetic broadcasti

[julia-users] Re: Strange Slicing Behaviour

2014-09-03 Thread Neal Becker
I hope the goal is for slicing to work like numpy. Stefan Karpinski wrote: > No, this is a pretty contentious issue. A lot of the relevant discussion is > in #4774 . The one thing > everyone agrees on which is going to happen in 0.4 for sure is that

[julia-users] are array slices views in 0.4?

2015-10-23 Thread Neal Becker
One feature I've been eager to see is that array slices become views, which I think was targeted for 0.4. Is this correct? I hate to see un-needed copying.

[julia-users] Re: Re: are array slices views in 0.4?

2015-10-23 Thread Neal Becker
Tim Holy wrote: > This will be a ridiculous charicature, but this issue has come up so many > times that I think a little charicaturization is timely. > > With regards to arrays and views, the "big change" in julia 0.5 will > essentially be a 1-line change: > > getindex(A, indexes...) = sli

[julia-users] still no luck with pyjulia

2015-11-24 Thread Neal Becker
Just updated to julia-0.4.1 on fedora 23. Updated PyCall julia> Pkg.build("PyCall") INFO: Building PyCall INFO: PyCall is using /usr/bin/python (Python 2.7.10) at /usr/bin/python, libpython = /usr/lib64/libpython2.7.so Just for good measure, re-ran python setup.py install --user on pyjulia after

[julia-users] Re: still no luck with pyjulia

2015-11-24 Thread Neal Becker
eFileExFlags at /lib64/libpython2.7.so.1.0 (unknown line) Py_Main at /lib64/libpython2.7.so.1.0 (unknown line) __libc_start_main at /lib64/libc.so.6 (unknown line) _start at python2 (unknown line) unknown function (ip: (nil)) Segmentation fault (core dumped) Neal Becker wrote: > Just updated

[julia-users] julia-python module missing sys.ji julia-0.5.0-0.20160822.fc24.x86_64

2016-09-08 Thread Neal Becker
I'm trying out the julia python module using julia nightlie julia-0.5.0-0.20160822.fc24.x86_64 I fixed one problem in julia/core.py: println(Libdl.dlpath(Libdl.dlopen(\"libjulia\"))) but now I'm stuck because core.py looks for sys.si But it seems nothing in https://copr.f

[julia-users] Re: julia-python module missing sys.ji julia-0.5.0-0.20160822.fc24.x86_64

2016-09-08 Thread Neal Becker
Páll Haraldsson wrote: > On Thursday, September 8, 2016 at 12:20:56 PM UTC, Neal Becker wrote: > > >> Are these nightlies incomplete, or has this file changed? Does >> https://pypi.python.org/pypi/julia > > > I wasn't aware of this.. I only knew of pyjul

[julia-users] basic question on structuring modules

2016-09-09 Thread Neal Becker
Let's say I have a simple module which contains 1 function called "foo" I might create foo.jl that contains foo.jl module foo function foo ... end end This doesn't work, it seems the module name collides with the function name. foo.jl module foo_mod function foo ... end end This mi

[julia-users] Re: basic question on structuring modules

2016-09-09 Thread Neal Becker
K leo wrote: > The module name needs to be the same as the file, so in this case you need > to change the function name. > > On Friday, September 9, 2016 at 9:29:48 PM UTC+8, Neal Becker wrote: >> >> Let's say I have a simple module which contains 1 function call

[julia-users] ProfileView not compatible with julia-0.5?

2016-09-09 Thread Neal Becker
using ProfileView INFO: Precompiling module ProfileView. WARNING: Module Compat with uuid 314389968181888 is missing from the cache. This may mean module Compat does not support precompilation but is imported by a module that does. ERROR: LoadError: Declaring __precompile__(false) is not allowed

[julia-users] Re: ProfileView not compatible with julia-0.5?

2016-09-09 Thread Neal Becker
Chris Rackauckas wrote: > Did you checkout master? > No I just did Pkg.add("ProfileView"). I don't actually know how to do otherwise - is that a Pkg option? > On Friday, September 9, 2016 at 2:55:21 PM UTC-7, Neal Becker wrote: >> >> using ProfileView >

[julia-users] 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Neal Becker
As a first (nontrivial) try at julia, I put together some simple DSP code, which represents a pn generator (random fixed-width integer generator) constellation mapping interpolating FIR filter (from DSP.jl) decimating FIR filter (from DSP.jl) mean-square error measure Source code is here: https:/

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Neal Becker
onal. >> >> As I said, I'm surprised it's not a syntax error, but maybe it gets >> parsed as an anonymous function (just guessing here). If so, and if you >> are using version 0.4, you can get slow performance. >> >> You can read here about the right

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Neal Becker
Steven G. Johnson wrote: > > > > On Monday, September 12, 2016 at 7:59:33 AM UTC-4, DNF wrote: >> >> function(p::pnseq)(n,T=Int64) >> >>> > Note that the real problem with this function declaration is that the type > T is known only at runtime, not at compile-time. It would be better to > d

[julia-users] default type parameter?

2016-09-12 Thread Neal Becker
Taking the following example: type Point{T<:Real} x::T y::T end I can construct a Point taking the type "T" from the argument types. Or I can explicity specify the type Point{Int32}(2,2) But I'd like to be able to specify a default type: type Point{T<:Real=Int32} for example

[julia-users] equivalent of numpy newaxis?

2016-09-12 Thread Neal Becker
Some time ago I asked this question http://stackoverflow.com/questions/25486506/julia-broadcasting-equivalent-of-numpy-newaxis As a more interesting example, here is some real python code I use: dist = mag_sqr (demod_out[:,np.newaxis] - const.map[np.newaxis,:]) where demod_out, const.map are each

[julia-users] Re: equivalent of numpy newaxis?

2016-09-12 Thread Neal Becker
e a convenient way to specify > shape, though.) > > Best, > --Tim > > On Monday, September 12, 2016 3:28:56 PM CDT Neal Becker wrote: >> Some time ago I asked this question >> http://stackoverflow.com/questions/25486506/julia-broadcasting-equivalent-of >> -numpy-n

[julia-users] Re: equivalent of numpy newaxis?

2016-09-13 Thread Neal Becker
- y.') > The performance should be the similar to a hand-written loop on version > 0.5. > > You can read about it here: > http://docs.julialang.org/en/release-0.5/manual/functions/#dot-syntax-for-vectorizing-functions > > > On Monday, September 12, 2016 at 9:29:15 PM

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Neal Becker
Steven G. Johnson wrote: > > > > On Monday, September 12, 2016 at 7:32:48 AM UTC-4, Neal Becker wrote: >> >> PnSeq.jl calls rand() to get a Int64, caching the result and then >> providing >> N bits at a time to fill an Array. It's supposed to be a fast

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Neal Becker
I'm not following you here. IIUC a range is a single scalar value? Are you suggesting I want an Array{range}? Chris Rackauckas wrote: > Do you need to use an array? That sounds better suited for a range. > > On Tuesday, September 13, 2016 at 10:24:15 AM UTC-7, Neal Becker wrote

[julia-users] Re: Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Neal Becker
Stefan Karpinski wrote: > On Tue, Sep 13, 2016 at 1:23 PM, Neal Becker > wrote: > >> >> Thanks for the ideas. Here, though, the generated values need to be >> Uniform([0...2^N]), where N could be any number. For example [0...2^3]. >> So the output array

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-14 Thread Neal Becker
Steven G. Johnson wrote: ... > > Note that you have the same problem in several places, e.g. in > Constellation.jl. > > (I don't really understand what that file is doing, but it seems to be > constructing lots of little arrays that would be better of constructed > implicitly as part of other da

[julia-users] NumericExtensions not working on julia-0.5?

2016-09-14 Thread Neal Becker
julia> using NumericExtensions: logsumexp INFO: Precompiling module ArrayViews. WARNING: Method definition (::Type{ArrayViews.UnsafeContiguousView}) (Ptr{#T<:Any}, Int64, Tuple{Vararg{Int64, #N<:Any}}) in module ArrayViews at /home/nbecker/.julia/v0.5/ArrayViews/src/arrviews.jl:18 overwritten at

[julia-users] Re: NumericExtensions not working on julia-0.5?

2016-09-14 Thread Neal Becker
Kristoffer Carlsson wrote: > Do > note: > https://github.com/lindahua/NumericExtensions.jl/commit/16193a86ad0589520f944680a248ad36e3242682 > . ... Yes, it seems StatsFuns (shouldn't that be spelled StatsFuncs?) has logsumexp.

[julia-users] online (streaming) statistics?

2016-09-14 Thread Neal Becker
Is there a package for online (streaming) statistics? This would be an object that could be called repeatedly with new data, and would produce stats on the accumulated results (without actually having to collect all the results at 1 time) I have made a package for python which wraps some of htt

[julia-users] Re: online (streaming) statistics?

2016-09-14 Thread Neal Becker
David P. Sanders wrote: > > > > El miércoles, 14 de septiembre de 2016, 11:45:00 (UTC-4), Neal Becker > escribió: >> >> Is there a package for online (streaming) statistics? >> > > Please use Google before posting questions like this. > Googling &qu

[julia-users] dependent types in julia?

2016-09-14 Thread Neal Becker
As a toy example, I'm trying to write something that computes 2nd order statistics of complex variables. give a type T :: Complex{FLT}, I need to get the scalar type associated with it. For example, Complex{Float64} -> Float64 The decomplexify metafunction seems to do it: decomplexify{T}(::Ty

[julia-users] Re: dependent types in julia?

2016-09-14 Thread Neal Becker
Evan Fields wrote: > How about something like the following? > > type CT{T} > ctsum::Complex{T} > ctsumsq::T > end > I'm aware that it's easier to make the type parameter the scalar type, allowing writing as you show, but as a learning exercise I'd like to know how Julia would go the

[julia-users] Re: Re: dependent types in julia?

2016-09-15 Thread Neal Becker
mplex{Float64},Float64}(1.5 + 2.0im,1.0) >> >> >> julia> bar{S,T}(x::S,y::T) = bar{S,T}(x,y) >> bar{S,T} >> >> >> julia> bar(1.5+2.0im,1.0) >> bar{Complex{Float64},Float64}(1.5 + 2.0im,1.0) >> >> >> The outer constructor

[julia-users] Re: Re: dependent types in julia?

2016-09-15 Thread Neal Becker
questions about why something is present, do ask. > Also, in this case, you can use `immutable ComplexOf` rather than `type > ComplexOf`, which helps if there are very many of them. > > On Thursday, September 15, 2016 at 8:44:28 AM UTC-4, Neal Becker wrote: >> >> OK, I think

[julia-users] keyword arguments are distinct from positional arguments?

2016-09-16 Thread Neal Becker
In read the julialang doc, I'm getting the impression that keyword arguments are entirely distinct from positional arguments? In python, all arguments can be used either positional or keyword. Julia is more restrictive here? I need to decide a-priori if an argument is one or the other?

[julia-users] some problems updating to latest git

2014-11-04 Thread Neal Becker
After playing with julia a bit some weeks ago, I attempted to update to the latest git, but have some problems: 1. On startup: julia> ERROR: String not defined 2. Now let's update: julia> Pkg.update() INFO: Updating METADATA... INFO: Updating cache of SHA... INFO: Updating cache of ZMQ... INFO:

[julia-users] Re: some problems updating to latest git

2014-11-04 Thread Neal Becker
> On Nov 4, 2014 8:10 AM, "Neal Becker" > wrote: > >> After playing with julia a bit some weeks ago, I attempted to update to the >> latest git, but have some problems: >> >> 1. On startup: >> julia> ERROR: String not defined >> >> 2. Now

[julia-users] @inbounds only applies to RHS?

2014-11-14 Thread Neal Becker
I tried @inbounds out[(i-1)*f.interp+1:i*f.interp] = shift_compute1 (f, u, i, i) and got ERROR: wrong number of arguments So can @inbounds only apply on RHS? -- -- Those who don't understand recursion are doomed to repeat it

[julia-users] Re: [Offtopic:] Why you did choose the name "Julia"?

2014-11-26 Thread Neal Becker
All the good names were taken :) Pileas wrote: > Is there a specific reason you guys chose this name? > > It kinda reminds me Linux Mint where each distro. has a girl's name ... -- -- Those who don't understand recursion are doomed to repeat it

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

2015-12-23 Thread Neal Becker
Is there a difference?

[julia-users] can't get pyjulia to work

2016-03-01 Thread Neal Becker
>From time-to-time, I get interested in trying out moving some of my work from python to julia. Before I can even start, I need to be able to call from python to julia. But I've never gotten pyjulia to work on linux/fedora (currently 23). I've tried the fedora version of julia (0.4.3), and I'

[julia-users] Re: can't get pyjulia to work

2016-03-04 Thread Neal Becker
ilar? > I would like to know if Django could be used with Julia, and then it seems > pyjulia would be needed (not just PyCall). > > I do not think you need to compile your own Julia. I could be wrong, just > do not see the reason. > > Maybe this, wasn't too helpful..

[julia-users] [newb] objects with state

2014-05-07 Thread Neal Becker
I've always used the following rule in languages such as python and c++ If an object has state, use a class. Otherwise use a function. In languages lacking classes (and objects) e.g., FORTRAN, state must be maintained outside of the object. This is ugly and error prone. How is this addressed

[julia-users] Re: [newb] objects with state

2014-05-07 Thread Neal Becker
inheritance but you > can still do objects just fine, albeit with slightly different notation. > > I'm not sure if I've understood you correctly – does that help? > > On Wednesday, 7 May 2014 16:46:19 UTC+1, Neal Becker wrote: >> >> I've always used the followi

[julia-users] [newb] array aliasing

2014-05-08 Thread Neal Becker
Is the following well-defined in julia? julia> x = [1:10] 10-element Array{Int64,1}: 1 2 3 4 5 6 7 8 9 10 julia> x[1:9] = x[2:10] 9-element Array{Int64,1}: 2 3 4 5 6 7 8 9 10 In general, are all such aliased assignments well-defined (all, as in for arbitrary

[julia-users] Re: [newb] array aliasing

2014-05-09 Thread Neal Becker
7 8 91010 >> >> >> >>> import numpy >> >>> x = numpy.arange(1,11) >> >>> x[0:9] = x[1:10] >> >>> x >> array([ 2, 3, 4, 5, 6, 7, 8, 9, 10, 10]) >> >> >> On Thursday, May 8, 2014 8:59:58 PM U