On Tuesday, March 25, 2014 1:27:47 PM UTC-5, J Luis wrote:
Sure, sometimes you might *really* want to do this despite the drawbacks,
but in that case using the getfield(foo,:bar) syntax for it is just fine.
I'm perfectly fine with that but PLEASE, add to the manual that one can
also do
On Tuesday, March 25, 2014 3:48:22 PM UTC-5, Keith Mason wrote:
The docs state that there is a setfield! function that is called for a.b =
c, but the language disagrees. Apparently it's actually named setfield (no
exclamation point).
The change to `setfield!()` was about a month ago:
On Tuesday, March 25, 2014 3:48:22 PM UTC-5, Keith Mason wrote:
I have a number of variables based on composite types. I want the fields
of these variables synced to disk, so that every time I modify a field, the
data is written to disk. Is there any way to do this with assignment
This isn't really possible right now--large, essential parts of Julia are
written in Julia, and there's not full differentiation between the core
needed just to get the language running and the other components included
in Base. Please see https://github.com/JuliaLang/julia/issues/5155 and
You can grow arrays, but you need to use push!() to do so. You could also
use an array comprehension to construct the array.
On Friday, March 21, 2014 1:07:47 PM UTC-5, Paulo Castro wrote:
Hi,
I am starting using Julia, and I'm having a simple problem. I have some
images on a directory,
On Tuesday, March 18, 2014 11:59:49 PM UTC-5, Ethan Anderes wrote:
My main goal is to test MCMC code on independently generated data. I
guess I'm worried that if I start one run with srand(1) and the next with
stand(2) there will be an overlap on the random number sequence that could
On Wednesday, March 19, 2014 10:44:07 AM UTC-5, andrew cooke wrote:
[insert mandatory xkcd here]
I could have sworn I cited that as a code comment, but grep comes up empty.
It sounds like you're compiling from the git repository, not just
installing. There are Ubuntu packages available from the Julia downloads
page if you'd prefer: http://julialang.org/downloads/
See also:
https://github.com/JuliaLang/julia#ubuntu
And elsewhere in the readme, under ncurses build
The status is as follows:
(1) The readline REPL will be replaced by REPL.jl
(https://github.com/loladiro/REPL.jl/issues/8).
(2) This hasn't happened yet. It's probably targeted for the immidate
post-0.3 landing period at this point.
(3) No one has stepped up to figure out why there are problems
Maybe finalizer() will do what you need?
http://julia.readthedocs.org/en/latest/stdlib/base/#Base.finalizer
On Saturday, March 15, 2014 9:49:56 AM UTC-5, Kenta Sato wrote:
Hi everyone,
I'm wondering if there are smart pointers like C++ in Julia.
Calling C functions often require managing
On Thursday, March 13, 2014 8:48:30 AM UTC-5, Tim Holy wrote:
IIRC it does actually store the definition of types in a hidden group
inside
the file. But in general it's hard to make use of: what if the type is
defined
inside a module that hasn't been loaded? So yes, HDF5/JLD are a little
On Thursday, March 13, 2014 9:02:03 AM UTC-5, Tim Holy wrote:
For me there is no segfault, and indeed there's a friendly error message.
Not
sure who wrote it, but maybe it was me :-).
Haha, fair enough.
, ben wrote:
I meant composite! Grr.
On Thursday, March 13, 2014 9:54:30 AM UTC-4, Patrick O'Leary wrote:
On Thursday, March 13, 2014 8:48:30 AM UTC-5, Tim Holy wrote:
IIRC it does actually store the definition of types in a hidden group
inside
the file. But in general it's hard to make use
You might take a look at https://github.com/malmaud/Autoreload.jl and see
if it meets your needs.
On Wednesday, March 12, 2014 1:20:42 AM UTC-5, David Chudzicki wrote:
Hi--
The workflow I'd like is to edit a file and see the effect of what I've
done upon saving. Best would be something
The documentation is in a series of ReStructured Text files in the main
repository, under the `doc` directory:
https://github.com/JuliaLang/julia/tree/master/doc
Pull requests to improve the documentation are very welcomed, and usually
quickly accepted.
On Saturday, March 8, 2014 11:58:17 AM
This is a current language-level limitation; an IDE cannot help with this.
If you're the one defining all the methods, there's some things you can do
by wrapping with modules, which can be tossed out wholesale; the
Autoreload.jl package works along these lines.
This is being tracked as issue
The HDF5 file format is stable, so I think it's fair to say there's a
behavioral problem of some kind, either a bug or some version mismatching
shenanigans.
Could you please post the output of versioninfo(true)?
On Friday, March 7, 2014 12:43:08 PM UTC-6, ben wrote:
Hi everyone,
A couple
Have you looked into using keyword arguments?
http://julia.readthedocs.org/en/latest/manual/functions/#keyword-arguments
On Friday, March 7, 2014 8:15:58 AM UTC-6, Yuuki Soho wrote:
It's a bit of a stupid question, but I don't really know how to deal with
this efficiently.
So, in many
I suspect MATLAB is classifying x2 as a reduction variable. However, the
documentation notes:
The classification rules for variables, including reduction variables, are
purely syntactic. They cannot determine whether the f you have supplied is
truly associative or not. Associativity is
On Tuesday, March 4, 2014 2:48:05 AM UTC-6, Andreas Noack Jensen wrote:
In master Julia the result is 3. I must have changed that when I
reorganised the norm code.
Since this is a breaking change with no deprecation, it should definitely
be mentioned in NEWS.
This is odd, as I get norm() working just fine with any of a row, column,
or vector, and all getting exactly the same result of 3.741... (v0.2.0, on
julia.forio.com, since it's quick for me to get to). Note that it will
return the L2 norm by default, exactly as MATLAB does. Supplying a second
What is the small script?
On Tuesday, February 25, 2014 5:02:55 PM UTC-6, Michael Schnall-Levin wrote:
Hello,
I'm seeing a segmentation fault while running julia code. I got it to
reproduce multiple times on a small script that I'm running.
The only error message I got was below.
I'm
To clarify, this only affects the precompiled standard library image,
sys.{so,dylib,dll}. Everything else is fine, and at the cost of startup
time you can delete this file (or use the `make dist` target) and
distribute the result.
On Saturday, February 22, 2014 5:31:25 AM UTC-6, andrew cooke
Before you go off and do that, note that UDP support is available in the
latest 0.3 prereleases: https://github.com/JuliaLang/julia/pull/5697
(note that the API might change;
https://github.com/JuliaLang/julia/issues/5772)
On Friday, February 21, 2014 2:35:33 PM UTC-6, andrew cooke wrote:
System controls-oriented tools would be a great thing to have. We don't use
the issue tracker for package requests--we prefer to keep that narrowly
focused on the base system--but feel free to jump in on starting a package.
On Thursday, February 20, 2014 3:56:20 PM UTC-6, Uwe Fechner wrote:
You don't need to specify all the parameters to a type; in particular,
Array{T} is the type family of all arrays of arbitrary dimension with
elements of type T.
On Thursday, February 20, 2014 4:39:15 PM UTC-6, David Smith wrote:
Probably a dumb question, but I can't find what I'm wanting.
On Monday, February 17, 2014 6:57:10 PM UTC-6, David P. Sanders wrote:
Hi,
Suppose I have the following:
r = rand(5, 5)
I can select a single element of the array r using
r[3, 4]
Now suppose that I have the position [3, 4] stored in a variable as
pos = [3, 4]
How can I use pos as
This is something more subtle than that:
In [3]:
[(x-x)(x) for x in [1,2,3]]
Out[3]:
3-element Array{Int64,1}:
1
2
3
On Sunday, February 16, 2014 6:36:48 PM UTC-6, Fil Mackay wrote:
What is the reason that anonymous functions lose their typing information
as per below:
julia f =
Funny you should ask:
https://github.com/JuliaLang/julia/issues/5794
On Saturday, February 15, 2014 8:47:05 AM UTC-6, Edward Cessna wrote:
I'm coming up to speed on Julia and ran into something unexpected:
julia typeof(map(identity, [1=a, 2=b, 3=c]))
Array{Any,1}
Applying map to a
On Tuesday, February 11, 2014 5:38:05 PM UTC-6, will@foundationdb.com
wrote:
The naming follows our existing convention, where all of our bindings
packages are named fdb-*. How strict are the naming practices in the Julia
community?
It's a convention; there's no technical restriction.
On Friday, February 7, 2014 2:09:19 PM UTC-6, Ismael VC wrote:
Can I make one of my own functions, to use it as an infix notation
operator, like +, -, * etc.
At the moment (and for the forseeable future, as there is considerable
disagreement) you can only provide methods for the existing
The standard floating point type in normal usage, even in 32-bit systems,
is the 64-bit double precision type called Float64 in Julia (and double
in C). So using Float64 is typically the safest bet, and all other things
equal will run equally well in both 32-bit and 64-bit environments, since
ccall is what I believe Jeff refers to as special syntax. It's the
specialest of special cases.
On Thursday, February 6, 2014 5:21:56 PM UTC-6, Mauro wrote:
Base.(:(:))
works for all objects in Base and Core which I tried, except `ccall`
which only works either as
Base.ccall
or
This is a superrecent change merged yesterday, so you'll need an even
fresher build.
Ref: https://github.com/JuliaLang/julia/pull/5538
On Wednesday, February 5, 2014 6:45:02 PM UTC-6, Madeleine Udell wrote:
I see documentation for the nfilled function, but I don't seem to be able
to access
On Sunday, February 2, 2014 9:29:09 PM UTC-6, Jeff Pickhardt wrote:
Finally, when I compiled it, there were a ton of warnings. Stuff like:
unused variables, incompatible pointer types, etc.
You'll find that, as with the warnings you pasted here, these almost always
come from Julia's
Might need some super-secret trickery
https://github.com/JuliaLang/julia/issues/5276
https://github.com/JuliaLang/julia/issues/1639
On Wednesday, January 29, 2014 4:28:26 PM UTC-6, Mauro wrote:
Good catch! But a quote-block and :() should be equivalent, right? Is
this a bug?
The trouble
git config --global --unset url.https://github.com/.insteadOf
(or)
git config --global --edit
On Tuesday, January 21, 2014 8:44:18 AM UTC-6, Stefan Karpinski wrote:
Looks like you're having a DNS issue. I'm not sure how to fix it, however.
One thing you could try is doing
git config
We've been specifically discussing normalization form KC as defined by UAX
#15 (http://unicode.org/reports/tr15/) in the issue
(https://github.com/JuliaLang/julia/issues/5434), which is a compatibility
normalization.
On Friday, January 17, 2014 11:34:44 PM UTC-6, Marcus Urban wrote:
I'm not
There's no specialization on function-valued arguments yet, so there will
be a performance penalty for this approach right now.
On Thursday, December 26, 2013 9:09:41 PM UTC-6, andrew cooke wrote:
when i have code like that i put the common code into a separate, local
function and then write
Nothing like this yet, I don't think, but there is work on a generic Complement
type. Check GitHub, there is an issue open for that.
Am Mittwoch, 18. Dezember 2013 15:09:26 UTC+1 schrieb Patrick O'Leary:
On Wednesday, December 18, 2013 8:06:33 AM UTC-6, Patrick O'Leary wrote:
...
julia feval(funs, x) = foldl(|, {x; funs...})
feval (generic function with 2 methods)
julia feval([f g], 3)
20.0
And the single
201 - 241 of 241 matches
Mail list logo