Showing all entries tagged with: Nim

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…

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)…

TinyWM implementation in Nim

13th June 2016

Lately I've been toying with the idea of creating a window manager for Linux. It's not that there is a lack of them, rather quite the opposite, the Linux world is full of them. But suffice to say that I have some ideas which I think would be a welcome addition and I've started tinkering with creating my own. If for nothing else it would be an interesting challenge. However to create a window manager…