[elixir-core:10578] Re: Add PartitionSupervisor

2021-12-10 Thread Kenny Evitt
This seems really interesting, and useful – thanks! I was curious about any (redacted) details of the kinds of "large systems" for which this would be useful, but the docs in the PR are pretty clear – this is a "dead-simple way to parallelize" dynamic supervisors by running a group of such

Re: [elixir-core:10576] Proposal: disable doctests per doc entry

2021-12-10 Thread 'eksperimental' via elixir-lang-core
That is pretty much what I was using (it is what we use in Elixir core when an exception is raised), the issue with that is the it does not play out well with multi-line return values, which was my use case, and therefore this proposal. On Fri, 10 Dec 2021 14:42:51 +0100 Wojtek Mach wrote: >

Re: [elixir-core:10575] Proposal: disable doctests per doc entry

2021-12-10 Thread Wojtek Mach
Another popular pattern I've seen in the wild is: ## Examples Foo.bar() #=> :baz since :baz is in a comment, it is not going to be syntax highlighted, but I think that's fine. On December 9, 2021, elixir-lang-core wrote: > Hi list, > documenting functions made me realize the need to be able to

Re: [elixir-core:10574] Re: Proposal: disable doctests per doc entry

2021-12-10 Thread 'eksperimental' via elixir-lang-core
That's a nice trick Eric. I didn't now about it, it formats well in ExDoc, with the exception that ">" is not hightlighted and it is selectable., but I can create a feature request for MakeUp. So far the only way I knew to disable it is not to use `iex>` altogether. Thank you On Fri, 10 Dec

[elixir-core:10574] Re: Proposal: disable doctests per doc entry

2021-12-10 Thread Eric Meadows-Jönsson
I don't think this is needed since if you don't want to use doctests you don't have to use the doctest syntax. For example, instead of: iex> 1 + 1 2 you can do: > 1 + 1 2 On Thursday, December 9, 2021 at 3:44:55 PM UTC+1 eksperimental wrote: > Hi list, > documenting functions made me

[elixir-core:10572] Add PartitionSupervisor

2021-12-10 Thread José Valim
Processes like Task.Supervisor and DynamicSupervisor can become bottlenecks on large systems and at the moment there is no dead-simple way to parallelize those. A minimal solution takes about 30-50 LOC and I believe it is important for the language to have an out-of-the-box solution to tackle