Re: Microsoft chose Go instead of C# or Rust to rewrite TypeScript

2025-09-11 Thread Serg Gini via Digitalmars-d-learn
On Wednesday, 10 September 2025 at 03:46:37 UTC, felixfxu wrote: On Monday, 8 September 2025 at 20:10:52 UTC, Sergey wrote: being focused on required important tasks = complicated I don't quite understand the item above. What's dlang's `"required important tasks"` now? This one actually ove

Re: Is D painted into a corner?

2025-09-03 Thread Serg Gini via Digitalmars-d-learn
On Monday, 1 September 2025 at 12:20:02 UTC, Kapendev wrote: Insane way to do things: ```d struct Matrix(R, C, T, bool canFly, bool isCute) if ((isNumberType!T || isMathType!T) && isGoodType!T && isMagicType!T) { static if (canFly) { this(Blah blah) { // Blah blah...

Re: Alternatives to OOP in D

2025-09-01 Thread Serg Gini via Digitalmars-d-learn
On Monday, 1 September 2025 at 13:58:23 UTC, Brother Bill wrote: I have heard that there are better or at least alternative ways to have encapsulation, polymorphism and inheritance outside of OOP. With OOP in D, we have full support for Single Inheritance, including for Design by Contract (ex

Re: Mir blas keeps giving an error

2025-08-12 Thread Serg Gini via Digitalmars-d-learn
On Tuesday, 12 August 2025 at 09:44:07 UTC, Marc wrote: I have updated the examples by adding a subconfiguration of mi-blas. Now it works. Nice. I've checked your repos - you probably also could be interested in projects: - Mojo lang, where tensors are integrated into the language https://doc

Re: Mir blas keeps giving an error

2025-08-12 Thread Serg Gini via Digitalmars-d-learn
On Tuesday, 12 August 2025 at 03:24:33 UTC, Marc wrote: Using mir-blas is fundamental for implementing linear models in D. However it keeps giving an error, other mir libraries work fine. I get the following error ```shell /usr/bin/ld: -f may not be used without -shared clang: error: linker c

Re: How to plot a simple scatter plot using ggplotd

2025-08-12 Thread Serg Gini via Digitalmars-d-learn
On Tuesday, 12 August 2025 at 02:23:49 UTC, Marc wrote: Hello everyone, I am trying to use ggplotd to visualize a data set before and after fitting a linear model. how ever i'm struggling to get it to work with a simple example. I tried the following and i get errors for boths: ```d import m

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