Hacker Newsnew | past | comments | ask | show | jobs | submit | leansensei's commentslogin

Thanks, that was not clear to me from skimming the docs.

However, this NIF also returns more fields than the disksup function.


It's because the most familiar thing to me that uses a NIF was Exqlite, so that was my starting point.

Using Rust and Rustler turned out to be way easier and it also now works across Elixir versions 1.14 to 1.18.


Great outcome :)


Truly, way better than before: https://github.com/waseigo/disk_space

And it now runs on everything, across more Elixir and Erlang/OTP versions than before!


Why not C? It made no difference, we're talking about a few function calls.


because the author self admitted they don't know C! One of the reason why people use the Beam VM is because its robust and fault tolerant.

a lot of the choice here are made at the expense of VM's health.

also why wouldn't anyone just use :disksup.get_disk_info/1. (Thats immediate) calling :disksup.get_disk_info/1 won’t mess with the scheduler in the way a custom NIF or a big blocking port might.

I see the above code/lib and just see reflags all over the place.


The post explains why I don't want to use disksup. You have to start an extra application (os_mon) and configure disksup to update the starts more frequently than the default of every 30 minutes.

Do we really need to do all that instead of the equivalent of a df?

Agree about the C code, which is why the latest version (on GitHub, the HEAD, not yet released in Hex.pm) is now using Rust and Rustler.


:disksup.get_disk_info/1 (from :os_mon) just calls into the underlying OS once, grabs the info, and returns it. It’s not a blocking “long-running monitor” the way a NIF doing I/O in a scheduler thread would be. https://www.erlang.org/docs/26/man/disksup#get_disk_info-1

^ just use this.

:disksup.get_disk_data/0, which caches results in the :disksup server that updates every N seconds (configurable) which is what you are referring to.. https://www.erlang.org/docs/26/man/disksup#get_disk_data-0


"Abo" in German means "subscription" (from the French abonnement). Show some cultural sensitivity about these languages.


Thank you for ntfy, it's such a useful piece of software!


Wekan looks close to pre-Atlassian Trello.


Just use Wekan. Problem solved.


apt install geeqie

That's all.


That's the VAG marketing strategy. Share most parts, have the customer pay for the brand.


With VAG, at least everyone knows the deal.

E.g. Mercedes uses Renault engines in the less-fancy models, but most customers are kept in the dark about that.


Wait till you hear about the parts on a lamborghini


What’s funny is the VW parts used in Lambos are actually an improvement over what they used to be.


Also try out Garage.


Good to see this mentioned. We are considering running it for some things internally, along with Harbor. The fact that the resource footprint is advertised as small enough is compelling.

What's your experience running it?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: