/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

blog.tst.sh
| | largedatabank.com

I heard a lot of good things about Mike Okasaki's Purely Functional Data Structures at UChicago, but didn't ever take the time to check it out. Lately I've missed the heady joy of reading and writing code in a strongly typed functional programming language like Standard ML, so when one of my coworkers at Knewton mentioned he was going to read the book I decided to get a copy for myself.
12.5 parsecs

Travel
| |
| | ciesie.com

Today I've played around with Zig, the new, hip (is it hip?) programming language. I find it pretty neat. I'm going to walk you (and myself) through my first, very short, piece of code. Below you can see the entirety of it. It basically allocates a 2MB buffer and reads a file into it... Yep, not particularly impressive, but this is a judgment free, learning zone, ok?! 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 const std = @import("std"); const warn = @import("std").
15.8 parsecs

Travel
| |
| | brettterpstra.com

I got up a bit too early this morning. I finished a sprint on a freelance project but wasn't ready to dig into my other big stuff yet. That stuff's for after 5am. Before 5am is Bunch time...
10.0 parsecs

Travel
| |
| | blog.nuculabs.de

Hi In this article I want to highlight a simple pattern for sorting a slice in Go on multiple keys. Given the following structure, let's say we want to sort it in ascending order after Version, Generation and Time. 1 2 3 4 5 type TheStruct struct { Generation int Time int Version int } The way we sort slices in Go is by using the sort interface or one of the sort.Slice functions. To sort the slice after the above criteria we'll call slice.Sort with the following function.
38.7 parsecs

Travel
|