Re: python like datastructures as databases code examples

2025-07-21 Thread Serg Gini via Digitalmars-d-learn
On Monday, 21 July 2025 at 14:15:07 UTC, Monkyyy wrote: On Monday, 21 July 2025 at 08:31:42 UTC, Serg Gini wrote: That filter is not aware of the data structure nor is that array maintaining a sort I'm not sure what you are trying to do. But array doesn't look right.. If you want a balanced (

Re: How to use D on M2 macOS?

2025-07-21 Thread Mike Parker via Digitalmars-d-learn
On Monday, 21 July 2025 at 14:25:57 UTC, Albert wrote: Thanks, how do I get the beta/nightly version? Only one I see is 0.23.1 from 2021. Thanks It's an option in the code-d extension settings.

Re: How to use D on M2 macOS?

2025-07-21 Thread Luna via Digitalmars-d-learn
On Monday, 21 July 2025 at 14:32:49 UTC, Albert wrote: On Monday, 21 July 2025 at 14:16:29 UTC, Luna wrote: [...] Thank you. This seems to have worked better! Though I am still getting errors: ``` Could not initialize DCD for ``` and in the output get a lot of: ``` 2025-07-21T15:30:59.455

Re: How to use D on M2 macOS?

2025-07-21 Thread Sergey via Digitalmars-d-learn
On Monday, 21 July 2025 at 17:21:58 UTC, Albert wrote: On Monday, 21 July 2025 at 17:08:17 UTC, Albert wrote: How do I build & run the executable though? Anyway with some perseverance I managed to build & run hello world app. Thank you guys for your help. Though I do think D could do so muc

Re: How to use D on M2 macOS?

2025-07-21 Thread Albert via Digitalmars-d-learn
On Monday, 21 July 2025 at 16:42:31 UTC, Albert wrote: Sorry to be blunt, but not great first impression so far. I'm still trying to make this work, but stuck with no clue... I think setting sodlib path in settings helped somewhat. At least errors are gone and seems to have detected the build

Re: How to use D on M2 macOS?

2025-07-21 Thread Albert via Digitalmars-d-learn
On Monday, 21 July 2025 at 17:08:17 UTC, Albert wrote: How do I build & run the executable though? Anyway with some perseverance I managed to build & run hello world app. Thank you guys for your help. Though I do think D could do so much better with onboarding first time users...

Re: How to use D on M2 macOS?

2025-07-21 Thread Albert via Digitalmars-d-learn
On Monday, 21 July 2025 at 16:24:31 UTC, Luna wrote: The script works by adding a special startup script to your shell session; as such you may need to restart your mac for it to fully work. I've tried everything I can think of, now getting the following errors: ``` Could not initialize dub

Re: How to use D on M2 macOS?

2025-07-21 Thread Luna via Digitalmars-d-learn
On Monday, 21 July 2025 at 14:10:44 UTC, Serg Gini wrote: On Monday, 21 July 2025 at 13:29:23 UTC, Albert wrote: [...] I agree with Luna that installing from official GitHub Releases are the easiest way. There is also this project: https://code.dlang.org/packages/ldcup regarding serve-d -

Re: python like datastructures as databases code examples

2025-07-21 Thread Monkyyy via Digitalmars-d-learn
On Monday, 21 July 2025 at 08:31:42 UTC, Serg Gini wrote: On Friday, 18 July 2025 at 18:35:40 UTC, monkyyy wrote: `shapes.filter(isnt:shapeenum.isstatic)` https://forum.dlang.org/thread/apbcqxiifbsqdlrsl...@forum.dlang.org I know its possible to make complex, datastructure aware filters, but I

Re: How to use D on M2 macOS?

2025-07-21 Thread Serg Gini via Digitalmars-d-learn
On Monday, 21 July 2025 at 13:29:23 UTC, Albert wrote: Hi all, I am completely new to D, wished to try it out and write a small app in it. However, for the last couple hours I am ready to pull my hair out as I have no idea how to compile even a simplest hello world app. I installed ldc and

Re: How to use D on M2 macOS?

2025-07-21 Thread Albert via Digitalmars-d-learn
On Monday, 21 July 2025 at 14:10:44 UTC, Serg Gini wrote: Also don't forget to switch the version of the "code-d" extension to "beta/nightly". Stable is very old and not updating properly. Thanks, how do I get the beta/nightly version? Only one I see is 0.23.1 from 2021. Thanks

Re: How to use D on M2 macOS?

2025-07-21 Thread Albert via Digitalmars-d-learn
On Monday, 21 July 2025 at 14:16:29 UTC, Luna wrote: The script I posted automates some of these steps by the way; so you'll just have to set the paths correctly in the plugin (/opt/SDKs/serve-d/bin/serve-d, /opt/SDKs/dcd/bin/dcd-server, /opt/SDKs/dcd/bin/dcd-client); then set the serve-d versi

Re: How to use D on M2 macOS?

2025-07-21 Thread Luna via Digitalmars-d-learn
On Monday, 21 July 2025 at 13:52:52 UTC, Luna wrote: On Monday, 21 July 2025 at 13:29:23 UTC, Albert wrote: Hi all, I am completely new to D, wished to try it out and write a small app in it. However, for the last couple hours I am ready to pull my hair out as I have no idea how to compile ev

Re: python like datastructures as databases code examples

2025-07-21 Thread Serg Gini via Digitalmars-d-learn
On Friday, 18 July 2025 at 18:35:40 UTC, monkyyy wrote: `shapes.filter(isnt:shapeenum.isstatic)` https://forum.dlang.org/thread/apbcqxiifbsqdlrsl...@forum.dlang.org I know its possible to make complex, datastructure aware filters, but I never done it what patterns do people use? lets say you

Re: How to use D on M2 macOS?

2025-07-21 Thread Luna via Digitalmars-d-learn
On Monday, 21 July 2025 at 13:29:23 UTC, Albert wrote: Hi all, I am completely new to D, wished to try it out and write a small app in it. However, for the last couple hours I am ready to pull my hair out as I have no idea how to compile even a simplest hello world app. I installed ldc and

How to use D on M2 macOS?

2025-07-21 Thread Albert via Digitalmars-d-learn
Hi all, I am completely new to D, wished to try it out and write a small app in it. However, for the last couple hours I am ready to pull my hair out as I have no idea how to compile even a simplest hello world app. I installed ldc and dub (nowhere on the download page did it even mention t

Re: python like datastructures as databases code examples

2025-07-21 Thread monkyyy via Digitalmars-d-learn
On Monday, 21 July 2025 at 14:56:41 UTC, Serg Gini wrote: But array doesn't look right.. If you want a balanced ("always sorted") structure with "filter" (ability to make some requests for the data) - this looks more like some Tree structure Your thinking in classical theory and textbook read