Re: implicit-context v0.0.1

2023-09-29 Thread Imperatorn via Digitalmars-d-announce
On Thursday, 28 September 2023 at 23:28:02 UTC, Guillaume Piolat wrote: Hi, Ever had a bit of feature-envy about Odin's "context" feature [1]? It is something used to pass "contextual" parameters, like a logger, an allocator, to callees. It is akin to Scala's "implicit parameters", or Jai

Re: implicit-context v0.0.1

2023-09-29 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 29 September 2023 at 08:33:56 UTC, Imperatorn wrote: Interesting, what are the benefits of using this instead of global variables? Thinking about this, it's more vs TLS variable. __gshared would require synchronization. Changing the theAllocator (a TLS variable) in

Re: implicit-context v0.0.1

2023-09-29 Thread Imperatorn via Digitalmars-d-announce
On Friday, 29 September 2023 at 11:00:05 UTC, Guillaume Piolat wrote: On Friday, 29 September 2023 at 08:33:56 UTC, Imperatorn wrote: Interesting, what are the benefits of using this instead of global variables? Thinking about this, it's more vs TLS variable. __gshared would require

Re: implicit-context v0.0.1

2023-09-29 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 29 September 2023 at 15:00:33 UTC, Imperatorn wrote: I think for this to be truly valuable, it would require being part of the language. Only if proven on DUB. I admit I haven't really thought about implicit parameters before your post, so I might be missing something. Think

Re: implicit-context v0.0.1

2023-09-29 Thread drug007 via Digitalmars-d-announce
On 29.09.2023 18:30, Guillaume Piolat wrote: On Friday, 29 September 2023 at 15:00:33 UTC, Imperatorn wrote: I think for this to be truly valuable, it would require being part of the language. Only if proven on DUB. I admit I haven't really thought about implicit parameters before your

Re: implicit-context v0.0.1

2023-09-29 Thread Imperatorn via Digitalmars-d-announce
On Friday, 29 September 2023 at 15:30:30 UTC, Guillaume Piolat wrote: On Friday, 29 September 2023 at 15:00:33 UTC, Imperatorn wrote: [...] Only if proven on DUB. [...] Think of it like envvars for threads. When you launch a process, the launcher knows to copy the environment variables.

Re: LDC 1.35.0-beta1

2023-09-29 Thread mw via Digitalmars-d-announce
On Thursday, 28 September 2023 at 11:13:20 UTC, Hipreme wrote: Hello, don't know when that happened but I'm happy to say that LDC 1.35.0 beta is building in half the time needed when compared against the version I was using (1.32.0). Same experience with the slow 1.32.0, there must be a