Explore >> Select a destination


You are here

www.serpentine.com
| | donsbot.com
12.3 parsecs away

Travel
| | A common misconception from non-Haskellers is that Haskell, when compiled, pays an ongoing penalty for supporting laziness by default. The idea is that in a lazy language, every expression would suspend to a heap-allocated, garbage collected, thunk. Even if you were to use the variable immediately. That sounds scarily expensive. In the real world however,...
| | andre.arko.net
12.1 parsecs away

Travel
| | So first, I should probably set the scene: in a special-purpose browser, automated and driven by JavaScript, there was a string that made no sense. Anytime it should have contained an apostrophe, it produced invalid JSON. Why would it do that, you ask? Well, after far too long digging into the way that smart quotes are represented in Unicode, I finally figured it out. A single left apostrophe, also known as \u2019, takes up three bytes. The third byte happens to be \x19, the obscure ^Y control character. Control characters aren't allowed in JSON strings, and so things exploded.
| | donsbot.com
18.0 parsecs away

Travel
| | In a recent mailing list thread Andrew Coppin complained of poor performance with "nice, declarative" code for computing the mean of a very large list of double precision floating point values: import System.Environment import Text.Printf mean :: [Double] -> Double mean xs = sum xs / fromIntegral (length xs) main = do [d] <- map...
| | jmmv.dev
77.1 parsecs away

Travel
| sandboxfs is a FUSE-based file system that exposes an arbitrary view of the host's file system under the mount point, and offers access controls that differ from those of the host. You can think of sandboxfs as an advanced version of bindfs (or mount --bind or mount_null(8) depending on your system) in which you can combine and nest directories under an arbitrary layout. The primary use case for this project is to provide a better file system sandboxing technique for the Bazel build system. The goal here is to run each build action (think compiler invocation) in a sandbox so that its inputs and outputs are tightly controlled, and sandboxfs attempts to do this in a more efficient manner than the current symlinks-based implementation.