3 days ago

On Wednesday, 6 August 2025 at 20:08:04 UTC, Marc wrote:

>

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.

You can straight up disable it, by compiler flag or at runtime

but more realistically just put stuff on the stack or global scope 99% of the time, or if you must do something dynamic make sure its allot all at once.

Dont know anything about mir, but I see no reason to think they would be unable to be used reasonably; it isnt some functional languge with gc's enable linked lists everywhere, you dont have to linked list of bools and have your 1 bit be stored by 180ish bits and be a cache miss every iteration like a slow language. You can put arrays on the stack, you can call malloc, you can cast void*'s.

Its a O(c) overhead to have a gc you dont misuse, it will make the exe bigger then it should be from the run time.

3 days ago

On Wednesday, 6 August 2025 at 20:15:47 UTC, Marc wrote:

>

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.

Sure
https://discord.gg/bMZk9Q4

6 hours 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.

Perhaps the package bindbc-onnxruntime 1.2.0 will help you. Its official github repository is https://github.com/lempiji/bindbc-onnxruntime

1 2
Next ›   Last »