<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Languages on Roads Less Taken</title><link>https://goran.krampe.se/categories/languages/</link><description>Recent content in Languages on Roads Less Taken</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 21 Apr 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://goran.krampe.se/categories/languages/index.xml" rel="self" type="application/rss+xml"/><item><title>Spry Error Handling</title><link>https://goran.krampe.se/2021/04/21/spry-error-handling/</link><pubDate>Wed, 21 Apr 2021 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2021/04/21/spry-error-handling/</guid><description>&lt;p>Work on &lt;a href="https://sprylang.se" target="_blank" rel="noopener noreferrer">Spry&lt;/a>
 continues&amp;hellip; in small spurts. :) One thing that I have pushed ahead of me for far too long is &lt;strong>error handling&lt;/strong>. People interested in Spry have been asking about it and yes, I decided to start getting a handle on it.&lt;/p>
&lt;p>In fact, I wrote this article &lt;strong>last year&lt;/strong> but forgot to get it done and published!&lt;/p>
&lt;p>Error handling is an interesting topic, earlier it wasn&amp;rsquo;t really much controversy around it but the advent of new techniques (Optionals etc) in combination with languages making&amp;hellip; &amp;ldquo;interesting&amp;rdquo; choices (I am looking at you Go) has made this subject fairly hot. So what do we want in Spry??&lt;/p></description></item><item><title>Revisiting Spry</title><link>https://goran.krampe.se/2020/06/05/revisiting-spry/</link><pubDate>Fri, 05 Jun 2020 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2020/06/05/revisiting-spry/</guid><description>&lt;p>After a period of slower progress I got reignited regarding &lt;a href="https://sprylang.se" target="_blank" rel="noopener noreferrer">Spry&lt;/a>
. So far I have written &lt;a href="http://goran.krampe.se/categories/spry/" target="_blank" rel="noopener noreferrer">a lot of articles&lt;/a>
 about Spry, and during this time things have evolved and changed.&lt;/p>
&lt;p>So I am now trying to &amp;ldquo;clean house&amp;rdquo; on where Spry stands today. This sweep through the old articles is a first step, then I will update the language manual to be 100% in sync with the implementation.&lt;/p>
&lt;p>Let&amp;rsquo;s go through the articles from the beginning!&lt;/p></description></item><item><title>Writing Arduinobot in Nim</title><link>https://goran.krampe.se/2017/10/26/writing-arduinobot-in-nim/</link><pubDate>Thu, 26 Oct 2017 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2017/10/26/writing-arduinobot-in-nim/</guid><description>&lt;p>In the &lt;a href="https://project.ecraft2learn.eu/" target="_blank" rel="noopener noreferrer">eCraft2Learn project&lt;/a>
 which Evothings is participating in we were looking at various ways
&lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
 is an awesome programming language and this article is a &lt;strong>whirlwind-copy-paste-into-your-terminal-as-you-read-thing&lt;/strong> to show how you install Nim, write a small program, compile it and package it in a very short time.&lt;/p>
&lt;p>To spice it up, for &lt;strong>no specific reason at all&lt;/strong>, we are doing it all inside a &lt;a href="http://linuxcontainers.org" target="_blank" rel="noopener noreferrer">Linux Container&lt;/a>
 - a fast virtual environment to work in. It&amp;rsquo;s just a nice way to have a clean environment and to ensure that you as a reader see the same results as I do.&lt;/p></description></item><item><title>Nim crash course in LXC</title><link>https://goran.krampe.se/2017/10/24/nim-crash-course-inside-lxc/</link><pubDate>Tue, 24 Oct 2017 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2017/10/24/nim-crash-course-inside-lxc/</guid><description>&lt;p>&lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
 is an awesome programming language and this article is a &lt;strong>whirlwind-copy-paste-into-your-terminal-as-you-read-thing&lt;/strong> to show how you install Nim, write a small program, compile it and package it in a very short time.&lt;/p>
&lt;p>To spice it up, for &lt;strong>no specific reason at all&lt;/strong>, we are doing it all inside a &lt;a href="http://linuxcontainers.org" target="_blank" rel="noopener noreferrer">Linux Container&lt;/a>
 - a fast virtual environment to work in. It&amp;rsquo;s just a nice way to have a clean environment and to ensure that you as a reader see the same results as I do.&lt;/p></description></item><item><title>Benchmarking Spry vs Squeak</title><link>https://goran.krampe.se/2016/08/26/benchmarking-spry-vs-squeak/</link><pubDate>Fri, 26 Aug 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/08/26/benchmarking-spry-vs-squeak/</guid><description>&lt;p>&lt;a href="http://sprylang.org" target="_blank" rel="noopener noreferrer">Spry&lt;/a>
 is evolving quite nicely during my night hours. Focusing on performance is however still premature, but I do want to verify that I am not barking up the wrong tree, like &amp;hellip; in the wrong forest even. So I make trivial benchmarks from time to time, just to see and learn.&lt;/p>
&lt;p>Some background on the Spry implementation may be interesting. Spry is implemented in Nim as a &lt;strong>direct AST interpreter&lt;/strong>, it&amp;rsquo;s not a JIT, in only about 2000 lines of code. It has a &lt;strong>recursive classic &amp;ldquo;naive&amp;rdquo; design&lt;/strong> and uses a &lt;strong>spaghetti stack of activation records&lt;/strong>, all allocated on the heap relying fully on Nim&amp;rsquo;s GC to do it&amp;rsquo;s work. It also relies on Nim&amp;rsquo;s method &lt;strong>dynamic dispatch&lt;/strong> in the interpreter loop for dispatching on the different AST nodes. Blocks are true closures and control structures like &lt;code>timesRepeat:&lt;/code> are implemented as primitives, normally &lt;strong>not cheating&lt;/strong>. Suffice to say, there are LOTS of things we can do to make Spry run faster!&lt;/p>
&lt;p>The philosophy of implementation is to keep Spry very small and &amp;ldquo;shallow&amp;rdquo; which means we rely as much as possible on the shoulders of others. In this case, primarily Nim and it&amp;rsquo;s superb features, performance and standard library.&lt;/p>
&lt;p>Enough jibbering, let&amp;rsquo;s do some silly damn lies - ehrm, I mean silly tests!&lt;/p></description></item><item><title>Is Spry a Smalltalk?</title><link>https://goran.krampe.se/2016/07/19/is-spry-a-smalltalk/</link><pubDate>Tue, 19 Jul 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/07/19/is-spry-a-smalltalk/</guid><description>&lt;p>I love &lt;a href="http://world.st" target="_blank" rel="noopener noreferrer">Smalltalk&lt;/a>
 and I have been in love with it since approximately 1994. I have used VisualWorks, VisualAge (IBM Smalltalk), Dolphin Smalltalk, GemStone, &lt;a href="http://squeak.org" target="_blank" rel="noopener noreferrer">Squeak&lt;/a>
 and &lt;a href="http://pharo.org" target="_blank" rel="noopener noreferrer">Pharo&lt;/a>
 quite a lot, and I was very active in the Squeak community for a long period.&lt;/p>
&lt;p>But the last few years, finally, I have started to feel the &amp;ldquo;burn&amp;rdquo;&amp;hellip; as in &lt;a href="http://gagne.homedns.org/~tgagne/contrib/EarlyHistoryST.html#29" target="_blank" rel="noopener noreferrer">&amp;ldquo;Let&amp;rsquo;s burn our disk packs!&amp;rdquo;&lt;/a>
. And last year I started doing something about it - and the result is &lt;a href="http://sprylang.org" target="_blank" rel="noopener noreferrer">Spry&lt;/a>
. Spry is only at version 0.break-your-hd and several key parts are still missing, but its getting interesting already.&lt;/p>
&lt;p>&lt;strong>Now&amp;hellip; is Spry a Smalltalk? And what would that even mean?&lt;/strong>&lt;/p>
&lt;p>I think the reason I am writing this article is because I am feeling a slight frustration that not more people in the Smalltalk community find Spry interesting. :)&lt;/p>
&lt;p>And sure, who am I to think Spry is anything remotely interesting&amp;hellip; but I would have loved more interest. It may of course change when Spry starts being useful&amp;hellip; or perhaps the lack of interest is because it&amp;rsquo;s not &amp;ldquo;a Smalltalk&amp;rdquo;?&lt;/p>
&lt;h2 id="smalltalk-family">
 Smalltalk family
 &lt;a class="heading-link" href="#smalltalk-family">
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading">&lt;/i>
 &lt;span class="sr-only">Link to heading&lt;/span>
 &lt;/a>
&lt;/h2>
&lt;p>The Smalltalk family of languages has a fair bit of variation, for example &lt;a href="http://www.selflanguage.org" target="_blank" rel="noopener noreferrer">Self&lt;/a>
 is clearly in this family, although it doesn&amp;rsquo;t even have classes, but it maintains a similar &amp;ldquo;feel&amp;rdquo; and shares several Smalltalk &amp;ldquo;values&amp;rdquo;. There have been a lot of Smalltalks over the years, even at PARC they made different variants before releasing Smalltalk-80.&lt;/p>
&lt;p>&lt;strong>So&amp;hellip; if we look at Spry, can it be considered a member of the Smalltalk family?&lt;/strong>&lt;/p>
&lt;p>There is an &lt;a href="http://wiki.squeak.org/squeak/172" target="_blank" rel="noopener noreferrer">ANSI standard&lt;/a>
 of Smalltalk - but not many people care about it, except for some vendors perhaps. I should note however that &lt;a href="http://www.seaside.st" target="_blank" rel="noopener noreferrer">Seaside&lt;/a>
 apparently (I think) has brought around a certain focus on the ANSI standard since every Smalltalk implementation on earth wants to be able to run Seaside and Seaside tries to enforce relying on the ANSI standard (correct me if I am wrong).&lt;/p>
&lt;p>Most Smalltalk implementations share a range of characteristics, and a lot of them also follow the ANSI standard, but they can still differ on pretty major points.&lt;/p>
&lt;p>My &lt;strong>personal take&lt;/strong> on things in Smalltalk that are pretty darn important and/or unique are:&lt;/p>
&lt;ol>
&lt;li>Everything is an object including meta levels&lt;/li>
&lt;li>A solid model for object oriented programming&lt;/li>
&lt;li>The image model&lt;/li>
&lt;li>100% live system&lt;/li>
&lt;li>The browser based IDE with advanced cross referencing, workspaces and debuggers&lt;/li>
&lt;li>The keyword syntax and message cascades&lt;/li>
&lt;li>Message based execution model&lt;/li>
&lt;li>Dynamic typing and polymorphism&lt;/li>
&lt;li>Closures everywhere with lightweight syntax and non local return&lt;/li>
&lt;li>Very capable Collections and a good standard library&lt;/li>
&lt;/ol>
&lt;p>Not all Smalltalks cover all 10. For example, there are several Smalltalks without the image model and without a browser based IDE. Self and Slate and other prototypical derivatives don&amp;rsquo;t have classes. Some Smalltalks have much less evolved class libraries for sure, and some are more shallow in the &amp;ldquo;turtle department&amp;rdquo;.&lt;/p>
&lt;p>In Spry we are deviating on a range of these points, but we are also definitely &lt;strong>matching some&lt;/strong> of them!&lt;/p></description></item><item><title>Fowltalk - a new Smalltalk</title><link>https://goran.krampe.se/2016/06/19/fowltalk/</link><pubDate>Sun, 19 Jun 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/06/19/fowltalk/</guid><description>&lt;p>In my quest making &lt;a href="http://sprylang.org" target="_blank" rel="noopener noreferrer">Spry&lt;/a>
 I also learned about other efforts in the Nim community to construct Smalltalk-like dynamic languages. The most ambitious one may be &lt;a href="https://bitbucket.org/fowlmouth/idk" target="_blank" rel="noopener noreferrer">Fowltalk&lt;/a>
 by &amp;ldquo;fowl&amp;rdquo; who typically hangs out in the #nim channel on Freenode. Fowltalk started out written in Nim but since fowl wanted to learn more C++ it&amp;rsquo;s now written in C++17.&lt;/p>
&lt;p>At the moment he is rewriting the parser and code generator parts &lt;a href="https://bitbucket.org/fowlmouth/idk/src/2623f1e366d9a77f08feceda549bf0d9b3b9a72b/bootstrap.1?fileviewer=file-view-default" target="_blank" rel="noopener noreferrer">in the language itself&lt;/a>
, following a similar bootstrapping style as &lt;a href="http://piumarta.com/software/cola/" target="_blank" rel="noopener noreferrer">Ian Piumarta&amp;rsquo;s idst&lt;/a>
. For example, here is &lt;a href="https://bitbucket.org/fowlmouth/idk/src/2623f1e366d9a77f08feceda549bf0d9b3b9a72b/bootstrap.1?fileviewer=file-view-default#bootstrap.1-483" target="_blank" rel="noopener noreferrer">the method parsing keyword messages&lt;/a>
.&lt;/p></description></item><item><title>Spry Performance</title><link>https://goran.krampe.se/2016/05/24/spry-performance/</link><pubDate>Tue, 24 May 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/05/24/spry-performance/</guid><description>&lt;p>When writing Spry I am so far mainly ignoring performance. The general execution of Spry code will be a regular interpreter (although stackless I hope) and not a JIT. But that doesn&amp;rsquo;t prevent us from playing around and learning something!&lt;/p>
&lt;p>In this article I do some silly experiments around interpreter startup time and fooling around with 40 million element arrays. As usual, I am fully aware that the languages (Pharo Smalltalk, NodeJS, Python) I compare with a) have lots of other ways to do things b) may not have been used exactly as someone else would have done it. A truck load of salt required. Now&amp;hellip; let&amp;rsquo;s go!&lt;/p>
&lt;img src="https://goran.krampe.se/spry/thetruth.jpg" alt="The" style="display:block; margin:0 auto;"></description></item><item><title>Spry vs Allen</title><link>https://goran.krampe.se/2016/05/14/spry-vs-allen/</link><pubDate>Sat, 14 May 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/05/14/spry-vs-allen/</guid><description>&lt;p>Allen Wirfs-Brock &lt;a href="http://www.wirfs-brock.com/allen/posts/754" target="_blank" rel="noopener noreferrer">wrote down a bullet list&lt;/a>
 of what he thought actually made it possible for the Alan Kay team to &lt;a href="http://worrydream.com/EarlyHistoryOfSmalltalk/" target="_blank" rel="noopener noreferrer">create Smalltalk&lt;/a>
, and many other ground breaking things, at Xerox PARC in the 70s. Let&amp;rsquo;s take a look at &lt;strong>his bullets one by one&lt;/strong> and see how it applies to Spry and my puny little effort around it :)&lt;/p>
&lt;img src="https://goran.krampe.se/spry/assume.jpg" alt="Assume" style="display:block; margin:0 auto;"></description></item><item><title>Spry Modules, part II</title><link>https://goran.krampe.se/2016/05/03/spry-modules-ii/</link><pubDate>Tue, 03 May 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/05/03/spry-modules-ii/</guid><description>&lt;p>In the &lt;a href="http://goran.krampe.se/2016/04/16/spry-modules" target="_blank" rel="noopener noreferrer">last article&lt;/a>
 I outlined a simple &lt;strong>model of modules&lt;/strong> and that is kinda implemented but needs a few fixes. The next step is how to find and combine modules and this is an area where I want to push the envelope a bit. Most popular package/module systems today are quite trivial in nature. Often it&amp;rsquo;s a command line tool that queries central catalog(s) and then proceeds by downloading code in the form of source files onto disk. Then the compiler or runtime environment finds and loads the code by simply looking for files on disk. There are several parts of this that are very primitive.&lt;/p>
&lt;p>When I built &lt;a href="http://map.squeak.org" target="_blank" rel="noopener noreferrer">SqueakMap&lt;/a>
 waaay back I was already then tainted with the idea of &lt;a href="https://gemtalksystems.com" target="_blank" rel="noopener noreferrer">shared object models&lt;/a>
 and one of the primary ideas in SqueakMap was to make sure each local Smalltalk environment got a full live object model of the catalog which then could be queried, viewed and reasoned about inside the Smalltalk environment. Much more powerful than a bunch of JSON files on disk. This led to the approach of downloading the full catalog in a serialized form - and then loading it into &lt;a href="http://www.squeak.org" target="_blank" rel="noopener noreferrer">Squeak&lt;/a>
.&lt;/p>
&lt;p>With &lt;a href="http://sprylang.org" target="_blank" rel="noopener noreferrer">Spry&lt;/a>
 I want us to create a simpler meta model - at least for starters - but with an even smarter infrastructure backing it&amp;hellip;&lt;/p></description></item><item><title>Spry Modules</title><link>https://goran.krampe.se/2016/04/16/spry-modules/</link><pubDate>Sat, 16 Apr 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/04/16/spry-modules/</guid><description>&lt;p>As discussed in &lt;a href="http://goran.krampe.se/2016/04/09/spry-image-model/" target="_blank" rel="noopener noreferrer">the previous article&lt;/a>
 I want Spry to have a trivially accessible persistence mechanism enabling something similar to the &lt;strong>Smalltalk image model&lt;/strong>, but based on a database. The memory organisation in Spry is basically nested Maps. After dwelling a bit on the inevitable hard question about &lt;strong>modules and namespaces&lt;/strong> I have decided on a design that I hope will turn out simple and reasonably powerful!&lt;/p>
&lt;img src="https://goran.krampe.se/spry/modules.jpg" alt="Modules" style="float:right; margin:0 0 1em 1em;">

&lt;p>Smalltalk has a Dictionary holding all the globals forming &amp;ldquo;the roots&amp;rdquo; of the object memory. In Smalltalk this Dictionary is also itself a global variable accessible as &lt;code>Smalltalk&lt;/code>, in other words &lt;code>Smalltalk == (Smalltalk at: #Smalltalk)&lt;/code>. The primary use of &lt;code>Smalltalk&lt;/code> is to hold all classes by name, so they are all reachable as globals. Obviously &lt;code>Smalltalk&lt;/code> can also hold any kind of object (not just classes) as a global.&lt;/p>
&lt;p>Spry also has such a top level Dictionary, but in Spry we call a Dictionary a &lt;code>Map&lt;/code> to be a little bit more aligned in terminology with other languages (and it&amp;rsquo;s shorter). This top level Map is the &lt;code>root&lt;/code> Map and it is accessible via the word &lt;code>root&lt;/code>. In Spry the &lt;code>root&lt;/code> word is actually bound to a primitive function returning this &lt;code>Map&lt;/code>, so in Spry we also have &lt;code>root == (root at: 'root)&lt;/code>.&lt;/p>
&lt;p>Ok, so Spry has a &lt;code>Map&lt;/code> of globals and one way of using Spry is simply by populating &lt;code>root&lt;/code> with words bound to functions making these functions globally accessible, it&amp;rsquo;s how I have done it so far. Yeah, yeah, I know, but for smaller systems it probably works just fine!&lt;/p>
&lt;p>But&amp;hellip;&lt;/p></description></item><item><title>Spry image model</title><link>https://goran.krampe.se/2016/04/09/spry-image-model/</link><pubDate>Sat, 09 Apr 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/04/09/spry-image-model/</guid><description>&lt;p>In developing Spry - &lt;a href="https://goran.krampe.se/ni-is-now-spry" >renamed from Ni&lt;/a>
 - I am getting closer to the &lt;strong>Really Fun Stuff&lt;/strong>.&lt;/p>
&lt;p>As a Smalltalker I dream &amp;ldquo;bigger&amp;rdquo; than just managing source code as text in files&amp;hellip;&lt;/p>
&lt;p>&lt;a href="http://www.azquotes.com/quote/847274" title="Kent Beck quote">&lt;img src="http://www.azquotes.com/picture-quotes/quote-i-mean-source-code-in-files-how-quaint-how-seventies-kent-beck-84-72-74.jpg" alt="I mean, source code in files; how quaint, how seventies! - Kent Beck" />
&lt;/a>&lt;/p>
&lt;p>Smalltalk uses the &amp;ldquo;image model&amp;rdquo; in which the system is alive and running all the time, the full development environment is also live together with your application, and we are in fact modifying object structures when we develop Smalltalk programs. We can also snapshot that object memory onto disk and fire it up somewhere else. Several Lisp implementations have used a similar approach I think.&lt;/p>
&lt;p>The image model has tons of really cool benefits, I don&amp;rsquo;t have time repeating all of them, but a modern implementation of the idea should take a few things into account that was not considered in the 1970s:&lt;/p>
&lt;ul>
&lt;li>The &amp;ldquo;image&amp;rdquo; in Spry will be buildable from source&lt;/li>
&lt;li>You should be able to use Spry without the image mechanism (you can already)&lt;/li>
&lt;li>Spry code will have a readable text format and file structure&lt;/li>
&lt;li>The image model does not have to be all or nothing, it can be partial&lt;/li>
&lt;li>The image mechanism will be a module for the Spry VM, so you can skip it entirely&lt;/li>
&lt;/ul>
&lt;p>Some argue that the image model has downsides - like being an &amp;ldquo;ivory tower&amp;rdquo; incapable of interacting with the outside world. The Smalltalk environments have indeed historically suffered a bit in varying degree, but we can easily find ways around those issues while still &lt;strong>reaping the awesomeness of a fully live&lt;/strong> programming environment, especially if we give the above items proper thought &lt;strong>from the start&lt;/strong>.&lt;/p>
&lt;p>With Spry I think I have a beginning to a novel approach&amp;hellip; as well as taking the above into account.&lt;/p></description></item><item><title>Ni renamed to Spry!</title><link>https://goran.krampe.se/2016/04/08/ni-is-now-spry/</link><pubDate>Fri, 08 Apr 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/04/08/ni-is-now-spry/</guid><description>&lt;p>When I started out implementing my own language in Nim I named it &amp;ldquo;Ni&amp;rdquo; without that much thought actually. It was a pun on &amp;ldquo;smaller than Nim&amp;rdquo; (obviously one letter shorter!) and of course with a &lt;a href="https://en.wikipedia.org/wiki/Knights_who_say_Ni" target="_blank" rel="noopener noreferrer">reference to Monty Python&lt;/a>
.&lt;/p>
&lt;p>But&amp;hellip; really, &lt;strong>the name &amp;ldquo;Ni&amp;rdquo; sucks&lt;/strong>. It&amp;rsquo;s hard to say in general and since it&amp;rsquo;s often mentioned together with Nim the confusion is obvious. And it also turned out to be less than optimal to google for.&lt;/p></description></item><item><title>Nim meets Arduino</title><link>https://goran.krampe.se/2016/02/25/nim-meets-arduino/</link><pubDate>Thu, 25 Feb 2016 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2016/02/25/nim-meets-arduino/</guid><description>&lt;p>I now work as the Team Lead at &lt;a href="http://evothings.com" target="_blank" rel="noopener noreferrer">Evothings&lt;/a>
 and our &lt;strong>open source&lt;/strong> product is a Workbench for creating &lt;strong>mobile HTML5 applications focused on IoT&lt;/strong>, by editing and running them &lt;strong>live on the mobile device&lt;/strong> inside our spiced up Cordova based &amp;ldquo;Evothings Viewer&amp;rdquo;.&lt;/p>
&lt;p>I am of course partial here - but the tool is really easy to use, doesn&amp;rsquo;t force you into any specific framework or editor, enables a very quick development cycle and has tons of examples, tutorials, docs and some special IoT focused libraries like for example around BLE (Bluetooth Low Energy). You can have your code running on your phone literally within 1-2 minutes and you don&amp;rsquo;t need to install XCode or the Android tools, you can even run it just fine from your trusty Linux laptop! Just &lt;a href="http://evothings.com/download" target="_blank" rel="noopener noreferrer">go for it&lt;/a>
. Ok, enough of the sales talk&amp;hellip;&lt;/p>
&lt;p>Since we are specializing in the IoT space we have our office filled to the brink with toys&amp;hellip; eh, I mean &lt;strong>IoT devices&lt;/strong> of all kinds from all different vendors. Two IoT communication standards are particularly important in this space, and that&amp;rsquo;s &lt;strong>BLE and MQTT&lt;/strong>. I have already written three &lt;a href="http://goran.krampe.se/2015/12/14/evothings-meets-phoenix/" target="_blank" rel="noopener noreferrer">blog&lt;/a>
 &lt;a href="https://evothings.com/evothings-does-mqtt-with-bluemix/" target="_blank" rel="noopener noreferrer">posts&lt;/a>
 &lt;a href="https://evothings.com/evothings-does-mqtt-with-vernemq-or-emqtt/" target="_blank" rel="noopener noreferrer">around&lt;/a>
 MQTT using Evothings. Now I am instead focusing on BLE and particularly the &lt;strong>embedded device side of the story&lt;/strong>.&lt;/p>
&lt;img src="https://goran.krampe.se/evothings/mediatek-linkit-one.png" alt="LinkIt-ONE" style="float:left; margin:0 1em 1em 0;">

&lt;p>This led me to round up a bunch of devices at the office that are fairly technically capable and have BLE support. The one I selected was the &lt;a href="http://www.seeedstudio.com/wiki/LinkIt_ONE" target="_blank" rel="noopener noreferrer">LinkIt ONE development board&lt;/a>
 from &lt;a href="http://labs.mediatek.com" target="_blank" rel="noopener noreferrer">MediaTek&lt;/a>
 &amp;amp; &lt;a href="http://www.seeedstudio.com" target="_blank" rel="noopener noreferrer">Seeed Studio&lt;/a>
. It&amp;rsquo;s an insanely feature packed little board (GSM/GPRS, GPS, Wifi, BLE, sound output, SD card) with decent computing power (ARM7 EJ-S, 16Mb flash, 4Mb RAM) while still remaining in the &amp;ldquo;medium&amp;rdquo; embedded space I would say, still ruling out plain Linux and regular tools. I consider the &lt;a href="https://www.raspberrypi.org">Raspberri Pi&lt;/a> or &lt;a href="http://getchip.com">C.H.I.P&lt;/a> and similar machines to be in the &amp;ldquo;large&amp;rdquo; embedded space, they are real computers and you can basically use whatever you like to develop on those.&lt;/p>
&lt;p>The medium and small devices can be programmed using for example &lt;a href="https://github.com/espruino" target="_blank" rel="noopener noreferrer">Espruino&lt;/a>
 or &lt;a href="http://micropython.org" target="_blank" rel="noopener noreferrer">Micropython&lt;/a>
 (two very interesting projects) but in many cases, for more demanding applications, &lt;strong>C/C++ is still king&lt;/strong> simply because of size and performance advantages. And also the fact that hardware vendor SDKs are typically in C/C++. But &lt;strong>could there be an alternative language out there?&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>A language that is just as fast and small that easily can use all these C/C++ SDKs?&lt;/li>
&lt;li>A language with a syntax similar to Python made to be easy to write and read?&lt;/li>
&lt;li>A language with soft realtime GC and a sane advanced type system with generics?&lt;/li>
&lt;li>A language with a good standard library and friendlier than C++?&lt;/li>
&lt;li>A language with compile time hygienic AST based macros written in the language itself?&lt;/li>
&lt;li>A language offering an imperative style and not forcing OO if you don&amp;rsquo;t want to?&lt;/li>
&lt;/ul>
&lt;p>Yep! Read on to find out&amp;hellip;&lt;/p></description></item><item><title>Elixir Booming</title><link>https://goran.krampe.se/2015/10/27/elixir-booming/</link><pubDate>Tue, 27 Oct 2015 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2015/10/27/elixir-booming/</guid><description>&lt;p>It seems like the &lt;em>&amp;ldquo;damp cloth of Java&amp;rdquo;&lt;/em> that has been plastered all over the programming landscape the last 20 years is finally being lifted. I admit, I do &lt;strong>dislike Java &amp;hellip;immensely&lt;/strong>. And not only on technical grounds, but even more based on what I perceive as it&amp;rsquo;s community worshipping complexity for it&amp;rsquo;s own sake. Of course IMHO.&lt;/p>
&lt;p>These days new and &lt;strong>truly interesting languages&lt;/strong> are all over the place. &lt;a href="http://rust-lang.org" target="_blank" rel="noopener noreferrer">Rust&lt;/a>
 and &lt;a href="http://go-lang.org" target="_blank" rel="noopener noreferrer">Go&lt;/a>
 are two examples with a lot of momentum, although I personally choose &lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
 over both.&lt;/p>
&lt;p>And &lt;a href="http://pharo.org" target="_blank" rel="noopener noreferrer">Smalltalk&lt;/a>
 is still my &amp;ldquo;super productive dynamically typed&amp;rdquo; language of choice, but I just learned about a language that I &lt;strong>really&lt;/strong> think is going places&amp;hellip;&lt;/p></description></item><item><title>Adding objects to Ni!</title><link>https://goran.krampe.se/2015/09/25/adding-objects-to-ni/</link><pubDate>Fri, 25 Sep 2015 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2015/09/25/adding-objects-to-ni/</guid><description>&lt;p>So&amp;hellip; Ni has almost reached the point where I can see objects appearing. The following describes the design I &lt;strong>currently&lt;/strong> have in mind, read it and tell me what you think so I can scrap it and start over ;)&lt;/p>
&lt;img src="https://goran.krampe.se/ni/ni.png" alt="Ni" style="float:right; margin:0 0 1em 1em;"></description></item><item><title>Ni design decisions!</title><link>https://goran.krampe.se/2015/09/23/ni-design-decisions/</link><pubDate>Wed, 23 Sep 2015 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2015/09/23/ni-design-decisions/</guid><description>&lt;p>So&amp;hellip; my little Ni language got some attention since it was first &lt;a href="https://news.ycombinator.com/item?id=10235688" target="_blank" rel="noopener noreferrer">on Hackernews&lt;/a>
, then &lt;a href="http://www.theregister.co.uk/2015/09/18/we_are_the_knights_who_code_ni/" target="_blank" rel="noopener noreferrer">TheRegister&lt;/a>
, all over Twitter and also &lt;a href="https://www.reddit.com/r/programming/comments/3lfpym/ni_a_language_influenced_by_smalltalk_written_in/" target="_blank" rel="noopener noreferrer">Reddit&lt;/a>
.&lt;/p>
&lt;p>But I think it managed to come relatively unscathed out of it, although it &lt;strong>REALLY is pre-alpha-not-even-complete-eats-your-harddrive early&lt;/strong> and you know, I really have no idea if it ever will go the distance since it takes quite a bit of work to get a language to actually be used. But I am going to stick with it.&lt;/p>
&lt;p>Anyway, I have been experimenting with &amp;ldquo;arg words&amp;rdquo; and &amp;ldquo;lookup scoping&amp;rdquo; while thinking about how to add objects, and a few other things. This article doesn&amp;rsquo;t introduce how I want to do objects, but the next one does (I split it in two). This article however covers a bunch of loose ends and my ideas on how to tackle them in Ni. And I will try to make this understandable even if you don&amp;rsquo;t know Ni. ;)&lt;/p></description></item><item><title>Guts of Ni</title><link>https://goran.krampe.se/2015/09/22/guts-of-ni/</link><pubDate>Tue, 22 Sep 2015 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2015/09/22/guts-of-ni/</guid><description>&lt;p>This article describes some core parts of the current implementation of the Ni (now known as &lt;a href="https://goran.krampe.se/spry" >Spry&lt;/a>
) language. It&amp;rsquo;s not a tutorial, introduction or manual. It&amp;rsquo;s in &lt;strong>fact kinda incoherent - but so is Ni&lt;/strong> :)&lt;/p></description></item><item><title>Who says Ni?</title><link>https://goran.krampe.se/2015/09/16/who-says-ni/</link><pubDate>Wed, 16 Sep 2015 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2015/09/16/who-says-ni/</guid><description>&lt;p>Ni is my &lt;a href="https://goran.krampe.se/spry" >own little language&lt;/a>
 heavily influenced by &lt;a href="http://www.world.st" target="_blank" rel="noopener noreferrer">Smalltalk&lt;/a>
 but also other sources like Rebol, Forth, Lisp, Self and Nim. Ni is a bit strange, but it&amp;rsquo;s not academic and really meant to become something useful.&lt;/p>
&lt;p>So put on your helmet and let me take you to the shrubbery&amp;hellip;&lt;/p></description></item><item><title>Nim and super</title><link>https://goran.krampe.se/2015/05/06/nim-and-super/</link><pubDate>Wed, 06 May 2015 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2015/05/06/nim-and-super/</guid><description>&lt;p>As I described in &lt;a href="https://goran.krampe.se/2014/10/29/nim-and-oo" >the&lt;/a>
 &lt;a href="https://goran.krampe.se/2014/10/31/nim-and-oo-part-ii" >earlier&lt;/a>
 &lt;a href="https://goran.krampe.se/2014/10/31/nim-and-oo-part-iii" >posts&lt;/a>
 Nim didn&amp;rsquo;t support &amp;ldquo;super calls&amp;rdquo; when using &lt;strong>methods&lt;/strong> instead of statically bound &lt;strong>procs and generics&lt;/strong>. My article caused a little bit of discussion around this on IRC and Andreas decided to implement the mechanism he already had planned - but had not fully decided a good name for.&lt;/p>
&lt;p>The other day Nim 0.11.2 &lt;a href="http://nim-lang.org/news.html#Z2015-05-04-version-0-11-2-released" target="_blank" rel="noopener noreferrer">was released&lt;/a>
 and it includes this mechanism. Let&amp;rsquo;s have a look how it works in my sample code&amp;hellip;&lt;/p></description></item><item><title>Nim</title><link>https://goran.krampe.se/2015/03/26/nim-voodoo/</link><pubDate>Thu, 26 Mar 2015 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2015/03/26/nim-voodoo/</guid><description>&lt;p>Having been a die hard Smalltalker since 1994 I have finally found a new language and community that I am investing myself in. All the Ruby, Python, various JVM languages, C# and Mono etc - none has managed to capture my interest. Ruby and Python always felt like pale shadows of Smalltalk and I really don&amp;rsquo;t want to be tied to the Java eco system, no matter what. And so on and on, lots of languages looking interesting but not being able to withstand my deeper look. As a Smalltalker I probably have acquired a particular taste.&lt;/p>
&lt;p>Since a few months I am however deeply into Nim. I have written a slew of articles about Nim, and at our company we have decided to bet hard on it. So far I have written a little utility called blimp in Nim, and I have helped creating Urhonimo - the Nim wrapper of the Urho3D game engine.&lt;/p>
&lt;p>With a deeper understanding of Nim, although I am far from good at it, what is it that makes me recommend you to try it?&lt;/p></description></item><item><title>Nim visits GTUG Stockholm</title><link>https://goran.krampe.se/2015/03/26/nim-visits-gtug/</link><pubDate>Thu, 26 Mar 2015 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2015/03/26/nim-visits-gtug/</guid><description>&lt;p>Yesterday I had the pleasure of presenting the programming language &lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
 at the &lt;a href="https://sites.google.com/site/stockholmgtug/" target="_blank" rel="noopener noreferrer">Stockholm GTUG&lt;/a>
.
This evening we were around 50 people, I would guess mainly developers, listening to three presentations:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="http://rust-lang.org" target="_blank" rel="noopener noreferrer">Rust&lt;/a>
, by &lt;a href="https://www.linkedin.com/in/johanburell" target="_blank" rel="noopener noreferrer">Johan Burell, EVRY&lt;/a>
&lt;/li>
&lt;li>&lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
, by Göran Krampe, 3DICC&lt;/li>
&lt;li>&lt;a href="http://golang,org" target="_blank" rel="noopener noreferrer">Go&lt;/a>
, by &lt;a href="https://www.linkedin.com/in/marcusolsson1" target="_blank" rel="noopener noreferrer">Marcus Olsson, Citerus&lt;/a>
&lt;/li>
&lt;/ul>
&lt;p>Now, that&amp;rsquo;s a pretty fitting trio of languages! :) This article is a little followup because I failed to mention so much stuff&amp;hellip;&lt;/p></description></item><item><title>Nim seq</title><link>https://goran.krampe.se/2014/12/03/nim-seq/</link><pubDate>Wed, 03 Dec 2014 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2014/12/03/nim-seq/</guid><description>&lt;p>One of the most important aspects in a language is how powerful and easy it is to use its collection/container types. At least that is my feeling coming from Smalltalk where the Collection classes and their rather rich protocols are used extensively and also cover String and Array and much more. If you peek into the current leading open source Smalltalk - &lt;a href="http://pharo.org" target="_blank" rel="noopener noreferrer">Pharo&lt;/a>
 - you can see &lt;code>Collection allSubclasses size&lt;/code> evaluate to &lt;strong>78&lt;/strong>. Of course, lots of those are special subclasses and not for general use, but fact remains that a strong language &lt;strong>needs a strong library of good collections&lt;/strong>.&lt;/p>
&lt;p>In Smalltalk I can for example run this:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-smalltalk" data-lang="smalltalk">&lt;span class="line">&lt;span class="cl">&lt;span class="ss">#(&lt;/span>&lt;span class="m">1&lt;/span> &lt;span class="m">2&lt;/span> &lt;span class="m">3&lt;/span> &lt;span class="m">4&lt;/span> &lt;span class="m">5&lt;/span>&lt;span class="ss">)&lt;/span> &lt;span class="nf">select:&lt;/span> [&lt;span class="o">:&lt;/span>&lt;span class="nv">x&lt;/span> &lt;span class="o">|&lt;/span> &lt;span class="nv">x&lt;/span> &lt;span class="nf">isOdd&lt;/span> ] &lt;span class="nf">thenCollect:&lt;/span> [&lt;span class="o">:&lt;/span>&lt;span class="nv">x&lt;/span> &lt;span class="o">|&lt;/span> &lt;span class="nv">x&lt;/span> &lt;span class="nf">*&lt;/span> &lt;span class="m">3&lt;/span> ]
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This is actually a single method call taking two closures, one to perform a &amp;ldquo;filtering&amp;rdquo;, and one to perform a &amp;ldquo;map&amp;rdquo;. This is not a standard message in &amp;ldquo;good old&amp;rdquo; Smaltalk-80, but it has eventually been added since the usage pattern is so common. To me personally a &lt;strong>modern language needs similar power&lt;/strong> or I would go nuts. :)&lt;/p></description></item><item><title>Nim and OO, Part IV</title><link>https://goran.krampe.se/2014/11/30/nim-and-oo-part-iv/</link><pubDate>Sun, 30 Nov 2014 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2014/11/30/nim-and-oo-part-iv/</guid><description>&lt;p>As I described in &lt;a href="https://goran.krampe.se/2014/10/29/nim-and-oo" >the&lt;/a>
 &lt;a href="https://goran.krampe.se/2014/10/31/nim-and-oo-part-ii" >earlier&lt;/a>
 &lt;a href="https://goran.krampe.se/2014/10/31/nim-and-oo-part-iii" >posts&lt;/a>
 Nim didn&amp;rsquo;t support &amp;ldquo;super calls&amp;rdquo; when using &lt;strong>methods&lt;/strong> instead of statically bound &lt;strong>procs and generics&lt;/strong>. My article caused a little bit of discussion around this on IRC and Andreas decided to implement the mechanism he already had planned - but had not fully decided a good name for.&lt;/p>
&lt;p>The other day this mechanism &lt;a href="https://github.com/Araq/Nimrod/commit/105a0616a9da7c9c85adfa488a1db42eb17daafb" target="_blank" rel="noopener noreferrer">entered the devel branch&lt;/a>
 which means it will be official in the next release of Nim, which I suspect will be out before the end of 2014. It should be noted that devel is mainly undergoing bug fixing, so unless you are paranoid it&amp;rsquo;s pretty usable. Now&amp;hellip; of course I had to try out super calls in my sample code&amp;hellip;&lt;/p></description></item><item><title>Squeak to Nim, come in Nim...</title><link>https://goran.krampe.se/2014/11/03/squeak-to-nim/</link><pubDate>Mon, 03 Nov 2014 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2014/11/03/squeak-to-nim/</guid><description>&lt;p>In my exploration of &lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
 the turn has come to see how we can use Nim together with &lt;a href="http://squeak.org" target="_blank" rel="noopener noreferrer">Squeak&lt;/a>
.&lt;/p>
&lt;p>Squeak (and Pharo) has two basic mechanisms of interfacing with the C world:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="http://stephane.ducasse.free.fr/FreeBooks/CollectiveNBlueBook/greenberg.pdf" target="_blank" rel="noopener noreferrer">Squeak VM plugins&lt;/a>
. That pdf is old, but still fairly accurate I guess.&lt;/li>
&lt;li>&lt;a href="http://wiki.squeak.org/squeak/1414" target="_blank" rel="noopener noreferrer">Squeak FFI&lt;/a>
, Foreign Function Interface.&lt;/li>
&lt;/ul>
&lt;p>The VM plugins are basically a controlled way to introduce new &amp;ldquo;named&amp;rdquo; primitives in Smalltalk that can be invoked from Smalltalk. A plugin can be built either linked into the VM binary (statically) or as a dynamically loaded library (dll, so, dylib etc). When &amp;ldquo;all else fails&amp;rdquo; a plugin is the way to go, but they are a bit awkward to work with.&lt;/p>
&lt;p>Then we have the FFI which is a generic way to dynamically call dynamically loaded libraries. In other words, no compilation step needed - just type the correct Smalltalk line and the library will load and the calls work. Now&amp;hellip; sure, the FFI mechanism is a bit slower, since it needs to look at arguments and make the proper type conversions for the call. But the FFI is heavily used in the commercial Terf system, in fact, all the OpenGL calls are done through it. So its quite proven, and not that slow.&lt;/p>
&lt;p>&lt;strong>NOTE:&lt;/strong> There are in fact several FFIs today, the old one, the one called Alien and Pharo is brewing a new one called UFFI.&lt;/p>
&lt;p>Let&amp;rsquo;s see if we can use the good old FFI with Nim.&lt;/p></description></item><item><title>Nim and OO, Part II</title><link>https://goran.krampe.se/2014/10/31/nim-and-oo-part-ii/</link><pubDate>Fri, 31 Oct 2014 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2014/10/31/nim-and-oo-part-ii/</guid><description>&lt;p>In the &lt;a href="https://goran.krampe.se/2014/10/29/nim-and-oo" >previous article&lt;/a>
 when I explored OO mechanisms in &lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
 I felt I dropped the ball a bit in my Fruit example. This is a followup.&lt;/p>
&lt;p>In that article we first implemented some Fruit &amp;ldquo;classes&amp;rdquo; mixing methods and procs. Then I presented a cleaned up version using methods only, and a teeny template in order to reuse a base method. This template was needed since Nim currently doesn&amp;rsquo;t have a &amp;ldquo;call-next-method-matching&amp;rdquo; for multimethods like Dylan or CLOS have. This is being discussed and I think all agree that there needs to be &lt;strong>some&lt;/strong> mechanism so that you can call a &amp;ldquo;next lesser match&amp;rdquo; of all matching multimethods.&lt;/p>
&lt;p>But I also wrote that the example &lt;strong>can be written perfectly well using generics and procs only&lt;/strong>, thus ensuring static binding and maximum speed. But the &amp;ldquo;super call&amp;rdquo; problem also existed for procs, and the template hack was just a hack. After more experimentation I now &lt;strong>think I found the proper Nim way&lt;/strong> to do this so let&amp;rsquo;s take a look&amp;hellip;&lt;/p></description></item><item><title>Nim and OO, Part III</title><link>https://goran.krampe.se/2014/10/31/nim-and-oo-part-iii/</link><pubDate>Fri, 31 Oct 2014 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2014/10/31/nim-and-oo-part-iii/</guid><description>&lt;p>So previously in &lt;a href="https://goran.krampe.se/2014/10/31/nim-and-oo-part-ii" >Nim and OO Part II&lt;/a>
 we saw how we could solve the &amp;ldquo;super call&amp;rdquo; issue using only procs and generics in &lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
. This means that all code is statically bound.&lt;/p>
&lt;p>But if you have read all these article you know I also tried the more appropriate mechanism for OO - so called &lt;strong>methods&lt;/strong>. In Nim a proc is a regular statically bound function, simple and fast. A &lt;strong>method&lt;/strong> on the other hand uses dynamic multimethod dispatch on the &lt;strong>runtime types&lt;/strong> of all object parameters. The easy way to do objects in Nim (with inheritance of behavior) is using methods - but of course, this means dynamic lookup that has a runtime cost, but quite small as we will see.&lt;/p>
&lt;p>Time for benchmarking!&lt;/p></description></item><item><title>Nim and OO</title><link>https://goran.krampe.se/2014/10/29/nim-and-oo/</link><pubDate>Wed, 29 Oct 2014 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2014/10/29/nim-and-oo/</guid><description>&lt;p>&lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
 is presented as an &lt;strong>imperative&lt;/strong> language. And yes, it has some of its roots in the Pascal line of languages, but it also has a set of powerful abstraction mechanisms making it very suitable for object oriented programming. And when I write &lt;em>&amp;ldquo;object oriented&amp;rdquo;&lt;/em> I am referring to a broader flexible sense of OO in which objects can be formulated with attached behavior, polymorphism between different objects, some kind of reuse model of code (inheritance etc) and some type of dynamic dispatch.&lt;/p>
&lt;p>Since I am a &lt;a href="http://www.squeak.org" target="_blank" rel="noopener noreferrer">long time&lt;/a>
 &lt;a href="http://pharo.org" target="_blank" rel="noopener noreferrer">Smalltalker&lt;/a>
 that is my main reference for &lt;em>&amp;ldquo;good OO&amp;rdquo;&lt;/em> and not the &amp;hellip; monstrous OO often seen in Java or C++. Its hard to explain the differences, but let me just say that OO in Smalltalk is elegant and natural, very much like in Ruby or Python - but ever so more streamlined. Smalltalk is a dynamically strongly typed reflective language with a heavily closure based style.&lt;/p>
&lt;p>In this article I will try to make &amp;ldquo;sense&amp;rdquo; out of how to do OO in Nim.&lt;/p></description></item><item><title>I missed Nim</title><link>https://goran.krampe.se/2014/10/20/i-missed-nim/</link><pubDate>Mon, 20 Oct 2014 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2014/10/20/i-missed-nim/</guid><description>&lt;p>A year ago I wrote an article trying to round up &lt;a href="http://goran.krampe.se/2013/09/07/new-languages-this-century" target="_blank" rel="noopener noreferrer">new languages since year 2000&lt;/a>
 and what I think of them by just&amp;hellip; glancing at them, or otherwise playing with them. I ended up sifting out the 4 most interesting in my not so humble opinion - &lt;a href="http://golang.org" target="_blank" rel="noopener noreferrer">Go&lt;/a>
, &lt;a href="http://www.rust-lang.org" target="_blank" rel="noopener noreferrer">Rust&lt;/a>
, &lt;a href="http://dartlang.org" target="_blank" rel="noopener noreferrer">Dart&lt;/a>
 and &lt;a href="http://julialang.org" target="_blank" rel="noopener noreferrer">Julia&lt;/a>
. Now a year has passed and&amp;hellip;&lt;/p>
&lt;p>&lt;strong>I discover that I missed Nim(Nimrod)!&lt;/strong>&lt;/p>
&lt;p>&lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
 was born somewhere around 2006-ish and is clearly a very serious language to consider, but is going suspiciously under the radar. Having reviewed this language more closely (and still doing so) I can safely say that &lt;strong>for me&lt;/strong> it actually easily &lt;strong>tops this list&lt;/strong>.&lt;/p>
&lt;p>I have already posted &lt;a href="http://goran.krampe.se/categories/nim" target="_blank" rel="noopener noreferrer">a few articles about Nim&lt;/a>
, but this one is meant as a &lt;em>followup&lt;/em> to &lt;a href="http://goran.krampe.se/2013/09/07/new-languages-this-century" target="_blank" rel="noopener noreferrer">that article&lt;/a>
 trying to make amends :).&lt;/p>
&lt;p>&lt;em>&lt;strong>NOTE:&lt;/strong> Technically &lt;a href="http://nim-lang.org" target="_blank" rel="noopener noreferrer">Nim&lt;/a>
 is still called &amp;ldquo;Nimrod&amp;rdquo; up to and including the &lt;a href="http://nim-lang.org/news.html#Z2014-10-19-version-0-9-6-released" target="_blank" rel="noopener noreferrer">0.9.6-release that was done yesterday&lt;/a>
. But for the upcoming 0.10.0 and onward its &lt;strong>Nim&lt;/strong>. Short and sweet.&lt;/em>&lt;/p></description></item><item><title>ESUG in Annecy Day 4</title><link>https://goran.krampe.se/2013/09/12/esug-in-annecy-day-4/</link><pubDate>Thu, 12 Sep 2013 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2013/09/12/esug-in-annecy-day-4/</guid><description>&lt;p>It starts off with Cincom, Arden Thomas presenting their roadmap. He had a slide mentioning Jules Verne and I must ask him if he is aware of the influence from the books of Jules Verne - as Dan has explained, the ballon and the island in the &lt;a href="http://st-www.cs.illinois.edu/Graphics/bytebloon.jpg" target="_blank" rel="noopener noreferrer">classic Smalltalk logo&lt;/a>
 comes &lt;a href="http://wiki.squeak.org/squeak/3459" target="_blank" rel="noopener noreferrer">from the Mysterious Island book&lt;/a>
.&lt;/p></description></item><item><title>ESUG in Annecy Day 3</title><link>https://goran.krampe.se/2013/09/11/esug-in-annecy-day-3/</link><pubDate>Wed, 11 Sep 2013 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2013/09/11/esug-in-annecy-day-3/</guid><description>&lt;p>Day three blurred a bit for me - lots of mingling and hacking intermixed with some nice presentations, but I missed quite a lot, I admit, like the presentation on new native UI stuff in VisualWorks and the &lt;a href="https://github.com/dalehenrich/tode" target="_blank" rel="noopener noreferrer">tODE&lt;/a>
 stuff from Dale Henrichs.&lt;/p></description></item><item><title>ESUG in Annecy Day 2</title><link>https://goran.krampe.se/2013/09/10/esug-in-annecy-day-2/</link><pubDate>Tue, 10 Sep 2013 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2013/09/10/esug-in-annecy-day-2/</guid><description>&lt;p>Another day in &lt;a href="http://www.iae.univ-savoie.fr" target="_blank" rel="noopener noreferrer">IAE Universite Savoie Mont-Blanc&lt;/a>
 in Annecy.&lt;/p>
&lt;p>Only writing about stuff I attended :)&lt;/p></description></item><item><title>ESUG in Annecy Day 1</title><link>https://goran.krampe.se/2013/09/09/esug-in-annecy-day-1/</link><pubDate>Mon, 09 Sep 2013 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2013/09/09/esug-in-annecy-day-1/</guid><description>&lt;p>Here we go! Time for a week of Smalltalking fun in &lt;a href="http://www.iae.univ-savoie.fr" target="_blank" rel="noopener noreferrer">IAE Universite Savoie Mont-Blanc&lt;/a>
 in Annecy.&lt;/p>
&lt;p>While &lt;a href="esug.org/wiki/pier/Conferences/2013" >ESUG&lt;/a>
 this year is not super big, I think &lt;strong>around 110 people&lt;/strong> or so, there were still quite a few arms raised when checking how many were here for the first time. The organisation seems impeccable, as always - thank you Stéphane Ducasse, Herve Verjus, Laurent Laffont and of course all volunteers!&lt;/p>
&lt;p>Enough chit-chat, let&amp;rsquo;s get on with the talks&amp;hellip;&lt;/p></description></item><item><title>New Languages After 2000</title><link>https://goran.krampe.se/2013/09/07/new-languages-after-2000/</link><pubDate>Sat, 07 Sep 2013 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2013/09/07/new-languages-after-2000/</guid><description>&lt;p>I am sitting in a gate on an airport waiting to go to &lt;a href="http://www.esug.org/wiki/pier/Conferences/2013" target="_blank" rel="noopener noreferrer">ESUG&lt;/a>
 so I felt I should finally get this article out the door. In a presentation earlier this year I asked what has happened in the programming language area since year 2000? &lt;em>Not much&lt;/em> I felt and I couldn&amp;rsquo;t really name any interesting new language when thinking about it. But then I decided to look more closely and I can conclude I was at least partly wrong :)&lt;/p>
&lt;p>So prepare for a &lt;strong>long&lt;/strong> (too long) article digging through a whole bunch of languages trying to come up with the answer - &lt;em>Have any interesting programming languages appeared since year 2000?&lt;/em>&lt;/p>
&lt;p>(And at the end, how is the Smalltalk community doing?)&lt;/p></description></item></channel></rss>