4 ms·
No. Take that with a grain of salt. I did some large file reading in the past and gleam doesn't have a good abstraction for that yet whereas in rust it was stra
by ilrwbwrkhv 2y ago
No. Take that with a grain of salt. I did some large file reading in the past and gleam doesn't have a good abstraction for that yet whereas in rust it was straightforward. Simplifile basically reads the whole file into memory.
- cess11 2y agoThey've added https://hexdocs.pm/file_streams/0.6.0/ https://hexdocs.pm/file_streams/0.6.0/ for this purpose. There's a bit of ceremony but similar to how you can interface with Java libraries from Clojure you can pull in Erlang when Gleam isn't enough. You can do some code shortening with use, https://erikarow.land/notes/using-use-gleam https://erikarow.land/notes/using-use-gleam, but it will likely always be rather chatty and won't support metaprogramming: https://lpil.uk/blog/how-to-add-metaprogramming-to-gleam/ https://lpil.uk/blog/how-to-add-metaprogramming-to-gleam/