21 Jan 2023 |
Nicd | and yes, I guess if a NIF blocks forever, then that thread is blocked forever | 18:53:28 |
rkv 🌱 | In reply to @Nicd-:matrix.org
CPU process schedules another dirty NIF on the same process
the schedulers are threads, not processes. also, all NIFs run without interruption, that's why you need dirty schedulers because running a long NIF (> 1ms) on a regular scheduler will adversely affect the VM scheduling
Thank you very much; what I needed to know. | 19:23:32 |
23 Jan 2023 |
| cstml joined the room. | 22:12:02 |
24 Jan 2023 |
| mingyar joined the room. | 14:10:24 |
28 Jan 2023 |
| playback2396 joined the room. | 09:12:01 |
29 Jan 2023 |
Heiko | Just started to learn Python and also have a look at Elixir. Is elixir really so much better for parallel programming than other languages? Is it easier? Faster? 👍 | 11:59:40 |
cro | Elixir's support for parallel programming is much better than Python. Python's focus has been on async/await lately though you can still use the multiprocessing module to leverage multiple cores in a pre-emptive nature. The nature of Python's Global Interpreter Lock ends up serializing some operations unexpectedly. | 17:18:15 |
cro | Elixir doesn't have those issues because the Erlang VM was designed from the beginning with concurrency in mind. | 17:20:09 |
h4kor | But Elixir is not a high performance language. You won't get to performance levels, such as C, Rust or other "low level" languages. It is built for concurrent task, such as web services, not for heavy computation | 17:47:05 |
cro | Agreed, though performance has many facets. For example, like h4kor observes, Elixir is great for web services, because its highly concurrent nature lets it handle insane numbers of connections. | 17:54:08 |
rkv 🌱 | In reply to @cro:ncbt.org Agreed, though performance has many facets. For example, like h4kor observes, Elixir is great for web services, because its highly concurrent nature lets it handle insane numbers of connections. True. It is a nightmare when functions are coloured and you have to know which colour is what. Moreover, it is a huge cognitive overhead. I just prefer independent threads -- imagine a scenario when your program does only one thing and that is to let the small HTTP request or the file operation to complete. Like fileContents = readFile('filename'). Now that method is ... either deprecated, discouraged or whatnot... Now I have to do readFile('filename', whatToDoWhenComplete) and the next one is function whatToDoWhenComplete(){}. In C# it is less of an issue as you can Task<>.WaitAll() or Task.Wait(). In JS it is a nightmare. What if I only want linear operations? Now there are two versions, thanks to async, one async and one not but also considered 'bad practice', endless warnings and deprecations. | 19:01:39 |
rkv 🌱 | Explicit parallelism like in Erlang/Elixir is just better. Less issues with endless nesting, no 'colouring'... | 19:02:39 |
rkv 🌱 | There is no don't go to the next line until you are done with everything. | 19:04:38 |
rkv 🌱 | I just checked the Python3 docs, seems like as fun as JS with dealing with async... | 19:08:48 |
h4kor | Yes, python 3 async is a pain. IMO it still doesn't feel right to use. I also like go's approach of being able to run any function sync and async | 21:25:20 |
| @gianluca.scacco:matrix.org left the room. | 21:31:09 |
30 Jan 2023 |
arjgillard | Download Understanding Recruitment 2023 Elixir Salary & Talent Report.pdf | 11:13:49 |
arjgillard | Thought people would like to read this :) | 11:14:03 |
rkv 🌱 | In reply to @arjgillard:matrix.org Thought people would like to read this :) Good one :) | 15:56:38 |
rkv 🌱 | Elixir is taking Erlang/OTP to more general purpose programming. :D | 15:56:55 |
Nicd | In reply to @arjgillard:matrix.org Thought people would like to read this :) some longer description of what people are clicking on would be appropriate :) | 16:05:28 |
arjgillard | * Thought people would like to read this :) It is our 2023 Elixir Talent Report | 16:07:00 |
arjgillard | In reply to @Nicd-:matrix.org some longer description of what people are clicking on would be appropriate :) Nicd: have amended :) | 16:07:13 |
1 Feb 2023 |
| M Yusuf joined the room. | 16:12:03 |
M Yusuf | Hey folks 👋, I'm Yusuf from Bangalore. A novice to Elixir and more. May I know some good static site generator for better performance. It can be of any lang. Want to use for personal portfolio and blogging site. Also, open for any comments / suggestions | 16:16:24 |
M Yusuf | Also, looking if the community has any feedback for elixir based generators | 16:39:43 |
smathy | A starting place for elixir ones: https://github.com/h4cc/awesome-elixir#static-page-generation | 17:21:16 |
smathy | (a starting place for any language ones: https://github.com/myles/awesome-static-generators) | 17:21:46 |
2 Feb 2023 |
M Yusuf | Hey smathy thanks for sharing mate, appreciate it ! | 09:58:24 |
| vancha112 joined the room. | 10:36:23 |