Posts
Ignite Elixir
Yesterday I finished the Elixir bootcamp. I loved the Elixir/Phoenix stack and I really wanna get a job that uses it.
Today I’m gonna work on minirt.
Posts
Basecamp evaluations
Yesterday I made a discord bot with Javascript:
https://github.com/librity/shiffman_discord_bot I woke up early today and evaluated 4 rush projects from the ongoing basecamp at 42 São Paulo. This rush is not easy at all and almost all groups fail it.
It wasn’t as fun as last weeks correction since most of the projects were either empty or incomplete. I’m really out of my element when there’s not much code to review and refactor.
Posts
Hangover
Yesterday I read a few chapters of Elixir in Action. The book has a bunch of fun exercises, like implementing generic server from scratch.
I made a hungover server with GenServer:
https://github.com/librity/elixir_in_action/blob/main/chapter_6/key_value_sleepy.exs It has such a hard time waking up I had to write a special function, and every other request gets him back to bed. He’s super lazy and doesn’t want to work for a living.
Today I’ll continue reading Elixir in Action and work on my ray tracer.
Posts
Scheduler
Yesterday I learned about how processes work in the BEAM machine. I re-implemented stacks and queues without GenServer. It’s not that involved, you just spawn a recursive loop that awaits instructions from the process’ message box and changes the state.
https://github.com/librity/elixir_in_action/blob/main/chapter_5/stack.exs https://github.com/librity/elixir_in_action/blob/main/chapter_5/queue.exs Today I’ll continue reading Elixir in Action (I’m halfway through), do some NodeJS challenges and work on my ray tracer.
Posts
Index Notation
Yesterday I learned about the advantages of index representations over matrices.
Today I’ll study physics again.
Posts
GenServer
Today I finished this week’s Elixir module. I learned about GenServer, one of the most useful resources in the Elixir toolbox. It allows you to spawn a generic, state-persistent process. I used to implement a stack and a queue.
Today I’ll study physics.
Posts
Guardian
Yesterday I watched some classes from the Elixir bootcamp I’m doing.
I learned about JWT authentication with Guardian, an elixir lib.
Today I’ll try to finish the challenges.
Posts
ReactJS
Yesterday I did some ReactJS challenges from my bootcamp.
Today I woke up early and corrected 4 rush projects from the ongoing basecamp at 42 São Paulo. It was great to meet all the campers and review their projects. I always try to refactor their code and teach them as many tricks as I can.
I’m doing the new Elixir module.
Posts
Minkowski metric & utteranc.es
Yesterday I did a lot of reading and research on different subjects:
I learned a lot about how to handle lights and colors in a Ray tracer. Once your ray hits and object and you determine the color of its material, you cast rays from the surface to each light source.
If nothing gets in the way of the source, you take the Hadamard product of the material’s color and the light’s.
Posts
The Ray Tracer Challenge
Yesterday I finished the Weekend Ray Tracer book. I added dielectric materials and depth of field to my Ray Tracer:
I had a blast with this project, and I’ll be able to re-use most of the code on minirt. If you’re interested about the math I explain most of the equations used in the projects README:
https://github.com/librity/weekendrt Today I’ll probably start The Ray Tracer Challenge book, which they recommend for the minirt.
Posts
Dielectrics and Refractions
Yesterday I implemented multiple materials on my Ray Tracer, and I also added metals:
The second picture took about 2 hours to render. Today I’ll add dielectric materials, like water, glass and diamonds.