staymetal

staymetal

General Question

What can elixir be used for?

Showing Posts 1 to 10

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Web Dev is something of a broad category these days, in that a whole lot of things happen to have a web interface.

So for example, we use Elixir to manage the upgrade and configuration of industrial sensors. We’ve got a raspberry pi with an Elixir service on it that watches for sensors to connect, handles queueing up data files on them for upload, and then manages state machines for each sensor as they’re upgraded or conditioned.

It also has a web UI powered by phoenix channels so that it can show the status of each sensor live. So it’s sort of web dev, but it may help answer your question.

OvermindDL1

OvermindDL1

I have IRC and Discord bots, some servers that manage game servers, a static site generator, and a few more things actively running in either Elixir or Erlang right now that are not web servers.

ryh

ryh

Telephony of course :slight_smile:

I’m using it to send messages to mod_kazoo on FreeSWITCH (but of course this is so that we can interact with it from a web front-end)

smpallen99

smpallen99

I have written a number of non-web projects including:

  • Log file parser
  • protocol parser
  • lots of competitive programming exercises
  • a couple simple language intrepeters
  • a complex telephony application
  • a reliable udp stack
  • Asterisk PBX AMI and AGI implementations
  • and Emergency call out system (web front end was a small component of the application)
  • general purpose scripts
peerreynders

peerreynders

GRiSP - Bare metal hardware for the Internet of Things, specially designed for Erlang

If Elixir doesn’t work on it right now it’s probably just a matter of time.

smpallen99

smpallen99

Forgot one… I have also done some embedded Elixir on a BeagleBone Black board.

michael_teter

michael_teter

Can you point to some good information on how to use Elixir for “day to day” scripts?

For example, I tend to write little programs and integration scripts in Linux shell or Python just because they’re so easy and they’re readily available. However, since I already have Elixir on my servers (because I have a couple of small web apps built and running there), I would like to try writing my glue programs in Elixir.

And taking that a step further, many of my scripts are fired off by cron. The simplicity is great, but I wonder if there’s some BEAM scheduler type pattern I could use with a bunch of satellite Elixir scripts instead?

tme_317

tme_317

Hi @michael_teter,

For Elixir command line scripts, I’d look into escripts. I find myself writing them often (for all but the most trivial scripts) instead of bash, ruby, or python despite the erlang dependency because my productivity in Elixir is much higher. They are easy to use… the official docs are here: mix escript.build — Mix v1.20.2 and you can google to find many helpful articles and blog posts.

I guess you could look into something like GitHub - c-rack/quantum-elixir: Cron-like job scheduler for Elixir · GitHub for the cron-like functionality or just keep using cron to fire off your compiled escripts.

LTheGreats

LTheGreats

I think elixir could be good for developing an AI.

PeterDavidCarter

PeterDavidCarter

Perhaps. The multi-threated nature maybe? One of the really interesting things about AI development is I really think the conceptual underpinning of a language are likely to influence the personality of the AI…

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews