Jonas Carpay (@jonascarpay) header
Jonas Carpay (@jonascarpay) profile picture
Tokyo
Joined July 2013
Photo by Jonas Carpay (@jonascarpay)Photo by Jonas Carpay (@jonascarpay)Photo by Jonas Carpay (@jonascarpay)Photo by Jonas Carpay (@jonascarpay)Photo by Jonas Carpay (@jonascarpay)Photo by Jonas Carpay (@jonascarpay)Photo by Jonas Carpay (@jonascarpay)Photo by Jonas Carpay (@jonascarpay)Photo by Jonas Carpay (@jonascarpay)Photo by Jonas Carpay (@jonascarpay)
This week's AI mood: this is to software what AD was to driving. Next week: back to existential dread, probably.
22
Finally got around to wrapping up and publishing the rust port of frecently crates.io/crates/freqle
38
New cool workflow thing: this jujutsu script that drops you into a temporary workspace shell. Great for agents, or just to work on two things simultaneously and figure out the merge later. github.com/jonascarpay/nix/b…
1
52
タンタンの男性
225
Big QoL improvement for our Nix CI: piping all output through sed -E 's#/nix/store/([a-z0-9]{5})[a-z0-9]{27}-([a-zA-Z0-9+?=._-]+)#<\2_\1>#g' It renders store paths as <python-3.10_0a1b2>, making it a lot less intimidating esp. to non-Nix folk
424
Jonas Carpay retweeted
Replying to @jonascarpay
Nice writeup! Funny enough, I have exact the same setup ready for AWS tutorial to be used with Cachix Deploy (app.cachix.org/deploy). Use the AMI to bootstrap the initial connection and then use Cachix Deploy to take over the NixOS bits and leave provisioning to Terraform.
1
4
Jonas Carpay retweeted
I've been wanting to build a HIE backed source code grapher for ages, and now I don't have to! Even better, @jonascarpay has done a much better job than anything I envisioned. Go give this a try!
5
11
From calligraphy itself: the central LexTree data structure, and its reverse transitive dependencies. calligraphy 'src/*' --reverse-root LexTree --collapse-data --collapse-values --no-cluster-modules
1
1
3
And finally, from hashable: the regressions test suite. This is one's neat because Regress.Mmap is generated from a .hsc file. calligraphy tests/Main.hs 'Regress*'
1
2
Haskell trick of the day: Love newtypes but hate their derived Show instances? With -XDerivingStrategies, you can write `deriving newtype Show`. This overrides the default behavior of printing the constructor, and just reuses the parent Show instance directly instead. #haskell
2
8
1
52
I only just found out that hackage.haskell.org/package/… exists, containing IntMap/Set wrappers for any Enum. Just to be sure I checked the asm, and with -O2, overhead optimizes away completely for Int newtypes. No more choosing between performance and convenience for Key newtypes!
2
Here's the third post in our series about #PureNix (a #PureScript to #Nix transpiler). This is a mostly non-technical post about what lead us to start writing PureNix. functor.tokyo/blog/2022-01-1…
6
35
I put together a prototype of a cabal2nix tool that doesn't use IFD, but instead parses a .cabal file directly in #Nix. This is written in #PureScript and uses PureNix under the hood to transpile the code to Nix. github.com/cdepillabout/caba…
6
7
1
37
Today's blog post is about #nix black arts: Capturing non-determinism by salting derivations jonascarpay.com/posts/2021-1…
2
4