Hacker News new | past | comments | ask | show | jobs | submit login

Would it? The basics of the language are at least easy, you might have trouble when python drops into it's ffi. Same holds in the reverse; you can't easily do elixir ffi in python.

FFI aside, I don't see a good way of implementing Kernel.spawn/1, Process.monitor/1, etc. in python, without rebuilding the entire erlang VM from scratch.




It’s a lot easier to implement an immutable language in a mutable one than vice versa, or so I’d assume, never having tried.

But yeah, I’d assume you’d have to build the VM first. A lot of work.


You can mock mutable variables in actors. Actors and genservers are a first class module in the standard library. Elixir is not Haskell. There are plenty of places with accessible statefulness/mutability, it's just shielded in a functional wrapper and made slightly difficult to dissuade you from using statefulness unnecessarily, so you make fewer coding and concurrency mistakes in annoying places and you can focus on delivering features and solving hard problems.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: