Jump to page: 1 2
Thread overview
ML and contributing to mir
3 days ago
Marc
3 days ago
Bradley Chatha
3 days ago
Marc
3 days ago
monkyyy
3 days ago
Marc
3 days ago
monkyyy
3 days ago
Lance Bachmeier
3 days ago
Marc
3 days ago
Serg Gini
3 days ago
Marc
3 days ago
Serg Gini
6 hours ago
Tim Moldazhan
3 days ago

Hi everyone,

I'm interested in tensors, scientific computing and ML. After trying to write a tensor library for c++, I came to the realisation that I'm starting to hate the language the more code i write. D seems like an obvious choice for my interest, a fast compiled language but the gc is putitng me off as well. I would be however very interested in contributing to mir maybe even writting examples for its use cases. I would like to write a classical machine learning library (decision trees, linear models...) in D. Are there currently any effort in the community towards this goal? I would appreciate any help or suggestions.

3 days ago

On Wednesday, 6 August 2025 at 17:54:27 UTC, Marc wrote:

>

Hi everyone,

I'm interested in tensors, scientific computing and ML. After trying to write a tensor library for c++, I came to the realisation that I'm starting to hate the language the more code i write. D seems like an obvious choice for my interest, a fast compiled language but the gc is putitng me off as well. I would be however very interested in contributing to mir maybe even writting examples for its use cases. I would like to write a classical machine learning library (decision trees, linear models...) in D. Are there currently any effort in the community towards this goal? I would appreciate any help or suggestions.

This isn't really my area of interest or expertise, but you might find some historical interest from VectorFlow - a neural network library Netflix developed (and I feel it stopped existing after like a month, would love if someone has an interesting story to tell about it): https://github.com/Netflix/vectorflow

3 days ago

On Wednesday, 6 August 2025 at 17:54:27 UTC, Marc wrote:

>

the gc is putitng me off as well

gc only runs when you allocate; use the same big arrays c++ would use and youll be fine

3 days ago

On Wednesday, 6 August 2025 at 17:54:27 UTC, Marc wrote:

>

but the gc is putitng me off as well

Then don't use it?

I do lots of statistical work with D and honestly I have found little to gain from avoiding the GC. It'll all depends on what you're doing, of course, but look at std.typecons.RefCounted if you want to avoid D's GC. I use it because I often call into C libraries that allocate memory. Just don't expect it to improve performance. YMMV.

3 days ago

On Wednesday, 6 August 2025 at 17:54:27 UTC, Marc wrote:

>

Hi everyone,

I'm interested in tensors, scientific computing and ML. After trying to write a tensor library for c++, I came to the realisation that I'm starting to hate the language the more code i write. D seems like an obvious choice for my interest, a fast compiled language but the gc is putitng me off as well. I would be however very interested in contributing to mir maybe even writting examples for its use cases. I would like to write a classical machine learning library (decision trees, linear models...) in D. Are there currently any effort in the community towards this goal? I would appreciate any help or suggestions.

there are some things to do in this area
most of the work is stalled now

but if you are interested join discord and we can discuss something there

3 days ago

On Wednesday, 6 August 2025 at 17:54:27 UTC, Marc wrote:

>

Hi everyone,

I'm interested in tensors, scientific computing and ML. After trying to write a tensor library for c++, I came to the realisation that I'm starting to hate the language the more code i write. D seems like an obvious choice for my interest, a fast compiled language but the gc is putitng me off as well. I would be however very interested in contributing to mir maybe even writting examples for its use cases. I would like to write a classical machine learning library (decision trees, linear models...) in D. Are there currently any effort in the community towards this goal? I would appreciate any help or suggestions.

mir ndslices supports ref counted slices as well.
http://mir-algorithm.libmir.org/mir_ndslice_allocation.html

3 days ago

On Wednesday, 6 August 2025 at 18:43:21 UTC, Bradley Chatha wrote:

>

This isn't really my area of interest or expertise, but you might find some historical interest from VectorFlow - a neural network library Netflix developed (and I feel it stopped existing after like a month, would love if someone has an interesting story to tell about it): https://github.com/Netflix/vectorflow

This is a deep learning library so different but it’s nice there’s one written in D.

3 days ago

On Wednesday, 6 August 2025 at 19:15:51 UTC, monkyyy wrote:

>

On Wednesday, 6 August 2025 at 17:54:27 UTC, Marc wrote:

>

the gc is putitng me off as well

gc only runs when you allocate; use the same big arrays c++ would use and youll be fine

Can I allocate and deallocate without triggering the gc? I don’t know how mir uses the gc in the low level but I’m interested in having reference counter pointers, they are essentials for some operations on tensors without copying the data every time.

3 days ago

On Wednesday, 6 August 2025 at 19:37:19 UTC, Lance Bachmeier wrote:

>

On Wednesday, 6 August 2025 at 17:54:27 UTC, Marc wrote:

>

but the gc is putitng me off as well

Then don't use it?

I do lots of statistical work with D and honestly I have found little to gain from avoiding the GC. It'll all depends on what you're doing, of course, but look at std.typecons.RefCounted if you want to avoid D's GC. I use it because I often call into C libraries that allocate memory. Just don't expect it to improve performance. YMMV.

Thanks, this might be exactly what I’m looking for, referenced counting.

3 days ago

On Wednesday, 6 August 2025 at 19:40:17 UTC, Serg Gini wrote:

>

there are some things to do in this area
most of the work is stalled now

but if you are interested join discord and we can discuss something there

Thanks for your reply. Sure, I’m interested and I’m on discord. What channel or server is it? If you don’t mind sharing here so I can join.

« First   ‹ Prev
1 2