Re: [elixir-core:11735] [Proposal] Translate error reports from gen_statem

2024-04-02 Thread Cameron Duley
7, 2024 at 4:10 PM Cameron Duley > wrote: > >> Several popular Elixir libraries use gen_statem internally, given it's >> very useful for managing data over persistent connections. However Elixir's >> default translations for Erlang log messages don't capture t

[elixir-core:11724] [Proposal] Translate error reports from gen_statem

2024-03-27 Thread Cameron Duley
Several popular Elixir libraries use gen_statem internally, given it's very useful for managing data over persistent connections. However Elixir's default translations for Erlang log messages don't capture termination reports from gen_statem. As a result, gen_statem terminations leave no discer

[elixir-core:11614] [Proposal] Support gen_statem as first-class a behaviour

2023-12-04 Thread Cameron Duley
While Elixir doesn't make use gen_statem itself, I believe its utility makes it worthwhile supporting first-class in Elixir. First-class support specifically entails: - A GenStatem module in Elixir's standard library - Comprehensive documentation - Inclusion in the default Logger.Transl

Re: [elixir-core:11594] `Enum.join/2` behaviour in presence of non-UTF-8 binaries in enumerable

2023-11-10 Thread Cameron Duley
Being able to join binary data outside of UTF-8 spec is nice, particularly when working with old stuff that speaks in null terminators. Haven't had to do this myself but the use case came to mind, and I found at least one

Re: [elixir-core:11581] Re: [Proposal] U+FFFD Substitution of Maximal Subparts

2023-10-31 Thread Cameron Duley
orce”/property > test commented out. > > I would say the name “replace_invalid” is excellent. > > On Tue, Oct 31, 2023 at 18:52 Cameron Duley > wrote: > >> This was the final version I'd landed on for UTF-8: >> >> https://github.com/elixir-unicode/unic

Re: [elixir-core:11579] Re: [Proposal] U+FFFD Substitution of Maximal Subparts

2023-10-31 Thread Cameron Duley
This was the final version I'd landed on for UTF-8: https://github.com/elixir-unicode/unicode/blob/main/lib/unicode/validation/utf8.ex Along with the following modules for testing: https://github.com/elixir-unicode/unicode/blob/main/test/support/unicode_validation_helpers.ex https://github.com/eli

[elixir-core:11548] [Proposal] U+FFFD Substitution of Maximal Subparts

2023-10-05 Thread Cameron Duley
As far as I can tell, neither Elixir nor Erlang have a built in function for replacing invalid sequences in Unicode. There's a suggested method on this page of the Unicode standard for handling this. Several oth