Better HN
topnewbestaskshowjobs
Log inSign up

hauleth

88 karma · joined Jan 10, 2014 (12y ago) · 45 submissions

I'm linking my keytrace.dev: did:plc:6psaz6n5fuurrfet67zs4ljf
Submissions

comment 3w ago · link · parent

Tangled has its own CI named Spindle. However it is not limited to that as there is for example https://tangled.org/mitchellh.com/tack which allows connecting different CIs to Tangled.

2.

Show HN: PGSkiff – Connect IPv4 Clients to IPv6-Only Postgres(pgskiff.com ↗)

4 points · by hauleth · 2mo ago · discuss

comment 4mo ago · link · parent

OP here

> Maybe they wanted to see if you would speak up and handle potential conflict. Or maybe they had a mixup between two candidates.

I did speak up during the call if that is really what they want me to do as I have literally 0 experience with that. It was literally my first action after I heard that. I pointed it out to them, that it is not what I was expecting from this position.

They didn't care. It was how they roll.

comment 4mo ago · link · parent

What do you mean there? What is not short-circuited there?

5.

Guards Guards – small gotcha in Elixir guard expressions(hauleth.dev ↗)

1 points · by hauleth · 5mo ago · 3 comments

6.

How do I write Elixir tests?(hauleth.dev ↗)

2 points · by hauleth · 6mo ago · discuss

comment 7mo ago · link · parent

I agree that any company would struggle in such case. The thing is that everyone see that GH is pushing for more agents, their Copilot thingy, and AI everywhere, while basic functionality that people relies on is constantly failing.

If you push a lot of new features but your baseline is constantly failing, then something is wrong.

8.

My journey in optimising Elixir codebase(hauleth.dev ↗)

2 points · by hauleth · 7mo ago · discuss

comment 10mo ago · link · parent

Author here - the goal from day 1 was to provide procfs/sysfs-like interface. The additional concepts that I would like to explore are bindings for Khepri[1] or Hobbes[2]. I see a lot of potential in such interface available from Erlang/Elixir/Gleam, as it can provide interesting use cases.

[1]: https://rabbitmq.github.io/khepri/

[2]: https://git.sr.ht/~garrisonc/hobbes

comment 2y ago · link · parent

Why use a knife when you can use our EveryThingCutter-9000 that requires a week of training to operate.

11.

Who watches watchmen? – Integrating Elixir applications with systemd – part II(hauleth.dev ↗)

2 points · by hauleth · 3y ago · discuss

comment 3y ago · link · parent

It is using VM green thread, just more primitive one. Just to be more like other implementations (except anode) in original article that do bare minimum to run. Also, this isn't that unusual to use just `spawn/1` for simple and short "one-off" processes.

comment 3y ago · link · parent

Yes it is. Though until the last paragraph everything is done more or less to be an idiomatic approach to this task rather than "just optimisation". The VM flags part though is solely "optimizing for the benchmark, by cutting features that we would have needed in real-world scenarios". The "RemoteCall" code is pretty idiomatic approach to such problem.

comment 3y ago · link · parent

It is in the original article [1], though I was made aware that Go implementation is also incorrect as `defer` in it make the memory usage to substantially raise. So instead of:

        defer wg.Done()
        time.Sleep(10 * time.Second)
In original article it should be:

        time.Sleep(10 * time.Second)
        wg.Done()
And memory usage will drop about 2x. I am no Go nor Java developer so I cannot say anything more.

[1]: https://pkolaczk.github.io/memory-consumption-of-async/

comment 3y ago · link · parent

Author here. If you have any questions, here I am.

comment 4y ago · link · parent

But what would be a point of doing that?

comment 4y ago · link · parent

That section was removed as it was leftover from the early drafts.

comment 4y ago · link · parent

I have removed that part as it was accidental leftover from the early drafts that I forgot to remove.

comment 4y ago · link · parent

I know about Podman, I just wanted to focus on systemd without additional tooling.

Erlang VM startup is ok, but it is not ultra fast, and it can be easily slowed down with many modules in releases or slow applications. Additionally as it was said - Erlang works best in case of long-running instances where the VM is handling spawning and managing of short lived internal processes.

First draft of this article also included the socket activation and FD passing section, but these were making the article way to long, so I moved them to the Part 2 where I will have more space for them. With socket activation Erlang VM startup time is negligible problem.

comment 4y ago · link · parent

At the beginning I wanted to add all that information and options, but I thought that it can be overwhelming in this article. I wanted to focus on Erlang <-> systemd communication and basic options.

However it may be nice follow-up article where I will describe full hardening process.

comment 4y ago · link · parent

Oh, I didn't know about `SocketBindDeny=` and `SocketBindAllow=`. This option may be a little troublesome in case of Distributed Erlang, but in recent versions it can be circumvented. Thanks, I will add it as a better option than adding capabilities.

comment 4y ago · link · parent

This article? Not at all. Does you need to understand D-Bus to use systemd? Not at all. It is just implementation detail. I have an idea to leverage that in future to slap distributed service management on top of systemd, but in normal operations you will probably never spot that everything is D-Bus backed.

comment 4y ago · link · parent

Actually I am using Zola, not Hugo, but the theme I am using is modified port of Terminal.

comment 4y ago · link · parent

No, because these states are set on shutdown, and processes are killed in reverse order. So first the `draining` message will be set and then `drained`.

comment 5y ago · link · parent

Author here. If you have any questions, then you can feel free.

My goal there was to provide simplest possible proxy that would allow me to dynamically add and remove the applications from the system during development. It provides passthrough TLS proxying as well as TLS terminating proxy. TLS terminating proxy will automatically create self-signed certificate (in future it will allow defining CA certificates as well as it should support working as ACME CA).

For creating sockets for services it uses systemd-compatible interface where there is FD passed down to the spawned process, this approach allows it to “simulate” socket-activated processes (which are IMHO great idea).

26.

Generate image from BioNTech mRNA sequence(github.com ↗)

2 points · by hauleth · 5y ago · discuss

comment 6y ago · link · parent

I assume that there is control character after carriage return that deletes everything from there to the EOL, so this do not break copy functionality or "go to EOL" shortcuts.

28.

Stop Spreading C**p at my $HOME(hauleth.dev ↗)

14 points · by hauleth · 6y ago · 5 comments

29.

Elixir 1.10 Released(github.com ↗)

4 points · by hauleth · 6y ago · discuss

12