Advice for Haskell beginners (2017)
How to start off on the right foot
The latest blog posts to take off on Hacker News. 49,258 posts.
How to start off on the right foot
A remainder and a modulus look so very similar, but they are not the same thing and worse, are treated differently by different programming languages. Do you know how your language handles mod?
PREFACE. This essay was written in 2009. Since then, a few errata have been corrected and I embedded the youtube videos, but there have been no substantial additions. I think it still holds up fairly well, but if I were to rewrite it today, I would change some things. My main regret is using the criteria of maximum…
Event sourcing and CQRS gained a lot of popularity recently. The advantages are obvious and they share a very peculiar symbiosis with the…
There’s a trend among start-ups (and some larger companies) that worries me: giving candidates “homework” assignments. Homework assignments lead to candidate abuse. Knock it off (or at least be reasonable). I’ve seen many friends and clients go through this. As a pre-screening round before an onsite
Here, I provide an in-depth analysis of GPUs for deep learning/machine learning and explain what is the best GPU for your use-case and budget.
I read the ESPN piece on Kevin Love and other NBA players’ mental health issues this morning. My son had sent it to me yesterday. The bit about his panic attack during an Atlanta Hawks game, initially disclosed in this piece Kevin wrote on The Players Tribune, was particularly hard to read. Kevin Love started […]
In 1843, Ada Lovelace published the first nontrivial program. How did it work?
October 1997: It has been six years since I finished Paradigms of AI Programming (or PAIP ), and now seems like a good time to look back at how Lisp and AI programming have changed.
I discovered the existence of Lars Svendsen thanks to a forum discussion about - of all things - the modern apparel industry. One of the comments mentioned in passing his "Fashion: A Philosophy" and the idea of someone writing a philosophical analysis of Fashion intrigued me… so I checked out the book on Amazon. In…
Random thoughts
There was a paper recently where a research team trained a machine learning algorithm (a GAN they called AttnGAN) to generate pictures based on written descriptions. It’s like Visual Chatbot in reverse. When it was just trained to generate pictures of birds, it did pretty well, actually.
Someone recently asked me how my experience has been with a couple of ROMs I have tried on my Android phone. Which reminded me that I need to write a post de...
One of the first games I ever played on my family’s Apple IIe was the Jordan Mechner master work, Karateka . Fight the bad guys, save the princess – it’s a simple but classic formula. My brother and I would take turns making our way through Akuma’s fortress. Even then, we wanted a two player version.
[Another submission from a former postdoc at one of the top ten universities in the U.S. The e-mail came to me as follows: "I read your b...
Mathematics, applications of mathematics to life in general, and my life as a mathematician.
Suggested Citation: Bai, H. (2018) Evidence that A Large Amount of Low Quality Responses on MTurk Can Be Detected with Repeated GPS Coordinates. Retrieved from: https://www.maxhuibai.com/blog/evidence-that-responses-from-repeating-gps-are-random
React 16.3 added a new Context API – new in the sense that the old context API was a behind-the-scenes feature that most people either didn’t know about, or avoided using because the docs said to avoid using it.
The personal website and blog of Daniel Long Sockwell, a lawyer-turned-programmer with an interest in web development, open source, and making things as simple as possible.
One of the long-standing issues that we’ve been wrestling with in Rust is how to integrate the concept of an “uninhabited type” – that is, a type which has no values at all. Uninhabited types are useful to represent the “result” of some computation you know will never execute – for example, if you have to define an…
Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible. It provides atomic upgrades and rollbacks, side-by-side installation of multiple versions of a package, multi-user package management and easy setup of build environments.
A few months ago I fiddled around with writing Space Invaders using Go. I had a lot of fun writing it but the output only worked on iTerm2 because it used a specific feature of that terminal. In order to play the game you’d really have to download iTerm2 and run it on the command line. I thought it’d be fun to muck…
This article gives an overview of the implementation and performance of two recent additions to LocustDB, an extremely fast open-source analytics database built in Rust. The first addition is suppo…