HackerTrans
TopNewTrendsCommentsPastAskShowJobs

anttiharju

420 karmajoined há 10 anos
-

Submissions

Pre-commit hooks are useful

anttiharju.dev
5 points·by anttiharju·há 7 meses·2 comments

A Safer Container Ecosystem with Docker: Free Docker Hardened Images

docker.com
360 points·by anttiharju·há 7 meses·98 comments

[untitled]

1 points·by anttiharju·há 9 meses·0 comments

comments

anttiharju
·há 4 dias·discuss
same

Zig is an excellent C cross-compiler for Rust. Filtering out the iconv flag one can produce macOS binaries from a Linux host for most projects.
anttiharju
·há 19 dias·discuss
Context about tony the pony

https://stackoverflow.com/questions/1732348/regex-match-open...
anttiharju
·há 2 meses·discuss
oh, good catch! Point stands
anttiharju
·há 2 meses·discuss
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...
anttiharju
·há 3 meses·discuss
clap's derive is so nice
anttiharju
·há 3 meses·discuss
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.
anttiharju
·há 4 meses·discuss
I would second their experience, works well for me
anttiharju
·há 5 meses·discuss
What pains are you experiencing? Cdk has far exceeded Ansible and Terraform in my experience.
anttiharju
·há 5 meses·discuss
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.
anttiharju
·há 5 meses·discuss
I think cdk is the one to use nowadays. Infrastructure as real code.
anttiharju
·há 6 meses·discuss
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.
anttiharju
·há 6 meses·discuss
for office files one can also unzip and zip to store them in git as plaintext
anttiharju
·há 6 meses·discuss
I would like to live in less historical times.

I'm a Finn.
anttiharju
·há 6 meses·discuss
Tangentially; I keep finding I flag things accidentally due to mainly browsing on mobile.
anttiharju
·há 6 meses·discuss
Secrets that you store in github actions secrets?
anttiharju
·há 6 meses·discuss
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
anttiharju
·há 6 meses·discuss
Could be, not familiar with Bazel. Thanks for mentioning it now can check it out.
anttiharju
·há 6 meses·discuss
https://anttiharju.dev
anttiharju
·há 6 meses·discuss
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
anttiharju
·há 6 meses·discuss
One can get the ssh access with self-hosted runners but it is problematic because uncovering secrets becomes trivial.