Re: any chance to get it working on windows xp?

2020-05-17 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 17 May 2020 at 22:30:22 UTC, a beginner wrote: I have searched online for some info, indeed I found something, but not being familiar with the tools it hasn't been terribly useful. Only it confirms that windows support is somewhat disappointing in general, xp or not. I've been

undefined reference to 'deflateEnd'

2020-05-17 Thread Andre Pany via Digitalmars-d-learn
Hi, I have some issues, the get this program working on ubuntu: ``` Dockerfile FROM ubuntu:focal RUN apt-get update && apt-get upgrade -y \ && apt-get install --no-install-recommends -y build-essential ldc dub zlib1g-dev COPY app.d /tmp/ RUN dub build --single /tmp/app.d -v ``` ```

Re: any chance to get it working on windows xp?

2020-05-17 Thread rikki cattermole via Digitalmars-d-learn
It isn't just about the OS. Dmd and ldc's codegen haven't stood still for 10 years. They both will be emitting instructions your cpu cannot handle. Hence crashes.

Re: any chance to get it working on windows xp?

2020-05-17 Thread Seb via Digitalmars-d-learn
On Sunday, 17 May 2020 at 22:30:22 UTC, a beginner wrote: [...] You could try grabbing a newer dub release binary from here: https://github.com/dlang/dub/releases There are two versions (installer + zip archive). It looks like you're better off with the zip archive. Alternatively, if you

any chance to get it working on windows xp?

2020-05-17 Thread a beginner via Digitalmars-d-learn
It might seem unbelievable, but windows xp is still widely used (did you know it runs most bank cash machines by the way?). As it happens, in my case I've been away from computing a long while, and my old box with xp-sp2 is all I have available at the moment. I had a very old dmd version which

Re: D, Unit_Threaded, and GtkD

2020-05-17 Thread Luis via Digitalmars-d-learn
On Sunday, 17 May 2020 at 10:19:38 UTC, Russel Winder wrote: I am experimenting with using manual control of the Glib event loop using the pending and iteration methods on the default MainContext within each unit- threaded test. The alternative of running a GTK application and then putting the

Re: How to get rid of "nothrow" ?

2020-05-17 Thread drug via Digitalmars-d-learn
17.05.2020 17:35, Vinod K Chandran пишет: It worked. Thanks :) I have one more question. Which is better, to include all the switch cases inside a single try catch or write separate try catch for each switch cases ? all the switch cases inside a single try catch is better

Re: Droutines [was D, Unit_Threaded, and GtkD]

2020-05-17 Thread Russel Winder via Digitalmars-d-learn
On Sun, 2020-05-17 at 11:19 +0100, Russel Winder wrote: […] > > Of course now there is jin.go which is a synchronous multi-tasking approach > with channels rather than an asynchronous approach available in D. Had I checked I would have seen this was a four years ago package that has been left

Re: How to get rid of "nothrow" ?

2020-05-17 Thread Vinod K Chandran via Digitalmars-d-learn
On Sunday, 17 May 2020 at 14:21:41 UTC, Vinod K Chandran wrote: On Sunday, 17 May 2020 at 09:50:00 UTC, Olivier Pisano wrote: On Sunday, 17 May 2020 at 09:27:40 UTC, Vinod K Chandran wrote: Hi all, I am trying to create a win32 based gui in dlang. So far so good. I can create and display my

Re: How to get rid of "nothrow" ?

2020-05-17 Thread Vinod K Chandran via Digitalmars-d-learn
On Sunday, 17 May 2020 at 09:50:00 UTC, Olivier Pisano wrote: On Sunday, 17 May 2020 at 09:27:40 UTC, Vinod K Chandran wrote: Hi all, I am trying to create a win32 based gui in dlang. So far so good. I can create and display my window on screen. But for handling messages, i planned to write

Re: Objective C protocols

2020-05-17 Thread Jacob Carlborg via Digitalmars-d-learn
On 2020-05-17 11:32, John Colvin wrote: On Saturday, 16 May 2020 at 19:14:51 UTC, John Colvin wrote: What's the best way to implement an Objective C protocol in D? I see mention here https://dlang.org/changelog/2.085.0.html#4_deprecated_objc_interfaces but it's not clear where things are

Re: Detecting performance pitfall in array access

2020-05-17 Thread kinke via Digitalmars-d-learn
On Sunday, 17 May 2020 at 11:39:30 UTC, kinke wrote: DMD v2.091: * dmd -m64 -O -release -boundscheck=off -run ..\speed.d aa bbc: ~11 μs I forgot `-inline` for DMD; that reduces the speed, yielding ~16 μs.

Re: Detecting performance pitfall in array access

2020-05-17 Thread kinke via Digitalmars-d-learn
On Sunday, 17 May 2020 at 03:30:57 UTC, Adnan wrote: In my machine, if you feed "aa" and "bbc" to the function, ldc generated code takes around 400 microseconds. I don't have an access to gdc in my machine. https://imgshare.io/image/NN8Xmp Full code: D : https://run.dlang.io/is/vLj7BC

Re: Objective C protocols

2020-05-17 Thread Guillaume Piolat via Digitalmars-d-learn
On Saturday, 16 May 2020 at 19:14:51 UTC, John Colvin wrote: What's the best way to implement an Objective C protocol in D? I see mention here https://dlang.org/changelog/2.085.0.html#4_deprecated_objc_interfaces but it's not clear where things are these days. I did it throught the Obj-C

Re: D, Unit_Threaded, and GtkD

2020-05-17 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2020-05-16 at 11:37 +, Cogitri via Digitalmars-d-learn wrote: > On Saturday, 16 May 2020 at 10:51:07 UTC, Russel Winder wrote: > > Has anyone got any D code using the Glib event loop, usually > > GtkD code I'd guess, that is well tested using Unit_Threaded? > > I always had a hard

Re: How to get rid of "nothrow" ?

2020-05-17 Thread Olivier Pisano via Digitalmars-d-learn
On Sunday, 17 May 2020 at 09:27:40 UTC, Vinod K Chandran wrote: Hi all, I am trying to create a win32 based gui in dlang. So far so good. I can create and display my window on screen. But for handling messages, i planned to write something like message crackers in c++. But since, my WndProc

Re: Detecting performance pitfall in array access

2020-05-17 Thread Johan via Digitalmars-d-learn
On Sunday, 17 May 2020 at 03:30:57 UTC, Adnan wrote: Hello, I am trying to examine what causes my similar D solution to lag behind performance. In the link, they don't have ldc or gdc but according to my machine, the dmd generated code isn't really far behind ldc generated code.

Re: Objective C protocols

2020-05-17 Thread John Colvin via Digitalmars-d-learn
On Saturday, 16 May 2020 at 19:14:51 UTC, John Colvin wrote: What's the best way to implement an Objective C protocol in D? I see mention here https://dlang.org/changelog/2.085.0.html#4_deprecated_objc_interfaces but it's not clear where things are these days. Based on some experimentation,

How to get rid of "nothrow" ?

2020-05-17 Thread Vinod K Chandran via Digitalmars-d-learn
Hi all, I am trying to create a win32 based gui in dlang. So far so good. I can create and display my window on screen. But for handling messages, i planned to write something like message crackers in c++. But since, my WndProc function is a "nothrow" function, i cannot use any function

link error on Windows

2020-05-17 Thread Joel via Digitalmars-d-learn
I think is works with older versions of DMD. D:\jpro\dpro2\SpellIt>dub Performing "debug" build using D:\jpro\dmd2\windows\bin\dmd.exe for x86_64. bindbc-loader 0.3.0: target for configuration "noBC" is up to date. bindbc-sdl 0.18.0: target for configuration "dynamic" is up to date. spellit