Thanks for letting me know about Flop; it looks really good for sorting and filtering.
I have seen some tutorials for exporting using Elixir Stream.resource() to handle large data sets. There’s also this article on processing large CSV files with Elixir Streams that covers importing large data.
It would be nice to make a reusable data table Phoenix component with all these features, including actions and multi-select rows, etc.
I haven’t seen any library data table featuring all these features other than Petal pro.
Would be nice to have an open-source library eventually.
I’ve been working on getting the TUI framework ratatouille working over SSH (via the erlang ssh application).
It uses the View/Renderer support in ratatouille to produce a logical render and then implements its own back-buffer combined with an optimised encoding, to produce pretty minimal escape sequences to the terminal. This means the ex_termbox NIF is not required, and each client gets their ‘own’ terminal. The terminal the vm is attached to is not affected.
I’m just working on the terminal support right now - I only need a handful of escape sequences - but for the widest possible terminal support, I opted to write a ‘terminfo to elixir’ generator, which translates a terminfo spec into an Elixir module e.g. for xterm-* terminals, ‘move cursor to position’ (cup) is defined as \E[%i%p1%d;%p2%dH, which translates to:
def cup(p1, p2) do
<<27, 91, Integer.to_string(p1 + 1), 59, Integer.to_string(p2 + 1), 72>>
end
(the weird escape sequences are a simple stack-machine language)
I’m not promising absolute compatibility with existing ratatouille apps (I probably will implement commands/subscriptions differently and keyboard mnemonics will likely follow the terminfo standard) but all the magic in the View support will be the same.
Hopefully will have something concrete to share in a few days.
Writing a small app for a real estate brokerage to input contact info of realtors around the US that their agents have previously worked with, making it easier to service sellers moving out of the area. Essentially an internal agent referral tool.
I’ve embarked on the learning path set out by exercism and got a bit stuck on types. Still early days. Have been using the browser to run Elixir, but will try installing Elixir using asdf - maybe redo it later with mise. Is there a preferred Linux distro among Elixir developers? I’m using Ubuntu (and Windows) for work but leaning towards OpenSUSE Tumbleweed these days. As far as editors go, Zed looks like an interesting new option with support for Elixir - mostly a (neo)vim user myself.
Installed Erlang/Elixir using asdf on a Fedora machine. More involved than anticipated, but despite some error-messages it seems to be working. Maybe I should just have used the rpm-packaged versions. There are are lot of erlang-packages though.
Soft-launching my SAAS for (french, mid-sized) architecture agencies, preparing for a real launch in december. Being (mostly lurking) on this forum since 2018 has been invaluable and a great asset.
So today, I take advantage of this topic to deeply thank everyone who participates constructively here.