<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>@japgolly Tech Blog</title><description>A tech blog, mostly about FP and Scala.</description><link>https://japgolly.github.io/blog/</link><item><title>Compilers are hard</title><link>https://japgolly.github.io/blog/posts/2021/compilers-are-hard/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2021/compilers-are-hard/</guid><description>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.</description><pubDate>Mon, 18 Jan 2021 03:14:00 GMT</pubDate></item><item><title>Scala, React, and SSR (part 2)</title><link>https://japgolly.github.io/blog/posts/2020/scala-react-and-ssr-part-2/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2020/scala-react-and-ssr-part-2/</guid><description>GraalVM lets us perform SSR but it&apos;s unfortunately still not fast enough yet. Luckily there&apos;s a way to have our cake and eat it too.</description><pubDate>Wed, 09 Sep 2020 00:30:00 GMT</pubDate></item><item><title>Scala, React, and SSR (part 1)</title><link>https://japgolly.github.io/blog/posts/2020/scala-react-and-ssr-part-1/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2020/scala-react-and-ssr-part-1/</guid><description>In the JS world, React devs can render their pages on the server side for a better user experience. Here&apos;s how to do in the Scala world.</description><pubDate>Sat, 22 Aug 2020 06:10:00 GMT</pubDate></item><item><title>Enforcing rules at compile-time: an example</title><link>https://japgolly.github.io/blog/posts/2018/enforcing-rules-at-compile-time-example/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2018/enforcing-rules-at-compile-time-example/</guid><description>Using a type-level Option encoding and @implicitNotFound in Scala to enforce React lifecycle method ordering rules at compile time in scalajs-react.</description><pubDate>Wed, 25 Jul 2018 23:39:00 GMT</pubDate></item><item><title>Practical Awesome Recursion - Ch 02: Catamorphisms</title><link>https://japgolly.github.io/blog/posts/2017/practical-awesome-recursion-ch-02/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2017/practical-awesome-recursion-ch-02/</guid><description>Chapter 2 of the Practical Awesome Recursion series in Scala: catamorphisms, F-algebras, performance optimization, and composable file system queries.</description><pubDate>Wed, 13 Dec 2017 01:09:00 GMT</pubDate></item><item><title>Practical Awesome Recursion - Ch 01: Fixpoints</title><link>https://japgolly.github.io/blog/posts/2017/practical-awesome-recursion-ch-01/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2017/practical-awesome-recursion-ch-01/</guid><description>Chapter 1 of the Practical Awesome Recursion series in Scala: preparing recursive data types with type parameters, Functor instances, and Fix.</description><pubDate>Mon, 20 Nov 2017 07:15:00 GMT</pubDate></item><item><title>Dependently-Typed Functions</title><link>https://japgolly.github.io/blog/posts/2017/dependently-typed-functions/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2017/dependently-typed-functions/</guid><description>How to implement exhaustive dependently-typed methods and first-class dependently-typed function values in Scala using path-dependent types and higher-kinded folds.</description><pubDate>Mon, 05 Jun 2017 11:27:00 GMT</pubDate></item><item><title>Testing Scala.JS on Firefox &amp; Chrome from SBT</title><link>https://japgolly.github.io/blog/posts/2016/scalajs-firefox-chrome-sbt/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2016/scalajs-firefox-chrome-sbt/</guid><description>How to integrate scala-js-env-selenium into an SBT project to run Scala.JS unit tests headlessly on real Firefox and Chrome browsers without recompiling.</description><pubDate>Sun, 20 Mar 2016 05:04:00 GMT</pubDate></item><item><title>Zero-overhead Recursive ADT Coproducts</title><link>https://japgolly.github.io/blog/posts/2015/zero-overhead-recursive-adt-coproducts/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2015/zero-overhead-recursive-adt-coproducts/</guid><description>Modeling zero-overhead, sealed, recursive ADT coproducts in Scala using path-dependent types and trait composition, compared against inheritance hacks and Shapeless.</description><pubDate>Mon, 23 Feb 2015 08:18:00 GMT</pubDate></item><item><title>An Example of Functional Programming</title><link>https://japgolly.github.io/blog/posts/2014/an-example-of-functional-programming/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2014/an-example-of-functional-programming/</guid><description>A practical, beginner-friendly walkthrough of functional programming in Scala, incrementally building a composable user-data validation library across five evolving requirements.</description><pubDate>Sun, 28 Sep 2014 11:56:00 GMT</pubDate></item><item><title>A Year of Functional Programming</title><link>https://japgolly.github.io/blog/posts/2014/a-year-of-functional-programming/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2014/a-year-of-functional-programming/</guid><description>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.</description><pubDate>Mon, 09 Jun 2014 08:53:00 GMT</pubDate></item><item><title>Scala: Methods vs Functions</title><link>https://japgolly.github.io/blog/posts/2013/scala-methods-vs-functions/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2013/scala-methods-vs-functions/</guid><description>Micro-benchmarking Scala methods versus first-class Function instances using ScalaMeter across direct invocation, higher-order passing, and primitive vs object boxing.</description><pubDate>Sat, 26 Oct 2013 00:06:00 GMT</pubDate></item><item><title>Keyed Lenses</title><link>https://japgolly.github.io/blog/posts/2013/keyed-lenses/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2013/keyed-lenses/</guid><description>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.</description><pubDate>Thu, 05 Sep 2013 04:56:00 GMT</pubDate></item><item><title>Trial: Choosing Lift over Rails</title><link>https://japgolly.github.io/blog/posts/2013/trial-choosing-lift-over-rails/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2013/trial-choosing-lift-over-rails/</guid><description>Starting a new webapp with Scala&apos;s Lift framework instead of Ruby on Rails — weighing security, speed, snippets, and Ajax against a smaller ecosystem.</description><pubDate>Thu, 25 Apr 2013 01:57:00 GMT</pubDate></item><item><title>Lessons Learnt on My Second Android App - Pt.1</title><link>https://japgolly.github.io/blog/posts/2013/lessons-learnt-on-my-second-android-app/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2013/lessons-learnt-on-my-second-android-app/</guid><description>Bitmap scaling, manual bitmap memory cleanup, PNGOUT compression, and screen width lessons learned while building my second Android app, Time Us!.</description><pubDate>Wed, 17 Apr 2013 04:55:00 GMT</pubDate></item><item><title>Android Project Templates</title><link>https://japgolly.github.io/blog/posts/2013/android-project-templates/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2013/android-project-templates/</guid><description>Three Maven and Eclipse compatible Android project templates for Java, single-app Scala, and dual free/paid Scala editions.</description><pubDate>Mon, 18 Feb 2013 21:54:00 GMT</pubDate></item><item><title>Releasing an App for Android - Part 2</title><link>https://japgolly.github.io/blog/posts/2013/releasing-app-for-android-part-2/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2013/releasing-app-for-android-part-2/</guid><description>Part 2 of lessons from releasing my first Android app: free and paid editions, AdMob advertising, localisation, Proguard, signing, and Maven vs SBT.</description><pubDate>Sat, 09 Feb 2013 22:44:00 GMT</pubDate></item><item><title>Releasing an App for Android - Part 1</title><link>https://japgolly.github.io/blog/posts/2013/releasing-app-for-android-part-1/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2013/releasing-app-for-android-part-1/</guid><description>Part 1 of lessons from releasing my first Android app (BPM Tapper): Android completeness, multi-density layouts, using Scala on Android, and vector artwork.</description><pubDate>Fri, 08 Feb 2013 01:01:00 GMT</pubDate></item><item><title>Maven: Now with Colour™ !</title><link>https://japgolly.github.io/blog/posts/2012/maven-now-with-colour/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2012/maven-now-with-colour/</guid><description>A bash and Perl wrapper script that adds ANSI colour highlighting to Maven CLI output and strips noisy failure boilerplate.</description><pubDate>Sun, 18 Nov 2012 08:40:00 GMT</pubDate></item><item><title>Rant: Stupid Maven</title><link>https://japgolly.github.io/blog/posts/2012/rant-stupid-maven/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2012/rant-stupid-maven/</guid><description>Venting frustrations with Maven around distributionManagement in POMs, single-inheritance parent POMs, uninherited plugin versions, and verbose XML.</description><pubDate>Thu, 01 Nov 2012 06:56:00 GMT</pubDate></item><item><title>Problems with at_exit{}, exit(), and RSpec</title><link>https://japgolly.github.io/blog/posts/2012/problems-with-atexit-and-exit-and-rspec/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2012/problems-with-atexit-and-exit-and-rspec/</guid><description>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.</description><pubDate>Wed, 12 Sep 2012 04:47:00 GMT</pubDate></item><item><title>I Have Returned</title><link>https://japgolly.github.io/blog/posts/2012/i-have-returned/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2012/i-have-returned/</guid><description>Back home after four months of overseas travel across Asia and India, ready to focus on work and blogging again.</description><pubDate>Wed, 12 Sep 2012 03:45:00 GMT</pubDate></item><item><title>Ruby Mutex Reentrancy</title><link>https://japgolly.github.io/blog/posts/2012/ruby-mutex-reentrancy/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2012/ruby-mutex-reentrancy/</guid><description>Discovering that Ruby&apos;s Mutex is not reentrant, using Monitor instead, and benchmarking the performance trade-off across MRI and JRuby.</description><pubDate>Mon, 23 Apr 2012 00:00:00 GMT</pubDate></item><item><title>Ruby JSON Libraries</title><link>https://japgolly.github.io/blog/posts/2012/ruby-json-libraries/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2012/ruby-json-libraries/</guid><description>Benchmarking Ruby and JRuby JSON libraries (Oj, YAJL, json-jruby, json_pure, json, OkJson, and jrjackson) across MRI, OpenJDK, and Oracle Java.</description><pubDate>Wed, 18 Apr 2012 10:27:00 GMT</pubDate></item><item><title>I Have Blog</title><link>https://japgolly.github.io/blog/posts/2012/and-i-decided-i-would-create-new-blog/</link><guid isPermaLink="true">https://japgolly.github.io/blog/posts/2012/and-i-decided-i-would-create-new-blog/</guid><description>Starting a new blog for the first time in nearly six years, christened with a favourite excerpt from Steven Erikson&apos;s Malazan Book of the Fallen.</description><pubDate>Mon, 02 Apr 2012 06:22:00 GMT</pubDate></item></channel></rss>