TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Julia by Example

93 pointsby alixaxelover 10 years ago

4 comments

nyc640over 10 years ago
I used Julia for both a machine learning course and a neural networks course this past semester, and I really enjoyed the experience of developing in the language. I found it really a lot faster than python&#x2F;numpy and a lot more sane than Matlab. Some key syntactical structures are also very purposefully kept similar to Matlab so it was very easy to translate code between the two, which is incredibly useful in scientific computing. I definitely recommend people check it out; however, I will warn any potential users that the run times of Julia programs right now (as of 0.3.x) are incredibly slow if you need to include any third party libraries. I understand they&#x27;re working on this for a future release (maybe 0.4), but even including a simple plotting package in your code currently causes a 20-40 second overhead before your code actually starts running because the packages aren&#x27;t precompiled.<p>Oh, and one more tip for OSX users wanting to try out Julia. You might want to just use the app bundle provided on the Julia homepage rather than compiling from the homebrew tap. I spent close to an hour waiting for all the dependencies to compile before giving up when I realized I don&#x27;t want to be doing this every time it&#x27;s updated.
评论 #8796485 未加载
评论 #8795934 未加载
jrapdx3over 10 years ago
For a while now I&#x27;ve been interested in learning more about Julia, though not exactly sure yet what use-case I have for it. I guess I wouldn&#x27;t know until I do study the language enough to figure it out.<p>This tutorial looks promising, building knowledge carefully but not too much &quot;hand holding&quot;, like it&#x27;s for programmers experienced in other languages. Got part of the way though it so far, obviously not a &quot;one-shot&quot; kind of exercise.<p>My only complaint is the same one I make with many other tutorials of this kind. I find it very annoying when some feature or function is used in an example, but the function comes &quot;out of the blue&quot;, not defined or explained, as though the reader is supposed to magically divine its meaning or definition.<p>In this case, everything goes along swimmingly until encountering the function&#x2F;method &quot;repr(a)&quot; in &quot;Arrays&quot; examples. I dutifully spend several minutes tracking it down, and what do you know, basically the same as (-&gt;string ...) in Scheme (i.e., object-&gt;string representation).<p>I&#x27;m not giving up on Julia. I&#x27;ll carry on from that point when I return to the site. But really, IMO <i>every</i> newly introduced term&#x2F;function&#x2F;feature should be defined so that the example can actually be completely understood.<p>Otherwise there&#x27;s a substantial risk of losing readers who will not so likely be motivated to keep trying to figure it out.<p>&lt;&#x2F;end of minor rant mode&gt;
评论 #8797012 未加载
pjmlpover 10 years ago
I don&#x27;t do any scientific computing, as such I have zero use cases for Julia.<p>However as language geek, I do follow its development.<p>It is quite interesting to see another dynamic language in the same footsteps of Lisp dialects and Dylan, where performance, ability to compile to native code and simple FFI are considered important features to be part of the main implementation.<p>Really looking for Julia becomes widely used.
评论 #8796832 未加载
julesover 10 years ago
Great post! This is by far the best way to learn a language for people who can already program in another language.