Advertisement · 728 × 90

Posts by Raphael Costa

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 😅)

3 months ago 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

4 months ago 36 32 2 1

Exciting stuff!

8 months ago 1 0 0 0

What browser is this? 👀

8 months ago 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.

8 months ago 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.

8 months ago 3 0 0 0

ln(😅) = 💧ln(😄)

9 months ago 536 137 4 7
Advertisement

Ahhh, modularity *chef’s kiss*

9 months ago 2 0 0 0

Ohhhh that looks nice!

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

9 months ago 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…

10 months ago 8 0 1 2

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

10 months ago 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?

10 months ago 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.

1 year ago 1 0 0 0
Video

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

1 year ago 2 0 0 0
Advertisement

Yeap, might be just crazy enough to actually work haha

1 year ago 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.

1 year ago 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.

1 year ago 1 0 0 0

Note to self: always check for audio in screen captures 🤦‍♂️

1 year ago 1 1 0 0
Video

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 🤯

1 year ago 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
1 year ago 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

1 year ago 2 0 0 0
Advertisement

I love his stuff!

1 year ago 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.

1 year ago 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.

1 year ago 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 😄

1 year ago 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.

1 year ago 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.

1 year ago 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.

1 year ago 2 0 0 0
Advertisement

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.

1 year ago 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.

1 year ago 7 1 1 0