[julia-users] Re: What is the equivalent of " return 0; " used in C in Julia during successful completion of program ?

2016-08-15 Thread Rishabh Raghunath
Got it !!.. Thanks a lot !! On Monday, August 15, 2016 at 11:10:15 AM UTC+5:30, Rishabh Raghunath wrote: > > Hello Julia Users.. > I'd like to know What the equivalent of "return 0 used in C" is in Julia > while completion of program .. > And.. > I have an issue with juno ide.. Juno is not

[julia-users] Re: Please Help.. Unable to get Input in Juno IDE

2016-08-15 Thread Rishabh Raghunath
I'm Sorry .. But I don't quite understand what you are saying.. My problem is that I am unable to type in an input in the Juno console like I could before.. It simply does not give me a place to write in my input to the julia program via the console.. This is a new problem I am experiencing and

[julia-users] object properties variable

2016-08-15 Thread Lewis Lehe
Hi I was wondering if there is a way to do this? To access a fieldname with a variable? type Foo bar:Float64 end foo = Foo(5.0) test = :bar foo[test] Also, I wondered if there is a way to convert an object into a dict? I want to "println" an object in a way that's readable in the output,

Re: [julia-users] Re: JupyterLab

2016-08-15 Thread Yichao Yu
On Tue, Aug 16, 2016 at 7:03 AM, Henri Girard wrote: > I installed git jupyter lab. It works like a normal jupyter, but as I use > ijulia 0.5 rc2 everything is very slow on my pc. Most of the time I have to > run the program in a julia console before getting anything

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Yichao Yu
On Tue, Aug 16, 2016 at 4:37 AM, Adrian Salceanu wrote: > > I was thinking about having the module itself defined in the controller > for example (or some other standalone .jl source file), completely outside > the templating engine itself, and then referencing the

[julia-users] Re: JupyterLab

2016-08-15 Thread Henri Girard
I installed git jupyter lab. It works like a normal jupyter, but as I use ijulia 0.5 rc2 everything is very slow on my pc. Most of the time I have to run the program in a julia console before getting anything display in ijulia, it's not really satisfying at the moment, very very slow, I am

[julia-users] where is libmpfr found?

2016-08-15 Thread Jeffrey Sarnoff
What is the generally applicable expression which, from within Julia, gives the full path to libmpfr?

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Adrian Salceanu
Ah, of course! I don't know why I missed that, I was stuck looking for something that would be line aware, in the line of quote blocks. luni, 15 august 2016, 23:02:58 UTC+2, Stefan Karpinski a scris: > > On Mon, Aug 15, 2016 at 4:53 PM, Adrian Salceanu > wrote: > >> >>

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Adrian Salceanu
> Not sure what do you mean by `mixin`. all of `include_string`, `eval` and `include` works in the scope of current module, none of them will see anything in the scope of the function that calls them. Right. So if I execute "eval()" and "include_string()" within a module other than Main

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Stefan Karpinski
On Mon, Aug 15, 2016 at 4:53 PM, Adrian Salceanu wrote: > > > parse() supports this by allowing you to parse expression by expression > within the string > > I searched the docs (on the website and using Dash) but I could not find > that - is it undocumented or

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Adrian Salceanu
> And you can and should know that after the parsing. Say there's this line of template code: <% if lang == "en" %> How would I know that "lang" is the name of one of the vars, without rolling my own julia-like parser? > I highly doubt you want to allow embedding arbitrary julia code

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Adrian Salceanu
Thank you very much Yichao I'm afraid then that I don't fully understand the consequences of all the steps in this workflow. Let me see if I get things right (sorry if some of my questions are dumb or seem obvious and thanks for your patience). > Unless the user only do that once at compile

Re: [julia-users] Website issue

2016-08-15 Thread Stefan Karpinski
If you're volunteering to maintain that server, then I totally agree :) On Mon, Aug 15, 2016 at 12:19 PM, Eric Forgy wrote: > Would be nice if julialang.org were hosted on a Julia server. Just saying > :) > > On Monday, August 15, 2016 at 10:53:33 PM UTC+8, Stefan

Re: [julia-users] Please Help.. Unable to get Input in Juno IDE

2016-08-15 Thread Stefan Karpinski
I don't think that reading from STDIN in the context of Juno makes much sense. What is the standard input stream? On Mon, Aug 15, 2016 at 1:56 AM, Rishabh Raghunath wrote: > Hello Julia Users.. > I have been experiencing a new problem with juno ide.. > I am not able to

Re: [julia-users] Website issue

2016-08-15 Thread Eric Forgy
Would be nice if julialang.org were hosted on a Julia server. Just saying :) On Monday, August 15, 2016 at 10:53:33 PM UTC+8, Stefan Karpinski wrote: > > Unless GitHub adds support or we change hosting, julialang.org won't > support HTTPS. >

Re: [julia-users] Website issue

2016-08-15 Thread Stefan Karpinski
GitHub does not support HTTPS for custom domains: https://konklone.com/post/github-pages-now-sorta-supports-https-so-use-it Unless GitHub adds support or we change hosting, julialang.org won't support HTTPS. On Mon, Aug 15, 2016 at 10:18 AM, wrote: > the main site is

[julia-users] Website issue

2016-08-15 Thread oscarsmith . pcc
the main site is giving me an https error. Is there anything we could do to fix it?

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Yichao Yu
> This means that: > > a. I do not know the variables beforehand, they are user inputed as part > of the template. > And you can and should know that after the parsing. > > b. also, it's not an issue of "This is indeed one of the strengths of > Julia, and it requires neither string

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Yichao Yu
On Sun, Aug 14, 2016 at 11:33 PM, Adrian Salceanu wrote: > Huhm... so re > > > defining globals > > According to the API docs: > > *include_string**(code::AbstractString**[**, filename**]**)* > > Like include, except reads code from the given string rather than from a

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Yichao Yu
On Sun, Aug 14, 2016 at 11:13 PM, Adrian Salceanu wrote: > Thanks > > Maybe I wasn't clear enough - otherwise, can you please elaborate, I'm > definitely still poking around, any clarifications would be highly > appreciated. > > > creating a new module > -> the module

Re: [julia-users] Re: IJulia kernel dies repeatedly with 0.5.0-rc2

2016-08-15 Thread Chris Stook
rc0 also works for me. On Mon, Aug 15, 2016 at 3:25 AM, Rock Pereira wrote: > On Windows 10 x64: > > > Pkg.build("ZMQ") fails with rc2, but works fine with rc0 > > Pkg.build("IJulia") also succeeds with rc0 > The rc0 kernel is working fine in Jupyter >

[julia-users] Re: JupyterLab

2016-08-15 Thread Tony Kelman
I saw a demo of this a few days ago at PyData SF. And I think they gave an earlier demo at PyData London. The video for the latter is probably already uploaded, and the former should get posted soon.

Re: [julia-users] Re: ANN: Julia 0.5.0-rc2 now available

2016-08-15 Thread Uwe Fechner
I created an issue regarding the performance regression loading precompiled packages: https://github.com/JuliaLang/julia/issues/18030 Uwe On Saturday, August 13, 2016 at 6:19:42 PM UTC+2, Uwe Fechner wrote: > > Hello, > > sorry for the late reply. I did the profiling now, but on a different >

[julia-users] Re: IJulia kernel dies repeatedly with 0.5.0-rc2

2016-08-15 Thread Rock Pereira
On Windows 10 x64: > Pkg.build("ZMQ") fails with rc2, but works fine with rc0 > Pkg.build("IJulia") also succeeds with rc0 The rc0 kernel is working fine in Jupyter

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Adrian Salceanu
Here is the code for the examples: https://github.com/essenciary/ejl/blob/master/2.jl luni, 15 august 2016, 10:20:18 UTC+2, Adrian Salceanu a scris: > > Erik, thank you very much. > > In a few lines, here is the use case (for a standard MVC web app): > > 1. the user defines some template code

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Adrian Salceanu
Chris, thans very much for the suggestion. I checked it, but there's the issue of not knowing the number and the names of the variables beforehand. Per the docs: d = Dict{Symbol,Any}(:a=>5.0,:b=>2,:c=>"Hi!") @materialize a, b, c = d a == 5.0 #true b == 2 #true c == "Hi!" #true This line

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-15 Thread Adrian Salceanu
Erik, thank you very much. In a few lines, here is the use case (for a standard MVC web app): 1. the user defines some template code which is stored in a view file. Think HTML with embedded Julia code for interpolating variables, if/else, loops, etc. A very basic example would look like

Re: [julia-users] What is the equivalent of " return 0; " used in C in Julia during successful completion of program ?

2016-08-15 Thread Tamas Papp
You can use exit(0), but the exit code is implicitly 0 anyway when your Julia script runs without errors. See http://docs.julialang.org/en/release-0.4/stdlib/base/ On Mon, Aug 15 2016, Rishabh Raghunath wrote: > I'd like to know What the equivalent of "return 0 used in C" is in Julia > while