zacky1972

zacky1972

Creator of Pelemay

Pelemay (formerly Hastega) - Challenge for GPGPU on Elixir!

Do you want to learn and use machine learning in Elixir / Phoenix / Nerves apps? Of course, you can, but the machine learning is written in Python and invoked from Elixir via ErlPort… Of course, you can implement some machine learning algorithms in Elixir. However, they have no computational power enough to execute real applications. We wish Elixir could have more computational power!

This may change by Hastega! Hastega will make a series of code fragments of pipelined Enum.map to be transformed into optimized native code using GPUs and/or CPUs with SIMD instructions.

I wrote a post of Medium on Hastega:

https://medium.com/@zacky1972/hastega-challenge-for-gpgpu-on-elixir-intend-to-apply-it-to-machine-learning-691c3560d179?source=friends_link&sk=9e56cc0a10940ea8a9299cdf47448c21


Original unveiling/discussion can also be found here: LoneStar Elixir 2019 - anyone go? - #2 by gregvaughn

First 10 of 10 Posts Switch mode

zacky1972

zacky1972 OP

Creator of Pelemay
NobbZ

NobbZ

Sorry, but I can not open that link… I always end up beeing redirected to https://medium.com/.

zacky1972

zacky1972 OP

Creator of Pelemay

Really?
I wrote the same URL to the post on SNSs, which works well…

zacky1972

zacky1972 OP

Creator of Pelemay

Thank you for your additional explaination!!!

zacky1972

zacky1972 OP

Creator of Pelemay

I’ve just revised the URL. Thank!

AstonJ

AstonJ

I’ve said it before but will say it again, can’t wait to hear more about Hastega - keep up the good work! :023:

cblavier

cblavier

Just discovered Hashtega and it sounds really exciting. Any news?

zacky1972

zacky1972 OP

Creator of Pelemay

Pelemay 0.0.6 has been released!

A new feature of this release is to support String.replace.

defmodule M do
require Pelemay
import Pelemay

defpelemay do
def string_replace(subject) do
String.replace(&1, “Fizz”, “Buzz”)
end

def enum_map_string_replace(list) do
  list
  |> Enum.map(& String.replace(&1, "Fizz", "Buzz"))
end

end
end

This code is 4x faster than original Elixir code.

StringReplaceBench

benchmark name iterations average time
Pelemay String.replace 1000000 1.20 µs/op
Enum String.replace 500000 3.92 µs/op
Flow String.replace 5000 678.27 µs/op

I wrote an article:

https://medium.com/@zacky1972/pelemay-0-0-6-has-been-released-string-replace-becomes-4x-faster-cebeeaf3fe5b?sk=cbab126e2adfc95c7f79ca4c0aeb45c3

— All posts loaded —

Where Next?

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 91561 914
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
AstonJ
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement