sabiwara

sabiwara

Elixir Core Team

Hi!

Introducing Aja, a library aiming to extend the standard library with some extra data structures and utility functions.

Featuring:

  • ordered maps
  • tree-based maps and sets that should be more ergonomic than :gb_trees/:gb_sets
  • exclusive ranges
  • various utility functions

Github: GitHub - sabiwara/aja: Extension of the Elixir standard library focused on data stuctures, data manipulation and performance · GitHub
Hex: Aja v0.7.4 — Documentation

I’m still relatively new to elixir and announcing my first library feels pretty embarrassing, but watching Chris Keathley’s inspiring talk encouraged me to just go and ship my “bonks idea”. Looking forward for your feedback!

Showing Posts 1 to 1

sabiwara

sabiwara OP

Elixir Core Team

What would Elixir feel like if lists let you append or access any element efficiently, like you would do in python or any imperative language?

Clojure, which is also a functional language, makes its persistent vector one of its selling points, precisely because vectors can perform many operations in effective constant time.

This has been a tough challenge and I went through several failed attempts, but I’m happy to announce that A.Vector is now available in Aja, since version 0.4!

While there is still work to be done especially regarding optimization, the performance of this early version already shows great promise: most “enumerable” functions are much faster than erlang’s :array, and some are even slightly faster than their List / Enum’s counterparts.

My motivation and hope is that vectors could make it more straigthtforward to write some of the more algorithm-heavy parts of business logic code. And maybe it can make the transition easier for beginners coming over from imperative languages and who struggle with some of the limitations of linked lists. I’m looking forward to hearing your thoughts!

— All posts loaded —

Where Next? Top

Trending in Announcing Top

wojtekmach
Hey everyone! Req is an HTTP client for Elixir that I’ve been working on for quite some time. There is already a lot of HTTP clients out...
New
handnot2
Samly can be used to enable SAML 2.0 Single Sign On in a Plug/Phoenix application. This library uses Erlang esaml to provide plug enabl...
New
woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
restlessronin
The repo is at GitHub - cyberchitta/openai_ex: Community maintained Elixir library for OpenAI API · GitHub. Docs are at OpenaiEx User Gu...
152 11030 135
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
fuelen
Hi all! I want to present a small library which provides a mix task for generating an Entity-Relationship Diagram for Ecto schemas. You...
New
woylie
Phoenix components for pagination, sortable tables and filter forms with Flop and (optionally) Ecto. pagination cursor pagination sorta...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
mudasobwa
I am seeing a lot of aplications of Argumentum ad Vericundiam in software discussions. They do link some piece of writing and point us to...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
sorenone
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New
Herve37
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using. We’re particularly inte...
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews