Re: ImportC question

2024-10-28 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
https://github.com/dlang/dmd/blob/dbba866c71db5e1222a1b631b3e910f1a0811732/compiler/src/dmd/link.d#L1332 cl.exe comes from Visual Studio (MSVC). If you haven't got it installed, that'll be why. Otherwise its related to dmd not being able to find it.

Re: NGINX Unit and vibe.d Integration Performance

2024-10-28 Thread Salih Dincer via Digitalmars-d-learn
On Monday, 28 October 2024 at 20:53:32 UTC, Salih Dincer wrote: Semaphore? Please see: https://dlang.org/phobos/core_sync_semaphore.html SDB@79

ImportC question

2024-10-28 Thread DLearner via Digitalmars-d-learn
Just trying ImportC under Windows 10: ``` #include int main() { printf("Hello world.\n"); return 0; } ``` Produces ``` dmd hello.c failed launching cl.exe /P /Zc:preprocessor /PD /nologo hello.c /FIC:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h /Fihello.i Error: C preproces

Re: NGINX Unit and vibe.d Integration Performance

2024-10-28 Thread Salih Dincer via Digitalmars-d-learn
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 it was tricky balancing performance for single requests with per

Re: NGINX Unit and vibe.d Integration Performance

2024-10-28 Thread Kyle Ingraham via Digitalmars-d-learn
On Monday, 28 October 2024 at 18:37:18 UTC, Salih Dincer wrote: Apparently, vibe.d's event loop is not fully compatible with NGINX Unit's loop, causing performance loss. I wonder if it would be wise to use something like an IntrusiveQueue or task pool to make it compatible? For example, somethi

Re: NGINX Unit and vibe.d Integration Performance

2024-10-28 Thread Salih Dincer via Digitalmars-d-learn
On Monday, 28 October 2024 at 01:06:58 UTC, Kyle Ingraham wrote: ... The second though only achieves ~20k requests per second. In that demo I try to make vibe.d's concurrency system available during request handling. NGINX Unit's event loop is run in its own thread. When requests arrive, Uni

Re: NGINX Unit and vibe.d Integration Performance

2024-10-28 Thread Kyle Ingraham via Digitalmars-d-learn
On Monday, 28 October 2024 at 05:56:32 UTC, ryuukk_ wrote: ImportC is great It really is. Most of my time setting it up was on getting include and linking flags working. Which is exactly what you’d run into using C from C.