News for hackers. Stuff that matters.
Re:Why I am betting on Julia (2014) by ones_and_zeros on Sunday April 17, 2016 @06:06PM (#11516552)
Any thoughts on how it compares and will overcome the dominant enviromnent for technical programming, matlab?
Re:Why I am betting on Julia (2014) by ninjin on Sunday April 17, 2016 @06:52PM (#11516716)
What Julia really lacks at this moment is something along the lines of the Matlab IDE. The community is aware of this though and there is something in the works that even I, someone that lives happily with a ssh/tmux/vim set-up, would deem as interesting.

Since we are on Hacker News, maybe I should also spread a rumour. MathWorks, allegedly, in a recent settled lawsuit added a condition stating that the other company was not to create any Julia bindings for its product. If this is true, which I have many reasons to believe, it is a major recognition of how at least MathWorks sees Julia as a real threat to the Matlab market share.

Re:Why I am betting on Julia (2014) by bsilvereagle on Sunday April 17, 2016 @07:26PM (#11516839)
> MathWorks sees Julia as a real threat to the Matlab market share

I think Mathworks is feeling a lot of pressure from both Python & Julia. In the r2016a release of MATLAB, Mathworks essentially released a Jupyter (one of the first environments for Julia, and formerly iPython Notebooks) competitor with the 'Live Notebook'. Mathematica has had notebooks for quite a while, and the best Mathworks had was their MuPad suite. I think the prevalence of Jupyter definitely led to this development.

http://www.mathworks.com/products/matlab/live-editor/

Re:Why I am betting on Julia (2014) by jjoonathan on Sunday April 17, 2016 @07:42PM (#11516887)
On the other side of things, are you aware of any efforts in the open source community to close the gap between jupyter and Mathematica notebooks (i.e. editing of pretty-printed math expressions)?

I would really like to not give Stephen Wolfram money every year, but evidently not quite as much as I really like to be free of paragraph-form monospace code blobs from hell. I was hoping that MathJax meant I could wait a few years and have my cake and eat it too, but so far I haven't seen anything that looks serious :(

Re:Why I am betting on Julia (2014) by amk_ on Sunday April 17, 2016 @10:45PM (#11517445)
LyX and TeXMacs can do that kind of thing through Maxima plugins. The Maxima frontend itself has some prettifying capabilities. Of course, if you aren't doing symbolic math that is going to be less useful to you.

- http://www.texmacs.org/ - http://www.lyx.org/ - http://maxima.sourceforge.net/

Re:Why I am betting on Julia (2014) by sampo on Monday April 18, 2016 @12:15AM (#11517696)
> Mathematica has had notebooks for quite a while

Since 1988, I believe.

Re:Why I am betting on Julia (2014) by etrautmann on Monday April 18, 2016 @12:16AM (#11517698)
Certainly using Julia with Jupyter gets you much closer to having a reasonable IDE, though you'll have to be comfortable with cell-mode debugging instead of breakpoints and single stepping. I don't personally use it but I'm intrigued and would love to switch away from Matlab if there were reasonable feature parity or an alternate model that seemed reasonable for most basic tasks.

I'd really like to have a replacement for cell arrays and struct arrays, that have some of the convenient features of those structures. I know you can get this with lists of dictionaries in python, for example, but it's not the same.

Re:Why I am betting on Julia (2014) by tavert on Monday April 18, 2016 @01:14AM (#11517841)
There's now a true debugger: https://github.com/Keno/Gallium.jl Only works on master 0.5-dev right now, but it's coming along nicely.
Re:Why I am betting on Julia (2014) by ced on Monday April 18, 2016 @11:27AM (#11520663)
Have you tried dataframes? Whether in Julia or Python, they're a good replacement for arrays-of-structs, though they need a lot of getting used to.
Re:Why I am betting on Julia (2014) by etrautmann on Monday April 18, 2016 @02:44PM (#11522191)
I've played around with them a little, but part of my issue is that our real-time data acquisition (in a neurophysiology lab) uses matlab/simulink so I'd need to create some middleware serializer to go from matlab data structures into dataframes. Not too difficult but there's a lot of momentum behind the matlab tooling unfortunately.
Re:Why I am betting on Julia (2014) by tanlermin on Monday April 18, 2016 @12:33PM (#11521166)
Try numpy record arrays
Re:Why I am betting on Julia (2014) by 2miles4chicken on Sunday April 17, 2016 @06:14PM (#11516591)
It's certainly faster: http://julialang.org/benchmarks/.

It is free/open source. And, it benefits from being a younger language and therefore has the hindsight of the quirks in Matlab's design. Coming from Python, the 1-indexed arrays are annoying but it's great for math.

Re:Why I am betting on Julia (2014) by sghodas on Sunday April 17, 2016 @06:41PM (#11516686)
The 1-indexed arrays can sometimes be nice, but I've run into bugs so many times when translating the code into a language with 0-indexed arrays.
Re:Why I am betting on Julia (2014) by tptacek on Sunday April 17, 2016 @06:48PM (#11516708)
That's interesting, because the 1-indexed arrays are primary the primary reason I don't ever seriously consider using Julia (or Lua); I can only shudder and imagine the obnoxious number of off-by-one mistakes I'd make.
Re:Why I am betting on Julia (2014) by simonster on Sunday April 17, 2016 @09:20PM (#11517169)
If I can switch between programming languages that use 0-based and 1-based indexing without getting confused, surely you could too. If you don't think that learning to use 1-based indexing is worth it, that's fair enough, but it's pretty low on my list of things that give me trouble when I translate code between languages.
Re:Why I am betting on Julia (2014) by jernfrost on Sunday April 17, 2016 @06:57PM (#11516731)
I think this is a mental block people have. I grew up on zero based arrays in C, but I can't say this has caused me any issues thus far using Julia.

I don't know how it is for others but for me I just into this mode where I think about Julia as doing math and I know in math you start at 1 for vectors and matrices.

Besides the way functions and APIs work, you seldom have to write code that really depends on the start index.

Re:Why I am betting on Julia (2014) by CyberDildonics on Sunday April 17, 2016 @06:59PM (#11516742)
What you are saying is conjecture if you haven't tried Julia or Lua. The reality is that 1 based indexing is trivial compared to the difficulties of a complex program.
Re:Why I am betting on Julia (2014) by Avshalom on Sunday April 17, 2016 @09:01PM (#11517123)
On the other hand having cut my teeth programming in MATLAB and lua 1-based indexing is on of the things that endears Julia to me.
Re:Why I am betting on Julia (2014) by matt4077 on Sunday April 17, 2016 @08:58PM (#11517118)
Yeah, it just feels wrong. Of course that's just habit and in fact starting counts at 1 is actually the more user-centric way of doing it.

I wish I could get used to Julia but for some reason I just think the source looks..ugly. Maybe it's my dark past with php that makes me shudder at the sight of avg(x) (instead of x.avg).

I know that's stupid (and the syntax is actually required for multiple dispatch). Maybe Julia and I should try couples' therapy.

Re:Why I am betting on Julia (2014) by jhbadger on Monday April 18, 2016 @01:55PM (#11521835)
Basically every mathematical/data science language uses 1-based arrays -- R, MATLAB, and Mathematica in addition to Julia. Probably because traditionally (and to a degree even now) the standard numerical language was FORTRAN.
Re:Why I am betting on Julia (2014) by ced on Sunday April 17, 2016 @07:23PM (#11516828)
Out of curiosity, assuming that Julia magically had 0-indexed arrays, what would you use it for?