So I was poking around the SharedArray code, and saw that there was a
method for creating one given a file name.
After some further playing about I've realised the file has to be in some
sort of binary format (e.g. created by write(somefileio, somearray) ) due
to something to do with mmapping
Hi Tony:
Thanks for the suggestion.
Unfortunately, the result is the same.
I initialized/pre-allocated the destination array for the Hessian as
hessh = zeros(nparm,nparm)
Julia's reply from the call to
hessh = ForwardDiff.hessian(PF_RE_AR1_outer_alt, parms)
began with
I think we should probably make it possible to access the full string of a
numeric literal in a macro but that is a substantial change to the parser.
On Monday, November 2, 2015, David P. Sanders wrote:
>
>
> El lunes, 2 de noviembre de 2015, 6:35:46 (UTC-6), Milan
El lunes, 2 de noviembre de 2015, 7:58:17 (UTC-6), Stefan Karpinski
escribió:
>
> I think we should probably make it possible to access the full string of
> a numeric literal in a macro but that is a substantial change to the parser.
>
That would be great.
Off-topic: Jeffrey, will your
Seems like libc must not check the TZ variable each time, possibly due to
performance considerations?
On Monday, November 2, 2015, Avik Sengupta wrote:
> I'm not sure why this behaves differently. The now() function calls down
> to time_now() in libc, and while we do a
By "the destination array" I meant the line
cs00V = eye(dsts)
If dsts is an integer element type there, then cs00V will also have an
integer element type. Try eye(size(dsts)...)
On Monday, November 2, 2015 at 5:32:54 AM UTC-8, james...@gmail.com wrote:
>
> Hi Tony:
>
> Thanks for the
Misread the part where you said dsts = 2. Can you post more of the code,
exactly how is dsts getting passed to these lines?
On Monday, November 2, 2015 at 7:28:56 AM UTC-8, Tony Kelman wrote:
>
> By "the destination array" I meant the line
>
> cs00V = eye(dsts)
>
> If dsts is an integer
> On Mon, 2 Nov 2015 08:56:05 -0500, Stefan Karpinski said:
> Seems like libc must not check the TZ variable each time, possibly
> due to performance considerations?
Right. So is there a way that I can get the julia process to do a tzset()
after I do
ENV["TZ"] = whatever
?
> On Mon, 2 Nov 2015 09:16:16 -0500, Josef Sachs said:
> On Mon, 2 Nov 2015 08:56:05 -0500, Stefan Karpinski said:
>> Seems like libc must not check the TZ variable each time, possibly
>> due to performance considerations?
> Right. So is there a way that I can get the julia process to
El lunes, 2 de noviembre de 2015, 6:35:46 (UTC-6), Milan Bouchet-Valat
escribió:
>
> Le lundi 02 novembre 2015 à 00:58 -0800, Jeffrey Sarnoff a écrit :
> > I have many values like
> > 0.6584871727288045313850172023417636020375045372547107712468813403
> > that come from Maple and I would
The MIT license was and still is the simplest, best-known liberal license.
It's way too late to change the license now and there's no compelling
reason to do so. We'd have to get permission from the 400+ people who have
made contributions to Julia. For what benefit? A license that has the same
>From the command pallete, try typing "Julia Client: Work in file folder". I
>had the same problem and should have submitted a PR to the docs (and will if
>no one beats me to it). Hope that helps.
On Mon, Nov 2, 2015 at 12:52 PM, Deniz Yuret wrote:
> If I have the following function:
>
> function foo(k,v)
> @eval ($(symbol(k))=$v)
> println(bar)
> end
>
>
> and I call it with:
>
> foo("bar", 5)
>
> then the global variable bar is set to 5 and the function
I think it may be easiest to do this conversion in your own program after
using readtable:
using DataFrames
#Make some canned data instead of reading from a table
df = DataFrame(datestring = ["12 Apr 1996", "05 Aug 2015"], moneystring =
["\$12.75", "\$0.69"])
df[:date] = Date()
df[:money] = 0.0
Dear Julia users,
I just switched to atom IDE from Juno. I am puzzled by one thing.
As in Juno, I first cd(myDir) to move to the directory where I have the files
for the module I am developing. In Juno I could then just type using myModule
to load it but in Atom I now only get
LoadError:
Hi emacs users,
is there a way to disable ESS[Julia] in emacs? I'd like to use julia-mode
without invoking ESS.
ESS is installed globally on my system, but I don't have root rights to
uninstall it.
If I have the following function:
function foo(k,v)
@eval ($(symbol(k))=$v)
println(bar)
end
and I call it with:
foo("bar", 5)
then the global variable bar is set to 5 and the function prints 5.
Is there any way to make @eval set a local variable inside foo instead? (I
tried
Jason,
very interesting reading. I'll have to go through that a few more times
though ;-)
If anybody is interested, I ended up coding the whole Kakuro solver in
Python 3. It will take 0.1 seconds (measured on my not-so-recent laptop)
for a regular 9x9 puzzle, or 0.5 seconds for the one I
There’s no way this transition is going to be smooth without work from
package devs to ensure compatibility anyway, but recent history (e.g. the
Tuplocalypse) shows that packages recover quite rapidly due to the
automated testing done by PkgEval.jl. Thus, packages with decent test
suites
julia> eltype(Ptr{Float64})
Float64
Den tisdag 3 november 2015 kl. 07:51:43 UTC+1 skrev Petr Hlavenka:
>
> Hi,
> is there a way to obtain a type T from a Ptr{T}, e.g. get UInt32 from
> Ptr{UInt32}.
>
> I'm trying to fix NIDAQ for 0.4 (tupplecalypse)
>
> This is needed if I have a signature of a
Why not do this via Compat.jl ?
C
On Tuesday, 3 November 2015 04:28:44 UTC, David Anthoff wrote:
>
> No, Compat generall ports the new syntax back to old versions. What I'm
> suggesting is quite different, namely that in julia 0.5 if you just use
> `[]` for slicing without anything else, you
Hm, command palette just says "no match found" and even if I type it nothing
changes.
Also, 1) if I have a file outside the module folder, can I load it somehow by
providing a path? and 2) I quite like hydrogen, does it work the same way to
load a module with Julia Client: etc?
The `using OldArrays` approach would essentially require an opt-in from
everyone before julia 0.5 is released, i.e. an opt-in action from all package
devs, right? The danger there seems that I update to julia 0.5, but now I have
no clue whether all the packages I rely on have either a) made
immutable Bird
height::Float32
end
immutable Cage
bird::Bird
end
function catch(some_bird::Bird, some_animal)
new_bird = Bird(10.2)
c = Cage(b)
...
new_bird
end
catch(b,b)
1. When are immutable values boxed? Is new_bird a boxed value? What about
`some_bird` and
Has anyone implemented minimax (or near minimax) function approximation
over a given interval using BigFloats?
2015-11-02 12:07:38.737 julia[34306:196259] setCanCycle: is deprecated.
Please use setCollectionBehavior instead
2015-11-02 12:07:38.747 julia[34306:196259] setCanCycle: is deprecated.
Please use setCollectionBehavior instead
Huh?
Probably came from MAT.
Python's
from __future__ import division
was a reasonable way of transitioning. I would use it for slicing if it was
available already.
On Monday, November 2, 2015 at 2:46:04 PM UTC-5, David Anthoff wrote:
>
> The `using OldArrays` approach would essentially require an opt-in from
> everyone
Yes, I like that kind of idea. How about specifically:
- If a package does nothing, every use of `[]` for slicing throws a deprecation
warning on julia 0.5
- If you use `using OldArrays` the deprecation goes away, and you get the julia
0.4 behavior (maybe this options is actually not even
Actually, it probably came from one of PyPlot, PyCall or dependencies
within conda Python.
The first time, Julia crashed big time. I reinstalled Julia and all
packages. Everything runs despite the deprecation warnings.
On Monday, November 2, 2015 at 12:09:23 PM UTC-8, le...@neilson-levin.org
Probably
(add-to-list 'auto-mode-alist '("\\.jl\\'" . julia-mode))
should do it, though I'm not sure what the advantage would be.
Best,
Ista
On Mon, Nov 2, 2015 at 10:05 AM, Asbjørn Nilsen Riseth
wrote:
> Hi emacs users,
>
> is there a way to disable ESS[Julia] in emacs?
I see the same thing when using matplotlib (via Julia OR python) on OSX
when using a GTK backend.
Hi,
is there a way to obtain a type T from a Ptr{T}, e.g. get UInt32 from
Ptr{UInt32}.
I'm trying to fix NIDAQ for 0.4 (tupplecalypse)
This is needed if I have a signature of a function (demonstration example
from base, in real NIDAQ package there is huge C header processed by
Clang.jl)
>
> This is a bit of an attitude issue that got me "off". The matplotlib
> maintainers have no such obligation.
Neither does Anaconda. Please stop, this whole discussion is ridiculous,
especially the "forking" nonsense. Conda will update their Matplotlib
version in good time. Dealing with
I decided to write a blog post based on the Kakuro puzzle solver problem
from this thread:
http://squishythinking.com/2015/11/02/optimizing-kakuro-in-julia/
On Wednesday, October 21, 2015 at 7:08:35 PM UTC-4, Jason Merrill wrote:
>
> I got interested in trying to optimize this problem even
Does running Pkg.build() change anything?
Hi list
I have a question related to SunDials.jl
We are building a model for which we currently have a function that
takes in two objects of custom types (c::Community and p::Parameters).
We'd like to move the code to Sundials, but we're not sure about the
best way to do it.
Currently, we
That seems like the right way. We should probably have an official API for
that.
On Mon, Nov 2, 2015 at 10:44 AM, Josef Sachs wrote:
> > On Mon, 2 Nov 2015 09:16:16 -0500, Josef Sachs said:
>
> > On Mon, 2 Nov 2015 08:56:05 -0500, Stefan Karpinski said:
> >> Seems like
The context is not clear. Is this regarding Conda.jl?
On Mon, Nov 2, 2015 at 4:00 PM, wrote:
>
> I don't think you should support Anaconda Python. I realize it is
> convenient. Providing a sort of private copy of Python and its packages
> makes sense. It simplifies
Somewhat more pointedly, this text banner greets on booting Continuum
Python:
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
It sort of rubs me the wrong way...
I put up a small illustration of how the Ball Tree recursively divides the
points. Nothing fancy but I thought the plots where kinda
cute.
https://github.com/KristofferC/NearestNeighbors.jl/blob/master/examples/balltree_illustration.ipynb
On Monday, November 2, 2015 at 10:21:02 PM UTC+1,
Conda.jl is a community contribution as a package, not part of the core
language. Likewise it is not strictly required. It does make using PyCall
significantly more convenient. Maybe you might consider making a Pip.jl
package that does something similar?
On Mon, Nov 2, 2015 at 4:18 PM,
Yes.
The practical problem is out of date packages and subtle incompatibilities
between "system" installs of Python and the private one.
I now use the "Julia" Python as my 2.7 version and a system Python from PSF
for 3.5.
Conda is limited to Python 3.4 and matplotlib 1.4.3.
Conda et al will
I'm a fan of
@show 5+5
@show 5+6
@show 5+7
because then its easy to associate the input and the output
On Sunday, November 1, 2015 at 8:14:31 AM UTC+11, Cedric St-Jean wrote:
>
> Does
>
> display(5+5)
> display(5+6)
> display(5+7)
>
> work for you? I find it useful for displaying multiple
I am new to Julia and don't know how to deal with most error messages.
Before I could just do
using PyPlot
and everything worked fine on my windows machine (Julia 0.4.0 repl). Then
it broke (possibly due to Pkg.update()? I don't remember at this point.).
So I looked up a few things and
I don't think you should support Anaconda Python. I realize it is
convenient. Providing a sort of private copy of Python and its packages
makes sense. It simplifies installation and maintenance of key Julia
dependencies for users. I just don't think you should use Anaconda to do
it.
How is this different from the Compatibility module?
Christoph
On Monday, 2 November 2015 20:44:38 UTC, David Anthoff wrote:
>
> Yes, I like that kind of idea. How about specifically:
>
>
>
> - If a package does nothing, every use of `[]` for slicing throws a
> deprecation warning on julia
If it is a metric (obeys triangle inequality and the other good stuff) then
the Ball Tree should be able to handle it.
If you create an issue with some more information I could probably
implement it.
I want to also fix so that it should be easier to use your own arbitrary
metrics but I might
I guess this is for the future, but in case it’s easy and already here, I
sure could use some kind of pdf viewing in Escher…
So something like the image(path_to_image) -> tile from the Content API,
only for a (local, in assets) pdf.
Thanks for all the great work!
A slow work around will be
I have many values
like 0.6584871727288045313850172023417636020375045372547107712468813403
that come from Maple and I would like to avoid doing this by copy/paste for
each one:
Float128(parse(BigFloat,"0.6584871727288045313850172023417636020375045372547107712468813403"))
I tried writing a macro
Thanks, the results were interesting enough :)
julia> expand(:(typealias A B))
:(begin
const A
A = B
return B
end)
julia> expand(:(typealias A{T} B{T,1}))
:((AST(:($(Expr(:lambda, Any[:T], Any[Any[Any[:T,:Any,0]],Any[],1,Any[]],
:(begin
const A
I’m not sure what you refer to by “Compatability module”.
From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On
Behalf Of Christoph Ortner
Sent: Monday, November 2, 2015 1:09 PM
To: julia-users
Subject: Re: [julia-users] Re: Re: are array
Hmm...
Try these two things:
1.) Make sure Julia is running, e.g, cnrl+' (cmd+') and type 1+1 or something
into the console. I think Julia has to be running to see the "Julia Client"
commands.
2.) When you're sure Julia is running, make sure the file is active and not the
console, i.e. click
Hi Tony:
Thanks, but remember you asked.
Your first request is answered by
const dsts = 2 # dim( state vector )
which is set in the main file that calls to PF_RE_AR1_outer_alt.jl
In PF_RE_AR1_outer_alt.jl, I set
cs00V = eye(dsts)
cs00V[2,2] = sigu*sigu/(1.0 - rho1*rho1) # this is
On Mon, Nov 2, 2015 at 3:17 PM, Cedric St-Jean wrote:
> immutable Bird
>height::Float32
> end
>
> immutable Cage
>bird::Bird
> end
>
> function catch(some_bird::Bird, some_animal)
> new_bird = Bird(10.2)
> c = Cage(b)
> ...
> new_bird
> end
>
>
Hi David,
I'm not an expert, i.e. I've never used it, but your idea "using OldArrays"
sounds exactly like the purpose of Compat.jl, which I believe is the
compatibility module referred to.
Have a look and good luck:
https://github.com/JuliaLang/Compat.jl
> Does winpython have a minimal core and a binary-only package management
> system on top of it? Do they have binaries for the likes of scipy,
> matplotlib, jupyter etc that work with pycall and ijulia?
>
Not very experimented with Python by WinPython seams perfect for me. No
install, no
@Tony: Yeah I knew that, though the actual command Seth proposed ./xxx is
what I was looking for: ./ for executables I didnt know :-(
So now it seems to load in cygwin but when trying the Package thing I get
this:
julia> Pkg.status()
INFO: Initializing package repository
Oh man ... please keep supporting anaconda. As a windows user being stuck
with easy_install haunts my dreams. Anaconda may be forkish, but at least
windows is a first class citizen. So many open source projects make using
Windows beyond painful.
On Monday, 2 November 2015 13:00:51 UTC-8,
Julia 0.4 and earlier shell out to command line git for Pkg. If you haven't run
`make win-extras binary-dist` then run the generated installer, then when you
run Julia in cygwin it is trying to call cygwin's git which does not work.
On Mon, Nov 2, 2015 at 3:13 PM -0800, "digxx"
If you use the C interface and not the simplified interface you can pass an
array of parameters to your lhs function. I found the best way to figure
out how is to look at the code for how they made the `cvode` function (in
Sundials.jl) to see how the C functions are being called and then look
It might be a different kind of InexactError then. Try adding a @show on the
rhs value, see what type it is. The array might need to be constructed in a way
that it's capable of holding dual number element types.
On Mon, Nov 2, 2015 at 3:18 PM -0800, wrote:
Hi Tony:
I looked into a non-conda solution when I tried to integrate a python setup
into IJulia's setup (the effort was finally superseded by the Conda.jl package).
pip had come a long way and would have worked for the case. I also think that
wheels pretty much solve the binary distribution problem for
I'm not sure why this behaves differently. The now() function calls down to
time_now() in libc, and while we do a setenv() when changing ENV, clearly
that change is not reaching down to the relevant parts of libc.
In terms of workaround, if you wanted UTC time, then `now(Base.Dates.UTC)`
will
First a question in the current [main] license:
A. Is there some reason the MIT [Expat] license was used (other than maybe
just the default for MIT people)?
B. If it is just to be short and uncomplicated, the Universal Permissive
License, I've just become aware of, also seems to fit the
One reason to stay with MIT License is that it has been in wide use for
some time. The UPL is newer, and in these matters, there is quite a bit of
import in subtle wording; experience clarifies.
If you, or someone else wants to make the UPL rights available, just say
e.g. (I am not a lawyer)
Hi Kristoffer,
Could one one possibly use this with a metric that effectively defines a
torus? E.g., suppose my points are in (0,L) x (0, L) x (0, L) but a point x
is identify with all other points x + Le1, x+Le2, etc .?
Christoph
I think there are wheels for all of these: http://pythonwheels.com/
> -Original Message-
> From: julia-users@googlegroups.com [mailto:julia-
> us...@googlegroups.com] On Behalf Of Tony Kelman
> Sent: Monday, November 2, 2015 4:47 PM
> To: julia-users
>
Again Thx for you answer: But I dont quite get what you mean.
I havent run this win-extras binary-dist though I just did. But it didnt
change anything :-/
I have some executable in my Julia folder now: julia-0.4.1-pre-x86_64.exe
Run it from shell by ./julia-0.4.1-pre-x86_64.exe will tell me:
So basically you mean I have to change the way julia0.4 wants to shell out?
Telling him somehow to shell out to cygwin and not git via cygwin?
There still aren't Windows wheels for numpy, scipy, or matplotlib on PyPI are
there? You can't build SciPy from source on Windows in a way that works with
python.org MSVC python without needing either the Intel compilers, or a custom
patched build of mingw-w64 that only Carl Kleffner knows how
That created an installer, you need to run the installer to get a build of
julia with everything in place for Pkg to work properly. There are manual ways
of avoiding this step but it's a bit messy.
On Mon, Nov 2, 2015 at 4:59 PM -0800, "digxx" wrote:
Again Thx for
You just need the embedded copy of portable git to be in place and on julia's
path before cygwin's git. The installer is the fewest steps to make sure that's
set up properly.
On Mon, Nov 2, 2015 at 5:02 PM -0800, "digxx" wrote:
So basically you mean I have to change
That site isn't very specific on platform differences. I only see mac wheels at
https://pypi.python.org/pypi/numpy
WinPython might work, though it's quite a large bundle and wouldn't help on mac
or linux. It could be complemented by a pip interface package for unices, but
if you want something
Ah, interesting, I had been under the impression that numpy etc had windows
wheels already, but clearly they are still working on that...
I don't see the appeal of WinPython over conda, then you just swap out one
alternative distribution over another one.
> -Original Message-
> From:
You'd have to use home-brew or PSF Python for Mac (with pip). As I pointed
out, I don't know what to suggest for different versions of Linux as the
package manager repo's for the various distros are often very out of date.
On Monday, November 2, 2015 at 5:29:44 PM UTC-8, Tony Kelman wrote:
>
>
No, Compat generall ports the new syntax back to old versions. What I'm
suggesting is quite different, namely that in julia 0.5 if you just use `[]`
for slicing without anything else, you generate a warning, and then you have to
opt-in to the NEW syntax.
> -Original Message-
> From:
Can someone help me figure out how to get julia 0.4 working on my SGE
computing cluster? I tried ClusterMangers, but it throws a lot of errors
(that I list below). For what it is worth, I had it working a long time ago
in julia 0.3 on this cluster, but I have deleted that installation and
They are working on it, and making pretty good progress. See
http://numpy-discussion.10968.n7.nabble.com/numpy-1-11-0-dev0-windows-wheels-compiled-with-mingwpy-available-td41422.html,
especially Nathaniel Smith's explanation of some of the technical issues about
upstreaming. Someone has to fork
Le lundi 02 novembre 2015 à 00:58 -0800, Jeffrey Sarnoff a écrit :
> I have many values like
> 0.6584871727288045313850172023417636020375045372547107712468813403
> that come from Maple and I would like to avoid doing this by
> copy/paste for each one:
>
79 matches
Mail list logo