Why Phobos is cool

jmh530 john.michael.hall at gmail.com
Mon Jun 29 19:37:37 UTC 2020


On Thursday, 25 June 2020 at 16:20:54 UTC, H. S. Teoh wrote:
> On Thu, Jun 25, 2020 at 06:52:05AM +0000, Petar via 
> Digitalmars-d wrote: [...]
>> I suggest checking http://mir-algorithm.libmir.org/.
>> Ilya has been doing a truly amazing job at both developing,
>> maintaining and optimizing this library.
>> Also he has put a hard focus on memory allocators, @nogc and 
>> betterC
>> (for exposing libmir to C and C++ users and also for scripting
>> languages like Python or Julia).
>
> I'm aware of Ilya's work, and have been meaning to look it up, 
> but haven't had the time. And also I'm working with different 
> constraints: I primarily work with batch-oriented computations, 
> so @nogc is not really on my radar (though I do try to minimize 
> GC use for obvious reasons), and betterC isn't really under 
> consideration for what I need to do. So these factors in Mir 
> don't really stand out to me as much as they may to others.
>
> [snip]

BTW, `mir` is not always and everywhere @nogc. It can be mixed 
with GC code. For instance, the `sliced` function will use the GC 
to allocate a slice. However, it also has facilities for 
allocating malloc'ed and referenced-counted slices. However, one 
design goal is that it can also be used @nogc.



More information about the Digitalmars-d mailing list