Introduction to Elixir - Concurrency Primitives, Processes, and Message Passing - Part Eight

  Рет қаралды 8,424

Tensor Programming

Tensor Programming

Күн бұрын

Пікірлер: 19
@alittleextra2832
@alittleextra2832 2 жыл бұрын
Thank you... this is the best foundation to build upon.
@TensorProgramming
@TensorProgramming 2 жыл бұрын
Thanks, glad you found it useful. I hope to add more.
@jollyjerr
@jollyjerr 3 жыл бұрын
This was really great! Super clear and well taught
@josefu-san
@josefu-san 3 жыл бұрын
Thanks a lot for this Tensor!
@Rishabh0501
@Rishabh0501 5 ай бұрын
Thanks for this video. It's a great learning experience. I have question about the size of the process. Size of the process will change based on the amount of processing, right? Or it will be around 2kb irrespective of the required processing.
@TensorProgramming
@TensorProgramming 5 ай бұрын
Each of the processes on the BEAM starts at 2kb and then increases from there based on the data structures that you assign to their heap. They can get pretty large depending on how stateful they are. Fortunately, you have per process garbage collection which you can invoke manually if you really need to. That being said, I've only really had to do this on one app that was pulling millions of timeseries entries from an influxdb. Eventually, I ended up using a process pool for this task and just dumped the process after it was finished instead of using the GC directly. This is also an effective way to keep the processes low in cost; killing them and passing the state off to a new one after minimizing its size. Its almost always useful to treat your elixir/erlang processes as disposable. You can see the process size using the observer and the IEX repl.
@Rishabh0501
@Rishabh0501 5 ай бұрын
@@TensorProgramming Thanks a lot Tensor for such a great explanation!
@TensorProgramming
@TensorProgramming 5 ай бұрын
@@Rishabh0501 Not a problem. As an amendment to said explanation, each process has its own isolated heap. I kind of implied as much but thats how they can start at 2kb.
@shadow16810
@shadow16810 3 жыл бұрын
Hey Tensor what is that VSCode theme you use with the beautiful symbols for |>,
@TensorProgramming
@TensorProgramming 3 жыл бұрын
The theme is Spacemacs Dark and the Code ligatures come from a free font called Fira Code which you can download: github.com/tonsky/FiraCode. You will need to enable code ligatures in the settings to the the symbols though.
@combinedcognitions1905
@combinedcognitions1905 3 жыл бұрын
best elixir tut
@juan768
@juan768 5 жыл бұрын
Beautiful voice!
@TensorProgramming
@TensorProgramming 5 жыл бұрын
haha thanks.
@mack_akdas
@mack_akdas 2 жыл бұрын
Awesome
@alexa8522
@alexa8522 2 жыл бұрын
Is this similar to actor model receiving messages?
@TensorProgramming
@TensorProgramming 2 жыл бұрын
Its not similar because the BEAM is the original actor model after all. Every time you hear the term process in this video, you can replace it with actor and it would be roughly the same idea. The Elixir language uses processes/actors for everything.
@alivape
@alivape 4 жыл бұрын
The Morgan Freeman of programming
@TensorProgramming
@TensorProgramming 4 жыл бұрын
Not entirely sure what that means haha.
@anshchaturvedi4235
@anshchaturvedi4235 2 жыл бұрын
@@TensorProgramming I think he's talking about your voice, absolutely lovely! And great video, thanks for this!
Introduction to Elixir - Functions, Built-in and Complex Types - Part Two
26:05
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
Thinking Concurrency: Dwelling in Erlang and Elixir | Francesco Cesarini
29:09
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 208 М.
Recursion Over Lists in Elixir
26:33
Jacob Luetzow
Рет қаралды 2,2 М.
Introduction to Elixir -  GenServer, Links and Message handling - Part Ten
18:04
Rust vs 7 Other Languages You Probably Haven't Tried
8:55
Code to the Moon
Рет қаралды 78 М.
Introduction to Elixir - Guards and Conditional Macros - Part Four
15:28
Tensor Programming
Рет қаралды 6 М.
Introduction to Elixir - Pattern Matching and Control Flow - Part Three
21:13
The Ultimate Guide to Gleam Concurrency
13:36
Isaac Harris-Holt
Рет қаралды 24 М.
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН