The personal website of Daniel Brice, PhD.
Made with Jekyll and hosted on GitHub Pages.
I’ll be using this space to muse about Math and coding and games, mostly.
Latest Blog Posts
-
Proving My Point
A coworker of mine has been kind enough to spend his scant spare time guiding a small group of future Haskellers through Hutton’s Programming in Haskell, assigning weekly problems and judging the solutions submitted along the way. What follows here today1 is my smart-ass solution to my colleague’s Problem 1.
more... -
Simple Linear Regression in One Pass
I recently had to implement linear regression for a hobby project. As I’d never learned how to calculate it, this was a great opportunity to learn. As I dug in, I saw that I’d need to be making two passes over my data. Let’s see if we can fix that.
more... -
The IO Rosetta Stone
Recently to a friend, I quipped that it’d be a good exercise towards demystifying Haskell’s
more...IO
type to write a comparableIO
type in your favorite language. In this blog post, I do that for Java, Javascript, Python, and Scala. -
Getting More Meaning From Your Case Classes
This will be a small post where I share some techniques we found for getting some additional type safety from our Scala case classes. We’ll look at case classes that validate their input data and we look at case classes that allow selecting from among multiple instances of the same typeclass.
more... -
Denotational Semantics in a Nutshell
Wherein I attempt to give a 10,000-foot overview of semantics of programming languages.
more...