Better HN
topnewbestaskshowjobs
Log inSign up

anttiharju

424 karma · joined Dec 6, 2016 (9y ago) · 166 submissions

https://www.linkedin.com/in/antti-harju/

trying to be more offline nowadays

Submissions

comment 3d ago · link · parent

Hah, pretty neat!

I recently discovered that one can apparently distribute Rust projects on npm by compiling to wasm. action-validator used to do this. Had been thinking about something like this.

comment 5d ago · link · parent

If you've tinnitus it's worth checking with your doctor if you could try Betaserc. It works for some, take 8mg 3x a day for some weeks, and maybe repeat every 4 years or so.

comment 1w ago · link · parent

I wish the OS course back in uni was kicked off with these

comment 1w ago · link · parent

Zig's C compiler is super handy for cross-compiling Rust

comment 2mo ago · link · parent

paint.net is amazing for basic png editing, I've dreamed of this day. It'a the only thing I miss from Windows. I don't understand the slashback at all.

comment 3mo ago · link · parent

defer isn't bullet proof either. I think there's a linter about it and os.Exit.

One can just wrap os.Exit in a helper to get the expected behaviour.

comment 5mo ago · link · parent

Context about tony the pony

https://stackoverflow.com/questions/1732348/regex-match-open...

comment 6mo ago · link · parent

oh, good catch! Point stands

comment 6mo ago · link · parent

I remember looking into the nodejs alternatives some years ago, one way to compare them is to look at the open issues. bun had so many hits for 'segfault' and deno has basically none.

Even now:

bun (zig) [1] 119 open / 885 closed

deno (rust) [2] 0 open / 1 closed

I don't think this has that much to do with Zig's anti-AI stance. More about using the right tool for the job.

[1] https://github.com/oven-sh/bun/issues?q=is%3Aissue%20state%3...

[2] https://github.com/denoland/deno/issues?q=is%3Aissue%20state...

comment 7mo ago · link · parent

clap's derive is so nice

comment 7mo ago · link · parent

Really happy to see 0.16 come out.

I did a really tiny contribution about zig cc supporting -exported_symbols_list, which together with the hack of filtering out -liconv makes for a very viable linux -> macOS Rust cross-compiler. There's a few caveats but those have been manageable so far.

Absolutely in awe of Zig as a project.

comment 8mo ago · link · parent

I would second their experience, works well for me

comment 9mo ago · link · parent

What pains are you experiencing? Cdk has far exceeded Ansible and Terraform in my experience.

comment 9mo ago · link · parent

Github being less and less reliable nowadays just makes this more true.

In the past week I have seen:

- actions/checkout inexplicably failing, sometimes succeeding on 3rd retry (of the built-in retry logic)

- release ci jobs scheduling _twice_, causing failures, because ofc the release already exists

- jobs just not scheduling. Sometimes for 40m.

I have been using it actively for a few years and putting aside everything the author is saying, just the base reliability is going downhill.

I guess zig was right. Too bad they missed builtkite, Codeberg hasn't been that reliable or fast in my experience.

comment 9mo ago · link · parent

I think cdk is the one to use nowadays. Infrastructure as real code.

comment 10mo ago · link · parent

I've Fairphone 6 with e/OS. Works well. Ok, some caveats:

- mobilepay does not work (I think Danes have an issue with non-mainstream platforms for whatever reason)

- the default browser does not work for some of the authentication flows when it integrates as the in-app browser. But it does give one dark theme on hn so I can just keep it on my homescreen while fireflx is the default for compat reasons.

comment 10mo ago · link · parent

for office files one can also unzip and zip to store them in git as plaintext

comment 10mo ago · link · parent

I would like to live in less historical times.

I'm a Finn.

comment 10mo ago · link · parent

Tangentially; I keep finding I flag things accidentally due to mainly browsing on mobile.

comment 10mo ago · link · parent

Secrets that you store in github actions secrets?

comment 10mo ago · link · parent

What do you mean? Simple env prints get masked as *** in logs

I guess one can always just echo the secret to a file and upload-artifact it

comment 10mo ago · link · parent

Could be, not familiar with Bazel. Thanks for mentioning it now can check it out.

comment 10mo ago · link · parent

https://anttiharju.dev

comment 10mo ago · link · parent

Second the Nix approach. One can even build a github actions-compatible container out of a flake and have actions run in it. I have done so for my personal projects https://github.com/anttiharju/compare-changes

comment 10mo ago · link · parent

One can get the ssh access with self-hosted runners but it is problematic because uncovering secrets becomes trivial.

comment 10mo ago · link · parent

> What is the advantage that github actions provide that people put up with it?

It's the default CI system on github and you get relatively free compute.

comment 10mo ago · link · parent

GitHub could invest a lot more in actions for sure. Even just in basic stuff like actions/checkout@v6 being broken for self-hosted runners.
123456