[Proposal] OS specific interface modules; common system interface module

Skip to first unread message

Josh Marshall

Mar 2, 2024, 2:08:35 PMMar 2
to elixir-lang-core
You may skip the reading, but I am continuing from a forum discussion here: https://elixirforum.com/t/thoughts-on-extending-system-to-recover-from-incomplete-info-and-use-fallback-sources-using-file-stat/61980

I noticed a gap in support in Elixir related to OS related modules when working on my personal website.  There was not a way to go from a `File.Stat.uid` to the file owner's full name in what I would consider a succinct and general fashion.  One diatribe later, and a few of us were able to articulate a possible solution in the forum.

Moving past this one function of looking up a full username for the owner of a file, there's a category of missing functionality and an audience of programmers Elixir is inaccessible to: IT and Systems.  As a foundation, Apple, BSD/Linux, and Windows need top level modules to represent functionality of those systems.  On top of those modules, a common set of interface modules for OS agnostic operations would greatly improve ease of implementation for users.

These modules would doubtless be large and take time to develop, but would open up Elixir to a new audience.  However, is the core language the right place for them?  Are there obvious bits we missed in the forum thread?

José Valim

Mar 2, 2024, 2:52:57 PMMar 2
to elixir-l...@googlegroups.com
The low-level integration bits are part of Erlang. If this functionality exists in Erlang today, we could surface it up, but I am afraid it doesn't right now. I believe there is a plan to provide more file system bindings there in the future, but there is no precise schedule.

You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/63e7ed96-9abc-487a-996a-0b00c9486d4bn%40googlegroups.com.
Reply all
Reply to author
0 new messages