Embed this noticeon-lain ✔ᵛᵉʳᶦᶠᶦᵉᵈ (lain@lain.com)'s status on Sunday, 29-Oct-2023 19:45:26 JST
on-lain ✔ᵛᵉʳᶦᶠᶦᵉᵈThe interop you can do between elixir and python is actually quite amazing, you can install an erlang message handler in python and then send messages back and forth as if it was an erlang process. So you can have a GenServer start up a python SD model loader, register a message handler, then send messages to python to use that model to actually generate images, then have python message it back once it's ready.
@Moon yeah, at first i just tried calling out to python by running the running the shell cli in elixir, but that's really annoying to get right and you'll always have to fight with injection attacks because you're essentially building a command line from user input, with this (erlport) you can use the actual erlang/python data types.
@entropealabs one issue for me is that i'm using the gpu in my macbook, and that is barely supported in python, and not at all in elixir as fast as i can see.