Writing Rust NIFs for Elixir With Rustler

I’ve written a post about writing NIFs for Elixir in Rust with the upcoming 0.22 release of Rustler. Check it out at: https://simplabs.com/blog/2020/06/25/writing-rust-nifs-for-elixir-with-rustler/

Workbench - Manage your Algorithmic Cryptocurrency Trading Cluster

Workbench strives to provide a first class development environment that brings the same productivity and performance benefits from the Phoenix & Elixir community to real time algorithmic and quant workflows.

https://github.com/fremantle-industries/workbench

Cryptocurrency automatic portfolio rebalancing bot.

Cryptocurrency automatic portfolio rebalancing bot built with elixir.

https://github.com/steffenix/rebalancer/

Headless CMS fun with Phoenix LiveView and Airtable (pt. 2)

Here’s part 2 of my Headless CMS fun with Phoenix LiveView and Airtable series where we’ll be setting up the project and implementing the repository pattern:

http://codeloveandboards.com/blog/2020/07/11/headless-cms-fun-with-phoenix-liveview-and-airtable-pt-2/

N-Queens and Backtracking in Elixir

Backtracking algorithm in Elixir for solving N-Queens and other constraint satisfaction problems, with a discussion of different heuristics & integration with constraint propagation techniques. Also, the csp library is published on Hex now!

https://youtu.be/I1JNXK-XJms

Vela → Time Series Cache

Vela library is a cache-like state holder for several series. It sieves the incoming data and keeps the last N non-stale correct values for each series.

Introduction article: https://rocket-science.ru/hacking/2020/07/06/vela-time-series-cache

Hexdocs.

Handling failures in background workers with Elixir and supervisors

Elixir and the Erlang VM allow us to write highly available systems. Does that mean that we don’t have to do anything to make them reliable?

https://patrykbak.com/2020/07/07/handling-failures-in-background-workers-with-elixir-and-supervisors.html

Elixir Berlin Meetup July Remote Edition

https://youtu.be/DTGIKzeu4YY

“Gleam: Lean BEAM typing machine by @lpil”

ex_check v0.12.0 with improved dependency system and more

New version addresses reported issues and introduces a brand new dependency system that allows to construct more powerful workflows involving your favorite set of code checking tools. It’s now possible to run a specific tool(s) only when tool(s) it depends on succeed or fail, which allows e.g. to:

  • only run heavyweight tools like dialyzer or tests when fast ones pass or run all integration tests when the smoke test suite passes
  • handle failure of specific tool with another one e.g. upload screenshots from failed tests

More info in “Cross-tool dependencies” section of docs

There were also some minor fixes for ExUnit and Dialyzer - check out the changelog for more info.

Quick reminder: ex_check provides the mix check task that allows to efficiently run all code analysis & testing tools in an Elixir project - in a “one command to rule them all” fashion, both locally and on CI.

Elixir Wizards S4E8 Chris McCord with a Deep Dive on Phoenix

Latest episode of Elixir Wizards is out today! Check it out here: https://smartlogic.io/podcast/elixir-wizards/s4e8-mccord/

Making Audit Logs on Hex.pm Public

This post explains why Hex.pm is making its audit logs public and what kind of information you can find via these audit logs.

Making Audit Logs on Hex.pm Public - Yiming Chen

Swoosh 1.0

Hi all,

I just tagged v1 for Swoosh. https://github.com/swoosh/swoosh/releases/tag/v1.0.0

I hope it’s been helpful for many. Swoosh has been very stable for a very long time. So I thought, it’s about time.

REST API with Elixir/Phoenix - A beginner's tutorial

Elixir and Phoenix 1.5 tutorial that will walk you through creating a simple Bookstore REST API.

Read it on my blog: https://www.dairon.org/2020/07/06/simple-rest-api-with-elixir-phoenix

ThinkingElixir 003: Elixir 1.11 Preview with Wojtek Mach

In episode 3 of Thinking Elixir, We talk with Wojtek Mach about some of the exciting new features coming in the Elixir 1.11 release. We cover the improved recompilation process, when “alias” is preferred over “import”, improved compiler checks for structs, Erlang help docs in IEx, and much more!

Podcast Episode

REST vs GraphQL for your Elixir API

The goal here is to help you think about and consider the costs and benefits of building a REST vs GraphQL API for your next project. Technology decisions often include thinking about the trade-offs. Hopefully this can help you evaluate these two technologies and approaches.

Read More

Securing Application Webhooks in Elixir

Bernardes shares his problem-solving process and how he reached the solution of how to secure application webhooks with Elixir.

Read his full experience on our blog -> https://coletiv.com/blog/securing-application-webhooks-elixir/

Phoenix.LiveController v0.6.0 with plugs & more

A lot has happened for the Phoenix.LiveController library and its API in last weeks just as it did for Phoenix and LiveView itself - which has finally became a true first-class citizen in the framework. With that in mind and with below recent changes, it’s a great time to remind you guys that phoenix_live_controller offers an (experimental) alternative way to structure your LiveView-heavy projects.

Plugs: Live controllers may now easily organize & run reusable logic such as user auth (works great with new mix phx.gen.auth!) or anything else - consistently regardless if mounting, handling params, events or messages. It includes a powerful conditional filtering mechanism via the when clauses, making it easy to plug into any chosen part of the live view lifecycle.
More info & examples in “Chaining & plugs” section of docs.

Easy access to URL and session: URL and session, passed by regular live views at various moments in the lifecycle, may now be grabbed consistently and at any time via the get_current_url/1 and get_session/1 helpers.

Extra annotations: Mount opts, such as temporary_assigns may now be specified on per-action basis via the @action_mount_opts annotation. More info & examples in “Specifying mount options” section of docs.

But perhaps most importantly considering that I’ve taken the risk of shaping live controllers in different direction than one proposed by Phoenix 1.5 live generators, I’m doing some real battle testing developing a real-world LiveView-heavy project using this abstraction and so far it proves really efficient. I may discuss this further soon but so far I consider it an alternative worth at least taking a look - especially if, like me, you want to go all-in with live views in a way that lets you hold on to some battle-proven features of Phoenix, like plug chaining or templates & views in separate directories.

See you all on GitHub!

Headless CMS fun with Phoenix LiveView and Airtable (pt. 1)

Here is the intro of my new tutorial, Headless CMS fun with Phoenix LiveView and Airtable (pt. 1), where we are going to be building a Phoenix landing page, with realtime updates, managed from Airtable. I hope you enjoy it :)

http://codeloveandboards.com/blog/2020/07/02/headless-cms-fun-with-phoenix-liveview-and-airtable-pt-1/

Phoenix LiveView and Views

There are several ways to organize your Phoenix LiveView templates, and regular Phoenix views can still play a part in that. Let’s explore how templates are rendered, and some tips on where to place your template and when.

https://bernheisel.com/blog/phoenix-liveview-and-views/

ElixirMix Podcast 097: Real-Time Phoenix, Tenant data, and user auth with Steve Bussey

In this episode of ElixirMix, we talk with Steve Bussey his book Real-Time Phoenix, his library ecto_tenancy_enforcer, and we delve into user auth. We cover how TDD works for us, approaches to partitioning user data, recent auth developments in the community and much more!

Podcast Episode

Looking for Elixir news and more content? Check out my new show Thinking Elixir Podcast!

Previous page Next page