Hide
Scraps
RSS

Nim at FOSDEM - Frequently asked questions

23rd February 2018

Nim recently had a stand at FOSDEM 2018. It was lot's of fun meeting up with all the people whom I've only gotten to know by their IRC nicknames. And very interesting to help out at the stand telling people about Nim. In this post I want to write out some of the most frequent questions I got while helping out and answer them as a reference for those who might not have seen…


Nim types (originally a Reddit reply)

9th January 2018

While perusing the Nim subreddit I stumbled across a post asking for an explanation of how types work in Nim, especially how Nim allocates different types on the heap and the stack. Since the answer grew pretty long I decided to post it here as well for perpetuity. What follows is a copy of my response with some additional markdown.

First order of business heap vs. stack

Whenever you call a function it creates a stack…


Server migration and downtime

21st October 2017

This site has been down for a couple of days now. In fact the entire server has been down, which probably pained me more than it did you. Reason for this is that I have various services running on this server, most importantly perhaps my private git server. I've written before how I use git to maintain this site but that is only one of the many things I do with it. Typically I will…


Cross-platform GUIs and Nim macros

23rd March 2017

A while ago I read John Novaks great rant on how hard and annoying it can be to do something as simple as extending a cross-platform application with the simplest of GUIs. Or as he puts it:

You must not under any circumstance try to open a window (on the computer, I mean), attempt to change the colour of a single pixel in it, or—god forbid!—fantasise about using native (or any kind of, for the matter)…


Presentation on Functional programming

18th March 2017

Recently I held a presentation on functional programming at the University of Tromsø. The presentation was meant as an introduction to the concepts of the paradigm and some of the ideas behind it. It also contains a short section on how the data structures that facilitate the immutable state collections without copying everything. The entire presentation was done in one hour. As I habitually didn't write any notes for what I was going to say…