adammokan

adammokan

Human Name - Elixir bindings for the `human-name` crate as a Rust NIF

I needed a reliable way to process human names and found a handy crate (https://crates.io/crates/human_name) and decided to whip up a NIF using Rustler.

Hex: hex.pm/packages/human_name
Github: github.com/amokan/human_name
Docs: hexdocs.pm/human_name/readme.html

A couple caveats:

  • I am quite rusty (no pun intended) with Rust, so if anyone feels the need to DRY up that code and wants to submit a PR - please do!
  • This has not been tested off of my Apple M1-based machine. I will be using this in a actual production data pipeline next week, but until then - test it out before you push to production and turn off your alerts :slight_smile:

Most Liked

adammokan

adammokan

If anyone gave this a shot earlier today, you likely had no luck via hex - since I failed to include the rust files in the package bundle.

Try again with v0.1.2 as this should be resolved. Last resort, just link to the git repo in your deps.

Anyone bundling up a rustler-based package - do not forget to adjust your :files and :exclude_patterns attributes in your mix.exs.

Qqwy

Qqwy

TypeCheck Core Team

Let me hereby confirm that the package builds and runs fine on my x86-64 Linux machine :+1: .
Great work on this library! :confetti_ball:

kamidev

kamidev

Works just fine on an Intel Mac with 10.15.7 (Catalina), too. Built and executed the sample code from README without issues.

Where Next?

Popular in Libraries Top

mhanberg
I just released the first version of Temple: an HTML DSL for Elixir and Phoenix! You can read this blog post or the docs for more info...
New
kip
Image is an image processing library for Elixir. It is based upon the fabulous vix library that provides a libvips wrapper for Elixir. I...
574 16576 179
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
nikokozak
Hello all, I’ve been working on Svonix - a library for quickly integrating Svelte components into Phoenix views. It’s a much-needed succ...
New
cjen07
parameterized pipe in elixir: |n> edit: negative index in |n> and mixed usage with |> are supported example: use ParamP...
New
dbern
I’m excited to announce that TaxJar has developed and open-sourced DateTimeParser. We developed it because we found a need to parse user ...
New
josevalim
EDIT: since Ecto 3.0 final version is out, this post was amended to use the final versions in the instructions below. Hi everyone, We a...
New
tfwright
After working on it for a couple of months and using it in production for most of that time, today I’ve released LiveAdmin, a LiveView ba...
New
aditya7iyengar
Rummage.Ecto and Rummage.Phoenix provide ways to perform Searching, Sorting and Pagination over Ecto queries and Phoenix collections. Fo...
New
Antrater
Hi everyone! I’m thrilled to announce a huge thing. We have been developing Elixir Moon Design System for quite a while. We are finally ...
New

Other popular topics Top

peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New

Sub Categories:

We're in Beta

About us Mission Statement