You can put the code inside triple back ticks:
```
function hello()
"Hello"
end
```
On Wednesday, November 16, 2016 at 12:49:09 PM UTC+2, Uwe Fechner wrote:
>
> Hello,
> how can I paste Julia code in Discourse, such that it has syntax
> highlighting?
>
> Uwe
>
> On Wednesday, November 16,
Given that allocating an array for 50 Ints, filling it up, and then summing
it all together probably takes less than a microsecond, any difference
between allocating and not allocating will disappears in the noise. As Yichao
Yu mentions, what you end up measuring is the time it takes to setup
I would probably do a HTTP HEAD request. It would return the headers
allowing you to tell what, if anything, is there without having to download
it.
On Thursday, October 6, 2016 at 7:54:13 AM UTC+3, Jeffrey Sarnoff wrote:
>
> What is best practice for determining if a URL exists (known,
Since packages are installed over an encrypted connection Julia must ship
with some kind of crypto.
On Friday, March 18, 2016 at 11:39:11 AM UTC+2, Páll Haraldsson wrote:
>
>
> On Thursday, March 17, 2016 at 8:27:33 PM UTC, Naiyuan Chiang wrote:
>>
>>
>> Hi,
>>
>> I am working in United
What about other lists like julia-stats and julia-opt? Would they also move
to Discourse or be left behind?
On Wednesday, March 9, 2016 at 4:05:24 PM UTC+2, Stefan Karpinski wrote:
>
> It seems like we can import the email list from julia-users and julia-dev,
> and you can reply on Discourse by
The cycle of errors is not infinite, just very long. I left it running over
night and next morning it was finished.
On Sunday, September 20, 2015 at 11:15:35 AM UTC+3, Chris Stook wrote:
>
> After updating to rc2, Pkg.build("IJulia") resulted in an infinite cycle
> of errors. After watching
Provide some project wide action like search and find/replace, and also
store the project specific settings that vary from project to project, like
indentation.
On Friday, September 18, 2015 at 9:31:42 PM UTC+3, Daniel Carrera wrote:
>
> I have always been curious about why so many IDEs support
Are there any benchmark results for the "more performant and accurate" bit?
On Thursday, September 3, 2015 at 11:25:01 PM UTC+3, Jarrett Revels wrote:
>
> I'm proud to announce that we've tagged and released a new version
> ForwardDiff.jl (https://github.com/JuliaDiff/ForwardDiff.jl).
>
>
Nice! The quality is much better than last years videos.
On Thursday, August 13, 2015 at 8:22:09 PM UTC+3, Viral Shah wrote:
Folks,
I am happy to announce that the videos are almost all ready, and I will
start posting them in batches. I am starting with Jeff’s talk on our
Youtube
I believe the reason fit! and similar names are defined in StatsBase is so
that there would be one canonical version of the name the everyone can
import and extend.
On Friday, August 7, 2015 at 5:03:00 AM UTC+3, Madeleine Udell wrote:
Thanks, David! Requiring StatsBase and importing
Hmm. Makes you wonder what it would be like to use SQLite as a backend for
DataFrames.
On Monday, June 1, 2015 at 8:06:50 PM UTC+3, Jacob Quinn wrote:
I've been meaning to clean some things up and properly release the
functionality, but I have a new way to read in CSV files that beats
csv is really only meant for simple two dimensional data. A DataFrame
inside a DataFrame is more complex than what the csv reader know how to
deal with. If you want to store something like that you will have to use
some other file format, like JLD.
On Friday, May 8, 2015 at 11:56:05 AM UTC+3,
countmap in the StatsBase.jl package does this.
On Thursday, April 30, 2015 at 11:11:37 PM UTC+3, Alexandros Fakos wrote:
Hi,
Is there a way to get a table of frequencies of the unique values in an
array in Julia?
Something like matlab's tabulate
Thanks a lot,
Alex
As I understand it, it is only the Julia runtime and dependencies that are
compile with gcc or Intel compilers. Regardless of which ones you use the
compile Julia itself, the Julia code you yourself write will be compiled by
the Julia runtime using LLVM. The only time when in Julia code you
I think it is all the slicing that is killing the performance. Maybe
something like arrayviews or the new sub stuff on 0.4 would help.
Alternatively devectorizing into a bunch of nested loops.
On Saturday, April 25, 2015 at 8:42:09 PM UTC+3, Stefan Karpinski wrote:
Stick const in front of T
I don't know the status of the tools, but there is active development at
the BioJulia GitHub organization https://github.com/BioJulia
On Saturday, April 25, 2015 at 8:08:16 PM UTC+3, Tim K wrote:
Dear All,
I am finishing a bioengineering postdoc soon, and am looking to learn some
There is also http://www.reddit.com/r/Julia/
On Wednesday, March 25, 2015 at 7:57:20 AM UTC+2, cdm wrote:
these twitter feeds:
https://twitter.com/JuliaLanguage
https://twitter.com/ProjectJupyter
https://twitter.com/julialang_news
in addition to searching twitter for
You can add a type in front of the brackets:
UInt8[1, 255]
On Tuesday, March 17, 2015 at 12:37:01 AM UTC+2, J Luis wrote:
julia uint8([1,255])
WARNING: uint8(x::AbstractArray) is deprecated, use round(UInt8,x) instead
.
Besides not really understanding why the deprecation (older way is
Wrapping it in a let block only seems to slow things down more.
@time let a=a, b=b, c=c
@map(sqrt(a^2 + b^2) + c, a, b)
end
elapsed time: 4.951837524 seconds (1839984144 bytes allocated, 19.48% gc time)
On Friday, March 13, 2015 at 11:01:35 AM UTC+2, Toivo Henningsson wrote:
To
.
As an alternative that only requires compilation on the first call, try
FastAnonymous or NumericFuns.
--Tim
On Wednesday, March 11, 2015 02:25:10 PM Johan Sigfrids wrote:
I've been playing around with creating a @map macro:
indexify(s::Symbol, i, syms) = s in syms ? Expr(:ref, s, i) : s
I've been playing around with creating a @map macro:
indexify(s::Symbol, i, syms) = s in syms ? Expr(:ref, s, i) : s
indexify(e::Expr, i, syms) = Expr(e.head, e.args[1], [indexify(a, i, syms)
for a in e.args[2:end]]...)
indexify(a::Any, i, syms) = a
macro map(expr, args...)
quote
I believe Juno is built on top of Atom shell, which has as a minimum
requirement Win7. It won't run on Win XP. All you can do is upgrade to a
newer version of Windows, or use some other editor with Julia.
On Sunday, March 8, 2015 at 7:18:04 PM UTC+2, Roger Hunter wrote:
I have a dual core 2
Because calling out to mpfr is cheating here is a implementation of
Gauss-Legendre in Julia calculating Pi to the desired number of digits
(Still relying on BigFloats though).
function gaussLegendrePi(d::Integer)
prec = get_bigfloat_precision()
With a DataFrame like:
df = DataFrame(Name = [Test, Test2], Name2 = [A, B], Amt=[123,456])
you could do something like this:
df[:Name] = map((x,y) - string(x, -, y), df[:Name], df[:Name2])
Note that you will still have the Name2 column.
On Sunday, March 1, 2015 at 12:35:01 AM UTC+2,
Could you not use a composite type for this? It would seem more Julian to me.
You can use Guide.annotation too add arbitrary graphics to a plot.
http://gadflyjl.org/guide_annotation.html
Is 0.4 gonna get delayed with lots of last minute additions the same way
0.3 was?
On Monday, December 22, 2014 5:03:53 PM UTC+2, Stefan Karpinski wrote:
I think that's overly pessimistic – we should be wrapping up 0.4 projects
by end of January and then start stabilizing everything and
There is a ISLR package for R with a bunch of example datasets used in the
book. Those datasets are also available in RDatasets.jl
Doing the ISLR example in Julia would involve a lot of writing of
functionality. Last summer I browsed through the statistics functionality
available in Julia and
in
R.
On Sunday, December 14, 2014 7:10:13 PM UTC+2, webus...@gmail.com wrote:
That's interesting. What sort of stuff was not implemented? I would have
thought (by now) the coverage would be much higher than 30-40%...
On Sunday, December 14, 2014 11:07:05 AM UTC-5, Johan Sigfrids wrote
This was first released in AMD's Bulldozer architecture in 2011. I believe,
and this is speculation on my part, that the long term goal AMD is working
toward are heterogeneous CPUs. This would be a CPU where you have a pile of
high performance integer cores working similar to cores on CPUs
You can specify the type it should be read in as:
juliadata=readcsv(data.txt, String)
6x1 Array{String,2}:
146cd6a978544b0168fb11de000
148b7f63e9e377c9b364000
148b7f63e9e377c9b364000
148ee93eb7c77ef0d249b5d2800
148671515215639117054120400
148ce93eb7c77ef0a249b5d2800
On Monday,
I think you need to worry about correctness before you worry about speed,
because as it is this code makes no sense to me. For example, at the top of
the code you define:
R = size(X, 2)
This means R is an integer. Then, inside your loop, you do:
tmp = randperm(R)
Doing randperm() on
If you want to draw rectangles you might have more luck with Compose.jl,
which is the underlying graphics library used by Gadfly. Although, it is
not very well documented.
On Friday, November 28, 2014 6:49:36 AM UTC+2, Alexander Gruber wrote:
I have a big list of rectangles I'd like to draw.
Would it be impossible to simply have something like:
@Scala begin
person *match* {
*case* Person(Hans,Meyer,7) = Found: Hans Meyer
* case* Person(Heinz,Mustermann,28) = Found: Heinz Mustermann
* case* *_* = Unknown Person
}
end
Without having to have the
you need to tell Julia, not to parse it into a Julia
AST, but into some intermediate representation.
@Scala begin
person match {
ERROR: syntax: extra token match after end of expression
2014-11-16 16:18 GMT+01:00 Johan Sigfrids johan.s...@gmail.com
javascript::
Would
become an extension to normal macros?
But first of all, a prototype is needed anyways... How deeply the
prototype will be integrated later on depends on the feedback, I guess.
2014-11-16 20:01 GMT+01:00 Johan Sigfrids johan.s...@gmail.com
javascript::
Your right. That is a problem
I believe both ApproXD.jl and Dierckx.jl need Julia 0.3, while Julia Studio
is still stuck on 0.2. That is why you can't install them. Until Julia
Studio gets updated to 0.3 you might be better off using something like
IJulia or Juno.
On Friday, November 7, 2014 7:48:41 PM UTC+2,
Arrays are pass-by-reference, so only the reference is copied to the
function. The data in the array is not moved or copied at all. This means
it costs the same no matter how big the array is.
On Monday, October 27, 2014 12:27:30 PM UTC+2, Nils Gudat wrote:
Thanks for your answers. I was
As I understand it in your immutable type GPDataType only stores the
references the Matrix and Vector so it is only the reference which is
immutable, not the arrays themselves, and it is only the reference which is
passed by value.
This also means that the values stored in the arrays
Operating on global variables in Julia is generally slower so you should
definitely pass the array to the function.
On Friday, October 24, 2014 7:43:53 PM UTC+3, Nils Gudat wrote:
A general performance question: when writing functions that operate on a
large number of variables stored in
You can tell ones to construct a array on Ints by passing it a type
parameter:
ones(Int, 1, 3)
With a length of three it doesn't make much difference but with a bigger
array you save a lot of time avoiding the conversion.
On Tuesday, October 14, 2014 3:14:38 AM UTC+3, Miguel Bazdresch wrote:
Would it not be possible to only define indexing on ASCIIString?
I think it sound like a good idea so I filed an issue.
https://github.com/JuliaLang/julia/issues/8568
On Friday, October 3, 2014 5:57:35 PM UTC+3, Erik Schnetter wrote:
I think Jan is asking for a feature of Pkg.update() that would require
explicit confirmation of an update that changes the
The first three questions aren't related to Julia REPL specifically. On
Windows when you launch Julia it runs in a command prompt window, so all
the normal command prompt stuff applies: you change setting by going to
Properties in the drop down menu of the icon in the upper right, and you
copy
So I was looking at allocations in some code and I noticed I sped things up
significantly by changing map to a list comprehension. Doing some
microbenchmarking I noticed that map allocates far more memory than a list
comprehension. Shouldn't they essentially be doing the same thing?
data =
Have you looked at http://Reexport.jlReexport.jl
https://github.com/simonster/Reexport.jl?
On Friday, September 12, 2014 1:57:06 AM UTC+3, Bill Hart wrote:
OK, I can build Nemo. But how do I load modules from Nemo now that it is
installed and built.
For example using Nemo, using Rings,
I believe that for simple cases the compiler is smart enough to remove
bound checking on its own. In that case adding @inbounds won't help.
On Friday, August 29, 2014 8:03:35 PM UTC+3, Ed Scheinerman wrote:
I'd like to use @inbounds also to speed up code that I'm 100% sure has
proper array
Is there a way for a user that downloads the RC4 binary to run the test
suit? That would be a good way to help uncover those pesky bugs.
On Monday, August 18, 2014 6:36:47 PM UTC+3, Stefan Karpinski wrote:
+1,000,000
On Mon, Aug 18, 2014 at 11:25 AM, John Myles White johnmyl...@gmail.com
Performance wise it makes no difference. The JIT will produce the same code
for all three:
foo1(x::Real, y::Real) = x + y
foo2{ T: Real}(x::T, y::T) = x + y
foo3{T : Real, S : Real}(x::T, y::S) = x + y
You can verify it by running @code_native on all of them. They will all
result in the same
Maybe you are running into #5187
https://github.com/JuliaLang/julia/issues/5187?
On Monday, August 18, 2014 3:11:44 PM UTC+3, Davide Lasagna wrote:
Hi all,
Is this a bug or a feature?
julia idx = [1:10]
10-element Array{Int64,1}:
1
2
3
4
5
6
7
8
9
10
julia
Multiplying a DataFrame by a scalar has been deprecated and will not work
once you update to Julia 0.3 and the associated DataFrames version.
On Monday, August 18, 2014 6:10:44 PM UTC+3, Bradley Setzler wrote:
Update: I found a 1-line command to convert everything in a DataFrame into
a Float
For most Julia code I do I use IJulia
https://github.com/JuliaLang/IJulia.jl. For more IDEish environment I use
LightTable http://www.lighttable.com/, along with Juno aka Jupiter-LT
https://github.com/one-more-minute/Jupiter-LT. Sometime I also just rely
on Atom for simple text editor duties.
I think countmap comes closest to giving you what you want:
using StatsBase
data = sample([a, b, c], 20)
countmap(data)
Dict{ASCIIString,Int64} with 3 entries:
c = 3
b = 10
a = 7
On Sunday, August 17, 2014 4:45:21 PM UTC+3, Florian Oswald wrote:
Hi
I'm looking for the best way to
One warning I would give is about leaving a space between the macro name
and the parenthesis with the arguments. This generally does not work in
Julia because Julia has two different macro invocation forms and it mixes
between them.
For example a macro that returns a expression adding its
Yay! I've been eagerly awaiting these.
On Monday, August 11, 2014 2:53:18 PM UTC+3, Jacob Quinn wrote:
Hey all,
Gather round and here the tales of a wonderous new language, presented by Tim
Holy
https://www.youtube.com/watch?v=FA-1B_amwt8list=PLP8iPy9hna6TSRouJfvobfxkZFYiPSvPdindex=1,
I think you could just use Julia's run command
http://julia.readthedocs.org/en/latest/manual/running-external-programs/to
run another instance of Julia and redirect the output to a file.
On Sunday, August 3, 2014 8:04:37 PM UTC+3, Douglas Bates wrote:
I have some long-running tasks that I
Or maybe not. run doesn't run asynchronously.
On Sunday, August 3, 2014 9:07:33 PM UTC+3, Johan Sigfrids wrote:
I think you could just use Julia's run command
http://julia.readthedocs.org/en/latest/manual/running-external-programs/to
run another instance of Julia and redirect the output
I think the parsing is defined here:
https://github.com/JuliaLang/julia/blob/master/src/julia-parser.scm
On Friday, August 1, 2014 2:24:37 PM UTC+3, Marcus Appelros wrote:
Adding a rule that every incidence of anewcustomoperator or 愛 be
interpreted as a function shouldn't cause any
Would a Array{Nullable{Float64}} mean that you couldn't use OpenBLAS
algorithms on the data because the bool value is laid out interleaved with
the data?
On Thursday, July 31, 2014 11:16:19 PM UTC+3, John Myles White wrote:
Array{Nullable{Float64}} is very appealing, but it's not equivalent
MLBase.jl has som data repetition functionality:
http://mlbasejl.readthedocs.org/en/latest/datapre.html#data-repetition
I think you might have to put the Geom.subplot_grid inside the layers.
On Friday, July 25, 2014 7:37:48 PM UTC+3, Leah Hanson wrote:
I am trying to make a relatively complicated graph in Gadfly, and am
struggling.
This is some sample data with the same structure as my data.
~~~
julia t =
I think that if you do
@sync @parallel for nn in doset
...
end
Then it will wait to finish before continuing execution.
On Wednesday, July 9, 2014 7:22:06 PM UTC+3, Thomas Covert wrote:
alright that didn't do it either. when I run this code interactively the
write to disk steps get
Not ideal, but I do this:
using Gadfly, RDatasets
theme = Theme(
minor_label_color=color(#aa),
major_label_color=color(#dcdccc),
point_label_color=color(#dcdccc),
key_title_color=color(#cc),
key_label_color=color(#dcdccc))
plot(dataset(car, SLID), x=Wages, color=Language,
There is an open issue https://github.com/JuliaLang/julia/issues/7054 for
Pkg.rm()
not removing broken packages.
On Monday, July 7, 2014 10:32:00 PM UTC+3, Simon Danisch wrote:
The flickering reflects the framerate, so congratulations to all of the
people which got intense, unbearable
I think there is a GSoC project ongoing to add OpenGL based plotting to
Julia, but I don't know that it is in a usable state yet.
On Sunday, July 6, 2014 10:01:29 AM UTC+3, Sheehan Olver wrote:
I'm currently using matplotlib for 3d plotting, but it seems very slow,
even though the # of
I get a windows with a triangle and a blue/black background, which I take
it means everything Just Worked*™*.
Easiest way to run the test is to do Pkg.test(ModernGL)
On Monday, July 7, 2014 12:11:41 AM UTC+3, Simon Danisch wrote:
Hi,
I'm slowly trying to push out a stable version of GLPlot.
There is a Autoreload.jl https://github.com/malmaud/Autoreload.jl package
modeled after IPython's autoreload extension.
On Saturday, July 5, 2014 2:47:24 AM UTC+3, Andrei Zh wrote:
I'm trying to find my way developing Julia code interactively. In other
languages (e.g. Python, R, Octave,
)
ErrorException(dropna not defined)
I read the documentation and they both say the same thing but it doesn't seem
to work in my case.
Thoughts?
Thanks,
Don
On Thursday, July 3, 2014 7:54:49 PM UTC-4, Johan Sigfrids wrote:
You can use dropna() to convert a DataArray to a Array
If you do dump(data) then you see that for that specific dataset :Sex is
already pooled. They way to pool it if it wasn't areadly pooled would be
pool!(data,
:Sex).
On Friday, July 4, 2014 10:46:17 PM UTC+3, Florian Oswald wrote:
Hi,
say I want to use the GLM package to run a regression
You can use dropna() to convert a DataArray to a Array. This will obviously
drop any missing values.
On Friday, July 4, 2014 2:08:55 AM UTC+3, Donald Lacombe wrote:
Patrick (and others),
Another issue that has reared it's ugly head is that when I read the data
using the Data Frames
I don't know exactly how the Distance functions are to be used but if you
do methods(pairwise) you see that it is only define if x and y are two
dimensional.
On Wednesday, July 2, 2014 5:22:58 PM UTC+3, Donald Lacombe wrote:
Greetings!
I am a new Julia user and have the following issue. I
I can't get Gadfly to plot anything. It gives me this error:
WARNING: Jewel: pad_inner not defined
in render at C:\Users\admin\.julia\v0.3\Gadfly\src\Gadfly.jl:643
in writemime at C:\Users\admin\.julia\v0.3\Gadfly\src\Gadfly.jl:736
in sprint at io.jl:465
in display_result at
, Johan Sigfrids wrote:
I can't get Gadfly to plot anything. It gives me this error:
WARNING: Jewel: pad_inner not defined
in render at C:\Users\admin\.julia\v0.3\Gadfly\src\Gadfly.jl:643
in writemime at C:\Users\admin\.julia\v0.3\Gadfly\src\Gadfly.jl:736
in sprint at io.jl:465
Do you need to add some package Julia side to make this work?
On Sunday, June 29, 2014 12:46:21 PM UTC+3, Mike Innes wrote:
Hey all,
I've released the latest version of the Julia environment
https://github.com/one-more-minute/Jupiter-LT I'm building. There are a
whole bunch of
working you can
of course run Pkg.add(Jewel) by hand – let me know if there are any
issues with that and I'll see what I can do.
On 29 June 2014 18:22, Johan Sigfrids johan.s...@gmail.com javascript:
wrote:
Do you need to add some package Julia side to make this work?
On Sunday, June 29
\src\LightTable\eval.jl:32
in anonymous at C:\j\.julia\v0.3\Jewel\src\LightTable\eval.jl:28
Domingo, 29 de Junho de 2014 18:54:43 UTC+1, Johan Sigfrids escreveu:
Well, apparently it had installed Jewel, bur running Pkg.update() did
install a update for it. It is still throwing an error
I suspect it is easier to just pre-allocate an array of the correct
dimensions and then assign into it. Something like this:
function lowpassarray(arr::Vector{Float64})
out = Array(Float64, length(arr), 3)
s = 0.0
for i in 1:length(arr)
out[i, 1] = arr[i]
out[i, 2],
I think you can do it with: layer(..., Theme(default_color=color(red)))
On Tuesday, June 10, 2014 12:56:19 PM UTC+3, Stéphane Laurent wrote:
Mmm no really need in fact, it's easy with layer().
However I don't find how to control the color of a layer ?
Le mardi 10 juin 2014 11:00:04 UTC+2,
b .+ 2 creates a new array, which then b is assigned to.
On Friday, May 30, 2014 12:32:00 PM UTC+3, paul analyst wrote:
I see, but what is the difference between:
b [2,3] = 3
and
b = b.+2
Paul
W dniu 2014-05-30 10:11, Tomas Lycken pisze:
@Paul,
Try
julia a = ones(5,5);
Add a semicolon after the function call: c = myFunc(a,b);
Besides the performance, type system and multiple dispatch the Julia
language also has several nice conveniences.
1. List comprehension which makes it easy to construct vectors and matrices
of various kinds:
julia [ sqrt(exp(i))-j for i = 1:8, j = 1:8]
8x8 Array{Float64,2}:
0.648721
I don't understand this bit: Numpy's notation has the advantage to make
the most expensive operations harder to write, it also easily reminds us
that arrays in numpy are row-major. How does this make the more expensive
operation harder to write?
To me (but I didn't design Julia so what do I
I myself have been hitting my head against the wall that is
meta-programming in Julia. I think I can answer your first question at
least.
Q1: This is because the line poly = emptyPoly doesn't create a new copy of
a ploygon but a reference to the empty one so that both poly and emptyPoly
refer
that this is not true.
On Thursday, May 8, 2014, Johan Sigfrids johan.s...@gmail.com wrote:
I myself have been hitting my head against the wall that is
meta-programming in Julia. I think I can answer your first question at
least.
Q1: This is because the line poly = emptyPoly doesn't create
Apparently its something that's been fixed or changed after 0.2. It works
fine on 0.3.
On Thursday, May 8, 2014 7:03:03 PM UTC+3, Stéphane Laurent wrote:
If I'm using your code verbatim I get
julia removeLine(poly,1)
ErrorException(type Poly has no field op)
julia versioninfo()
Julia does not have classes so in that sense functions and data are
separate. What Julia has as objects is composite types where state is
maintained in the object. You then define methods on functions outside the
type that operate on types. Because of multiple dispatch you cannot tie a
that that actually worked.
There is also a old open issue in
#5067https://github.com/JuliaLang/julia/issues/5067,
but it seems abandoned.
Ivar
kl. 14:41:45 UTC+2 mandag 5. mai 2014 skrev Johan Sigfrids følgende:
I figured I could use methodswith() to find what functions I can call on
a LmMod in GLM
I look forward to being able to plot data in a 3D space and then explore it
with a Occulus Rift.
Sounds like this issue I had: https://github.com/JuliaStats/GLM.jl/issues/61
The solution was to update Julia.
Too bad there isn't a inverse if statement like:
do_stuff() if i == 1
I'm no expert on writing OSes but without an OS you have no memory
management, so no heap. I don't think Julia's memory model would work.
There is a reason OS kernels are written in C. You need a language which
lets you read and write directly to memory addresses. If you want something
better
I wonder if there is some closed-form solution do the Divisor Function that
Mathematica might be using in DivisorSigma[1, n]. That might explain how
Mathematica is so fast.
If the file name is different from the module name you have to tell Julia
to include it first:
include(a.jl)
using A
foo()
This is not necessary when the module and file name are the same. When you
call using A command tries to include(A.jl).
On Thursday, February 27, 2014 4:47:37 PM UTC+2,
I would guess the problem is that you are using the left and right
quotations marks rather than the vertical quotations mark, and Julia sees
them as different characters.
On Thursday, February 27, 2014 10:08:20 PM UTC+2, Henrik L Nordmark wrote:
Thanks for your swift reply John!
I thought
This is actually a really good question. I found myself wondering the same
thing the other day.
On Monday, February 24, 2014 1:54:59 PM UTC+2, andrew cooke wrote:
Working on the finite field code I found myself asking what is a Number?.
One answer is:
julia Base.subtypetree(Number)
I've been playing with a Degree type in Julia, and have set it up so I can
use ° to construct Degrees:
module Degrees
export Degree, °
immutable Degree{T:Number} :Number
d::T
end
immutable DegreeSign end
const ° = DegreeSign()
*(num::Number, s::DegreeSign) = Degree(num)
On Saturday, February 15, 2014 8:49:01 PM UTC+2, Kevin Squire wrote:
You might have figured this out by now, if you have a parameterized family
of types Degree{T}, there is no unparameterized version available, so you
either have to
1) provide a default constructor which creates the
Oh, you beat me to it. I was just about to say that using a Degree type and
dispatching on it would be a lot more Julian. In fact, I had this great
idea on how to use the degree sign to construct degrees:
module DegreeModule
export Degree, DegreeSign, °
immutable Degree{T:Number} :Number
Issue #484 https://github.com/JuliaStats/DataFrames.jl/pull/484 seems to
indicate it is on purpose.
On Wednesday, February 5, 2014 3:00:39 PM UTC+2, Christian Groll wrote:
Since updating DataFrames and DataArrays recently, operators and basic
functions are not working on DataFrames anymore.
Yes, plain ipython notebooks work fine.
On Monday, February 3, 2014 8:08:42 AM UTC+2, Steven G. Johnson wrote:
This looks like an error on the IPython side, not in in Julia.
If you just run ipython notebook to open a Python notebook (not IJulia),
does it work?
(Be aware that running a
1 - 100 of 106 matches
Mail list logo