Re: How to use D on M2 macOS?

2025-07-23 Thread Serg Gini via Digitalmars-d-learn
On Wednesday, 23 July 2025 at 14:12:30 UTC, Brian Callahan wrote: I know you got things going with LDC, but I use GDC for all my D needs on macOS. I have a tarball that's a simple extract, add When I tried it last time - it was magnitude slower than LDC solution

Re: python like datastructures as databases code examples

2025-07-22 Thread Serg Gini via Digitalmars-d-learn
On Monday, 21 July 2025 at 16:13:44 UTC, monkyyy wrote: 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 struct

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 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: 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: result of FFT

2025-07-08 Thread Serg Gini via Digitalmars-d-learn
On Tuesday, 8 July 2025 at 19:59:39 UTC, Serg Gini wrote: On Tuesday, 8 July 2025 at 18:11:27 UTC, Matthew wrote: From my perspective - solve it in NumPy will be safer approach, but it should be doable in D as well. Or even better - create D library for this :) It seems (after fast googling) t

Re: result of FFT

2025-07-08 Thread Serg Gini via Digitalmars-d-learn
On Tuesday, 8 July 2025 at 18:11:27 UTC, Matthew wrote: Hi, What do the 4096 resulting complex numbers represent? How should I use the result to check whether the 1209Hz, 1336Hz, 1477Hz, or 1633Hz tones are present in that part of the sound? Thanks, Matthew The result of FFT should be the s

Re: Hola a todos, esta no es una pregunta, sino que estoy publicando los descubrimientos en Dlang en mi github

2024-10-17 Thread Serg Gini via Digitalmars-d-learn
On Wednesday, 16 October 2024 at 23:54:45 UTC, Danico wrote: Hola gente les comparto aqui los descubrimientos en Dlang que Hola amigo Porfavor And this is all I know in Spanish :) But I’ve translated in your GitHub profile that you are curious in AI + D.. My suggestion is to not go this dir

Re: Hello dears, where I can deploy my vibe-d project? Someone know any hosting?

2024-10-03 Thread Serg Gini via Digitalmars-d-learn
On Thursday, 3 October 2024 at 08:51:12 UTC, Danic wrote: I want to know where publish mi D web I think any hosting that supports binary deployment

Re: Using D libraries with SDL. Error: "Cannot find module protobuf'

2024-08-25 Thread Serg Gini via Digitalmars-d-learn
On Saturday, 24 August 2024 at 00:24:12 UTC, Nicol Farran Terra wrote: wanted to use protobuf for data serialization between the two. Maybe consider to use msgpack instead of protobuf This version of protobuf is broken for modern versions of D compilers

Re: Problem with clear on shared associative array?

2024-05-26 Thread Serg Gini via Digitalmars-d-learn
On Sunday, 26 May 2024 at 20:15:54 UTC, Andy Valencia wrote: For others wrestling with this issue, I found out how to cast to unshared at this article: You can check also this solution https://github.com/DmitryOlshansky/sharded-map

Re: Why is this code slow?

2024-03-28 Thread Serg Gini via Digitalmars-d-learn
On Thursday, 28 March 2024 at 23:15:26 UTC, Salih Dincer wrote: There is no such thing as parallel programming in D anyway. At least it has modules, but I didn't see it being works. Whenever I use toys built in foreach() it always ends in disappointment I think it just works :) Which issues di