News for hackers. Stuff that matters.
Re:SVGs as Elm Code by gaze on Thursday November 03, 2022 @03:42PM (#33456376)
elm doesn’t have anything like unsafe blocks or much of an FFI. It has ports, which make integration with many libraries rather cumbersome. The elm philosophy seems to be to rewrite everything in Elm, and to disincentivize binding.
Re:SVGs as Elm Code by 1-more on Thursday November 03, 2022 @04:14PM (#33456843)
once you write a custom element you'll never go back to ports if you can help it. So ezpz. You can keep your state entirely in Elm with no issues.
Re:SVGs as Elm Code by sdeframond on Thursday November 03, 2022 @05:51PM (#33458262)
> The elm philosophy seems to be to rewrite everything in Elm, and to disincentivize binding.

Or to use web components https://elmprogramming.com/interacting-with-web-components.h...