HN user

spooky_deep

119 karma
Posts1
Comments45
View on HN

You don’t want a language with non-determinism, arbitrary IO, impure functions etc. for build configuration ideally.

I guess the answer to your question is OCaml has unmanaged side effects.

Unison 1.0 8 months ago

What’s a good way to include Unison code in a more traditional Git monorepo?

I can say why I bounced off of Nix.

Lots of package combinations didn’t work and I was not skilled enough to figure out why.

The error messages are terrible.

They don’t provide enough versions of packages. I want Python 3.10.4 exactly. But Nix packages by default only provide 3.10.something

I would love to use Nix everywhere, but it’s just too cumbersome for me.

I’d bet that most PC Windows gamers care a lot more about Steam than they do about Windows. If Microsoft did anything drastic - like blocking Steam like Apple do on iOS - it would hurt Windows severely.

A good compiler will make the lists disappear in many cases. No runtime overhead. I actually love single linked lists as a way to break down sequences of problem steps.

Property based testing is fantastic.

Why is it not more popular?

My theory is that only code written in functional languages has complex properties you can actually test.

In imperative programs, you might have a few utils that are appropriate for property testing - things like to_title_case(str) - but the bulk of program logic can only be tested imperatively with extensive mocking.

Type checks are proofs across all inputs. Tests are proofs across a given set of inputs. They are complimentary. If you want really robust code, use both.

Elixir 1.19 9 months ago

Scala still offers lots over modern Java.

The issue for me is that Scala design lacks focus. They say yes to too many features.