hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

10K
active users

#elixir

37 posts23 participants0 posts today

TIL there is "Kleene", a new container mangament platform for FreeBSD:

kleene.dev/get-started/overvie
designed to be very similar to Docker / Podman.

It looks very promising!

There are also PRs for new ports:

- bugs.freebsd.org/bugzilla/show (kleene-cli)
- bugs.freebsd.org/bugzilla/show (kleene-daemon)

The PRs seem to need some help from someone knowing about Elixir, though.
Maybe you are the one? 🫵🏻 🙂

Kleene Documentation · Kleene overviewKleene explained in general terms
I had a JSON schema I wanted to use for structured output from ollama. No functional error, but the schema was essentially ignored. Ran runs with different models, prompt tweaks, schema tweaks, etc. No joy.

Eventually backed up and recreated the essentials in a pydantic data structure, then dumped the model as JSON.

In the elixir run, Jason.decode that string and feed it as a format: parameter.

Boom. Finally.

#elixir #python #ollama
nolineage.comAkkoma

Livebook as an educational tool

We welcome Alex Koutmos as a guest writer on our blog, to share his experiences on using Livebook as a learning tool for Elixir. For the past few months, Hugo Baraúna and I (Alex Koutmos) have been working on a new book for Elixir called Elixir Patterns.

Tags: #elixir, #livebook

via Pocket ift.tt/ebIM893

February 13, 2025 at 11:27AM

ift.ttLivebook as an educational tool - Dashbit BlogA guest article from Alex Koutmos on using Livebook as a learning tool for Elixir

We picked #Elixir and Erlang because we knew building a distributed system at @tuist would come. I started building an agent application, Sidekick, which will run Apple hardware, and that our server will communicate with to orchestrate virtualisation:
github.com/tuist/sidekick

🤖 An Elixir tool to run server operations in other environments (e.g. macOS) - tuist/sidekick
GitHubGitHub - tuist/sidekick: 🤖 An Elixir tool to run server operations in other environments (e.g. macOS)🤖 An Elixir tool to run server operations in other environments (e.g. macOS) - tuist/sidekick

It's all about setting the mindset for testing 4 things

1. Testing full liveviews (annoying as fuck but sometimes needed).

2. functional components (trick: break down liveviews)

3. decide when to use livecomponents (more complex) over functional components (simple as fuck to test). Usually, when they touch ECTO stuff.

4. Use this to test livecomponents without pulling all of your hair out. github.com/Serabe/live_isolate

That's UI design in TDD with Elixir in a nutshell.

Testing Live Components in isolation. Contribute to Serabe/live_isolated_component development by creating an account on GitHub.
GitHubGitHub - Serabe/live_isolated_component: Testing Live Components in isolationTesting Live Components in isolation. Contribute to Serabe/live_isolated_component development by creating an account on GitHub.
#elixir#ui#testing

podcast.thinkingelixir.com/240

Speaking of ASDF breaking changes, I think it would also be useful to mention the option to use kerl directly for Erlang (I made the switch during the openssl shenanigans... now years ago), and also the binary builds provided by hex.pm (github.com/hexpm/bob)

@ThinkingElixir #elixir

Optimizing batch operations with Ecto

We had a feature in a product that required us to insert and update lots of data on a user action. Here is how we transformed 1000 SQL queries into 1. The way the code is structured is simple: An operations table and a translations table.

Tags: #ecto, #elixir

via Pocket ift.tt/DeLJXAa

February 11, 2025 at 11:42AM

CraftOptimizing batch operations with EctoWe had a feature in a product that required us to insert and update lots of data on a user action. Here is how we transformed 1000 SQL…

I'm ~40 pages in to the 1.0 version of the #Elixir Patterns book (so far a sort of TLDR of the Erlang stdlib). I started reading an earlier draft a while ago and thought about giving them some feedback to purge all mentions of "with that being said", "without further ado", "let's dive in" which seem to show up every 100 words or so. I maybe should have because it looks like nobody else did... Anyway, without further ado, let's dive in!

elixirpatterns.dev/

www.elixirpatterns.devElixir Patterns book & LivebooksLearn recipes and patterns specific to Elixir/OTP