"What we do in Discord would not be possible without Elixir. It wouldnโt be possible in Node or Python. We would not be able to build this with five engineers if it was a C++ codebase."
Learn more about how the Discord team is using Elixir and the Erlang VM to deliver more than 26 million WebSocket events per second to more than 12 million concurrent users:
I am pretty "deep" into the Elixir World these days so I thought it was a good time to step back and enumerate all the incredible stuff Elixir and Phoenix can do for us.
(also this is my favorite cover art so far!)
@mattyglesias
All politicians should consider their replacement as the torch holder of their legacy. Something I think boomers and silent gen are clearly bad at.
I wonder how the people and business in Shorewood survive without a major highway + spur connecting them to 43 and 94? Do they just drive the 6minutes to 43 via normal roads? Like animals?
Thanks to the BEAM/Elixir we can do actual magic, like say creating a new Fly Machine, executing code on it, getting results and it just working like its happening locally.
Learn how with no extra libraries or tools, just using what the BEAM gives us.
Elixir is good at IO that you can break every rule of N+1 and web server development and indexes and efficient queries and your app will be fine till you hit 150k requests a second, and even then its Postgres that falls over first.
Everyone complaining that Bernie is too far left needs to explain where all of the EU lies relative to Bernie. Because what I see is a bog standard liberal from the early 50s. If you see a marxist your overtone window is broke.
It fascinates me that free tuition for a higher education is such a controversial idea in the US. Nobody is arguing that K12 should be for pay. Pretty much all of Europe already has a defacto implementation of it. The lack of ambition in the US on the big topics is depressing.
Tensor were(still are) kind of a foreign thing to me when I first started working with Elixir NX. So I wrote a tiny gentle getting started.
What I learned is you don't have to be doing complex matrix math to benefit from using them!
Every time I work with someone new to Elixir I need to reiterate that the Elixir Docs are actually good, and often better than a tutorial or StackOverflow.
How many of these things did you already know about Elixir docs and Hex?
If you've been working with Elixir and Phoenix for a bit and are ready to upgrade your skills and get more into OTP. This is THE book I'd suggest you pick up. It's also written by one of the finest people I know
@lance_halvorsen
What
@josevalim
has done with this PR is a hugely valuable resource.
You get the chance to see how one of the worlds best programmers approaches an extremely common, yet complex, problem.
Even better you get to see all the little mistakes he made.
Did you know SQLite3 comes with Full Text Search built in? I wrote a quick tutorial on using it with Ecto, as well as some explanations of why it is so different than others.
I plan on continuing by hooking it up to Phoenix LiveView and LiteFS!
With sqlite+litestream+phoenix you can do horizontally scaled, continuously backed up to s3, write-lite, globally distributed services AND full featured front end applications.
With just the lightstream, erlang and elixir binaries to bootstrap everything.
One of the really incredible bits about the BEAM is having multiple processes communicating on cpus, machines, or data-centers globally.
It can be daunting to get started and
@chris_mccord
released a new library to make DNS Clustering easier!
Not Every Dependency is worth it. Follow along as I review a Hex package and find out I can probably replace it with a function call, a more specific dependency and Req instead! (Link below)
I got a chance to play around with Rustler for creating Nifs in Elixir and the experience was an absolute joy.
Rust is a fantastic language and ecosystem, easily as good as what we have for dev UX in Elixir.
I think they are are a good mix.
@hankgreen
Hank I think you need to redefine what "more broadly famous" means. Because I'd wager more people follow/keep up with your work than most famous actors.
Elixir is fantastically well suited for this. Wrap any existing code in a `(MyRunner, fn -> ... end)` and that's it! We will find or boot a new temporary copy of the app, send functions to the temp node *and any variables those functions close over*.
The year is 2022 and Phoenix LiveView is very popular. As a result
@chris_mccord
is now one of the best JavaScript developers I know of.
Please send him all of your JavaScript queries!
I really love single file elixir scripts. Especially for isolating tricky bugs. I've been calling them Garyfiles after
@TheGazler
who's been using them forever.
So I did a write up! I think might be surprised at *how much* you can do with just `elixir`.
OpenAI uses Server Sent Events for streaming results from their API. I put together a small guide on using
@wojtekmach
's fantastic HTTP client library Req, to work with this!
@powerbottomdad1
I think he is just more honest than most people lol. I know tons of โnormal peopleโ who live off essentially the same shit meal every day and most people do 3ish productive hours between meetings, breaks and lunch.
One of the great things about using LiveView is that you can be really productive with our knowing anything about how a Process works in Elixir.
Lets talk about the implications of every LiveView being a Process!
In one of my first documentation efforts with I wrote up a quick guide on using SQLite3, Phoenix/Ecto and even a bonus tip of one way you can transfer data to SQLite from other databases.
Hat tip to
@mcrumm_
as well!
Finally got one of my Phoenix Files posts published.
@flydotio
Copying to the Clipboard from LiveView aka how to do simple JS stuff when you maybe don't need a hook.
Kudos to
@josevalim
for the inspiration from his now deleted tweet.
You would not believe how many doctors, residents, nurses, nursing students, technicians, and janitors they can fit in one labor and delivery room in the span of an hour.
In other news, Flora Stiebs was born last night!
My company,
@RokkinCat
, is looking to hire another Elixir Developer Contractor/Consultant. If you are interested in working with me (and frankly my way more interesting coworkers) reach out! My DMs are always open. All skill levels are accepted.
I just want to say that Mix.install is so powerful.
I cannot think of another language that lets you make a file, add โMix.install([:nx, :plug_cowboy, :req])โ and run โelixir file.exsโ and you automatically can do machine learning, web development and interact with APIs.
Wild!
@jdcmedlock
My grandma and I argue about this because she is a classic republican and the argument that works every time (she kinda forgets) Her argument is "the parents should be responsible for their children!" me: "why make the children suffer for the misfortune of their parents?"
I'm starting to get the feeling that
@livebookdev
has the potential to be bigger than any other elixir project. I've used Jupyter and I love Observable but LiveBook is moving faster and in more creative directions than either.
What if S3 could be a fast, Globally Synced, KV Store? That is as simple a single "put' and you are done?
That's essentially what
@TigrisData
is! Tigris launched on Fly last week and I've been just day dreaming with all that you can do!
`for` in Elixir is different, and it can frankly do way more than you'd think.
This continues my series of posts on "this is a thing I explain to newew Elixir devs often."
Really difficult to overstate how incredible Req is and is becoming. Wojtek is doing things with testing that no other lib does, in any language not just Elixir!
I have become quite partial to the
@zeddotdev
editor lately for Elixir. It's fast, the team is responsive to bugs and the vim emulation has been improving faster than I thought possible.
It also integrates with the nextls language server which is very nice!
Elixir has this really cool library called "NimblePublisher" that uses your filesystem as a sort of CMS. But it can be tricky for people to see how to "Finish Drawing the owl" and ship it. So I wrote it up!
@lastcontrarian
@mucha_carlos
collectively or manipulated into? Lots of powerful companies/industries/lobbies stood to lose big time if we all went the way of France. Not hard to manipulate the usual suspects on the far right and left away from them.
Please reach out if you are hiring for frontend and or Ionic/react or elixir. Our people are incredibly capable and talented and I can vouch for them.
I will be joining
@flydotio
in the new year as a "Senior Framework Specialist" for Elixir/Phoenix.
To celebrate the official launce of Google Stadia (
@GoogleStadia
) tomorrow, I have created a single-purpose website: . It is a countdown timer set for the average lifespan of any Google service/product, which is 4 years.
Anecdotal evidence here but I can confirm that people *want* to be working with Elixir.
If you are using Elixir and are having trouble hiring.... I don't know what to tell you.
.
@chris_mccord
told me this library is too boring to write a post about and I couldn't disagree more! BEAM is incredible and thanks to 's primitives its really quite simple to deploy something globally.
Remote work is incredible and I wouldn't really wanna go back to 9-5/5days a week in an office. But goofing around with coworkers and going out to lunch is undefeated.
Following up from my last post, here is a guide on actually using your SQLite Full Text Search database with Phoenix LiveView.
I had trouble writing this post cause its literally just "Query the database, Render the results".
LiveView โฅ๏ธ SQLite
You do not need a vector database to make a ChatGPT plugin. I even made a "single file" example in elixir
And here is a guide I wrote walking through it
Most problems I see from new users of LiveView comes from not understanding that a LiveView is actually process, and each user gets one.
So let's talk about it!
@CleverMonsterCT
@cammerman
Later
Left: that genocide you did was bad. Here is the evidence. By law you should be in jail.
Right: who even cares about genocide when gas is 5$/gallon?
Center: gas is expensiveโฆ
Really excited for this launch, the
@TigrisData
team are a really smart crew and they bring really interesting NEW ideas to the "S3" storage space. (more on this tomorrow from me :-))
If you want to use
@supabase
's excellent pgvector on Fly, while still using Fly Postgres tooling, I made a little tutorial on how you might do that with Dockerfiles!
@mikerugnetta
One missing cost here and the most insidious one is how health insurance companies push the work they should be doing on to you and the employer and shamelessly. I have a small business and I hate every single step of this.
@mitsuhiko
an ultimately once your application solidifies you end up with only a couple hot paths anyways, with manual work to add even trivial features, and the cost of the system with infinite complexity.
Also if you use with Phoenix and something sucks let us know! We have a very active forum .
If you are a mutual don't be afraid to slide into my DM's and vent. My job is making work well for Elixir/Phoenix!
The real benefit of functional programming is that I can jump into any code base, read some functions and their arguments and figure out what is going on. If I need to "jump to definition" I can search `def function_name` or use an LSP if offered. Its all out there.