batch: running functions under a spingate

1 A batch of tasks to run This adds a rather simple component to spingate orchestrating a batch of tasks to be run, gated by the spingate. The tasks are added one at a time, a thread is created for the task, and the thread waits on the spingate to open before calling the task. …

Building Emacs 25.1 on Ubuntu 16.10

Table of Contents 1. Why notes 2. Getting Ready 3. Configure and build with magic option 1 Why notes Making notes so I don’t forget, although the key problem is fixed upstream. Ubuntu 16.10 (Yakkety Yak) has made a critical change to the system compiler, and everything is by default built with position independent executable …

Real World Haskell – Chapter 3

These are the exercises from chapter 3 ofReal World Haskellby Bryan O’Sullivan, Don Stewart, and John Goerzen> module RWHChapter3 where{-# OPTIONS_GHC -XMagicHash #-}Some useful things to check my work:> import Test.QuickCheck> import Data.List> import GHC.Prim> import GHC.Base1) Write a function that computes the number of elements in a list. To test it, ensure that it …