By default regex strings are compiled on code compilation stage.
This makes it harder to produce packages which would work with different
erlang versions and on different platforms.
Also the runtime prints a warning message, when starting, if code is running
on a system with different endianness. This can make users anxious.
This can be solved on the code level by recompiling regexes in runtime, but
that requires code hygiene, which may be harder to maintain and also does not
protect from regexes in dependencies.
--
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/99a6af4c-6811-4f9a-8a82-c7e9645279ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-l...@googlegroups.com.
--
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/CAGnRm4%2BNDVa%2BG0XH-21UWu9BU-%2BJnnED55XQaRjncKp1qowRXw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CABu8xFBWUP4OzeVc9tWA2jfcjijPV8JzbFq-1sxHiTCS-yR0dg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4KqdR%2BNq9kMs61gaUfAH%2BrXW9E5Y9FyVQSEwZ-paDzJ9w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CABu8xFChABdeXKbwRHLhKob2BXSV11hnfU%3DdFUdwgYXEgnRwYw%40mail.gmail.com.
I see! The first email here said deps was a problem so I was going with that. I'm glad a solution has been found :)
On Fri, 10 May 2019, 22:07 José Valim, <jose...@plataformatec.com.br> wrote:
> This approach would mean that any library that uses an regex signal could not be used in the application as they may not work on other Erlang versions. Is that right?It is correct. Elixir for example wraps its regexes in the same Regex.recompile block. But according to the previous discussion in the issues tracker they are not concerned with dependencies.José ValimSkype: jv.ptecFounder and Director of R&D
On Fri, May 10, 2019 at 11:05 PM Louis Pilfold <lo...@lpil.uk> wrote:
I'm not sure a linter would help here as it could only be applied to your app code, not that of libraries.
This approach would mean that any library that uses an regex signal could not be used in the application as they may not work on other Erlang versions. Is that right?
On Fri, 10 May 2019, 20:05 José Valim, <jose...@plataformatec.com.br> wrote:
--There is no compiler option that changes the code behavior. It is a global configuration, which can make debugging and understanding the system hard. We would need a strong precedent to add it.Given the current problem has existing solutions today, all you need to do is to wrap the regex, I still think having a linter that guarantees all regexes have been wrapped is IMO the best call. So all we need is a flag to disable the endianess check.--
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-l...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BNDVa%2BG0XH-21UWu9BU-%2BJnnED55XQaRjncKp1qowRXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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-l...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CABu8xFBWUP4OzeVc9tWA2jfcjijPV8JzbFq-1sxHiTCS-yR0dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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-l...@googlegroups.com.
--
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/CAGnRm4KCpvxxk%2BsMzhZiSO0VgO2TwtHS9_WgvUmm_jQRgL0r%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGcLz6VWAbZ%3DexAwgzySQM5b6gCqGfw2xM7c%2BpAOhhkbKHkzpQ%40mail.gmail.com.