<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>trends Archives | Programming Zen</title>
	<atom:link href="https://programmingzen.com/tag/trends/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmingzen.com/tag/trends/</link>
	<description>Meditations on programming, startups, and technology</description>
	<lastBuildDate>Tue, 14 Jun 2016 18:59:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">1397766</site>	<item>
		<title>A Language for the Next 10 Years</title>
		<link>https://programmingzen.com/next-programming-language/</link>
					<comments>https://programmingzen.com/next-programming-language/#comments</comments>
		
		<dc:creator><![CDATA[Antonio Cangiano]]></dc:creator>
		<pubDate>Tue, 14 Jun 2016 16:30:22 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[beam]]></category>
		<category><![CDATA[clojure]]></category>
		<category><![CDATA[elixir]]></category>
		<category><![CDATA[erlang]]></category>
		<category><![CDATA[jvm]]></category>
		<category><![CDATA[language for the next decade]]></category>
		<category><![CDATA[programming languages]]></category>
		<category><![CDATA[trends]]></category>
		<guid isPermaLink="false">http://programmingzen.com/?p=1679</guid>

					<description><![CDATA[<p>In early 2006 I had just started my career in IBM. I was the &#x201C;Ruby Guy&#x201D; (or alternatively, the &#x201C;Rails Guy&#x201D;). During a meeting with a few high-profile engineers, I presented what Ruby brought to the table. An IBM Distinguished Engineer stopped me in my tracks and said, &#x201C;It sounds slow&#x201D;. I love Ruby as much as a programmer can possibly love a programming language, but that engineer&#x2019;s conjecture was right on the money. Ruby&#x2019;s emphasis has always been on programmer efficiency, not execution efficiency. Generally speaking, Ruby programs are significantly slower than equivalent programs in C or Java. A </p>
<p>The post <a href="https://programmingzen.com/next-programming-language/">A Language for the Next 10 Years</a> appeared first on <a href="https://programmingzen.com">Programming Zen</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In early 2006 I had just started my career in IBM. I was the “Ruby Guy”<a id="fnref:1" class="footnote" title="see footnote" href="#fn:1">[1]</a> (or alternatively, the “Rails Guy”).</p>
<p>During a meeting with a few high-profile engineers, I presented what Ruby brought to the table. An IBM Distinguished Engineer<a id="fnref:2" class="footnote" title="see footnote" href="#fn:2">[2]</a> stopped me in my tracks and said, “It sounds slow”.</p>
<p>I love Ruby as much as a programmer can possibly love a programming language, but that engineer’s conjecture was right on the money. Ruby’s emphasis has always been on programmer efficiency, not execution efficiency.</p>
<p>Generally speaking, Ruby programs are significantly slower than equivalent programs in C or Java.</p>
<p>A lot of work has been done to improve Ruby’s performance, with a good degree of success, and that’s terrific &#8211; but is it enough in today’s world?</p>
<p>In many ways, yes. You’re not going to employ Ruby to calculate 13 trillion digits of Pi, nor will you use it to power the backend of a messaging app with millions of users.</p>
<p>However, Ruby will suit most scripts just fine. Further, I would argue that Rails still gives you the best bang for your buck in terms of web frameworks, when it comes to a large subset of CRUD-based web applications.</p>
<p>Ruby is lovely and has many uses, however, what Ruby is not, is the language that will define the next ten years. As beautifully designed as it is, it simply isn’t the ideal language to tackle the challenges that an increasingly distributed world throws at us.</p>
<p>Concurrency is the name of the game, and Ruby is, for the most part, limited in its ability to cope with it (despite <a href="https://github.com/ruby-concurrency/concurrent-ruby">valuable efforts</a>). It’s not that you can’t do concurrency in Ruby, it’s that there are much better, battle-tested tools to do so.</p>
<p>If you are a fellow Ruby developer who would like to remain relevant in the next decade, I highly suggest that you start looking for something new to pair to Ruby as your main language. (Though, fair warning, you might end up replacing Ruby with it.)</p>
<p>Your main language for the next ten years will be highly dependent on the development context, of course. If you develop iOS apps, Swift is such a language. Android apps? <a href="https://kotlinlang.org/">Kotlin</a> is looking good and might have a shot at that. Data Science? <a href="https://julialang.org/">Julia</a>, if they can sort out a few performance issues, could get the edge over Python and R. System programming? <a href="https://www.rust-lang.org/">Rust</a> and Go will be worth a close look, too.<a id="fnref:3" class="footnote" title="see footnote" href="#fn:3">[3]</a></p>
<p>I’m enough of a generalist to dabble in many programming domains, but above all, I’m a web developer, so my main language for the next decade will have to excel in distributed environments where n machines make m requests, for large values of n and m (e.g., IoT alone enables this scenario).</p>
<p>So what comes after Ruby? Some people might argue that it’s Node.js. Not for me personally, though. I’m afraid Ruby has spoiled me. I find Ruby to be a joy to use. JavaScript, not so much.</p>
<p>We are looking for a high-level language that can handle concurrency like a champ, has an elegant, highly readable syntax, provides a great user experience for the developer, and… is functional. In short, fun and functional. 🙂</p>
<p>I find functional programming (with immutable data types) to be a significantly better approach to thinking about most problems, and modeling solutions for them, than Object Oriented programming.<a id="fnref:4" class="footnote" title="see footnote" href="#fn:4">[4]</a> I blame my past dabbling with Haskell and Clojure for this.</p>
<p>Speaking of Clojure, on the JVM, both Scala (w/ Akka), and Clojure (w/ STM &amp; Pulsar) are valid options.</p>
<p>Of the two, Clojure is the one that comes closer to a great fit for me. Very close. Unfortunately, I&#8217;m somewhat of an aesthete, and coming from Ruby, the Lisp syntax still feels like a downgrade.<a id="fnref:5" class="footnote" title="see footnote" href="#fn:5">[5]</a></p>
<p>Further, the JVM is great, but when it comes to dependable concurrency, you really can’t beat what the Erlang VM (i.e., BEAM) has to offer (<a href="https://www.fastcompany.com/3026758/inside-erlang-the-rare-programming-language-behind-whatsapps-success">ask the team at Whatsapp</a>).</p>
<p>The problem with Erlang is that its Prolog-like syntax feels obsolete. I have never seen an Erlang program and said to myself, “Wow, that was a joy to read”. Or refactor. It’s not the worst, but I personally find it to be a fairly uninspiring language to work with.</p>
<p><img data-recalc-dims="1" fetchpriority="high" decoding="async" style="display: block; margin-left: auto; margin-right: auto;" title="Expression terminators in Erland.jpg" src="https://i0.wp.com/programmingzen.com/wp-content/uploads/2016/06/Expression-terminators-in-Erland.jpg?resize=500%2C272&#038;ssl=1" alt="Expression terminators in Erlang" width="500" height="272" border="0" /></p>
<p>Thankfully Erlang is not the only language for its highly fault-tolerant and concurrent VM. There is indeed a language worth getting excited about.</p>
<p>For me, that language is Elixir. Elixir fits all the requirements above and feels like a joy to both read and use.</p>
<p><img data-recalc-dims="1" decoding="async" style="float: right;" title="Elixir.gif" src="https://i0.wp.com/programmingzen.com/wp-content/uploads/2016/06/Elixir.gif?resize=100%2C191&#038;ssl=1" alt="Elixir" width="100" height="191" border="0" /></p>
<p>Like many other Rubyists, when I first found Elixir I thought of it as Ruby for the Erlang VM, due to its largely familiar syntax. But it turns out to be so much more than that. In fact, it’s much more than Erlang as well.</p>
<p>To hastily summarize, we get:</p>
<ul>
<li>A highly readable, elegant, concurrent, functional programming language.</li>
<li>The fantastic Erlang VM (i.e., BEAM) and OTP integration.</li>
<li>Shared nothing Actor-based concurrency.</li>
<li>Metaprogramming via macros.</li>
<li>Polymorphism via protocols.</li>
<li>A whole host of other nice features (pipeline operator, pattern matching, docstrings, streams, mix, etc).</li>
<li>An excellent web framework called <a href="https://www.phoenixframework.org/">Phoenix</a>.</li>
<li>A fast growing supportive community, that it’s reminiscent of Ruby during the early days of Rails.</li>
</ul>
<p>Ruby’s usage skyrocketed in the past decade and I would argue that Elixir, though not widely adopted as of yet, is well equipped to do the same in the coming ten years.</p>
<p><a href="https://elixir-lang.org/">Give it a try</a> and let me know how you like it.</p>
<div class="footnotes">
<hr />
<ol>
<li id="fn:1">Though <a href="https://en.wikipedia.org/wiki/Sam_Ruby">Sam</a> was both literally and figuratively a Ruby guy. 😉  <a class="reversefootnote" title="return to article" href="#fnref:1">^</a></li>
<li id="fn:2">Now an IBM Fellow, which is the highest honor a tech person at IBM can achieve. It’s worth noting that I had not mentioned performance at all until that point. He simply figured it out based on the features of the language.  <a class="reversefootnote" title="return to article" href="#fnref:2">^</a></li>
<li id="fn:3">Some might like <a href="https://nim-lang.org/">Nim</a>, instead. <a href="https://crystal-lang.org/">Crystal</a>, with its Ruby-like syntax, is probably the most interesting option for Rubyists, despite being at very early stages of development.  <a class="reversefootnote" title="return to article" href="#fnref:3">^</a></li>
<li id="fn:4">I suspect that the next decade, outside of system programming, will belong to functional languages (or hybrid languages heavily influenced by functional programming).  <a class="reversefootnote" title="return to article" href="#fnref:4">^</a></li>
<li id="fn:5">I know, I know, I’m putting a lot of emphasis on syntax. That’s because it matters more than most people give it credit for.  <a class="reversefootnote" title="return to article" href="#fnref:5">^</a></li>
</ol>
</div>
<p>The post <a href="https://programmingzen.com/next-programming-language/">A Language for the Next 10 Years</a> appeared first on <a href="https://programmingzen.com">Programming Zen</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://programmingzen.com/next-programming-language/feed/</wfw:commentRss>
			<slash:comments>16</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1679</post-id>	</item>
	</channel>
</rss>
