Re: Gui in D: I miss this project

2017-01-11 Thread lobo via Digitalmars-d
On Thursday, 12 January 2017 at 07:24:43 UTC, aberba wrote: On Wednesday, 11 January 2017 at 15:33:36 UTC, Sai wrote: After all, when someone wants a cross platform D GUI library, the ONLY current usable choice is DLangUI. I disagree. There is no need for a pure D GUI library. It is a

Re: Gui in D: I miss this project

2017-01-11 Thread aberba via Digitalmars-d
On Wednesday, 11 January 2017 at 15:33:36 UTC, Sai wrote: On Wednesday, 11 January 2017 at 09:17:45 UTC, aberba wrote: On Wednesday, 11 January 2017 at 07:21:22 UTC, thedeemon wrote: On Monday, 9 January 2017 at 21:41:37 UTC, aberba wrote: [...] No drag, DLangUI is quite fine and usable

Re: Gui in D: I miss this project

2017-01-11 Thread thedeemon via Digitalmars-d
On Wednesday, 11 January 2017 at 15:56:46 UTC, Chris Wright wrote: On Wed, 11 Jan 2017 07:21:22 +, thedeemon wrote: If you need some GUI, DLangUI is just a "dub build" away. How does DLangUI do with screen readers and magnifiers? Very poorly, I guess. It does not use native controls and

Re: Linking C Headers to D

2017-01-11 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 12 January 2017 at 04:54:18 UTC, DRex wrote: Hi, I am trying to link C and D (using GCC and GDC) and I am wondering (I could find no answers on google) if it is possible to compile C headers into object files and link them to D? I have a large code base of C headers and am not

Linking C Headers to D

2017-01-11 Thread DRex via Digitalmars-d-learn
Hi, I am trying to link C and D (using GCC and GDC) and I am wondering (I could find no answers on google) if it is possible to compile C headers into object files and link them to D? I have a large code base of C headers and am not at a point where I can translate them all to D in one go,

Re: It is still not possible to use D on debian/ubuntu

2017-01-11 Thread Elronnd via Digitalmars-d
On Monday, 2 January 2017 at 11:15:02 UTC, Russel Winder wrote: On Sun, 2017-01-01 at 16:04 -0800, Walter Bright via Digitalmars-d wrote: On 1/1/2017 3:55 PM, deadalnix wrote: On Debian and Fedora DMD is not an option GDC is on Debian but seemingly not on Fedora. I run DMD and GDC both on

[Issue 17085] New: [std.traits] Documentation for all traits under SomethingTypeOf missing

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17085 Issue ID: 17085 Summary: [std.traits] Documentation for all traits under SomethingTypeOf missing Product: D Version: D2 Hardware: All URL:

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Thursday, 12 January 2017 at 02:12:01 UTC, Mike Parker wrote: On Wednesday, 11 January 2017 at 23:12:30 UTC, Nordlöw wrote: On Wednesday, 11 January 2017 at 22:19:58 UTC, Andrew Hall wrote: also, why nogc? Because C-functions never use the D garbage collector :) They should also be

Re: libgmp deimos library

2017-01-11 Thread Mike Parker via Digitalmars-d
On Thursday, 12 January 2017 at 02:12:01 UTC, Mike Parker wrote: They should also be marked nothrow. Which I see they are.

Re: libgmp deimos library

2017-01-11 Thread Mike Parker via Digitalmars-d
On Wednesday, 11 January 2017 at 23:12:30 UTC, Nordlöw wrote: On Wednesday, 11 January 2017 at 22:19:58 UTC, Andrew Hall wrote: also, why nogc? Because C-functions never use the D garbage collector :) They should also be marked nothrow. That and @nogc should generally be applied to all C

Re: Auto recursive function

2017-01-11 Thread Ignacious via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 19:23:10 UTC, Razvan Nitu wrote: Hi, I am currently trying to create a function makeMultidimensionalArray which allocates memory for a multidimensional array. It is very similar with [1], the difference being that it is uninitialized. Here is the code: auto

Re: libgmp deimos library

2017-01-11 Thread Nordlöw via Digitalmars-d
On Wednesday, 11 January 2017 at 22:19:58 UTC, Andrew Hall wrote: also, why nogc? Because C-functions never use the D garbage collector :)

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 22:18:53 UTC, Andrew Hall wrote: On Wednesday, 11 January 2017 at 22:14:03 UTC, Nordlöw wrote: One important thing...you've forgotten to qualify the D wrapper functions as `pure @nogc`. in the actual bindings, I did include pure & nothrow however I've not

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 22:14:03 UTC, Nordlöw wrote: One important thing...you've forgotten to qualify the D wrapper functions as `pure @nogc`. in the actual bindings, I did include pure & nothrow however I've not had time in the wrapper.

Re: libgmp deimos library

2017-01-11 Thread Nordlöw via Digitalmars-d
On Wednesday, 11 January 2017 at 21:52:57 UTC, Andrew Hall wrote: Basically, gmp.h is split up into 4 files: gmp.d, integer.d, floating.d & rational.d. these are all public import'd by package.d so if you would like the contents of all of gmp.h, import deimos.gmp. However if you only need the

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 18:32:36 UTC, Nordlöw wrote: On Wednesday, 11 January 2017 at 13:53:18 UTC, Andrew Hall wrote: I was planning on extending this wrapper but since you have one, you may as well have the test cases. Great. I'll merge mine and your's stuff and put it in

[Issue 16382] Passing as a CT parameter seg faults dmd

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16382 bitter.ta...@gmx.com changed: What|Removed |Added CC||bitter.ta...@gmx.com --- Comment #1

Re: Android Status

2017-01-11 Thread Ignacious via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 03:49:42 UTC, Joakim wrote: On Tuesday, 10 January 2017 at 18:48:17 UTC, Ignacious wrote: [...] It's probably not easier, and in any case, android-x86 won't be supported, largely because I don't have any working x86 devices. [...] Ok, well the x86 thing

Re: Auto recursive function

2017-01-11 Thread Ignacious via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 19:23:10 UTC, Razvan Nitu wrote: Hi, I am currently trying to create a function makeMultidimensionalArray which allocates memory for a multidimensional array. It is very similar with [1], the difference being that it is uninitialized. Here is the code: auto

Re: Auto recursive function

2017-01-11 Thread Martin Nowak via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 19:39:17 UTC, Ali Çehreli wrote: return choose(lengths.length == 1, one!T(alloc, lengths[0]), two!T(alloc, lengths)); Well, choose is the right tool when the choice can only be made at runtime. That would be uncommon for dimensionality. Anyhow mentioning

Re: Auto recursive function

2017-01-11 Thread Razvan Nitu via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 19:30:05 UTC, Stefan Koch wrote: On Wednesday, 11 January 2017 at 19:23:10 UTC, Razvan Nitu wrote: Hi, I am currently trying to create a function makeMultidimensionalArray which allocates memory for a multidimensional array. It is very similar with [1], the

Re: Gui in D: I miss this project

2017-01-11 Thread Jonas Drewsen via Digitalmars-d
On Wednesday, 11 January 2017 at 09:17:45 UTC, aberba wrote: On Wednesday, 11 January 2017 at 07:21:22 UTC, thedeemon wrote: On Monday, 9 January 2017 at 21:41:37 UTC, aberba wrote: [...] No drag, DLangUI is quite fine and usable (and already being used in industry). Or are you talking

Re: Auto recursive function

2017-01-11 Thread Ali Çehreli via Digitalmars-d-learn
On 01/11/2017 11:30 AM, Stefan Koch wrote: On Wednesday, 11 January 2017 at 19:23:10 UTC, Razvan Nitu wrote: Hi, I am currently trying to create a function makeMultidimensionalArray which allocates memory for a multidimensional array. It is very similar with [1], the difference being that it

Re: Auto recursive function

2017-01-11 Thread Martin Nowak via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 19:23:10 UTC, Razvan Nitu wrote: auto makeMultidimensionalArray(T, Allocator)(auto ref Allocator alloc, size_t[] lengths) { if (lengths.length == 1) Looks like `static if` would fix your specific problem.

Re: Auto recursive function

2017-01-11 Thread Stefan Koch via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 19:23:10 UTC, Razvan Nitu wrote: Hi, I am currently trying to create a function makeMultidimensionalArray which allocates memory for a multidimensional array. It is very similar with [1], the difference being that it is uninitialized. Here is the code: [...]

Re: Alexa Skill written in D

2017-01-11 Thread Walter Bright via Digitalmars-d-announce
On 1/11/2017 2:09 AM, Chris wrote: On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote: Yes. I can't because anything I post gets autobanned. Why is that? Probably because I posted links to articles I wrote myself. I didn't know at the time it was against their rules.

Auto recursive function

2017-01-11 Thread Razvan Nitu via Digitalmars-d-learn
Hi, I am currently trying to create a function makeMultidimensionalArray which allocates memory for a multidimensional array. It is very similar with [1], the difference being that it is uninitialized. Here is the code: auto makeMultidimensionalArray(T, Allocator)(auto ref Allocator alloc,

[Issue 17080] Can assign member-function-ptr to free-function-ptr

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17080 --- Comment #4 from Sprink --- (In reply to Marenz from comment #3) > I have been encouraged by Uplink|DMD to reopen this issue as it differs in a > few aspects to the one it is marked a duplicate of: > > The issue 3720

Re: libgmp deimos library

2017-01-11 Thread Nordlöw via Digitalmars-d
On Wednesday, 11 January 2017 at 13:53:18 UTC, Andrew Hall wrote: I was planning on extending this wrapper but since you have one, you may as well have the test cases. Great. I'll merge mine and your's stuff and put it in https://github.com/nordlow/gmp-d.git Could you please give some

[Issue 17080] Can assign member-function-ptr to free-function-ptr

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17080 Marenz changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Mixin in Inline Assembly

2017-01-11 Thread Era Scarecrow via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 15:39:49 UTC, Guillaume Piolat wrote: On Wednesday, 11 January 2017 at 06:14:35 UTC, Era Scarecrow wrote: Suddenly reminds me some of the speedup assembly I was writing for wideint, but seems I lost my code. too bad, the 128bit multiply had sped up and the

[Issue 3720] Taking address of member functions possible without an instance

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3720 Ketmar Dark changed: What|Removed |Added CC|

Re: Check of point inside/outside polygon

2017-01-11 Thread Basile B. via Digitalmars-d-learn
On Tuesday, 26 July 2016 at 13:32:00 UTC, Suliman wrote: Ideally I need algorithm that can return bool if one polygon overlapped/intersected by another. But I do not know math. After some googling I found topic on SO[1] about point inside/outside polygon. It's not directly what I need, but as

[Issue 17080] Can assign member-function-ptr to free-function-ptr

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17080 Sprink changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3720] Taking address of member functions possible without an instance

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3720 Sprink changed: What|Removed |Added CC||dl...@supradigital.org

Re: Gui in D: I miss this project

2017-01-11 Thread Chris Wright via Digitalmars-d
On Wed, 11 Jan 2017 07:21:22 +, thedeemon wrote: > If you need some GUI, DLangUI is just a "dub build" away. How does DLangUI do with screen readers and magnifiers? >From what I'm seeing, neither GTK+ nor Qt work with screen readers anad other assistive technologies. wxWidgets has some

Re: Mixin in Inline Assembly

2017-01-11 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 06:14:35 UTC, Era Scarecrow wrote: Suddenly reminds me some of the speedup assembly I was writing for wideint, but seems I lost my code. too bad, the 128bit multiply had sped up and the division needed some work. I'm a taker if you have some algorithm to

Re: Gui in D: I miss this project

2017-01-11 Thread Sai via Digitalmars-d
On Wednesday, 11 January 2017 at 09:17:45 UTC, aberba wrote: On Wednesday, 11 January 2017 at 07:21:22 UTC, thedeemon wrote: On Monday, 9 January 2017 at 21:41:37 UTC, aberba wrote: [...] No drag, DLangUI is quite fine and usable (and already being used in industry). Or are you talking

[Issue 16470] Segfault with negative array length

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16470 Nemanja Boric <4bur...@gmail.com> changed: What|Removed |Added CC||4bur...@gmail.com ---

[Issue 16470] Segfault with negative array length

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16470 bitter.ta...@gmx.com changed: What|Removed |Added CC||bitter.ta...@gmx.com --- Comment #3

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 12:50:15 UTC, Nordlöw wrote: On Wednesday, 11 January 2017 at 10:29:26 UTC, Andrew Hall wrote: https://github.com/andrew-m-h/libgmp Nice. I'll make use of it in my high-level wrapper at https://github.com/nordlow/phobos-next/blob/master/src/gmp.d instead of

Re: libgmp deimos library

2017-01-11 Thread Jacob Carlborg via Digitalmars-d
On 2017-01-11 13:33, Guillaume Chatelet wrote: I'm not at all an expert on D bindings, I found the following links: - This page explains the procedure: http://wiki.dlang.org/D_binding_for_C - But this one too: http://dlang.org/spec/interfaceToC.html - This page seems out of date:

Re: taggedPointer to char array on heap

2017-01-11 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 00:26:27 UTC, Ali Çehreli wrote: @property char* p() { Should be @property inout(char)* p() inout Thanks!

Re: GMP bindings for DLang

2017-01-11 Thread Nordlöw via Digitalmars-d-announce
On Wednesday, 11 January 2017 at 12:53:13 UTC, Andrew Hall wrote: https://code.dlang.org/packages/libgmp See also http://forum.dlang.org/thread/imoaobpfaggyphjox...@forum.dlang.org

GMP bindings for DLang

2017-01-11 Thread Andrew Hall via Digitalmars-d-announce
I've been writing D bindings for GMP the multi-precision numeric library. I know Dlang has bignum, but GMP is still the fastest library for extremely large numbers. I've thus far written header interface for all of gmp.h minus the mpn_t functions (low level natural numbers). And I'm in the

Re: libgmp deimos library

2017-01-11 Thread Nordlöw via Digitalmars-d
On Wednesday, 11 January 2017 at 10:29:26 UTC, Andrew Hall wrote: https://github.com/andrew-m-h/libgmp Nice. I'll make use of it in my high-level wrapper at https://github.com/nordlow/phobos-next/blob/master/src/gmp.d instead of my hand-coded externs. It is currently well tested (unittests

Re: libgmp deimos library

2017-01-11 Thread Guillaume Chatelet via Digitalmars-d
On Wednesday, 11 January 2017 at 11:34:55 UTC, Andrew Hall wrote: Cheers, I've done as you suggest, and 'libgmp' is registered under DUB. Feel free to have a look at the code because this is the first binding I've written in D. That said, it does have a test suite (unit tests) that do work.

Re: Alexa Skill written in D

2017-01-11 Thread extrawurst via Digitalmars-d-announce
On Tuesday, 10 January 2017 at 11:46:22 UTC, Laeeth Isharc wrote: On Saturday, 7 January 2017 at 13:17:35 UTC, extrawurst wrote: Hi guys, the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D. It is a skill that allows me to voice control my TV receiver with commands

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 10:52:40 UTC, Guillaume Chatelet wrote: On Wednesday, 11 January 2017 at 10:29:26 UTC, Andrew Hall wrote: I've been writing D bindings for GMP and I was wondering if they warrant inclusion in the Deimos git repo. I know Dlang has bignum, but GMP is still the

Re: Vibe.d: Implementing file upload with WEB interface

2017-01-11 Thread aberba via Digitalmars-d-learn
On Monday, 9 January 2017 at 19:36:18 UTC, aberba wrote: Turns out my question was answered somewhere on vibe.d website For those situations where more control is required, it is possible to simply declare parameters of type HTTPServerRequest or HTTPServerResponse to give a method full

[Issue 17074] extern(C++, keyword) crashes compiler

2017-01-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17074 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e4516073a3e0d5d92499fc6e1a5b184eb4e87f31 Fix Issue 17074: extern(C++, keyword) crashes compiler This

Re: libgmp deimos library

2017-01-11 Thread Guillaume Chatelet via Digitalmars-d
On Wednesday, 11 January 2017 at 10:29:26 UTC, Andrew Hall wrote: I've been writing D bindings for GMP and I was wondering if they warrant inclusion in the Deimos git repo. I know Dlang has bignum, but GMP is still the fastest library for extremely large numbers. The repos is in 'Deimos'

Re: Beta 2.073.0-b1

2017-01-11 Thread Martin Nowak via Digitalmars-d-announce
On Saturday, 7 January 2017 at 21:39:18 UTC, Timothee Cour wrote: * -transition=safe/-dip1000 => not mentioned in http://dlang.org/changelog/2.073.0.html That's deliberate, as you can't even use it with writeln yet. * std.experimental.ndslice has been deprecated. The synchronization between

libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
I've been writing D bindings for GMP and I was wondering if they warrant inclusion in the Deimos git repo. I know Dlang has bignum, but GMP is still the fastest library for extremely large numbers. The repos is in 'Deimos' format so if you care to use it, please tell me how to proceed.

Re: Alexa Skill written in D

2017-01-11 Thread Chris via Digitalmars-d-announce
On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote: Yes. I can't because anything I post gets autobanned. Why is that?

Re: Gui in D: I miss this project

2017-01-11 Thread aberba via Digitalmars-d
On Wednesday, 11 January 2017 at 07:21:22 UTC, thedeemon wrote: On Monday, 9 January 2017 at 21:41:37 UTC, aberba wrote: [...] No drag, DLangUI is quite fine and usable (and already being used in industry). Or are you talking about including it into Phobos? That's not the best idea, it

Re: GDC guys, can this toolchain support D?

2017-01-11 Thread Iain Buclaw via Digitalmars-d
On 11 January 2017 at 02:40, Manu via Digitalmars-d wrote: > On 10 January 2017 at 19:04, Iain Buclaw via Digitalmars-d > wrote: >> >> On 10 January 2017 at 09:22, Manu via Digitalmars-d >> wrote: >> > Can

Re: GDC guys, can this toolchain support D?

2017-01-11 Thread Iain Buclaw via Digitalmars-d
On 11 January 2017 at 02:50, Manu via Digitalmars-d wrote: > > > On 11 January 2017 at 11:40, Manu wrote: >> >> On 10 January 2017 at 19:04, Iain Buclaw via Digitalmars-d >> wrote: >>> >>> >>> Does double == float on