Re: Dub project with .lib/.dlls for static binding

2017-09-13 Thread jmh530 via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 22:50:54 UTC, Seb wrote: No you are not, it's just currently a bit painful to do manually due to e.g. missing support for git submodules. However, some projects already do this: Windows: https://github.com/ariovistus/pyd/blob/master/dub.json I was not awar

Re: Inout table

2017-09-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/13/17 3:04 PM, nkm1 wrote: Thank you. Now it is clear to me. The source of my confusion was that, say, given a function: inout(int*) foo(inout(int*) p) as per table, combining (mutable) argument int* m with parameter inout(int*) p would produce parameter type const(int*). But now I see t

Re: Is there any threadsafe queue?

2017-09-13 Thread Seb via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 07:51:19 UTC, John Burton wrote: Is there any threadsafe queue in the standard library? I've not been able to find anything but thought I'd check before making my own. I want to be able to assemble messages (Which are just streams of bytes) in one thread int

Re: Dub project with .lib/.dlls for static binding

2017-09-13 Thread Seb via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 19:55:03 UTC, jmh530 wrote: I'm not sure this makes much sense, but it's something that's been rolling around in my head the past 2-3 days. One of the great things about Python's Anaconda is that you just download one file, install and it just works. In D, du

Re: failed loading freetype 2.6 via derelict-ft

2017-09-13 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 20:16:23 UTC, Igor wrote: Make sure dll is also 32bit if you are building 32bit app and your Visual Studio should have dumpbin utility which you can use to make sure the required symbols are properly exported: dumpbin /EXPORTS your.dll In that case, he'd ha

Re: failed loading freetype 2.6 via derelict-ft

2017-09-13 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 19:01:52 UTC, Spacen wrote: Hello, I am trying to resurect an old project, but can't get the freetype library loaded. I can't figgure out what to do it's been a while. I have just built the freetype 2.6 library with visual studio 2015. Any tips would be appr

Re: failed loading freetype 2.6 via derelict-ft

2017-09-13 Thread Igor via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 19:01:52 UTC, Spacen wrote: Hello, I am trying to resurect an old project, but can't get the freetype library loaded. I can't figgure out what to do it's been a while. I have just built the freetype 2.6 library with visual studio 2015. Any tips would be appr

Dub project with .lib/.dlls for static binding

2017-09-13 Thread jmh530 via Digitalmars-d-learn
I'm not sure this makes much sense, but it's something that's been rolling around in my head the past 2-3 days. One of the great things about Python's Anaconda is that you just download one file, install and it just works. In D, dub offers comparable functionality as conda, which is very helpf

Re: Inout table

2017-09-13 Thread nkm1 via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 17:39:29 UTC, Steven Schveighoffer wrote: Correct. So given a function: inout(int*) foo(inout(int*)p1, inout(int*)p2) The table shows what inout is resolved as when calling the function. If you consider the column the mutability of p1, and the row the muta

failed loading freetype 2.6 via derelict-ft

2017-09-13 Thread Spacen via Digitalmars-d-learn
Hello, I am trying to resurect an old project, but can't get the freetype library loaded. I can't figgure out what to do it's been a while. I have just built the freetype 2.6 library with visual studio 2015. Any tips would be appreciated. dub build Performing "debug" build using dmd for x8

Re: Inout table

2017-09-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/8/17 10:00 PM, nkm1 wrote: There is this little table in https://dlang.org/spec/function.html#inout-functions: Common qualifier of the two type qualifiers    mutable const  immutable inout inout const mutable (= m)  m   c  c c c const (= c)    c

Re: DerelictGL3 slow compilation speed with contexts

2017-09-13 Thread Igor via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 13:25:01 UTC, Mike Parker wrote: On Wednesday, 13 September 2017 at 10:28:26 UTC, Igor wrote: Well since minimal example is a window app that opens a window, sets everything up and calls opengl stuff I will just push it to my github project this evening and y

Re: Assertion Error

2017-09-13 Thread Moritz Maxeiner via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 15:12:57 UTC, Vino.B wrote: On Wednesday, 13 September 2017 at 11:03:38 UTC, Moritz Maxeiner wrote: On Wednesday, 13 September 2017 at 07:39:46 UTC, Vino.B wrote: Hi Max, [...] Program Code: [...] foreach (string Fs; parallel(SizeDirlst[0 .. $], 1)) {

Re: Assertion Error

2017-09-13 Thread Vino.B via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 11:03:38 UTC, Moritz Maxeiner wrote: On Wednesday, 13 September 2017 at 07:39:46 UTC, Vino.B wrote: On Tuesday, 12 September 2017 at 21:01:26 UTC, Moritz Maxeiner wrote: On Tuesday, 12 September 2017 at 19:44:19 UTC, vino wrote: Hi All, I have a small piece

Is there further documentation of core.atomic.MemoryOrder?

2017-09-13 Thread Nathan S. via Digitalmars-d-learn
Is there a formal description of "hoist-load", "hoist-store", "sink-load", and "sink-store" as used in core.atomic.MemoryOrder (https://dlang.org/library/core/atomic/memory_order.html)?

Re: DerelictGL3 slow compilation speed with contexts

2017-09-13 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 10:28:26 UTC, Igor wrote: Well since minimal example is a window app that opens a window, sets everything up and calls opengl stuff I will just push it to my github project this evening and you will can try with that. I will let you know when its done. In t

Re: Assertion Error

2017-09-13 Thread Moritz Maxeiner via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 07:39:46 UTC, Vino.B wrote: On Tuesday, 12 September 2017 at 21:01:26 UTC, Moritz Maxeiner wrote: On Tuesday, 12 September 2017 at 19:44:19 UTC, vino wrote: Hi All, I have a small piece of code which executes perfectly 8 out of 10 times, very rarely it throw

Re: DerelictGL3 slow compilation speed with contexts

2017-09-13 Thread Igor via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 01:30:10 UTC, Mike Parker wrote: On Tuesday, 12 September 2017 at 21:55:23 UTC, Igor wrote: Hi All, I switched from using free functions in DerelictGL3 to DerelictGL3_Contexts and compilation speed in optimized build using DMD went from 2 seconds to 7 minute

Re: Is there any threadsafe queue?

2017-09-13 Thread John Burton via Digitalmars-d-learn
On Wednesday, 13 September 2017 at 09:49:46 UTC, Jonathan M Davis wrote: On Wednesday, September 13, 2017 07:51:19 John Burton via Digitalmars-d- learn wrote: [...] You could probably do what you want with std.concurrency, since most of what it does is deal with sending and receiving data ac

Re: Is there any threadsafe queue?

2017-09-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, September 13, 2017 07:51:19 John Burton via Digitalmars-d- learn wrote: > Is there any threadsafe queue in the standard library? > I've not been able to find anything but thought I'd check before > making my own. > > I want to be able to assemble messages (Which are just streams of >

Re: Adding empty static this() causes exception

2017-09-13 Thread Biotronic via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 19:59:52 UTC, Joseph wrote: The compiler shouldn't arbitrarily force one to make arbitrary decisions that waste time and money. Like having a type system? Having to do *cast(int*)&s to interpret a string as an int isn't strictly necessary, and wastes dev time

Is there any threadsafe queue?

2017-09-13 Thread John Burton via Digitalmars-d-learn
Is there any threadsafe queue in the standard library? I've not been able to find anything but thought I'd check before making my own. I want to be able to assemble messages (Which are just streams of bytes) in one thread into a struct and push them to the queue, and then have a another threa

Re: Assertion Error

2017-09-13 Thread Vino.B via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 21:01:26 UTC, Moritz Maxeiner wrote: On Tuesday, 12 September 2017 at 19:44:19 UTC, vino wrote: Hi All, I have a small piece of code which executes perfectly 8 out of 10 times, very rarely it throws an assertion error, so is there a way to find which line of c