Hauleth's Avatar

Hauleth

@hauleth.dev.bsky.social

Meme Driven Developer All opinions aren't my own, these belongs to supreme being chosen at random Sometimes I do some #ElixirLang and #Erlang

1,004 Followers  |  190 Following  |  433 Posts  |  Joined: 24.04.2024  |  2.2181

Latest posts by hauleth.dev on Bluesky

Preview
GitHub - appunite/mockery: Simple mocking library for asynchronous testing in Elixir. Simple mocking library for asynchronous testing in Elixir. - appunite/mockery

It doesn't seem to be active much, but github.com/appunite/moc...

01.08.2025 17:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Hauleth's blog -Β Jeopardy! world Blog about BEAM, Rust, fantasy & stuff

Something that come to me some time ago, but only now I have found time to write it down properly

hauleth.dev/post/jeopard...

#AI

28.07.2025 17:09 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yeah, people do not understand what `NULL` in DB means exactly.

24.07.2025 15:34 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

On the other hand I do not see the point of doing review of code that is incorrect. The same with manual testing which is more expensive than CI time. So I prefer to have full CI run before I start with manual testing or deep code review.

12.07.2025 15:51 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I mean, that is the point, isn't it? We need to check if change in one component didn't affected seemingly unrelated another component…

12.07.2025 08:41 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image 11.07.2025 17:00 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

There is GHA step for that, but the problem is that it constantly recompiles my project over and over again and I do not know how to tell it to not do so, as it takes *ages* to compile.

11.07.2025 15:26 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I tried to setup pipeline that compiles some Rust code and cache it between action. 3h of GHA credits and it still doesn't work. I hate debugging that.

11.07.2025 14:44 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Typical GHA debugging session.

11.07.2025 14:37 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You mean calls to functions that aren't there yet?

11.07.2025 14:36 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Actually - plan is for both ;)

07.07.2025 11:57 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Image showing river with sign next to it with name "Bug"

Over the image there are 3 lines of text, from top to bottom:

It's not a bug
It's not a feature
It's a river in Poland

Image showing river with sign next to it with name "Bug" Over the image there are 3 lines of text, from top to bottom: It's not a bug It's not a feature It's a river in Poland

07.07.2025 11:56 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

So something is hatching.

It is a tease of incoming project I am working on with a friend.

Yes, this is `psql` session, but it is *not* Postgres.

#ElixirLang

07.07.2025 06:36 β€” πŸ‘ 11    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Just disclaimer - it is PoC, I never used that in any project.

06.07.2025 15:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

If the FSF calls your program malware, is that a sign that you've made it?

04.07.2025 22:38 β€” πŸ‘ 101    πŸ” 7    πŸ’¬ 11    πŸ“Œ 4

Just add in the title that it is remote within US

04.07.2025 09:15 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
BIF for fetching C types sizes Β· Issue #9266 Β· erlang/otp Is your feature request related to a problem? Please describe. We currently have API for sending SCM_CREDENTIALS using Unix sockets, however there is issue that cmsg_send/0 map takes binary as a da...

Another useful feature unfortunately got closed, for reasonable reasons, but still, this is slightly painful to see that it will not be there, as it would help with having some fancier socket features available.

04.07.2025 09:14 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
BIF for more detailed process information Β· Issue #9265 Β· erlang/otp Is your feature request related to a problem? Please describe. In systemd integration library it would be useful to have access to process effective user ID and process effective group ID. Unfortun...

Place where it would be useful is my systemd library where I need to send extra information about process when these differ. But with plain Erlang I cannot get that info, that mean that I need to use external NIF (wich I also have written). There is issue to add that functionality

04.07.2025 09:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Oh, another useful thing - libffi-like tooling built in. So it would not require me to write whole NIF and require user to compile (or go through pain of cross-compilation) some C code to access functions like `getuid` or `geteuid` etc.

04.07.2025 09:14 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Unfortunately - no. This is related to Elixir syntax, not `with` construct. You can do something like:

with(
a <- foo(),
b <- bar()
) do
…
end

Or

with \
a <- foo(),
b <- bar()
) do
…
end

But AFAIK both these forms will be changed by formatter.

04.07.2025 09:02 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

A lot of others pointed nice things so I will add other things

I want to have better alternative to ExCoveralls, ideally built in. Same for ExUnit reporting - built in JUnit XML output or with just compilation data - nice machine readable format that could be ingested by non-Elixir tooling

03.07.2025 22:48 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Is there anything I can do to check these errors? Or maybe you need some help with that. I am open to consulting opportunities, so I can take a look.

02.07.2025 08:40 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Has anyone achieved to make @codecov.bsky.social Test Reporting work with #ElixirLang? I am using junit_reporter lib and it seems that CodeCov is having some problems with that file. Unfortunately they just say that they reported some errors to their Sentry, but do not tell me what are these errors.

02.07.2025 08:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I use Nix on macOS and I am supper happy with result.

01.07.2025 15:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I have another potential co-developer, assuming it will be in Elixir or Go. I am not sure about Go, but in this case it probably would be a good choice, despite my dislike of Go semantics and idioms.

23.06.2025 16:41 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Always - no, but it is nice to have, as for example I am using vim-projectionist that can create file scaffold when I am creating new file. With proper correlation between modules and filenames I can have automatic generation of module and test base as soon as I open the file. This is handy

23.06.2025 15:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I have similar plan, for local-dev-only OpenTelemetry ingester and dashboard that would be single binary without any extra dependencies. I was thinking about using @duckdb.org as a data store, so user can have some persistence, but by default just use in-memory.

23.06.2025 15:11 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Nothing git.sr.ht/~hauleth/lan...

23.06.2025 15:07 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Yeah, but when I want to migrate I always forgot about all that and I am frustrated all over again.

23.06.2025 14:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I do not have issues with MyApp vs MyAppWeb, but I would prefer to have `MyAppWeb.Foo.Comtroller` that uses `MyAppWeb.Foo.JSON` than some magical and "non standard" naming scheme in Phoenix.

23.06.2025 14:25 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

@hauleth.dev is following 20 prominent accounts