Re: KQueue and Fibers

2021-04-10 Thread rashir via Digitalmars-d-learn
On Friday, 9 April 2021 at 18:37:43 UTC, Jacob Carlborg wrote: On 2021-04-09 11:00, rashir wrote: Goodmorning everyone, I'm trying to understand both Kqueue and Fiber's operation on Mac. Why don't I get the correct data as long as I read from the socket? It seems to be reading too early, but K

dub commands do not run correctly.

2021-04-10 Thread Alain De Vos via Digitalmars-d-learn
In order to run commands correctly I have to put soft links : I.e. dfmt -> /home/x/.dub/packages/dfmt-0.13.4/dfmt/bin/dfmt or, dscanner -> /home/x/.dub/packages/dscanner-0.11.0/dscanner/bin/dscanner Then ./dfmt or ./dscanner run fine. I use freebsd as O.S. But "dub run dscanner" or "dub run dfmt

Re: dub commands do not run correctly.

2021-04-10 Thread rikki cattermole via Digitalmars-d-learn
On 10/04/2021 11:44 PM, Alain De Vos wrote: In order to run commands correctly I have to put soft links : I.e. dfmt -> /home/x/.dub/packages/dfmt-0.13.4/dfmt/bin/dfmt or, dscanner -> /home/x/.dub/packages/dscanner-0.11.0/dscanner/bin/dscanner Then ./dfmt or ./dscanner run fine. I use freebsd as

Re: dub commands do not run correctly.

2021-04-10 Thread Alain De Vos via Digitalmars-d-learn
On Saturday, 10 April 2021 at 11:46:27 UTC, rikki cattermole wrote: On 10/04/2021 11:44 PM, Alain De Vos wrote: In order to run commands correctly I have to put soft links : I.e. dfmt -> /home/x/.dub/packages/dfmt-0.13.4/dfmt/bin/dfmt or, dscanner -> /home/x/.dub/packages/dscanner-0.11.0/dscan

Re: dub commands do not run correctly.

2021-04-10 Thread rikki cattermole via Digitalmars-d-learn
dub run dfmt -- ./app.d You passed "./app.d" to dub, not dfmt.

Re: dub commands do not run correctly.

2021-04-10 Thread Alain De Vos via Digitalmars-d-learn
On Saturday, 10 April 2021 at 11:54:03 UTC, rikki cattermole wrote: dub run dfmt -- ./app.d You passed "./app.d" to dub, not dfmt. Right that worked.

Re: dub commands do not run correctly.

2021-04-10 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 10 April 2021 at 11:44:12 UTC, Alain De Vos wrote: In order to run commands correctly I have to put soft links : I.e. dfmt -> /home/x/.dub/packages/dfmt-0.13.4/dfmt/bin/dfmt or, dscanner -> /home/x/.dub/packages/dscanner-0.11.0/dscanner/bin/dscanner Then ./dfmt or ./dscanner run fi

Re: dub commands do not run correctly.

2021-04-10 Thread Alain De Vos via Digitalmars-d-learn
dub fetch lint Getting a release version failed: (1): Error: Got JSON of type null_, expected object. Retry with ~master... (1): Error: Got JSON of type null_, expected object.

Re: dub commands do not run correctly.

2021-04-10 Thread z via Digitalmars-d-learn
On Saturday, 10 April 2021 at 13:15:19 UTC, Alain De Vos wrote: dub fetch lint Getting a release version failed: (1): Error: Got JSON of type null_, expected object. Retry with ~master... (1): Error: Got JSON of type null_, expected object. He meant `dub lint`, with the working directory in t

Re: dub commands do not run correctly.

2021-04-10 Thread Alain De Vos via Digitalmars-d-learn
dub lint returns, dub lint Unknown command: lint USAGE: dub [--version] [] [] [-- []] Manages the DUB project in the current directory. If the command is omitted, DUB will default to "run". When running an application, "--" can be used to separate DUB options from options passed to the ap

Re: DMD64 2.095.1 unresolved _D4core8internal7switch___T14__switch_error in optimized build only

2021-04-10 Thread x3g6h7k8 via Digitalmars-d-learn
On Friday, 9 April 2021 at 14:59:16 UTC, x3g6h7k8 wrote: Thereafter I removed the __"inline"__ from the regular dub release buildOptions. With this change an executable was created. Seems I missed that I also removed the `-release` switch, which was the important one. It works with or w/o `in

Re: dub commands do not run correctly.

2021-04-10 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 10 April 2021 at 18:08:55 UTC, Alain De Vos wrote: dub lint returns, [...] Unknown command: lint USAGE: dub [--version] [] [] [-- []] Manages the DUB project in the current directory. If the command is omitted, DUB will default to "run". When running an application, "--" can

Fastest Way to Append Multiple Elements to an Array

2021-04-10 Thread Per Nordlöw via Digitalmars-d-learn
https://forum.dlang.org/post/rkxnfxsjvkffxufok...@forum.dlang.org On Thursday, 1 January 2015 at 19:18:34 UTC, Nordlöw wrote: Do we really need Append and Prepend (along with append and prepend) here? Doesn't [cC]hain already fulfill the needs of a lazy range in this case inplace of Append? I