News for hackers. Stuff that matters.

davydog187

We use Elixir at TV Labs to build our web services, a realtime matching engine, execute sandboxed Lua code, talk to microcontrollers over binary protocols, machine learning, and much more.

It is an excellent general purpose language that succeeds in a lot of domains.

Check out my conversation from Developer Voices for more info

https://youtu.be/_MwXbHADT-A?si=2lRqjwAY9dsODyhW

Re:Lua for Elixir on Friday May 16, 2025 @08:25AM (#44004588)
Touche, although that is a 5 line utility.

Filtering which search results? On hex.pm that’s irrelevant. On good “library name + elixir”

Re:Lua for Elixir on Friday May 16, 2025 @06:37AM (#44003748)
Early in the Elixir days, every library was named Thing-ex of ex-Thing.

IMO this is really lazy in terms of naming and from a usage perspective, you get really tired of typing that out in code.

I think we can do better

Re:Lua for Elixir on Thursday May 15, 2025 @10:41PM (#44001376)
I have a personal mission to never name any libraries with the -ex prefix
Re:Lua for Elixir on Thursday May 15, 2025 @02:56PM (#43998151)
Probably not, you should come to Code BEAM NYC, although a bit of a trek for you.

I will be trying to travel more in 2026

Re:Lua for Elixir on Thursday May 15, 2025 @02:54PM (#43998119)
Elixir is not a sandboxed language, so you can't just accept arbitrary Elixir programs from users and execute them inside of your application without security concerns. Lua, on the other hand, can be executed in a sandboxed fashion, limiting and constraining the reach of user programs.

Check out Anthony Accomazzo's post about Mini-Elixir, which does a great job breaking this down much further https://blog.sequinstream.com/why-we-built-mini-elixir/

Re:Lua for Elixir on Thursday May 15, 2025 @02:49PM (#43998074)
There is a fennel channel in the discord/slack if you're interested. I'm not sure how successful it has been
Re:Lua for Elixir on Thursday May 15, 2025 @02:48PM (#43998062)
Both the Lua library and Luerl predate Pythonx. I started this library nearly 2 years ago, its only now that I'm releasing a stable version.

However, Pythonx was originally created by a member of our team, Cocoa, who built it in her own free time. The Livebook team forked her project, conceptually, and released it.

https://github.com/cocoa-xu/pythonx

Re:Lua for Elixir on Thursday May 15, 2025 @02:46PM (#43998033)
Thanks, I really appreciate that. While its not my main focus by any means, its been a really fun project to chip away at (both the higher level library and Luerl itself).

I do think that it has the potential to be really great with continued investment

Re:Lua for Elixir on Thursday May 15, 2025 @02:44PM (#43998020)
Let me know if you have any questions, I'd be happy to assist
Re:Lua for Elixir on Thursday May 15, 2025 @11:43AM (#43996224)
If you're looking for a cool example of Lua running on the BEAM, check out the creator of Luerl (Robert Virding) space ship demo

https://github.com/rvirding/ship-demo

Re:Lua for Elixir on Thursday May 15, 2025 @11:41AM (#43996193)
Thanks Josh, hope to see you soon, its been a while
Re:Lua for Elixir on Thursday May 15, 2025 @11:35AM (#43996142)
Author here!

Luerl++ is not a valid module name :)

More seriously, I considered alternate names, but settled on this because it was short, literal, and given that its in the context of Elixir, makes sense when using it.

As you stated, the hope is to consolidate it into Luerl at some point

Re:Why F#? on Wednesday April 02, 2025 @08:57AM (#43556148)
For most of the workloads you’re putting on the BEAM, they are IO bound and this is not of any consequence
Re:Back to basics: Why we chose long-polling over websockets on Sunday January 05, 2025 @09:19PM (#42606936)
Ok but in literally any other language you minimally need this setup to do PubSub.

Elixir gives more options and lets you do it natively.

Also, there are simpler options for clustering out there like https://github.com/phoenixframework/dns_cluster (Disclaimer: I am a contributor)

Re:Elixir 1.18 Released on Thursday December 19, 2024 @01:07PM (#42464121)
Yay, I have a commit or two in this release! So excited to see the type system continue to roll out
Whoops, thought you were OP
Rather than promtail, have you looked at Vector? I just started an MVP of shipping logs directly to our product for end-user consumption using Vector + NATS, and it’s a killer combination.

Compared to Promtail, you have incredibly flexibility with how you collect, transform, and ship logs, with end to end confirmation and great documentation. Using promtail felt inferior once I made the switch

https://vector.dev/

https://docs.nats.io/

Re:Phoenix LiveView 1.0.0 is here on Wednesday December 04, 2024 @10:08AM (#42318167)
I highly recommend checking out [Flop](https://hexdocs.pm/flop/readme.html) and its Phoenix.Component [Flop Phoenix](https://hexdocs.pm/flop_phoenix/readme.html).

Its extremely easy to customize and build a reusable paginated table component

Both the Elixir and Gleam type systems run at compile time (and whenever you recompile during development)

There are no plans for runtime checking AFAIK

Re:Fly.io – Down on Friday May 31, 2024 @01:32PM (#40537979)
Where will you go?
Re:Fly.io – Down on Friday May 31, 2024 @01:26PM (#40537913)
We're pretty close to the same conclusion. We can't run a business on an unstable platform.
Re:Why Elixir (2014) on Wednesday March 27, 2024 @09:22AM (#39838695)
I think you need to go deeper, because it does exactly all the things you’re describing out of the box.

A process can be anywhere in the cluster, and you can interact with it as if it was on your local node.

I use all of these facilities in production on my product with ease. I’m happy to answer your specific questions.

Re:Vice website is shutting down on Friday February 23, 2024 @04:33PM (#39486399)
(One of the original devs for The Outline here) so happy that it is able to live on, frozen in time, although missing a lot of the features that made it cool.

A lot of the cool things we were doing at the outline were on the CMS side of things, its a shame we were never able to share it

Re:Alexei Navalny has died – authorities on Friday February 16, 2024 @09:35AM (#39397549)
Lmao wow that’s a stretch
Re:UUIDv7 is coming in PostgreSQL 17 on Monday February 05, 2024 @09:25AM (#39261519)
My understanding is that they cause a lot of page fragmentation, which leads to excessive writes to the WAL

Older »