[julia-users] newbie: Problem installing IJulia

2014-12-15 Thread Eric Forgy
Hi everyone, I am new to Julia (and Python for that matter) and, after watching some nice MIT lectures on YouTube, was inspired to try to install IJulia, but am having some difficulties. I'm on a MacBook Pro running OS X Yosemite (10.10.1). I tried to follow the instructions here: -

Re: [julia-users] newbie: Problem installing IJulia

2014-12-15 Thread Eric Forgy
/questions/19961239/pelican-3-3-pelican-quickstart-error-valueerror-unknown-locale-utf-8 Best, João On Dec 15, 2014, at 8:05 AM, Eric Forgy eric@gmail.com javascript: wrote: Hi everyone, I am new to Julia (and Python for that matter) and, after watching some nice MIT lectures on YouTube

Re: [julia-users] newbie: Problem installing IJulia

2014-12-15 Thread Eric Forgy
versioninfo() in the Julia REPL could be helpful. — Mike On Monday, 15 December 2014 16:54:09 UTC+2, Eric Forgy wrote: Wow. Thank you João. IJulia seems to be working now. I've really been struggling all evening. After not being able to get IJulia to work, I tried to install LightTable with Juno

Re: [julia-users] newbie: Problem installing IJulia

2014-12-15 Thread Eric Forgy
[:user.hello :lt.plugins.user/on-close-destroy] ;; To subtract a behavior, prefix the name with '-' e.g. ;; [:app :-lt.objs.intro/show-intro] ] On Tuesday, December 16, 2014 8:49:34 AM UTC+8, Eric Forgy wrote: Hi Mike, Thanks for the help. Here is the contents of my user.behaviors: [:app

Re: [julia-users] newbie: Problem installing IJulia

2014-12-16 Thread Eric Forgy
Hi Mike, Thanks for your help. It is working now. I'm not only new to Julia and Python, but also Mac OS. The path I inserted was not a folder, but nevertheless was wrong. It was launching Julia, but not the correct way, i.e. it was launching a new shell window. Here is the correct path (which

[julia-users] Rust and Julia - Together? Advice

2014-12-16 Thread Eric Forgy
Hello, I am building a web app for enterprise risk management. I've made some progress, but considering some significant changes now before I am too committed. My current platform is Java/Spring MVC on the back end (C) and Jsp, javascript, and d3 for the front end (V) and I was using Java for

Re: [julia-users] Rust and Julia - Together? Advice

2014-12-17 Thread Eric Forgy
Thank you Viral and thank you Stefan. The Rust solution would be an interesting and longer term effort because the person I would rely on to do most of the development is not yet ready to take the Rust plunge until it matures/stabilizes a bit more. The other two ideas REST and zeromq look

Re: [julia-users] Rust and Julia - Together? Advice

2014-12-17 Thread Eric Forgy
Sounds good. I'll focus on zeromq first. Thank you :)

Re: [julia-users] Rust and Julia - Together? Advice

2014-12-18 Thread Eric Forgy
Update: I miraculously figured out how to use ZMQ in Julia, i.e. you type using ZMQ :) More seriously, I managed to get jeromq working in Eclipse and started trying to get it to talk to Julia's ZMQ. I was trying to follow the examples in the zguide (which is awesome btw): -

Re: [julia-users] Rust and Julia - Together? Advice

2014-12-18 Thread Eric Forgy
Hi Jake, That is awesome. Thank you for sharing. I'll give it a try next time I'm in my (second) office. Assuming they work, would you consider adding them to the ZGuide? All examples in the ZGuide are given in many different languages, but there are no Julia examples. It would be a great

Re: [julia-users] Rust and Julia - Together? Advice

2014-12-22 Thread Eric Forgy
After getting knocked over by the flu (or something heinous anyway), I managed to get my Java (JeroMQ) app to talk to Julia (ZMQ) using ZeroMQ. I needed to make some minor changes to the example code though, but it was still helpful. Thanks! Here is the revised Hello World server: using ZMQ #

[julia-users] Julia for Enterprise?

2014-12-31 Thread Eric Forgy
Hi everyone, Happy New Year! I briefly introduced myself and what I'm trying to do here https://groups.google.com/forum/#!searchin/julia-users/Forgy/julia-users/umHiBwVLQ4g/P6DoT7qGrB8J . I saw that Stefan gave a nice answer to the question Is Julia ready for production use?

[julia-users] Re: ANN node-julia 1.0.0

2015-01-18 Thread Eric Forgy
Hi Jeff, I really like this idea and look forward to giving node-julia (and Julia for that matter) a spin. As I explain here https://groups.google.com/forum/#!topic/julia-users/umHiBwVLQ4g, I'm building a web app with a Spring MVC backend and d3-based front end and trying to figure out how

Re: [julia-users] Re: ANN node-julia 1.0.0

2015-01-18 Thread Eric Forgy
Thanks Jeff :) I like your d3 idea, my friends advise that projects that are based on d3 like bokeh go a long way and then get bogged down in details, so heads up, but it's too cool to not try. Hehe. Yes. I have spent a lot of time doing things in SVG that would have been much easier

[julia-users] Ruby on Rails with Julia trough ZMQ, a proof-of-concept

2015-02-11 Thread Eric Forgy
Hi Ken, That looks awesome. You're much further along than I am, so I can learn alot from what you've done. Thank you for sharing!

[julia-users] Re: RFC: JuliaWeb Roadmap + Call for Contributors

2015-02-12 Thread Eric Forgy
I'm happy to help any way I can. I am currently trying to figure out how to effectively use Morsel for building a RESTful API, but I have no experience with Ruby and am reading up on Sinatra now. I might be able to help with documentation as I learn. On Friday, February 13, 2015 at 6:57:56 AM

[julia-users] Re: It would be great to see some Julia talks at OSCON 2015

2015-01-30 Thread Eric Forgy
It looks like there is at least one Julia talk http://www.oreilly.com/conferences/sample_proposals.html#tech :) On Saturday, January 31, 2015 at 6:32:53 AM UTC+8, Phil Tomson wrote: Just a reminder: the call for proposals for OSCON closes Feb 2. You've got one more weekend to get your Julia

Re: [julia-users] Re: Why does the following give an error: p = 1; 2p+1 ??

2015-01-05 Thread Eric Forgy
Oh man. I hope this gets sorted out. I don't think this is a very pretty situation. p = 1; 2p+1 should do what you expect it to do.

Re: [julia-users] Re: Why does the following give an error: p = 1; 2p+1 ??

2015-01-05 Thread Eric Forgy
Maybe its not so bad if you just always include * where it should be, i.e. p = 1; 2*p+1 works fine. On Mon, Jan 5, 2015 at 10:55 PM, Christoph Ortner christophortn...@gmail.com wrote: For what it's worth, it always struck me is as odd that dropping the * for multiplication is allowed. Is it

[julia-users] Re: Julia takes 2nd place in Delacorte Numbers competition

2015-01-05 Thread Eric Forgy
Go Illini! :) On Monday, January 5, 2015 1:35:46 AM UTC+8, Arch Robison wrote: FYI, I won 2nd place in the recent Al Zimmerman programming contest Delacorte Numbers http://trdb.org/Contest/DelacorteNumbers/Standings, using only Julia and a quad-core MonkeyStation Pro

[julia-users] Re: FE solver in Julia fast and faster

2015-01-10 Thread Eric Forgy
Nice. I'd say this is also not bad for the commercial solver :) On Saturday, January 10, 2015 at 10:42:24 AM UTC+8, Petr Krysl wrote: Hello all, Big thanks to Tim Holy and Andreas Noack. The FE solver implemented in Julia as described previously (

Re: [julia-users] Re: [ANN] Blink.jl – Web-based GUIs for Julia

2015-01-06 Thread Eric Forgy
Hi Jeff, I'd be interested in getting a Julia engine in Atom, but I would not be so interested in Julia for visualization when, unless I'm mistaken, at that point you can use d3 directly. That would be cool if true. Is it? Can we get the Julia.eval to return a javascript array? Getting Julia

Re: [julia-users] Re: [ANN] Blink.jl – Web-based GUIs for Julia

2015-01-06 Thread Eric Forgy
Oh man. I was drafting a note and lost it. Oh well. Maybe best. I can be long winded :) I can see lots of cool apps built with either Julia on top (Blink.jl) or JS on top (node-julia) for hybrid apps. My idea is a bit unorthodox (although not entirely original). I want to effectively turn the

Re: [julia-users] Julia cannot compute factorial(21) while Octave can

2015-01-12 Thread Eric Forgy
I'm new to Julia myself and not an expert, but tried to give an answer to a similar question on quora: http://www.quora.com/Is-Julia-ready-for-production-use/answer/Eric-Forgy On Tuesday, January 13, 2015 at 11:28:58 AM UTC+8, Carlos Baptista wrote: Thanks! Regards, C. F. Baptista

Re: [julia-users] Re: Strange random NaN's

2015-01-12 Thread Eric Forgy
Reminds me of a time in grad school (dark ages). I spent days trying to track down a bug, and it turned out the bug was in my test code and my actual code was fine :) On Tuesday, January 13, 2015 at 3:10:11 AM UTC+8, Peter Brady wrote: After creating my array, various routines are supposed to

[julia-users] Morsel help/tutorial on basic HTTP methods GET POST?

2015-02-09 Thread Eric Forgy
Hello, I would like to set up a simple server and RESTful API to run some simple Julia models. I'd like to have some routing capability so was reading about Morsel. It says it is Sinatra-inspired, so I also tried to read up a bit on Sinatra, but it isn't very obvious to me what syntax carries

[julia-users] Re: Julia for Enterprise?

2015-01-04 Thread Eric Forgy
Thank you Viral, Keno, Tobias, and Imanuel. This has been helpful. Here are my thoughts: - It is too early to introduce Julia into my conservative client's corporate environments at the moment. We'll continue with Matlab with an eye toward transitioning to Julia in the coming years.

[julia-users] Re: Repmat speed

2015-02-27 Thread Eric Forgy
I learned something new. Thanks Steven :)

Re: [julia-users] Bokeh.jl update released: call for feedback

2015-02-24 Thread Eric Forgy
On Tuesday, February 24, 2015 at 3:19:17 AM UTC+8, Samuel Colvin wrote: (and saying someone mildly antagonistic to kick off some debate, sorry). Hehe. I can't resist :) One of the nice things about Bokeh is that unlike d3, plotly or Gadfly it uses canvas not SVG for it's plots which makes

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

2015-05-09 Thread Eric Forgy
I think this is great. Our startup has similar issues. We want to do innovative work, but that work needs funding, so we also do some consulting/training to pay the RD bills. It can be a challenge to find the right balance though, so beware :) Given the position of Julia Computing, another

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

2015-05-09 Thread Eric Forgy
Thanks Scott. That makes a lot of sense.

[julia-users] Microsoft and Julia (getting to 1.0)

2015-05-15 Thread Eric Forgy
Hi, I have never been a huge fan of Microsoft, but I have to admit that with Nadella at the helm, it does seem like an entirely new company doing some pretty amazing and innovative things. Windows 10, Surface Pro 3 and Azure are quickly making a lot of the things we're doing in my FinTech

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

2015-05-19 Thread Eric Forgy
Hi Roman, I have a simple toy model (Morsel) using REST API (well http anyway) that I'm happy with, but Julia Computing (i.e. Viral :)) is convincing me to go with JuliaWebAPI.jl https://github.com/tanmaykm/JuliaWebAPI.jl (formally JuliaBox.jl). I'd be happy to see more people take interest

[julia-users] Re: Microsoft and Julia (getting to 1.0)

2015-05-16 Thread Eric Forgy
Very cool reading: https://github.com/JuliaLang/julia/pull/11196 I occasionally write code, but to call myself a developer would be an insult to you guys who are doing awesome things :) If Julia apps are ever going to target enterprises in a serious manner, there absolutely must be solid

[julia-users] Re: Julia tutorial in Singapore, June 5

2015-05-20 Thread Eric Forgy
Any chance you guys can make a stop in Hong Kong? :) On Thursday, May 21, 2015 at 12:16:45 PM UTC+8, Jiahao Chen wrote: Prof. Alan Edelman and I will be presenting a half day Julia tutorial in University Town, Singapore on June 5. The Julia tutorial will be held as part of a full day

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

2015-05-21 Thread Eric Forgy
Oh nice. I hadn't seen Mux.jl. Thanks. On Thursday, May 21, 2015 at 8:58:04 PM UTC+8, Michael Turok wrote: 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

[julia-users] Re: JuliaCon 2015 videos

2015-08-16 Thread Eric Forgy
This is awesome. Thanks for all the effort putting this together.

[julia-users] Re: new package InterestRates.jl

2015-08-22 Thread Eric Forgy
Hi Felipe, This looks great. Thanks for sharing. We'll see if we can help develop this further. Thanks also for pointing to Imanuel's FinancialMarkets.jl https://github.com/imanuelcostigan/FinancialMarkets.jl. His package on OTC derivative data (dataonderivatives.jl

Re: [julia-users] Serializing custom types

2015-08-05 Thread Eric Forgy
That's cool. Could this be used for sending Julia objects via HTTP POST? I'm sleep deprived, so this may not make much sense, but it seems like this could be used in combination with JSON.jl (or an extension of it). It would be nice to be able to parse directly to a custom Julia type. On

Re: [julia-users] In what version is Julia supposed to mature?

2015-07-30 Thread Eric Forgy
Great news! :) On Wednesday, July 29, 2015 at 9:52:36 AM UTC+8, Stefan Karpinski wrote: That's literally the only part of that post that I would change :-) But no, I'm not trolling, 1.0 should be out next year. Predicting down to the month – or even quarter – is hard, but that's what I

[julia-users] Azure: Which VM?

2015-07-14 Thread Eric Forgy
I am about to do some experiments running Julia from an Azure VM. The first decision to make is Which VM? Azure has a Quick Create option for creating VM's and the options are: - Windows Server - Ubuntu Server - OpenLogic - Oracle Linux - CoreOS - SUSE Linux Enterprise Server

[julia-users] Juno/LightTable - Connected to Julia but cannot evaluate

2015-07-16 Thread Eric Forgy
julia versioninfo() Julia Version 0.3.10 Commit c8ceeef* (2015-06-24 13:54 UTC) Platform Info: System: Windows (x86_64-w64-mingw32) CPU: AMD Opteron(tm) Processor 4171 HE WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Barcelona) LAPACK: libopenblas LIBM:

[julia-users] Re: Building a Binomial Tree

2015-10-24 Thread Eric Forgy
ut that. Thanks > for the link to the paper, this is extremely helpful! > > Thanks! > > Chris > > > On Friday, October 23, 2015 at 8:35:53 PM UTC-4, Eric Forgy wrote: >> >> Hi Christopher, >> >> I am just learning then Julian way myself, but one thin

[julia-users] Windows woes

2015-10-27 Thread Eric Forgy
Hi, I am at a loss how to proceed, so please forgive a rambling unfocused plea for help and I appreciate any questions to help me focus my search for a solution. I have Julia 0.4.0 installed on my MacBook running Windows 10 (I know I know :)). My installation is nice and snappy with no

[julia-users] Re: Windows woes

2015-10-28 Thread Eric Forgy
aking cpu. An antivirus or something similar may be interfering. Do you > have an SSD and he doesn't? > > > On Tuesday, October 27, 2015 at 8:21:42 PM UTC-7, Eric Forgy wrote: >> >> Hi, >> >> I am at a loss how to proceed, so please forgive a rambling unfocused &g

[julia-users] Re: Building a Binomial Tree

2015-10-23 Thread Eric Forgy
Hi Christopher, I am just learning then Julian way myself, but one thing that "might" be better than an array of growing arrays is to note that a binary tree can be laid into a matrix, i.e. Array{Float64,2}, by rotating it. This is nice in case you ever need a ternary tree, which could be

Re: [julia-users] Moore foundation grant.

2015-11-11 Thread Eric Forgy
Awesome :+1: (Thanks for the link!) On Wednesday, November 11, 2015 at 5:01:25 PM UTC+8, Mauro wrote: > > In case it is not just me who didn't spot the news, here it is: > >

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

2015-11-13 Thread Eric Forgy
Hi Bart, I'm not an expert, but this sounds cool and from your description, I wonder if a better name would be Boost.jl or something? Best regards, Eric On Friday, November 13, 2015 at 4:51:34 PM UTC+8, Bart Janssens wrote: > > Hi Steven, > > Yes, that's exactly right. I'd just like to add

Re: [julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-14 Thread Eric Forgy
Thanks for confirming, Steven. Btw, this is also a really interesting read: https://github.com/JuliaLang/julia/pull/10525 On Sunday, November 15, 2015 at 9:48:54 AM UTC+8, Steven G. Johnson wrote: > > See also > > https://github.com/JuliaLang/julia/issues/10154 > > where a lot of this was

Re: [julia-users] Julia users at SC'15?

2015-11-16 Thread Eric Forgy
Way to plan ahead guys :D On Tuesday, November 17, 2015 at 1:09:30 AM UTC+8, Erik Schnetter wrote: > > Mark > > You beat me to sending such an email by a few minutes. > > Is there a particular Julian place where we could meet? Is there e.g. an > MIT booth at tonight's reception? > > -erik > > On

[julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-16 Thread Eric Forgy
Hi Peter, I've learned that Julia is flexible enough to make it do just about whatever you want it to do. If you want Julia to handle non-integer indices, you can very easily create a type MatlabArray (or something) and have its indices be non-integer and the matrix performance would be on par

[julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-16 Thread Eric Forgy
Here is a quick example I threw together (with some clues from Tim here): https://github.com/EricForgy/RoundingIndexArrays.jl Indexing only works for 1-d at the moment, but hopefully it helps get the point. On Tuesday, November 17, 2015 at 8:51:34 AM UTC+8, Eric Forgy wrote: > > Hi

[julia-users] Re: Creating a stable version of Julia + Packages for a semester long course?

2015-11-15 Thread Eric Forgy
I have a similar situation. I am building up a team of modelers and would like to make sure we're all using the same versions of everything (Julia + packages). DeclarativePackages.jl looks promising/interesting and I'm curious what other things people have tried. On Monday, November 16, 2015

[julia-users] Re: DataFrame to JSON

2015-11-08 Thread Eric Forgy
This is embarrassing since I'm just learning, but in the interest of getting feedback and improving my Julia coding skills, here is what I did: function df2json(df::DataFrame) nrow,ncol = size(df) io = IOBuffer(); write(io,"[\n") for irow = 1:nrow irow == nrow ? eor = "" : eor = ","

[julia-users] Re: DataFrame to JSON

2015-11-09 Thread Eric Forgy
tring(col)=> df[col][row] for col in names(df)] > > and it's repeated over each row to create the array of Dicts. > > and of course json() converts the array of dicts to valid json (which is > not that hard to get wrong when done by hand). > > On Monday, 9 November 2015

[julia-users] Re: DataFrame to JSON

2015-11-09 Thread Eric Forgy
| 10 | 10 | "F" | > > julia> println(df2json(d; pretty_print=true)); > [ > {"A": 1, "B": "M"}, > {"A": 2, "B": "M"}, > {"A": 3, "B": "M"}, >

Re: [julia-users] Enums in Julia

2015-10-30 Thread Eric Forgy
I am thinking about making an Enum type MyEnum, but each MyEnum is a composite immutable type. Is that possible (recommended) and how could I do that? I've looked at - https://github.com/JuliaLang/julia/pull/10168 - And the @enum section of Docs but it still isn't obvious to me yet how

[julia-users] Path to module in Atom IDE

2015-11-02 Thread Eric Forgy
>From the command pallete, try typing "Julia Client: Work in file folder". I >had the same problem and should have submitted a PR to the docs (and will if >no one beats me to it). Hope that helps.

Re: [julia-users] Enums in Julia

2015-10-30 Thread Eric Forgy
mutable MyEnum >field1::Type1 >filed2::Type2 > end > > # no need/use for @enum: > enum1 = MyEnum(f11,f12) > enum2 = MyEnum(f21,f22) > > But it seems a bit strange to have an enumeration which uses two values, > as an enumeration suggests that there is a mapping to t

Re: [julia-users] Enums in Julia

2015-10-30 Thread Eric Forgy
Thank you Jacob. I've now got my Enums working following your suggestion (embarrassed for asking), but now I am unclear whether there is any benefit to using enums versus just creating a bunch of instances of a composite immutable type. Any wisdom you can share on the circumstances under which

[julia-users] Windows: Add packages for all users

2015-11-07 Thread Eric Forgy
Hi, Through a combination of luck and perseverance, I was able to get PyPlot working under Windows 10 (I'm new to both Julia and Python). I notice that all my packages are installed into my "Users/[UserName]/.julia" folder. Is there a way to get these packages to work for all users so I don't

[julia-users] Re: Windows: Add packages for all users

2015-11-07 Thread Eric Forgy
Thanks Greg :+1: On Saturday, November 7, 2015 at 7:27:50 PM UTC+8, Greg Plowman wrote: > > Perhaps set environment variable JULIA_PKGDIR for all users. > > > http://docs.julialang.org/en/release-0.4/stdlib/pkg/#Base.Pkg.dir > >

[julia-users] Path to module in Atom IDE

2015-11-02 Thread Eric Forgy
Hmm... Try these two things: 1.) Make sure Julia is running, e.g, cnrl+' (cmd+') and type 1+1 or something into the console. I think Julia has to be running to see the "Julia Client" commands. 2.) When you're sure Julia is running, make sure the file is active and not the console, i.e. click

RE: [julia-users] Re: Re: are array slices views in 0.4?

2015-11-02 Thread Eric Forgy
Hi David, I'm not an expert, i.e. I've never used it, but your idea "using OldArrays" sounds exactly like the purpose of Compat.jl, which I believe is the compatibility module referred to. Have a look and good luck: https://github.com/JuliaLang/Compat.jl

[julia-users] Re: A grateful scientist

2015-10-29 Thread Eric Forgy
Hi Jonathan, I'm in the same boat as a grateful scientist/entrepreneur and thank all the Julia developers, but since we're at it, I want to say a special "Thank you" to YOU for all the work you've done on JuliaWeb. Requests.jl, in particular, is making my life much easier. It's become an

[julia-users] Re: ANN: ParallelAccelerator.jl v0.1 released

2015-10-20 Thread Eric Forgy
Hi Lindsey, That sounds awesome! Thanks for sharing. A couple of naive questions come to mind... Could this be used for generating standalone executables, e.g. for distributing to users who do not have Julia installed, even for non-parallel code? Could this be used in conjunction with

Re: [julia-users] communicating with a TcpSocket

2015-10-16 Thread Eric Forgy
We're using Requests.jl alot these days for testing REST APIs and it's great.

Re: [julia-users] Re: Julia vs Dylan

2015-10-11 Thread Eric Forgy
Hi Bruce, Dylan sounds interesting. One good thing about resurrecting this old discussion is making me aware of Dylan :) Similar to you, I was also looking for constructive words. For the most part, and it has been in some discussions again recently, we adopt the Julia Community Standards

[julia-users] Re: Is there a way to replace f(object, args...) with object.f(args...)?

2015-10-07 Thread Eric Forgy
I'm still a Julia newbie, but have been lurking around long enough to know that a common answer for questions like this is... *You can have the behavior you want via a fairly straightforward macro.* In this case, the macro would simply take object.f(args) and replace it with f(object,args),

[julia-users] Re: Julia compile to/ calling Javascript? (for single page reports/apps)

2015-10-07 Thread Eric Forgy
We were looking into this a while ago. See https://github.com/JuliaLang/julia/issues/9430 I'm not sure where things stand now, but Stefan's comments here are interesting and I think progress has been made generating binaries https://groups.google.com/d/msg/julia-users/EPzWdFwCGFU/OklaINvOlZIJ

[julia-users] Re: Is there a way to replace f(object, args...) with object.f(args...)?

2015-10-07 Thread Eric Forgy
Well said! :D On Thursday, October 8, 2015 at 12:47:40 AM UTC+8, Steven G. Johnson wrote: > > It's a bad idea. You shouldn't try to write C programs that look like > Fortran programs, you shouldn't speak French with English pronunciation, > and you shouldn't try to write Julia programs that

[julia-users] Re: ANN: Julia v0.4.0 released!

2015-10-09 Thread Eric Forgy
Congrats guys. This is a great time to be learning Julia. I've been reading and watching for a while now, but am only starting my first fairly serious Julia project now (and bringing 8 of my devs with me) and am so glad to have Juno/Atom for a very clean workflow. Setting working module is

[julia-users] Re: Dynamically growing array?

2015-10-09 Thread Eric Forgy
I find myself in the same position. What is the current wisdom on this subject? Any news tricks available with 0.4? In my case, the number of rows is fairly small (<100), but the number of columns can grow quite large (pushing the limits of a laptop). Thanks. On Saturday, December 28, 2013 at

[julia-users] Re: Best way to return many arrays from function

2015-11-17 Thread Eric Forgy
Coming from Matlab, I recently had the same question. Have a look at Dict. For speed, you may want to define new types, but for a quick "struct" equivalent, you can try Dict. On Wednesday, November 18, 2015 at 6:37:44 AM UTC+8, Jason McConochie wrote: > > Thank you. Perfect with defining the

Re: [julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-14 Thread Eric Forgy
Just a sanity check... I've been studying Grid.jl and one of the neat tricks there is to inherit from AbstractArray, which allows us to write our own getindex. However, the indices are not integers. I like this trick enough I am considering making it a

[julia-users] Re: [ANN] ForwardDiff.jl v0.1.0 Released

2015-09-06 Thread Eric Forgy
I like this. I think AD can be extended in a fairly straightforward manner to stochastic differentials, e.g. Ito formula. Has anybody looked into this? That could be interesting for finance applications. This could also be interesting for use in other differential algebras. In particular,

[julia-users] Re: [freshman]Is there any julia user group in China?

2015-09-02 Thread Eric Forgy
Hi Roger, Welcome to the group! I am still a Julia freshman too (but old in human years!) and former computational physicist (PhD from UIUC and two years at MIT/LL before moving to Wall Street in 2005). My financial technology startup in Hong Kong now has several junior quants/interns learning

Re: [julia-users] Re: IDE for Julia

2015-09-17 Thread Eric Forgy
I agree. This is so cool it makes me want to learn CoffeeScript just so I can understand how it works :) On Thursday, September 17, 2015 at 5:05:53 PM UTC+8, Nils Gudat wrote: > > I've been using the Atom client for a couple of weeks now an I think it's > brilliant - there's a lot of active

Re: [julia-users] Re: IDE for Julia

2015-09-17 Thread Eric Forgy
I've only started digging around the CoffeeScript. Mostly snooping around atom-julia-client. I want to understand the communication between node.js and Julia and how the console works. I agree. This is so cool it makes me want to learn CoffeeScript just so I >> can understand how it works :)

[julia-users] CORS

2015-09-17 Thread Eric Forgy
Hi, I am having some trouble getting CORS to work. I have a simple Julia server on an Azure VM. If I navigate to the URL, I can see the response I expect, but I am now trying to get this to work cross origin. I tried the following, but it is not working: using HttpServer using JSON

[julia-users] Re: ANN: A potential new Discourse-based Julia forum

2015-09-20 Thread Eric Forgy
I gave it a spin. I didn't see any disadvantage relative to Google Groups and see big upside potential. I would support a move. I like that I can authenticate with Github. Beware, for the first post, it limits the number of links to "2". Since I was just experimenting, I had 4 links. It was a

[julia-users] Re: Julia code 5x to 30x slower than Matlab code

2015-09-19 Thread Eric Forgy
On Sunday, September 20, 2015 at 2:16:07 AM UTC+8, David Gold wrote: > > One thing I suspect is hurting you is that you're storing your parameters > in a `Dict` object. Because the parameters are all of different types, (and > because of the way you declare the `Dict`), they are stored in a

Re: [julia-users] Operators on closures

2015-09-19 Thread Eric Forgy
> > Maybe you’re looking to define a new function y (assuming a1, a2, b1, and > b2 have already been defined): > > y(x) = g(a1, b1)(x) + g(a2, b2)(x) > > ? > I had to try it. The fact this works is very cool. Thanks! Any performance concerns when doing things like this?

[julia-users] Re: Juno stopped working - error message

2015-09-19 Thread Eric Forgy
Reading this thread hurts. I imagine the frustration. I'm still mostly an observer, but as an observer, I see the guys behind the scenes with the skills to address these issues are working super hard to get Juno/Atom (Juno2) at feature parity with the prior Juno. At that point, support for the

[julia-users] Adding Github authentication to JuliaBox

2015-09-21 Thread Eric Forgy
Hi, In this comment , Viral suggested that it should be easy to add Github authentication to JuliaBox. We had a look and this is what we found so far: - The main page is located here: JuliaBox/engine/www/index.tpl -

Re: [julia-users] Re: @sprintf with a format string

2015-09-22 Thread Eric Forgy
If this were Facebook, I would "Like" this :) On Wednesday, September 23, 2015 at 9:34:27 AM UTC+8, Tim Holy wrote: > > At the risk of encouraging emacs users to "fix" the syntax with ctrl-T, > I'd > propose the following (apparently complete?) solution: > > > immutable FormatString{S} end >

[julia-users] Re: Julia equivalent to a static member function in C++/MATLAB

2015-09-25 Thread Eric Forgy
You probably know this, but the way dispatch works in Julia, it will look for a function matching the signatures. Since, presumably, MyMatrix is not in base Julia, that zeros function will do whatever you want it to do because you have yo implement it.

Re: [julia-users] Re: IDE for Julia

2015-09-19 Thread Eric Forgy
I'd be interested in a Julia IDE that runs directly in the browser. I played with CodeMirror before as a basic editor and it supports Julia syntax , which is cool. Wikipedia has a comparison of JS-based editors

[julia-users] Re: CORS

2015-09-18 Thread Eric Forgy
;Access-Control-Allow-Origin"] = "*" res end server = Server(http) run(server, 8000) We simply needed to set the header to allow access at the end. It works now. Yay! On Friday, September 18, 2015 at 12:39:00 PM UTC+8, Eric Forgy wrote: > > Hi, > > I am having some tro

Re: [julia-users] Operators on closures

2015-09-19 Thread Eric Forgy
5 at 7:40:48 AM UTC+8, Eric Forgy wrote: > > Maybe you’re looking to define a new function y (assuming a1, a2, b1, and >> b2 have already been defined): >> >> y(x) = g(a1, b1)(x) + g(a2, b2)(x) >> >> ? >> > > I had to try it. The fact this work

Re: [julia-users] getindex for a real number

2015-12-01 Thread Eric Forgy
A scalar is distinct from a vector so size(a) = () makes sense. getindex for a scalar does not make sense and should probably be removed on the grounds of mathematical elegance :) Any code that depends on referencing a scalar via an index is probably flawed in the first place.

[julia-users] Re: range bug in 0.4.1?

2015-12-06 Thread Eric Forgy
Another thing I've found helpful to understand these things in addition to "help" is "which": julia> which(range,(Int,Int)) range(a::Real, len::Integer) at range.jl:84 I guess you are expecting the second argument to be the "stop" point, but it is the length of the range. julia>

[julia-users] Re: Meaty example of using singleton types

2015-12-09 Thread Eric Forgy
Not sure I follow, but does this help? julia> type BadInt end julia> bi = BadInt() BadInt() julia> typeof(bi) BadInt On Wednesday, December 9, 2015 at 9:46:01 PM UTC+8, milktrader wrote: > > How do you create an instance of type BadInt then? > > On Wednesday, December 9, 2015 at

Re: [julia-users] Re: Meaty example of using singleton types

2015-12-09 Thread Eric Forgy
t{10}, 3) >> 7 >> >> julia> f{X}(::BadInt{X}, y) = X - y >> f (generic function with 2 methods) >> >> julia> f(BadInt{10}(), 3) >> 7 >> >> >> On Wed, Dec 9, 2015 at 8:56 AM, Eric Forgy <eric@gmail.com> wrote: >> >&

Re: [julia-users] Re: Convert SubString{ASCIIString} to String

2015-12-04 Thread Eric Forgy
Hi Charles, myportfolio is a Matrix, i.e. Array{Any,2}, so you need two indices to access it: julia> myportfolio 1x1 Array{Any,2}: "GOOG/NASDAQ_GOOD" julia> myportfolio[1,1] "GOOG/NASDAQ_GOOD" julia> typeof(myportfolio[1,1]) ASCIIString Best regards, Eric On Saturday, December 5, 2015 at

Re: [julia-users] Fwd: [ANN] Nemo 0.4 released!

2015-12-04 Thread Eric Forgy
> > Numerous benchmarks have been added to our benchmarks page to show that > these implementations are competitive with other systems. Looking at the numbers, I call this an understatement :) Very cool. Any interest in noncommutative (differential) algebras? This has been on my mind for a

Re: [julia-users] Re: Convert SubString{ASCIIString} to String

2015-12-04 Thread Eric Forgy
It's early and I didn't finish my first cup of coffee yet, so forgive the typo :) julia> myportfolio 1x1 Array{Any,2}: "GOOG/NASDAQ_GOOG" julia> myportfolio[1,1] "GOOG/NASDAQ_GOOG" julia> typeof(myportfolio[1,1]) ASCIIString On Saturday, December 5, 2015 at

Re: [julia-users] Re: Convert SubString{ASCIIString} to String

2015-12-04 Thread Eric Forgy
e result of typeof(myportfolio[1]) in your > example? I suppose it would be an ASCIIString. > > Seth's suggestion worked fine for me. To use a cast to ASCIIString to > convert myportfolio[1], like this: > > julia> typeof(ASCIIString(myportfolio[1])) > ASCIIString

[julia-users] Re: Array of matrices

2015-12-05 Thread Eric Forgy
Close :) You can try: julia> x = [Matrix() for i=1:5] 5-element Array{Array{Any,2},1}: 0x0 Array{Any,2} 0x0 Array{Any,2} 0x0 Array{Any,2} 0x0 Array{Any,2} 0x0 Array{Any,2} Also: julia> x = [rand(i,i) for i=1:5] 5-element Array{Array{Float64,2},1}: 1x1 Array{Float64,2}: 0.518641

Re: [julia-users] getindex for a real number

2015-12-01 Thread Eric Forgy
I could write a package "strict.jl" where using strict would kill Base.getindex(::Number) and things like that. That could be cool :) On Wednesday, December 2, 2015 at 9:38:50 AM UTC+8, Tim Holy wrote: > > On Tuesday, December 01, 2015 03:19:33 PM Eric Forgy wrote: > >

  1   2   3   >