Raphael Costa's Avatar

Raphael Costa

@costaraphael

Elixir/Rust dev Sometimes plays games and the guitar

601
Followers
189
Following
42
Posts
24.07.2023
Joined
Posts Following

Latest posts by Raphael Costa @costaraphael

You can empty that directory then use just rmdir, or rm -f (no -r). Both should fail if the dir is not empty (which probably isn’t the case for your home directory πŸ˜…)

02.01.2026 17:31 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Seeking Sustainable Sponsorship

Seeking Sustainable Sponsorship

Hi Elixir friends,
After 3 years on Hologram full-time (transpiles Elixir to the browser), I'm at a crossroads.

60+ hr weeks balancing contracts & dev isn't sustainable.
Where we are & how you can help: hologram.page/blog/seeking...

Even sharing helps πŸ’œ

#Hologram #Elixir #ElixirLang #BEAM #WebDev

27.11.2025 21:11 πŸ‘ 36 πŸ” 32 πŸ’¬ 2 πŸ“Œ 1

Exciting stuff!

07.08.2025 21:37 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

What browser is this? πŸ‘€

07.08.2025 21:06 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

That’s awesome! I wonder what the lift is to ship it with the precompiled binary (to remove the Rust dependency on the dep users), like Explorer and friends.

Since I’m interested in using this, happy to have a look at that if you don’t mind.

30.07.2025 10:12 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I think this is a good sign for adoption though. More companies using Elixir means more developers that dislike it will have to use it at work, meaning more dislikes in SO surveys.

30.07.2025 10:08 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

ln(πŸ˜…) = πŸ’§ln(πŸ˜„)

21.07.2025 11:09 πŸ‘ 537 πŸ” 137 πŸ’¬ 4 πŸ“Œ 7

Ahhh, modularity *chef’s kiss*

07.07.2025 12:00 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Ohhhh that looks nice!

Is it a library? Or more like a full fledged tool?

07.07.2025 09:56 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

What do we call an #ElixirLang wizard? I know a lot of people use alchemist, but lately I’ve been wondering if macromancer is the way to go…

12.06.2025 15:12 πŸ‘ 8 πŸ” 0 πŸ’¬ 1 πŸ“Œ 2

That would make sense since there’s no concept of a process in the JS land (yet haha)

04.06.2025 07:13 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

This is truly fascinating stuff!

I was reading the example code, and I see the Elixir node it sends the message to a process named β€œcounter” in the JS node, but I couldn’t see where the JS node registers this name. Did I miss something or is the JS code receiving messages directed at all processes?

04.06.2025 07:13 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I don’t know who needs to hear this, but don’t pull an SDK to integrate with those 3-4 third party REST endpoints. It’s not worth it. Just use an HTTP client.

08.02.2025 12:26 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Just pushed a couple changes to hex.pm/packages/kin...

- Loading/success/failure states
- Added a workaround for when the #Livebook is running in a non-secure context (not localhost or HTTPS)

Take it for a spin and let me know if you have any issues! #ElixirLang

21.01.2025 22:31 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Yeap, might be just crazy enough to actually work haha

20.01.2025 11:51 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

What if you register a custom reporter that stores the test states, and then query it from the callback?

It is a bit hacky, but should work.

The unknown here for me is whether the reporter gets notified before or after the callbacks are run.

20.01.2025 05:18 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

That is clean!

I’m going to take some inspiration from yours and add a β€œcopied” tooltip and a β€œloading” state.

I was building some Livebook apps last Friday and really missed a β€œcopy to clipboard” button there.

19.01.2025 18:52 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Note to self: always check for audio in screen captures πŸ€¦β€β™‚οΈ

19.01.2025 13:56 πŸ‘ 1 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Just published a small Kino component for programmatically adding copying content to the clipboard: hex.pm/packages/kin...

It is truly amazing how well Livebook supports prototyping these components 🀯

19.01.2025 13:54 πŸ‘ 8 πŸ” 2 πŸ’¬ 0 πŸ“Œ 1
Preview
a man with a beard is smiling and the word yes is on his face ALT: a man with a beard is smiling and the word yes is on his face
20.12.2024 14:50 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
a man in a cape is flying through the air Alt: Neo from the matrix dodging bullets

Me avoiding Advent of Code solutions for days 5 and 6 until I have some time to work on them

06.12.2024 10:09 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I love his stuff!

04.12.2024 16:07 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

That is true for factors, not for sums. Like, using primes I can be sure the products will be unique, but I cannot ensure the sum of products will be unique. In essence, you can have more than one set of 4 products that yield the same sum, which can cause you to overcount.

04.12.2024 14:07 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Got it! In that case I posted a solution using it earlier, and I also link to this great video by 3blue1brown about convolutions. It is great to build that intuition about what is actually happening there.

04.12.2024 14:05 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I don’t want to spoil anything, but you should have a look at a thread I posted earlier today once you’re done with the puzzle πŸ˜„

04.12.2024 14:01 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Similar logic applies to your kernel, except the two required dimensions are output channels and input channels. The latter has to match the second dimension of your input. So for the same case you have a {n_kernels, 1, x, y} dimensional tensor kernel.

04.12.2024 11:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

It is supported, but you need two dimensions for batch size and channels and then n dimensions for your n-dimensional input.

So if you need to run a convolution over a 2D grid, and you don’t care about channels or batches, you need a {1, 1, x, y} tensor.

04.12.2024 11:38 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
But what is a convolution?
But what is a convolution? YouTube video by 3Blue1Brown

BTW this video was a great help for me to grasp how convolutions work: www.youtube.com/watch?v=KuXj...

Can't recommend it enough.

04.12.2024 10:41 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Had some issues finding proper token and kernel values that would yield unique sums, but once I figured out I needed large enough spacing between token values it was kind of smooth sailing.

04.12.2024 10:41 πŸ‘ 0 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0
Elixir code parsing the puzzle input into a Nx tensor

Elixir code parsing the puzzle input into a Nx tensor

Elixir code using the parsed input to solve Part 1 using convolutions to find the all the occurrences of XMAS.

Elixir code using the parsed input to solve Part 1 using convolutions to find the all the occurrences of XMAS.

Elixir code using the parsed input to solve Part 2 using convolutions to find the all the occurrences of MAS in an X-like pattern.

Elixir code using the parsed input to solve Part 2 using convolutions to find the all the occurrences of MAS in an X-like pattern.

For some reason I thought it was a great idea to solve Advent of Code Day 4 using #ElixirLang Nx and convolutions.

04.12.2024 10:41 πŸ‘ 7 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0