zacky1972

zacky1972

Creator of Pelemay

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

Showing Posts 1 to 10

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? Top

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 91898 914
New
AstonJ
The obligatory hello world thread! Who are you and where are you from? :stuck_out_tongue:
4616 55835 594
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
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
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
matt-savvy
Is there a word for the ~> symbol used in Version strings? Do you also just call it a Squiggle Arrow™ ?!
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews