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

2025-09-11 Thread Kapendev via Digitalmars-d-learn
On Tuesday, 9 September 2025 at 21:08:59 UTC, drug007 wrote: On 09.09.2025 01:53, Kapendev wrote: On Monday, 8 September 2025 at 21:25:25 UTC, drug007 wrote: On 08.09.2025 22:55, Neto wrote: On Monday, 8 September 2025 at 16:51:09 UTC, Serg Gini wrote: And not sure if ecosystem was a signifi

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

2025-09-08 Thread Kapendev via Digitalmars-d-learn
On Monday, 8 September 2025 at 21:25:25 UTC, drug007 wrote: On 08.09.2025 22:55, Neto wrote: On Monday, 8 September 2025 at 16:51:09 UTC, Serg Gini wrote: And not sure if ecosystem was a significant weight in the decision. Why isn't D production ready? I've been trying to figure it out fo

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

2025-09-08 Thread Kapendev via Digitalmars-d-learn
On Monday, 8 September 2025 at 16:43:10 UTC, Neto wrote: this is the reasoning https://github.com/microsoft/typescript-go/discussions/411 I wonder if they did consider D language. First comment says why Rust would be a good choice "If not C#, I would have expected Rust, since that's where the

Re: Is D painted into a corner?

2025-09-02 Thread Kapendev via Digitalmars-d-learn
On Friday, 29 August 2025 at 18:44:00 UTC, Lance Bachmeier wrote: Classic D code includes types like Matrix!double when you could just use DoubleMatrix. They're like macros in Lisp. Powerful in principle but routinely a PITA when you actually use them. Sane way to do things: ```d struct Mat

Re: Alternatives to OOP in D

2025-09-01 Thread Kapendev 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: Is D painted into a corner?

2025-08-28 Thread Kapendev via Digitalmars-d-learn
On Thursday, 28 August 2025 at 18:47:19 UTC, Brother Bill wrote: It seems like 'templates' are the 'Achilles heel' of D. Without starting a flame war, has D gotten to the point where ordinary mortals have difficulty coding in D with 'templates' such as 'cycle' requiring rewrites into 'myCycle'

Re: How to make a slow compile

2025-08-20 Thread Kapendev via Digitalmars-d-learn
On Wednesday, 20 August 2025 at 16:57:18 UTC, Brother Bill wrote: On Wednesday, 20 August 2025 at 15:33:45 UTC, monkyyy wrote: once again dconf contains people who talk about compile speed as if it can be slow Compiling Hello world in D is a little bit slower that Go language. C with tcc is

Re: How to make a slow compile

2025-08-20 Thread Kapendev via Digitalmars-d-learn
On Wednesday, 20 August 2025 at 15:33:45 UTC, monkyyy wrote: once again dconf contains people who talk about compile speed as if it can be slow What are they doing? Even my worse compile time abstraction was O(n^2) or maybe some awful string concatenation of an entire file; still effectively

Re: Noob ImportC questions

2025-02-27 Thread Kapendev via Digitalmars-d-learn
On Thursday, 27 February 2025 at 12:48:19 UTC, Kapendev wrote: On Thursday, 27 February 2025 at 08:16:33 UTC, John C. wrote: On Thursday, 27 February 2025 at 08:10:04 UTC, John C. wrote: But this change was not helpful, same error occured. Does this mean that ImportC cannot parse object literal

Re: Noob ImportC questions

2025-02-27 Thread Kapendev via Digitalmars-d-learn
On Thursday, 27 February 2025 at 08:16:33 UTC, John C. wrote: On Thursday, 27 February 2025 at 08:10:04 UTC, John C. wrote: But this change was not helpful, same error occured. Does this mean that ImportC cannot parse object literals? Seems like it has a hard time understanding structs. I trie

Re: Noob ImportC questions

2025-02-26 Thread Kapendev via Digitalmars-d-learn
On Wednesday, 26 February 2025 at 17:00:48 UTC, John C. wrote: Error (with both commands above, same result): ``` main.d(8): Error: undefined identifier `RAYWHITE` main.d(9): Error: undefined identifier `LIGHTGRAY` ``` Both RAYWHITE and LIGHTGRAY are defines and ImportC was not able to parse

Re: assert

2024-09-11 Thread Kapendev via Digitalmars-d-learn
On Wednesday, 11 September 2024 at 10:08:29 UTC, ryuukk_ wrote: On Wednesday, 11 September 2024 at 09:14:39 UTC, Nick Treleaven wrote: On Wednesday, 11 September 2024 at 08:08:45 UTC, ryuukk_ wrote: It is a bug, don't claim it is not, the compiler gives the wrong information, wich lead to a con