Login
You're viewing the functional.cafe public feed.
  • Nov 13, 2026, 10:16 PM

    ...and b) I'm specifically talking about cases too involved for a shell script to be reasonable.

    I usually end up writing these programs in Python, but it's not from liking Python, or even from Python being "easy": it's that Python has a very rich standard library and that, when I need something outside the standard library, the community has typically standardized on one well-maintained library that does the thing in a sensible way.

    Lemme give a list of examples of things I often want to do:

    💬 1🔄 0⭐ 0

Replies

  • Nov 13, 2026, 10:16 PM

    - make REST calls
    - spin up a quick HTTP server to intercept traffic
    - parse JSON or (*sighs*) YAML
    - some intro-to-combinatorics shit
    - easily read/write text files according to common idioms
    - launch another program and control its STD{IN,OUT}
    - do a bunch of things in parallel and wait for some subset of them to finish
    - traverse a directory tree without worrying about gotchas

    One _can_ do all these in any language! But too often with friction that makes "quickly coding something" unpleasant

    💬 3🔄 0⭐ 0
  • Nov 13, 2026, 10:17 PM

    I don't recall offhand how to do each of the above in Python, but I'm confident that I could find out easily and it wouldn't suck too bad. Other languages have active library ecosystems, yes, but:

    - I've seen y'all talk about the days lost due to picking the wrong Rust library among the many hot new options
    - impressive Haskell libraries stop being maintained once the primary author gets their PhD
    - I asked a friend how she picks OCaml libraries and she admits it's a lot about author reputation

    💬 1🔄 0⭐ 0
  • Nov 13, 2026, 10:18 PM

    - "our language lets you use any Java library" great, you mean the graveyard of unmaintained projects?
    - the problems with JavaScript library ecosystems sometimes make the news

    And so on. This was a problem even before LLM contributions entered the picture but of course they make everything worse.

    Are there languages I haven't considered whose standard libraries and/or ecosystems aren't going to be a bonus yak-shaving task for every tiny little program I wanna write? I really want there to be!

    💬 1🔄 0⭐ 0
  • Nov 13, 2026, 10:18 PM

    Like I guess I can satisfy my yearning for static types by writing type annotations on my Python scripts and always remembering to run mypy after I've made any changes, but that's an unsatisfying answer. Plus, should one of my little scripts ever grow into something larger, Python isn't a language I'd like to write anything large in.

    But on the other hand, even if I were retired, I wouldn't want the thankless job of maintaining some hypothetical SML libraries for JSON or YAML parsing, you know?

    💬 2🔄 0⭐ 0
  • Nov 13, 2026, 10:26 PM

    @klara I've been using golang for a lot of these things, and I generally enjoy the experience.

    It has a good standard library for web networking stuff, JSON parsing, file munging, and goroutines for parallel processing.

    I built my static site generator and multiple web projects in Go, and only use the standard lib.

    The downsides are that I find the language more verbose than Python/Ruby/JS, I'm a bit worried about the direction Google might take it in, and less ppl know it.

    My two cents!

    💬 1🔄 0⭐ 0
  • Nov 13, 2026, 10:38 PM

    @ragman Ugh, I'm not surprised that Go has good libraries thanks to Google*, but its design is like nails on a chalkboard to me. How do you create a language in the 21st century and end up not just with null pointers but with "boxed nil".

    * I omitted a bit from my thread on how, inside a big company, any language can get a good library ecosystem (whose goodness often doesn't export well even if they open source said libraries). But I can see how Go itself being from Google might counteract this

    💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 13, 2026, 10:19 PM

    @klara boosting because I also want an answer to an easy language for gluing together small pieces for small problems (whether OS automation or data structures + algorithms).

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • Nov 14, 2026, 1:29 AM

    @klara one of the first things I did after leaving, and after rising from some extravagant ashes, was write a toy gRPC server with the Abseil libraries (`StrCat`, etc.) and kick it off with `bazel run`

    💬 0🔄 0⭐ 0
  • Nov 14, 2026, 1:29 AM

    @cdrichards I've now used Guava inside google3 and out in the rest of the world, and it really does lose a good bit of its value outside.

    (Still better than the Apache Commons alternative, though.)

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0