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.

Why OCaml? [video]

134 pointsby artoover 9 years ago

13 comments

sremaniover 9 years ago
My take aways from the talk:<p>1. Financial transactions are adversarial and have heavy tails. Testing is not sufficient for Universal Guarantees, type system helps here.<p>2. Whole class of trivial bugs are not there because of Option (Some, None) and SystemF type system<p>3. Type system should be part of design process (which happens in OCaml)<p>4.Precise and Expressive type systems.<p>5. Right tool for right job, but with OCaml is in sweet-spot to write huge range of programs * little scripts * mini langs for configs * big trading system<p>6. Teaching&#x2F;Learning: * a good percentage of traders with a month long bootcamp were able to learn with a good level of competence * MIT and Harvard students were able to achieve competence in 3-4 week internships.<p>7. The &quot;python&quot; paradox, esoteric language development helps attract high-quality&#x2F;better talent<p>8. Tools and libraries OCaml would not be great if you have to reinvent lot of libraries ala. web development, but has good reasonable ecosystem for customized solutions (like trading systems etc.)
评论 #10977124 未加载
nons3nseover 9 years ago
I am learning Haskell but it is very s-l-o-o-o-w to get to a point where I feel I am actually able to write useful software (probably my fault in fairness!). I have looked over the fence at OCaml and it seems it hits a sweet spot between practicality and rigor.<p>Can anyone advise on whether learning OCaml is worth it when compared to Haskell, considering I am on my way with Haskell, if only slowly? The lack of tooling on Windows (I write cross platform desktop software) and the maturity of the web frameworks (compared to Haskell) has put be off learning OCaml in the past...
评论 #10976947 未加载
评论 #10976888 未加载
评论 #10977311 未加载
评论 #10979314 未加载
评论 #10976654 未加载
评论 #10977547 未加载
评论 #10977011 未加载
评论 #10977069 未加载
评论 #10978333 未加载
评论 #10976678 未加载
评论 #10976867 未加载
评论 #10977615 未加载
mandsover 9 years ago
Great talk - for me the module system, and functors in particular, are one of the great strengths of OCaml.<p>I&#x27;m hoping increases usage by Jane Street, Facebook and Bloomberg, along with the Unikernels&#x2F;Docker tie-up will lead to increased uptake and visibility. I personally find it more suitable to systems space than Go, but with far more features to help build correct code.<p>(shameless plug - we&#x27;re using OCaml for our microservices platform in London and are now hiring - <a href="https:&#x2F;&#x2F;www.stackhut.com&#x2F;#&#x2F;careers" rel="nofollow">https:&#x2F;&#x2F;www.stackhut.com&#x2F;#&#x2F;careers</a>)
e_d_g_a_rover 9 years ago
For people curious about OCaml and wanting to actually learn the language, aka build something useful, then come to the next OCaml meetup at the Climate Corporation in San Francisco. Its a workshop from idea to opam publishable package. We&#x27;ll build a command line tool to do bread and butter coding, aka HTTP requests and Json manipulation. You&#x27;ll have reusable code and a starting point so you don&#x27;t waste time with building code and actually spend time writing code.<p><a href="http:&#x2F;&#x2F;www.meetup.com&#x2F;sv-ocaml&#x2F;events&#x2F;228367572&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.meetup.com&#x2F;sv-ocaml&#x2F;events&#x2F;228367572&#x2F;</a><p>As incentive I will be giving away Enter the Monad t-shirts courtesy of Jane Street, thank you yminsky!
agentgtover 9 years ago
One thing I love about OCaml is named parameters. I am an explicit kind of guy and ironically even with all the type inferencing OCaml has it is damn explicit of a language (although I sort of prefer ad-hoc poly but oh well). It seems like a pretty trivial thing to have named parameters but there are so many languages that do not have this feature (or have this feature and it breaks something (scala-&gt;java)).
hellofunkover 9 years ago
&quot;Raise your hands if you know who John Carmack is.&quot; (long pause) &quot;Raise your hands if you&#x27;ve ever played Quake, or Rage, or Doom...&quot; (pause) &quot;...or if you&#x27;ve ever heard of them.&quot; (pause, blank stares) &quot;Oh! Well, I guess it&#x27;s been awhile...&quot;
brudgersover 9 years ago
Related: Jeff Meyerson&#x27;s audio interview with Yaron Minsky.<p><a href="http:&#x2F;&#x2F;softwareengineeringdaily.com&#x2F;?s=janestreet" rel="nofollow">http:&#x2F;&#x2F;softwareengineeringdaily.com&#x2F;?s=janestreet</a><p>It goes into a lot more of the nuts and bolts of JaneStreet and puts the use of OCaml in a more technical context.
krat0sprakharover 9 years ago
Also from Yaron Minsky, in the same vein - <a href="http:&#x2F;&#x2F;queue.acm.org&#x2F;detail.cfm?id=2038036" rel="nofollow">http:&#x2F;&#x2F;queue.acm.org&#x2F;detail.cfm?id=2038036</a>
评论 #10977159 未加载
Tomteover 9 years ago
But still no Windows support for OPAM, right? <i>sigh</i><p>That&#x27;s one of the things that Rust absolutely got right, helping its adoption tremendously.
评论 #10978833 未加载
评论 #10978468 未加载
jfaucettover 9 years ago
IMHO the biggest factors when evaluating a new programming language boils down to &quot;modules&quot; i.e the methods for creating reusuable units of code, and &quot;package management&quot; i.e. how easy is it require previously built units of code and combine them to create compound units. I wish he had talked more about those aspects.<p>For me, any language that misses these two is not worth the effort unless you have really good reasons (i.e. every clock cycle counts in an embedded program).<p>Anyway, to that end, what is OCaml&#x27;s packaging ecosystem like?
评论 #10976812 未加载
评论 #10976545 未加载
评论 #10976800 未加载
评论 #10979446 未加载
jakeoghover 9 years ago
Reading about side effects in py I found: <a href="https:&#x2F;&#x2F;github.com&#x2F;python-effect&#x2F;effect" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;python-effect&#x2F;effect</a>
jakeoghover 9 years ago
Does making the py recursive miss the point because py isnt guranteed to be immutable?<p><pre><code> def sum(list): if list: return list.pop() + sum(list) return 0</code></pre>
评论 #10976340 未加载
评论 #10976346 未加载
评论 #10977027 未加载
systemsover 9 years ago
is multi core ocaml still being considered to merge into the main ocaml distribuition
评论 #10978556 未加载