[julia-users] Re: Julia for app development using react native and emscripten/WASM (or other)

2016-03-05 Thread Eric Forgy
Hi datnamer,

Have you seen this?

   - Support compiling to JavaScript with Emscripten 
   
   
I am looking forward to this capability. WebAssembly 
 looks very promising too.

Cheers,
Eric


On Sunday, March 6, 2016 at 10:47:02 AM UTC+8, datnamer wrote:
>
> Hi everyone.
>
> Question about julia's future utility for univeral app developement.
>
> Will static compile and emscripten eventually allow Julia to compile to JS 
> that can be used in react native? 
>
> What are the other potential avenues for Julia mobile and multi platform 
> apps? 
>
> Thanks 
>
>
>
>
>

[julia-users] GSoC project - "Calling Julia from Python"

2016-03-05 Thread Manu Jain
Hi

I am Manu Jain, a third year undergraduate in Computer Science and 
Engineering from IIIT-Hyderabad. I have a good knowledge of C,C++ and 
Python languages. I am interested in the project "Calling Julia from 
Python". I am reading about Julia from past 3-4 days and has developed 
quite interest in it. This project requires Julia as a separate package of 
python so it can be imported and called from python itself. Julia has many 
built-in libraries which can directly be called from python and thus easing 
user's work.
Can someone guide to develop a more deeper understanding about this. Also 
is someone ready to mentor this project?

Thanks
Manu Jain


[julia-users] Julia for app development using react native and emscripten/WASM (or other)

2016-03-05 Thread datnamer
Hi everyone.

Question about julia's future utility for univeral app developement.

Will static compile and emscripten eventually allow Julia to compile to JS 
that can be used in react native? 

What are the other potential avenues for Julia mobile and multi platform 
apps? 

Thanks 






Re: [julia-users] Concurrently install two versions of Julia

2016-03-05 Thread Abel Siqueira
If you use the Generic Linux Binaries, you can

sudo ln -s /path/to/julia /usr/local/lib/julia-some-name

For each downloaded version.

Abel Soares Siqueira

2016-03-05 14:48 GMT-03:00 Pulkit Agarwal :

> Hi,
>
> Is there a way to have the stable version of Julia as the global Julia
> (i.e. something which can be accessed by calling `julia` from the command
> line) and the development version of Julia (which will be stored in some
> other folder).
>
> Thanks,
> Pulkit
>


[julia-users] Google Summer of Code

2016-03-05 Thread Kaivan Shah
Hi,

I am interested in working on one of the ideas on the page - *Specialized 
call-site method caching. *I am a Junior at University of Texas at Austin 
and my major is Computer Science. I would rate my competency level in C++, 
Java and Haskell as intermediate, though I am foreign to Julia. But as the 
requirement implies that this project will help me familiarize with Julia.

If I could talk to the mentor to discuss more about the idea and the next 
steps, it would be great. Looking forward to hear back from you.

Thank you,
Kaivan Shah
University of Texas at Austin
Class of 2017


[julia-users] Concurrently install two versions of Julia

2016-03-05 Thread Pulkit Agarwal
Hi,

Is there a way to have the stable version of Julia as the global Julia 
(i.e. something which can be accessed by calling `julia` from the command 
line) and the development version of Julia (which will be stored in some 
other folder).

Thanks,
Pulkit


Re: [julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-05 Thread lewis . hein
Quite possibly I could. I wasn't aware of Interpolations.jl when I built 
the splines library.

Note: I have now released the splines package 
(https://github.com/LewisHein/Splines.jl) and updated the install 
instructions. So the MathGL package *should* install without problems now.

Please let me know if there is anything more I haven't fixed

On Saturday, March 5, 2016 at 3:09:38 AM UTC-7, Tomas Lycken wrote:
>
> Just guessing by the name, but it seems to me that you might be able to 
> leverage Interpolations.jl to get rid of the dependency on Splines.jl.
>
> https://github.com/tlycken/Interpolations.jl 
>
> // T 
>


Re: [julia-users] Parametric types... types?!

2016-03-05 Thread Adrian Salceanu


sâmbătă, 5 martie 2016, 22:59:33 UTC+1, Milan Bouchet-Valat a scris:
>
> Le samedi 05 mars 2016 à 13:42 -0800, Adrian Salceanu a écrit : 
> > Gentleman, I stumbled onto this one in my code, and despite trying 
> > all the possible combinations I could think of, no dice.  
> > 
> > I have this simple type hierarchy:  
> > 
> > abstract Model 
> > type Package <: Model 
> > type Repo <: Model 
> > 
> > The Model type is an ORM and it defines a series of methods that 
> > operate on Model subtypes.  
> > 
> > ex:  
> > function save{T<:Model}(m::T) 
> Note that this can be written more simply as: 
> function save(m::Model) 
>

I noticed that this works too, but I find that the longer syntax better 
transmits the notion that the method expects a subtype, rather than the 
type itself. Of course, this is lees important in Julia, where the super 
type can only be abstract. 
 

>
> (the longer syntax is only useful when T is a parameter of another 
> argument type) 
>
> > So far so good.  
> > 
> > Now, according to ORM architecture and design patterns, an instance 
> > of a subtype represents a table row, while the class itself 
> > represents the table. And of course there are plenty of such 
> > methods.  
> > For instance, the find_one_by function, which takes the type itself 
> > (the table).  
> > 
> > function find_one_by(m, column_name::SQLColumn, value::SQLInput) # 
> > this works, with m::Any 
> > 
> > The question is, how can I define this method so that it accepts all 
> > the types of the subtypes of Model?  
> > 
> > I tried multiple combinations, such as:  
> > function find_one_by{T<:Type{Model}}(m::T, column_name::SQLColumn, 
> > value::SQLInput) 
> > 
> > none was good. :( Any ideas?  
> Use this: 
> find_one_by{T<:Model}(m::Type{T}, ... 
>
>
It works! Wow, awesome! Many thanks!
 

>
>
> Regards 
>


Re: [julia-users] Parametric types... types?!

2016-03-05 Thread Milan Bouchet-Valat
Le samedi 05 mars 2016 à 13:42 -0800, Adrian Salceanu a écrit :
> Gentleman, I stumbled onto this one in my code, and despite trying
> all the possible combinations I could think of, no dice. 
> 
> I have this simple type hierarchy: 
> 
> abstract Model
> type Package <: Model
> type Repo <: Model
> 
> The Model type is an ORM and it defines a series of methods that
> operate on Model subtypes. 
> 
> ex: 
> function save{T<:Model}(m::T)
Note that this can be written more simply as:
function save(m::Model)

(the longer syntax is only useful when T is a parameter of another
argument type)

> So far so good. 
> 
> Now, according to ORM architecture and design patterns, an instance
> of a subtype represents a table row, while the class itself
> represents the table. And of course there are plenty of such
> methods. 
> For instance, the find_one_by function, which takes the type itself
> (the table). 
> 
> function find_one_by(m, column_name::SQLColumn, value::SQLInput) #
> this works, with m::Any
> 
> The question is, how can I define this method so that it accepts all
> the types of the subtypes of Model? 
> 
> I tried multiple combinations, such as: 
> function find_one_by{T<:Type{Model}}(m::T, column_name::SQLColumn,
> value::SQLInput)
> 
> none was good. :( Any ideas? 
Use this:
find_one_by{T<:Model}(m::Type{T}, ...



Regards


[julia-users] Parametric types... types?!

2016-03-05 Thread Adrian Salceanu
Gentleman, I stumbled onto this one in my code, and despite trying all the 
possible combinations I could think of, no dice. 

I have this simple type hierarchy: 

abstract Model
type Package <: Model
type Repo <: Model

The Model type is an ORM and it defines a series of methods that operate on 
Model subtypes. 

ex: 
function save{T<:Model}(m::T)

So far so good. 

Now, according to ORM architecture and design patterns, an instance of a 
subtype represents a table row, while the class itself represents the 
table. And of course there are plenty of such methods. 
For instance, the find_one_by function, which takes the type itself (the 
table). 

function find_one_by(m, column_name::SQLColumn, value::SQLInput) # this 
works, with m::Any

The question is, how can I define this method so that it accepts all the 
types of the subtypes of Model? 

I tried multiple combinations, such as: 
function find_one_by{T<:Type{Model}}(m::T, column_name::SQLColumn, 
value::SQLInput)

none was good. :( Any ideas? 


Re: [julia-users] Re: JuliaCon 2016: Program Committee Office Hours on the 5th of March at 15:00 UTC

2016-03-05 Thread Pontus Stenetorp
We are having some issues with the "Hangout On Air" interface and have
switched to a "vanilla" Hangout instead, please use the link below.
To bring up the chat, I think that you need to switch to the "old"
interface, if someone knows how to bring it up in the new interface,
do tell me.

https://hangouts.google.com/call/pgmr7xuokzgwlbtm6gosuvu6aee


[julia-users] Re: Auto save/write Julia command history/log

2016-03-05 Thread James Chen
Thank you for the reply, Steven. 

The command above does return a few recent input. 

The notebook suggestion is great, meets what I hope to do. 

On Saturday, March 5, 2016 at 10:22:26 PM UTC+8, Steven G. Johnson wrote:
>
> Good question.  I dug around, and it turns out that you can get the 
> history as an array of strings via
>
> Base.active_repl.interface.modes[1].hist.history
>
>
> but it would be nice to have a documented way to get at this kind of 
> information.  A pull request with some feature along these lines would be 
> welcome.
>
> Note that if you find yourself wanting to save a log of your session, I 
> would highly recommend using an IJulia notebook instead.  That saves the 
> commands and the output (including plots), and allows you to add formatted 
> annotations.
>
> Steven
>


[julia-users] Re: Bug in daxpy! ???

2016-03-05 Thread Steven G. Johnson
That looks like a bug.  Can you please file an issue on github?   Or better 
yet, a pull request with a patch and a regression test?


[julia-users] Re: Auto save/write Julia command history/log

2016-03-05 Thread Steven G. Johnson
Good question.  I dug around, and it turns out that you can get the history 
as an array of strings via

Base.active_repl.interface.modes[1].hist.history


but it would be nice to have a documented way to get at this kind of 
information.  A pull request with some feature along these lines would be 
welcome.

Note that if you find yourself wanting to save a log of your session, I 
would highly recommend using an IJulia notebook instead.  That saves the 
commands and the output (including plots), and allows you to add formatted 
annotations.

Steven


[julia-users] Auto save/write Julia command history/log

2016-03-05 Thread James Chen
Hi,
I am looking for replicate matlab command "diary" function in julia. 
diary

Save Command Window text to file


The ".julia_history" file is not friendly to read. 

Is there any quick way to save or write Julia command history/log during a 
certain period (for example, from start until exit) to a txt file? 


[julia-users] OAuth 2.0 and Azure AD

2016-03-05 Thread Eric Forgy
Hi,

I am trying to write a "trusted" application in Julia that can login 
silently to Azure AD using known credentials (username/password). I found 
some ways to do this with .NET libraries, but having trouble reverse 
engineering them to a point I can implement the same in Julia.

It is probably a long shot, but I was wondering if anyone has had any luck 
logging in Azure AD from Julia silently without being prompted for 
username/password?

Any ideas would be greatly appreciated. I've been scratching my head for a 
couple days now.

Thanks!

Best regards,
Eric


Re: [julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-05 Thread Tomas Lycken
Just guessing by the name, but it seems to me that you might be able to 
leverage Interpolations.jl to get rid of the dependency on Splines.jl.

https://github.com/tlycken/Interpolations.jl 

// T