News for hackers. Stuff that matters.
Re:New Elixir 1.12 – The developer’s point of view by xwdv on Wednesday June 23, 2021 @11:59AM (#27606036)
Last time I checked on Elixir, it seemed like people used Phoenix to pretty much do anything useful with it. Is that still the case?
Re:New Elixir 1.12 – The developer’s point of view by kuzee on Wednesday June 23, 2021 @12:44PM (#27606576)
Several fintech companies use it to power core logic, with or without phoenix, so it's used for general purpose computing where speed, resiliency, and parallel execution are important. I've seen hints that people are using it to run crypto trading bots, but idk how common that really is.

I think a few companies use Elixir to power their web crawling/scraping tools. This makes intuitive sense as a good candidate for the process supervisor and parallel work architecture OTP encourages.

Nerves (embeddable Elixir) has come a long way. I switched to Nerves for some Raspberry Pi projects and the amount of time I waste dealing with hardware/config has gone to nearly zero. I am a hardware novice and was able to setup flashing firmware over-the-air updates to the Pi with very little effort. I'm sure the companies that use Nerves in production have more to say about it.

I'm not very tuned into the updates to Scenic, a project for display/UI on embedded screens, but it looks like they've hit some big release/stability milestones.

Phoenix is the way to go for web interfaces, and is an excellent toolset, so alternatives haven't been demanded. For more lightweight http people usually reach for Plug, a key building block of Phoenix, if you won't need the full bird.

Re:New Elixir 1.12 – The developer’s point of view by prophesi on Wednesday June 23, 2021 @01:53PM (#27607647)
> I think a few companies use Elixir to power their web crawling/scraping tools.

What do they use for headless browser scraping? I tried Hound a few months ago, but it seems too geared towards testing to be used more generically. We ended up just using Oclif and Puppeteer for scraping via NodeJS.

Re:New Elixir 1.12 – The developer’s point of view by vereis on Wednesday June 23, 2021 @03:43PM (#27609118)
Might fall into the same category as Hound but Wallaby exists and works.

Otherwise have you heard of Crawley?

Re:New Elixir 1.12 – The developer’s point of view by prophesi on Friday June 25, 2021 @10:18AM (#27631058)
I heard of Crawley and thought it only did HTTP-based crawling, but now I see it has a browser rendering option via Splash[0] that looks like it'd fit the bill. Thanks!

(Also had issues configuring Wallaby to be used outside of testing)

[0] https://splash.readthedocs.io/en/stable/api.html

Re:New Elixir 1.12 – The developer’s point of view by michaelcampbell on Wednesday June 23, 2021 @03:05PM (#27608647)
> if you won't need the full bird.

Never heard this phrase before, but I like it.

Re:New Elixir 1.12 – The developer’s point of view by dqv on Wednesday June 23, 2021 @12:45PM (#27606581)
I guess it depends on your definition of useful. I've been using it since 1.4 to do things like:

- PBX configuration (e.g. dialplan and routing)

- email monitoring (e.g. monitor multiple email accounts and multiple folders on those accounts)

- interacting with API's (e.g. creating a supervision tree that has multiple API accounts making requests)

- processing huge CSV files in chunks and storing them in a database

Of course you can add Phoenix on top of these to make them more useful.

Re:New Elixir 1.12 – The developer’s point of view by di4na on Wednesday June 23, 2021 @12:01PM (#27606054)
Knowing the number of people doing IoT stuff with nerves, i highly doubt it is still the case.
Re:New Elixir 1.12 – The developer’s point of view by cholantesh on Wednesday June 23, 2021 @01:41PM (#27607474)
I'm hoping Nx gains a good bit of traction in the ML space, too.
Re:New Elixir 1.12 – The developer’s point of view by tobyhinloopen on Wednesday June 23, 2021 @03:38PM (#27609041)
I’m writing a gameserver in it using Elixir without Phoenix. I’m using cowboy (erlang webserver) for websockets and redis for persistence.

You can pretty easily opt-in on specific phoenix libraries one by one and pick any you like and omit those you don’t.

The “phoenix app” type stuff is just a convention over configuration thing, but unlike something like Rails, it’s perfectly doable to pick and choose the libraries you want and install these later when you need them, or remove them when you don’t.

The functional approach to Phoenix makes it really easy to substitute things without breaking other things.

Re:New Elixir 1.12 – The developer’s point of view by ch4s3 on Wednesday June 23, 2021 @04:35PM (#27609969)
You don't have to use phoenix at all for most things, but if you're speaking HTTP, you may as well.