3 ms·
Considering that Erlang originated in the telecom world, I find it a bit odd that mobile development options are lacking. Anything to be expected in that space?
by amelius 1y ago
Considering that Erlang originated in the telecom world, I find it a bit odd that mobile development options are lacking. Anything to be expected in that space?
- signa11 1y ago> … bit odd that mobile development options are lacking what do you mean by that? can you please elaborate ? thanks !
- amelius 1y agoI mean tools to run Erlang apps on iOS and Android, for example.
- dlahoda 1y agogui is single(immediate mode) or two(graph based) threaded. with some async going to backend or some app defined compute bounded. there is no need for actors nor green threads. no need for erlang nor go. languages were not designed for gui(unlike js or csharp), will need a lot of boilerplate for trivial patterns.
- signa11 1y agoi see ok. well, erlang is more suited to program gateway nodes in the core of 3g/4g networks. these nodes handle tasks such as handling mobility (managing handovers as cell phones moves from one location to another etc), data transfer f.e providing ip addresses to your phones etc etc. as you can imagine, this sort of gear lives deep within service providers network, and each entity handles hundreds of thousands of sessions f.e serving an entire state etc etc. and these nodes cannot go down taking services/sessions with them.
- lawik 1y agoIt has been done. https://github.com/elixir-desktop/desktop https://github.com/elixir-desktop/desktop And a different variant driven by the server typically: https://github.com/liveview-native/live_view_native https://github.com/liveview-native/live_view_native Not to say it is particularly ideal. But it exists.
- cess11 1y agoErlang (and Elixir and so on) run fine under Termux. Just slap on Phoenix or something and have your GUI in the phone browser if that's your thing. People that have succumbed to Apple tell me they have facilities at least as good as Termux so you can probably do something similar there.
- ramchip 1y agoThe massive concurrency and fault isolation properties are very nice for telephony switches (and web servers etc.) but not usually super relevant for phone apps.
- AlphaWeaver 1y agoErlang's use in the telecom sphere has primarily been focused on switching, routing, and real time voice processing on the backend. Beyond just handling cellular traffic, many internet switches are written in Erlang too. It's only recently that Erlang has been used for more of the type of code that could run on the frontend. (The niceness of writing Elixir is a big part of that too.) The primary blocker to running Erlang on mobile has been the lack of portability of the BEAM VM itself, which is why this project is so exciting!
- johnnyjeans 1y agoThe compiler and the binaries it produces run fine on Android and Linux phones.
- patmorgan23 1y agoWhy would a programing language built around accepting and dealing with millions of connections, and used in base stations, routing, and switching be useful for a mobile device?
- amelius 1y agoUniformity of language between back and front-end, and communication layers?
- bastawhiz 1y agoBecause the apps on my phone need to be written in the same language as the network devices my carrier runs? What?
- amelius 1y agoThat's taking it to its extreme (unnecessary as your carrier is a different company), but consider building an application like Telegram or WhatsApp, then it would certainly be nice to use one language for everything, from front-end, back-end to distributed computing stuff.
- victorbjorklund 1y agoWhy? For a small one person team? Sure it would be nice to write everything in one language in one repo. For a large company with lots of developers? Makes less sense. Better use the best tools for the tasks.
- bastawhiz 1y agoWhy though? Why would you want your UI code in Python, as an example? Python has nothing in its standard library to help make websites. Tools like PyScript might give you the DOM, but suddenly you'll be using shims for all the other stuff you need, like resize handlers or fetch() or Intl.NumberFormat or anything else you care about. Web apps are JavaScript. Android apps run on a JVM. iOS apps are whatever can compile to native code and use Apple's APIs. When you avoid the runtime of the language that you're expected to build for on a platform, you'll inevitably spent most of your time working just to get a handful of features that you need from the runtime into the language you're choosing to use.