Skip to content
@japgolly Tech Blog

Archives

All the articles I've archived.

2021 1
January 1
  • Compilers are hard

    Writing (something like) a compiler is hard. Here I explore what some of the difficulties are, and provide some strategies to ensure you still maintain quality.

2020 2
September 1
  • Scala, React, and SSR (part 2)

    GraalVM lets us perform SSR but it's unfortunately still not fast enough yet. Luckily there's a way to have our cake and eat it too.

August 1
  • Scala, React, and SSR (part 1)

    In the JS world, React devs can render their pages on the server side for a better user experience. Here's how to do in the Scala world.

2018 1
July 1
2017 3
December 1
November 1
June 1
  • Dependently-Typed Functions

    How to implement exhaustive dependently-typed methods and first-class dependently-typed function values in Scala using path-dependent types and higher-kinded folds.

2016 1
March 1
2015 1
February 1
  • Zero-overhead Recursive ADT Coproducts

    Modeling zero-overhead, sealed, recursive ADT coproducts in Scala using path-dependent types and trait composition, compared against inheritance hacks and Shapeless.

2014 2
September 1
  • An Example of Functional Programming

    A practical, beginner-friendly walkthrough of functional programming in Scala, incrementally building a composable user-data validation library across five evolving requirements.

June 1
  • A Year of Functional Programming

    Reflections after one year of functional programming—from discovering Scala, Haskell, and Scalaz to embracing abstractions, expressive types, property-based testing, and computer science academia.

2013 7
October 1
  • Scala: Methods vs Functions

    Micro-benchmarking Scala methods versus first-class Function instances using ScalaMeter across direct invocation, higher-order passing, and primitive vs object boxing.

September 1
  • Keyed Lenses

    Introducing KeyedLens in Scala and Scalaz—a composable lens variant that requires a key to focus into maps or indexed collections, propagating keys cleanly through composition.

April 2
  • Trial: Choosing Lift over Rails

    Starting a new webapp with Scala's Lift framework instead of Ruby on Rails — weighing security, speed, snippets, and Ajax against a smaller ecosystem.

  • Lessons Learnt on My Second Android App - Pt.1

    Bitmap scaling, manual bitmap memory cleanup, PNGOUT compression, and screen width lessons learned while building my second Android app, Time Us!.

February 3
  • Android Project Templates

    Three Maven and Eclipse compatible Android project templates for Java, single-app Scala, and dual free/paid Scala editions.

  • Releasing an App for Android - Part 2

    Part 2 of lessons from releasing my first Android app: free and paid editions, AdMob advertising, localisation, Proguard, signing, and Maven vs SBT.

  • Releasing an App for Android - Part 1

    Part 1 of lessons from releasing my first Android app (BPM Tapper): Android completeness, multi-density layouts, using Scala on Android, and vector artwork.

2012 7
November 2
  • Maven: Now with Colour™ !

    A bash and Perl wrapper script that adds ANSI colour highlighting to Maven CLI output and strips noisy failure boilerplate.

  • Rant: Stupid Maven

    Venting frustrations with Maven around distributionManagement in POMs, single-inheritance parent POMs, uninherited plugin versions, and verbose XML.

September 2
  • Problems with at_exit{}, exit(), and RSpec

    Why Ruby at_exit cleanup hooks can clobber $! and cause RSpec to return exit code 0 on test failures, and a helper method to preserve the exit status.

  • I Have Returned

    Back home after four months of overseas travel across Asia and India, ready to focus on work and blogging again.

April 3
  • Ruby Mutex Reentrancy

    Discovering that Ruby's Mutex is not reentrant, using Monitor instead, and benchmarking the performance trade-off across MRI and JRuby.

  • Ruby JSON Libraries

    Benchmarking Ruby and JRuby JSON libraries (Oj, YAJL, json-jruby, json_pure, json, OkJson, and jrjackson) across MRI, OpenJDK, and Oracle Java.

  • I Have Blog

    Starting a new blog for the first time in nearly six years, christened with a favourite excerpt from Steven Erikson's Malazan Book of the Fallen.