[julia-users] Passing in Dict for Variable Number of Keyword Arguments like Python

2015-03-31 Thread Michael Turok
Is there a way to pass in a dictionary for the keyword arguments that have a varargs specification, much like python? Note that this works in julia for passing in arrays/tuples for the non-keyword arguments. *julia> foo(;kwargs...) = return kwargs* *foo (generic function with 1 method)* *julia

[julia-users] Re: Passing in Dict for Variable Number of Keyword Arguments like Python

2015-03-31 Thread Michael Turok
n Tuesday, March 31, 2015 at 3:29:47 PM UTC-4, Michael Turok wrote: >> >> Is there a way to pass in a dictionary for the keyword arguments that >> have a varargs specification, much like python? >> >> Note that this works in julia for passing in arrays/tuples for the

Re: [julia-users] loading local resources in module

2015-04-21 Thread Michael Turok
Hi Stefan, How is this different from Base.source_path()? Thanks, Michael On Tuesday, April 21, 2015 at 6:17:48 AM UTC-4, Stefan Karpinski wrote: > > There's a @__FILE__ macro that gives the path name of the current source > file, so if you want to load resources relative to that, you can do >

[julia-users] Defining a function in different modules

2015-04-21 Thread Michael Turok
Hi, What is the idiomatic way to create a function value() in different modules, dispatched on different arguments, without getting the warning/error about conflicting with an existing identifier? It seems like there is an order dependency with the example below. Seems like the 2nd module de

[julia-users] Re: Defining a function in different modules

2015-04-21 Thread Michael Turok
rtall Base type BarType end value(x::BarType) = "Bar::value" get(x::BarType) = "Bar::get" export value end On Tuesday, April 21, 2015 at 9:26:01 AM UTC-4, Michael Turok wrote: > > Hi, > > What is the idiomatic way to create a function value() in different >

Re: [julia-users] Roadmap for 0.4?

2015-05-21 Thread Michael Turok
Going back to this thread: do we have a roadmap for 0.4 somewhere? I see the milestone issues, but not a formal roadmap specification as described below. Thanks! Michael On Tuesday, July 29, 2014 at 12:49:49 PM UTC-4, Stefan Karpinski wrote: > > There is no official roadmap for 0.4 yet – ju

Re: [julia-users] Using Julia program as computation backend

2015-05-21 Thread Michael Turok
I have to admit that I looked at Morsel and JuliaWebAPI (back when it was JuliaBox.jl).I found Morsel to have a more intuitive API in the way you describe your routes. But looks like Mux might be an even better solution. On Tuesday, May 19, 2015 at 8:53:59 PM UTC-4, Eric Forgy wrote: > > Hi

[julia-users] Self-Referential Types and GC and WeakRef

2015-05-26 Thread Michael Turok
In looking at the manual for incompletely initialized classes (click here ), with an example of a SelfReferential class, wouldn't you want to wrap this in a WeakRef()? Or does the GC know what to do when it

Re: [julia-users] Self-Referential Types and GC and WeakRef

2015-05-27 Thread Michael Turok
t is marked, allowing it > to be freed during the sweep phase. > > On Tue, May 26, 2015 at 11:37 AM, Yichao Yu > wrote: > >> On Tue, May 26, 2015 at 11:31 AM, Michael Turok > > wrote: >> > In looking at the manual for incompletely initialized classes (clic

[julia-users] Debugger

2015-06-02 Thread Michael Turok
Is there anyone currently focusing on building an AST-level debugger that can navigate stack frames and not require modifying code to insert instrumentation stubs, etc? While the LLVM JIT debugger referenced in the below thread from December 2013 is interesting, seems like there might be more l

Re: [julia-users] Debugger

2015-06-02 Thread Michael Turok
On Tue, Jun 2, 2015 at 11:07 AM, Michael Turok > wrote: > >> Is there anyone currently focusing on building an AST-level debugger that >> can navigate stack frames and not require modifying code to insert >> instrumentation stubs, etc? >> >> While the LLV

Re: [julia-users] Debugger

2015-06-02 Thread Michael Turok
gt; > https://github.com/toivoh/Debug.jl > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Ftoivoh%2FDebug.jl&sa=D&sntz=1&usg=AFQjCNFVItS_nt9vtR2lzYEoYZu8ZhxJwA> > > > --Tim > > On Tuesday, June 02, 2015 08:21:51 AM Michael Turok wrote: > > Right, but

[julia-users] Re: Getting information about containing module, file, line number, method/type, etc.

2015-06-09 Thread Michael Turok
One other observation is that the AST contains file/line number information for blocks defined within it. Not sure how the backtrace and the AST annotations are intended to interact. On Monday, June 8, 2015 at 8:47:18 AM UTC-4, Tom Breloff wrote: > > I'm sure this won't work in every case, but d

[julia-users] Re: Announcement: Escher.jl - a toolkit for beautiful Web UIs in pure Julia

2015-07-24 Thread Michael Turok
Package looks beautiful. I see that you are using Gadfly, and using rendering offered up by the Compose package. Any thoughts about how I would render a d3-based infrastrcture? Michael On Monday, June 8, 2015 at 12:23:21 PM UTC-4, Shashi Gowda wrote: > > Hello all! > > I have been working on

Re: [julia-users] Re: The new Dict syntax in 0.4 is very verbose

2015-09-08 Thread Michael Turok
That is elegantif I only could follow how it works On Thursday, September 3, 2015 at 4:40:54 PM UTC-4, Mike Innes wrote: > > FWIW I mocked up a json syntax macro: > > using MacroTools, Lazy > > import MacroTools: prewalk > > function prockey(key) > @capture(key, (a_:b_) | (a_=>b_)) || er

[julia-users] Emacs, ESS and julia-mode

2015-09-17 Thread Michael Turok
Anyone here running julia under ESS in emacs? It seems that emacs's ess-mode for julia isn't quite as happy lately - especially with some changes in 0.4 (related to REPL changes, possibly?). For example, help() doesn't do anything...perhaps b/c the REPL now expects "?" to do something useful.

Re: [julia-users] Emacs, ESS and julia-mode

2015-09-17 Thread Michael Turok
g.init > > Can't help with the other ESS things. I've tried it for a bit but it > introduced a noticeable lag so I switch back to just using julia-mode.el > > On Thu, 2015-09-17 at 14:32, Michael Turok > wrote: > > Anyone here running julia under ESS in

Re: [julia-users] Emacs, ESS and julia-mode

2015-09-17 Thread Michael Turok
#x27;t see it before your post. >> >> There was a discussion regarding better REPL (network REPL?) recently, >> but AFAIK nobody is working on such solution yet. >> >> >> On Thursday, September 17, 2015 at 4:16:33 PM UTC+3, Michael Turok wrote: >>> >&

[julia-users] Pretty printing julia (or enscript?)

2015-10-02 Thread Michael Turok
Anyone have a preferred pretty printer for julia source code - or any enscript states file around? Michael

[julia-users] Re: API deployments on JuliaBox

2015-11-04 Thread Michael Turok
Hi Tanmay, Is there an example of enabling the API endpoints when building a stand-alone juliabox instance? Thanks, Michael On Sunday, September 27, 2015 at 9:25:44 PM UTC-4, tanmaykm wrote: > > Hi Miguel, > > Server instances are created per API. Server instances are stateless, and > are reus

[julia-users] Re: API deployments on JuliaBox

2015-11-04 Thread Michael Turok
g_create.sh jbox) > - have a hostname alias with "api." prefix pointing to the machine (e.g. > api.juliabox.org. the webserver routes all api.* requests to the api > handler and others to the interactive sessions handler) > > Best, > Tanmay > > On Thursday, November

[julia-users] Re: Boost.Python-like CppWrapper package

2015-11-13 Thread Michael Turok
Bart - thank youvery interesting project Very much in favor of having a way of statically interfacing to C++ from Julia (and we have started to think about also wanting SWIG, given that some interfaces already are described with it). Cxx is very interesting and differentiating, but still a

[julia-users] Apache Arrow/Feather

2016-04-04 Thread Michael Turok
Any thoughts here on the efforts to build a unified dataframe format between R and Python via Apache Arrow (and Feather?) Regards, Michael