← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 88
  1. Idle coding

    I've discovered a new hobby.

  2. Recently, I gave my TOML library written in Swift an 800% speed boost.

  3. TOMLDecoder 0.4 is 800% Faster

    I just released version 0.4.1 of TOMLDecoder, a TOML 1.0 parser, and decoder implemented in pure Swift.

  4. Padding a Squircle in FreeCAD 1.0

    I bought a 3D printer, and, as a result, got into 3D modeling recently.

  5. GRPC Status With Error Details in Swift

    Introduction In GRPC, one could define an RPC that, in addition to the normal request-response messages, it also defines a custom message to represent errors: message SignUpWithEmailRequest { string email = 1; string password = 2; string referral_co…

  6. Notes on Using the MLIR C API in Swift

    For curiosity's sake, I decided I want to play with MLIR's C API with Swift.

  7. AI Coding

    I tried out GitHub Copilot this weekend.

  8. Don't Say That

    Alice: Hey, did you know that COVID virus was leaked from a lab?

  9. The Qualia that was Coding

    As of this writing, I'm deeply skeptical of LLM replacing our needs for skilled programmers.

  10. As of today, my identity in the "fediverse" has become @daniel@duan.ca.

  11. The Social Graph

    From a purely personal perspective, connecting with people via the internet is good.

  12. Control

    For whatever reason, a dialogue from the Matrix trilogy stuck with me.

  13. Pro-Science, Anti Research

    Science discussion in the mainstream always focus on the reductive "pro" vs "anti" dynamic.

  14. Visceral

    Growing up in China, I remember using google.cn daily.

  15. How do you use use Instruments, the instrumentation tool distributed alongside Xcode?

  16. Flake For Non-Nix Projects

    The ideal outcome of using Nix or home-manager is to have as many things as possible under their control.

  17. Flake, Home Manager, and Extra Packages

    So, you use a standalone home-manager, it's set up with flake, tracking a particular nixpkgs channel.

  18. An Invisible Chasm

    In the journey of growing software systems, there comes a point where certain engineering decision will create a chasm so large that it's practically impossible to go back.

  19. The problem As of writing of this article, when you attempt to use Apple's Swift library IndexStoreDB on Linux as a normal SwiftPM dependency, it won't build successfully: ❯ cat Package.resolved { "object": { "pins": [ { "package": "In…

  20. Making of a TOML parser

    During the holidays, I spent some time on the parser that underlies TOMLDecoder.

  21. Installing Nix on macOS 11 Big Sur

    Note: as of Feburary, 2022, the steps written below has been incorporated by the official Nix install script for macOS.

  22. Markra 1.0

    I've never been patient enough to learn the JIRA plain-text syntax, depite being a frequent user throughout the years.

  23. Swift has a pretty decent C-interoperability story.

  24. Faster C Strings in Swift

    One of the goals in the re-write of my VFS library Pathos is to make it go fast.

  25. Fall Guys are Among Us

    I noticed a lot of people are playing these two games on Twitch recently: Fall Guys and Among Us.

  26. Taking Screenshots On Linux

    Having used macOS for a number of years, I've formed some habit that I'm never going to shake.

  27. StreamLogger

    After turning off stream on Twitch, the first thing I normally do is exporting the stream video to YouTube, so that the stream has an archive that survives Twitch's short-ish retain policy.

  28. Introducing Dye

    Recently, I got a PC.

  29. Naive NixOS Rust Development

    tl;dr: To work on Rust project with nix-shell, rls and extensions such as rust-analysis, rust-src, without caring too much about specific Rust toolchain version (except for it being stable), use the following shell.nix: let moz_overlay = import (builtin…

  30. Site Improvements 2020

    I took back my website.

  31. Git Commit Message, Vim, and Markdown

    It's been bothering me for years.

  32. On the Subject of Interface Hygiene

    In a purly reactive world, your entire program merge into a single stream.

  33. TOML Decoder Playlist

    I enjoyed making TOMLDeserializer and TOMLDecoder recently.

  34. Kick-ass CLI Tools In Swift

    As someone who lives in a terminal simulator, I'm pleasantly surprised by the new toys we get in recent years such as fzf, ripgrep, fd, etc.

  35. Magical Interactions

    I want to talk about this little function: func interact(_ process: (String) -> String) { var input = "" while let line = readLine() { input += line } print(process(input)) } Brief explanation: it reads all the input from stdin as

  36. A Tale of Two Dates

    Recently, I discovered a curious thing about Dates in two large projects I work on.

  37. While implementing some file I/O APIs in Pathos, I decided reading/writing file content as Foundation.Data is kind of important (can you blame me?).

  38. Unix File Permissions In Swift

    Wrap file permissions from stat and chmod in an OptionSet in Swift.

  39. An Interpreter Without A Language

    From the AST and scopes, come a simple interpreter.

  40. Scopes Without A Language

    A short video on the concept of static scope.

  41. Coding Without A Language

    Sorry for the click-baity title.

  42. Scripting A 'cat' Under 1 Minute

    This video demonstrates a few things: the readLine standard library function, scripting with Swift, and pattern matching as loop conditions.

  43. Raw Coding Sessions

    Planning, recording and editing a video is something I find very enjoyable to do.

  44. Hello World In WebAssembly

    Every now and then, I check on the progress of Web Assembly.

  45. Building 'pwd' Under 1 Minute In Swift

    I guess I'm starting a series of minute-long videos.

  46. Contributing To Open-Source Swift

    I discover, report, fix and merge a bug in the open-source Foundation project.

  47. Smart Color Invert And Your iOS Apps

    Introduction The Basics Compatibility with older iOS versions How to screenshot with inverted color settings Conclusion Introduction Apple sneakily shipped a "dark mode" in iOS 11, native apps looks gorgeous in this mode (especially on iPhone X with it's…

  48. BitArray The Final Act

    Alas, there's the 3rd and last video about BitArray, originated on my spark of inspiration on a Caltrain ride home.

  49. Making An Open-Source Swift Project

    This video shows what it takes to open source a Swift project.

  50. Let's Build A BitArray In Swift

    In this video, I build a space-efficient BitArray that confirms to RandomAccessCollection in Swift in a playground.