[julia-users] Re: [ANN] Nemo 0.5 released

2016-07-30 Thread Marcus Appelros
The use case is similar to AlphaGo, ie deterministic full information game with a huge state space. That reinforcement package looks interesting, looking into it. Love to collaborate

[julia-users] [ANN] Nemo 0.5 released

2016-07-30 Thread Marcus Appelros
Is Nemo suitable for reinforcement learning?

[julia-users] Re: How to get the particular value from the table

2016-06-07 Thread Marcus Appelros
Alternatively readdlm("file.text",',') might be sufficient.

[julia-users] Re: How to get the particular value from the table

2016-06-07 Thread Marcus Appelros
If it is in text format you can do readall("file.text") then call split (a few times) on the string(s)

[julia-users] Re: Questions on Julia language stablity and backward-incompatible changes for future release

2015-10-17 Thread Marcus Appelros
What is the scope of your project?

[julia-users] Announcing TimeZones.jl

2015-10-17 Thread Marcus Appelros
Good job! PS: Quinn is such a beautiful name, just had to say that.

[julia-users] Re: Is there a direct way to get binary representation of a float?

2015-10-17 Thread Marcus Appelros
Also possible with the bits function: julia> bits(1.0) "0011"

[julia-users] Re: Meetup group in Stockholm, Sweden?

2015-06-07 Thread Marcus Appelros
Swedish national traveling a lot, currently in Kenya, will arrive in Stockholm next saturday. Welcoming new connections both for sporadic meetings and larger gatherings, gmail and fb: marcus.appelros

[julia-users] Re: Julia Summer of Code

2015-05-24 Thread Marcus Appelros
Am applying with the Equations package along with a ongoing project to develop a course and offer bounties to contributors in the developing world. Sort of already have a mentor, the director of the information technology institute at Vietnam national university Aiviet Nguyen who invited the

Re: [julia-users] Re: Symbolic relations package

2015-05-20 Thread Marcus Appelros
Real (100% score in the course) usage: http://artai.co/Plasma.html

Re: [julia-users] JuliaCon registrations open

2015-05-12 Thread Marcus Appelros
OK, am interested in volunteering for Julia generally, have prepared a message that fits better in the pinned post. Do send word if you find some JuliaCon task that can be handled from a distance, currently doing projects in Kenya so flying to Boston with a weeks notice would be hard.

[julia-users] Re: Julia will always be open source

2015-05-12 Thread Marcus Appelros
Am interested in being part of this venture. Every undertaking must be motivated as optimally beneficient for the world as a whole, therefore the following proposal might be acceptable to all: Will do consulting on implementing Julian AI/physics/math in exchange for donations to charitable

[julia-users] Re: JuliaCon registrations open

2015-05-12 Thread Marcus Appelros
Sent an email to the JuliaCon adress about volunteering but have not received a reply.

Re: [julia-users] Re: Symbolic relations package

2015-05-05 Thread Marcus Appelros
One function felt like one too many so now an efficient workflow comprised solely of equations operating on equations is possible, am putting the package and the new workflow to the test in this plasma physics course: https://www.edx.org/course/plasma-physics-applications-epflx-plasmax So far

[julia-users] Immutable type creation from array

2015-05-02 Thread Marcus Appelros
This is the use case: abstract Component with a getargs(c::Component) that returns an array with the fields of components, for concreteness lets say a Der type with the fields x and dy. We want to be able to fetch the fields, mutate the array (say replace all :a with :b^2) and then return a

Re: [julia-users] Immutable type creation from array

2015-05-02 Thread Marcus Appelros
...) end On Sat, 2015-05-02 at 12:15, Marcus Appelros marcus.appel...@gmail.com wrote: One very crude way it can be done: function mutateimmutable(c::Component) fields=getargs(c) mutate!(fields) if length(fields)==1 return typeof(c)(fields[1]) elseif length(fields)==2

Re: [julia-users] Immutable type creation from array

2015-05-02 Thread Marcus Appelros
mauro...@runbox.com wrote: Maybe some pseudo code would make understanding your problem easier? On Sat, 2015-05-02 at 10:34, Marcus Appelros marcus.appel...@gmail.com wrote: This is the use case: abstract Component with a getargs(c::Component) that returns an array with the fields

Re: [julia-users] Re: Custom Array type

2015-04-25 Thread Marcus Appelros
C it is storing the identifier Array somewhere. We can create a identical constructor with the difference that it accepts a keyword for what to write in place of Array. On 25/04/2015, Mauro mauro...@runbox.com wrote: On Sat, 2015-04-25 at 19:55, Marcus Appelros marcus.appel...@gmail.com wrote

[julia-users] Re: Custom Array type

2015-04-25 Thread Marcus Appelros
Which is exactly what should be possible to avoid, if we anyhow have to define all the functions what is the meaning in descending from AbstractArray? The usefulness of having an abstract Component is to make concrete instances that retain all the abstract functionality. On Saturday, 25 April

[julia-users] Re: Custom Array type

2015-04-25 Thread Marcus Appelros
Feels somehow sufficient to direct all functions to the data field. We can have a macro like @foranyfunction f(c::Cubes,a::AnyArgs)=f(c.data,a) What you really want to be able to do is delegate everything to the .data member, but there's no convenient way to do that There are some existing

[julia-users] Custom Array type

2015-04-25 Thread Marcus Appelros
Consider the definitions: type Cubes:AbstractArray end sum(cubes::Cubes)=sum(convert(Array,cubes).^3) Is it possible to make this work? To create a custom array that has indexing and all at inception? Looked up the definition of Array and it is in the commented section on types implemented in

Re: [julia-users] Custom Array type

2015-04-25 Thread Marcus Appelros
That gives the following error on 0.3 and 0.4: julia type Cubes:AbstractArray;data;end julia c=Cubes([1,2,3]) Error showing value of type Cubes: ERROR: MethodError: `size` has no method matching size(::Cubes) Closest candidates are: size(::Any, ::Integer, ::Integer, ::Integer...) in showarray

Re: [julia-users] Custom Array type

2015-04-25 Thread Marcus Appelros
If size is defined the result is possibly stranger: julia type Cubes{T,N} : AbstractArray{T,N} data::Array{T,N} end julia Base.size(c::Cubes)=size(c.data) size (generic function with 52 methods) julia Cubes([1,2,3]) 3-element Cubes{Int64,1}: #undef #undef #undef Identical

Re: [julia-users] Re: Symbolic relations package

2015-04-21 Thread Marcus Appelros
, 13:16:02 (UTC+2), Marcus Appelros escribió: Which cases can not be handled by your native expander? A lot of cases, IIRC it only does binomial expansion. Currently Equations should handle all standard cases I checked it out tried a few things. It's very nice. The expansion worked fine

Re: [julia-users] Re: Symbolic relations package

2015-04-20 Thread Marcus Appelros
Thank you for offering to help. I would like to phase out SymPy, but I don't see it happening in the foreseeable future. I'm not sure how to quantify the amount of capability in SymPy, but it is more or less enormous. I think I could work 8 hours a day for a year and not duplicate it in Julia.

Re: [julia-users] Re: Symbolic relations package

2015-04-20 Thread Marcus Appelros
Awesome! Do you have plans to eventually phase out the SymPy dependency? We can collaborate on that! On Monday, 20 April 2015 15:16:08 UTC+3, lapeyre@gmail.com wrote: Here is SJulia https://github.com/jlapeyre/SJulia

Re: [julia-users] Symbolic relations package

2015-04-20 Thread Marcus Appelros
of it. -viral On 20-Apr-2015, at 11:34 pm, Marcus Appelros marcus.appel...@gmail.com wrote: Currently some modifications to REPL.jl are needed, there is a fork made which does exactly that. Am trying to test some of the examples in the SJulia readme, keep in mind that this is on a old

Re: [julia-users] custom type equality

2015-04-19 Thread Marcus Appelros
Wrote it from the phone so not at the time, have used a similar solution where at first the initial if was missing so different types with the same arguments returned true. Just did a benchmark with 3 cases, one with the literal function above (after fixing the missing ')'), one with n directly

[julia-users] Re: Symbolic relations package

2015-04-19 Thread Marcus Appelros
Looking for testers and testwriters, especially for recent versions since the internet connection here (not so central Kenya) does not allow frequent updates. Pkg.clone(git://github.com/jhlq/Equations.jl.git) WIP: * A generic matches(ex::Expression,pattern::Expression) so instead of applying

Re: [julia-users] Re: Symbolic relations package

2015-04-19 Thread Marcus Appelros
Hi Kevin, thanks for the link! From the end of that thread: Has anybody written pure Julia symbolic math for things like: f = (x**y + y**z + z**x)**100 g = f.expand() As far as I know there is no Julia package which supports such symbolic expressions and manipulation. Now there is! Saw a

Re: [julia-users] custom type equality

2015-04-18 Thread Marcus Appelros
For a generic solution that works on all new types you can create a common ancestor and define function ==(a::Ancestor, b::Ancestor) if isa(a,typeof(b) na=names(a) for n in 1:length(na) if getfield(a,na[n])!=getfield(b,na[n]) return false end

[julia-users] Can't use

2015-04-15 Thread Marcus Appelros
What is the output of methods(head)?

Re: [julia-users] Can't use

2015-04-15 Thread Marcus Appelros
The code you posted works fine here... Are you using some other package also that supplies another head? Which versions do you have?

[julia-users] Re: Symbolic relations package

2015-04-15 Thread Marcus Appelros
RFC: https://github.com/jhlq/Equations.jl git://github.com/jhlq/Equations.jl.git

[julia-users] Re: Symbolic relations package

2015-04-13 Thread Marcus Appelros
How about Equations? It captures the main theme so that people scrolling through the list of packages will instantly gather its purpose. Any other suggestions or objections? On Sunday, 12 April 2015 14:02:02 UTC+3, Marcus Appelros wrote: Am working on code to derive mathematical relations

[julia-users] Symbolic relations package

2015-04-12 Thread Marcus Appelros
Am working on code to derive mathematical relations, its initial purpose was in the field of non-commutative geometry however it appears to have become generally useful, feels like a good idea if we make the base self contained and release it as a separate package upon which more specialized

[julia-users] Re: Custom operators

2014-08-01 Thread Marcus Appelros
for a function, but others are available for a user to define. Ivar kl. 11:33:18 UTC+2 fredag 1. august 2014 skrev Marcus Appelros følgende: Say I want an operator o so that any expression like: aob is evaluated as: o(a,b) where o(a,b) can be set to any arbitrary function: o(a,b)=f(a,b

[julia-users] Re: Custom operators

2014-08-01 Thread Marcus Appelros
be some subtle differences. Ivar kl. 11:58:07 UTC+2 fredag 1. august 2014 skrev Marcus Appelros følgende: Say I want to change the parser so that a arbitrary character is parsed as an operator, how can this be done? Den fredagen den 1:e augusti 2014 kl. 11:49:50 UTC+2 skrev Ivar Nesje

[julia-users] Re: Custom operators

2014-08-01 Thread Marcus Appelros
Perfect, thank you! Den fredagen den 1:e augusti 2014 kl. 13:28:37 UTC+2 skrev Johan Sigfrids: 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

[julia-users] OpenGL error: Ptr element type

2014-03-17 Thread Marcus Appelros
Modified NeHe tut 2 to draw circles and now trying to save them to a file. Have tried multiple combinations of the code below and also asked on IRC. pix=Array(GLubyte,width*height*3)#Ptr{GLubyte} glReadPixels(0,0,width,height,GL_RGB,GL_UNSIGNED_BYTE,pix) Result: ERROR: error compiling

[julia-users] HttpServer images

2014-02-10 Thread Marcus Appelros
Trying to setup a server that makes files in a folder available for download. Html files can be loaded by the server and accessed (+javascript interaction) via localhost:8000, the html file displaying a image works when viewed directly in firefox, the image is in the same folder (named html)

Re: [julia-users] HttpServer images

2014-02-10 Thread Marcus Appelros
(but am not sure) that HttpServer always returned HTML as the MIME type. -- John On Feb 10, 2014, at 11:06 AM, Marcus Appelros marcus@gmail.comjavascript: wrote: Trying to setup a server that makes files in a folder available for download. Html files can be loaded