Re: NGINX Unit and vibe.d Integration Performance

2024-10-31 Thread Kyle Ingraham via Digitalmars-d-learn
On Thursday, 31 October 2024 at 16:43:09 UTC, Kyle Ingraham wrote: ..I'll see if I can get images here of my profiling... Here are images as promised: - A flame graph - https://blog.kyleingraham.com/wp-content/uploads/2024/10/screenshot-2024-10-30-at-11.47.57e280afpm.png - A call tree - https

Re: NGINX Unit and vibe.d Integration Performance

2024-10-31 Thread Kyle Ingraham via Digitalmars-d-learn
On Thursday, 31 October 2024 at 16:43:09 UTC, Kyle Ingraham wrote: This approach increased requests processed per events emitted/waited from 1:1 to 10:1. This had no impact on event loop overhead however. The entire program still spends ~50% of its runtime in this function: https://github.com/

Re: NGINX Unit and vibe.d Integration Performance

2024-10-31 Thread Kyle Ingraham via Digitalmars-d-learn
On Monday, 28 October 2024 at 20:53:32 UTC, Salih Dincer wrote: On Monday, 28 October 2024 at 19:57:41 UTC, Kyle Ingraham wrote: - Polling too little killed performance and too often wrecked CPU usage. - Using message passing reduced performance quite a bit. - Batching reads was hard because

newbie question

2024-10-31 Thread f via Digitalmars-d-learn
since i am converting from c# to d : 1. how to check template inheritance c# code interface I class A : I { void run(){}} class B : A {} void D\ (T t) : where T:B, new T() { t.run(); } d code //there should be has several check such as hasBase, hasImplements on std.traits void D(T) (int a) if

Re: newbie question

2024-10-31 Thread Sergey via Digitalmars-d-learn
On Thursday, 31 October 2024 at 09:10:32 UTC, f wrote: since i am converting from c# to d : 2. how to make built in array , std.container.slist, container.HashMap (emsi_containers) a range c# code void a(IEnumerable\ a) {} dcode void a(InputRange!string a) {} // notworking : i slice it to

Re: newbie question

2024-10-31 Thread Sergey via Digitalmars-d-learn
On Thursday, 31 October 2024 at 09:10:32 UTC, f wrote: 3. known OAuth / OIDC Api Sdk in D. there is only Jwt stuff when search code.dlang.org. https://code.dlang.org/packages/oauth https://code.dlang.org/packages/vibe-auth

Re: Do not able to install DMD Compiler with curl

2024-10-31 Thread Salih Dincer via Digitalmars-d-learn
On Thursday, 31 October 2024 at 08:18:58 UTC, Jordan Wilson wrote: I've had this before, and `./install.sh update` solved it, except for on Fedora, I couldn't for the life of me figure out how to use the install script to install dmd (ldc and gdc installed just fine). Jordan Thank you sug

Re: Do not able to install DMD Compiler with curl

2024-10-31 Thread Jordan Wilson via Digitalmars-d-learn
On Thursday, 31 October 2024 at 08:00:25 UTC, Salih Dincer wrote: The following there is error "No public key"! ``` md@SDB MSYS ~ $ curl -fsS https://dlang.org/install.sh | bash -s dmd Downloading https://dlang.org/d-keyring.gpg ###

Do not able to install DMD Compiler with curl

2024-10-31 Thread Salih Dincer via Digitalmars-d-learn
The following there is error "No public key"! ``` md@SDB MSYS ~ $ curl -fsS https://dlang.org/install.sh | bash -s dmd Downloading https://dlang.org/d-keyring.gpg 100.0% Downloading https://dlang.org/install.sh #

Re: ImportC question

2024-10-31 Thread Salih Dincer via Digitalmars-d-learn
On Tuesday, 29 October 2024 at 20:26:58 UTC, DLearner wrote: On Tuesday, 29 October 2024 at 18:57:15 UTC, Salih Dincer wrote: DMD Compiler version? SDB@79 ``` C:\Users\SoftDev>dmd DMD64 D Compiler v2.106.0-dirty ``` First of all, be sure to get rid of that old version because a lot has cha