Re: Bug in gtkd?

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 20:18:19 UTC, Mike Wey wrote: On 01-08-17 21:44, Johnson Jones wrote: On Tuesday, 1 August 2017 at 15:20:08 UTC, Mike Wey wrote: On 01-08-17 05:53, Johnson Jones wrote: GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0.

Re: newCTFE Status August 2017

2017-08-01 Thread Stefan Koch via Digitalmars-d
On Tuesday, 1 August 2017 at 21:27:32 UTC, Stefan Koch wrote: Sadly I temporarily broke the support for string-members in structs. Fixed now. The issue was ABI related. we used to store pointers to sliceDescriptors, but I changed that to store the sliceDescriptors directly. Because otherwise

[Issue 17710] Undefined behaviour and non-working casting of overloaded methods invoking overloaded delegates

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

Re: The progress of D since 2013

2017-08-01 Thread Maksim Fomin via Digitalmars-d
OK. Thanks everybody for information!

Re: Have a question

2017-08-01 Thread Stefan Koch via Digitalmars-d
On Wednesday, 2 August 2017 at 02:33:24 UTC, Evanhdc wrote: Hi everyone, I'm a newbie there and I'm interested in this forum a lot. How can I get much knowledge as you guys? :D. Hope to get more knowledge from you all! Thanks. 1. Read "The D Programming Language" by Andrei Alexanderscue. 2.

Have a question

2017-08-01 Thread Evanhdc via Digitalmars-d
Hi everyone, I'm a newbie there and I'm interested in this forum a lot. How can I get much knowledge as you guys? :D. Hope to get more knowledge from you all! Thanks.

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 2 August 2017 at 00:39:24 UTC, Mike wrote: Looking at your code though, I probably should have used Adam's dom.d too; std.xml was weird to say the least. There's a couple functions in dom.d too that might have simplified this: foreach(EnumsTop;

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Mike via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 20:11:13 UTC, Taylor Hillegeist wrote: Reminds me of something I put together a while ago. https://github.com/taylorh140/SVD_TO_D But this looks much nicer, nice work! ha ha! Even the pattern used in our code is similar. I swear I never saw it before. Looking

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Mike via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 19:04:44 UTC, Johannes Pfau wrote: SVD seems to be an ARM standard / initiative? Yeah, ARM appears to maintain the XML schema, but the SVD files are usually created and distributed by the silicon vendors, in varying levels of quality, unfortunately. Mike

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Mike via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 14:52:51 UTC, Steven Schveighoffer wrote: Mike, I have to say still your talk in 2014 was one of my favorites. One of the things that was so impressive to me was the way you scraped the PDF to generate all the registers automatically. Having worked with STM chips

Re: Adding deprecated to an enum member

2017-08-01 Thread Moritz Maxeiner via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 01:12:28 UTC, Jeremy DeHaan wrote: I got an error today because I added deprecated to an enum member. Is there a way to achieve this, or am I out of luck? If it isn't doable, should it be? Here's what I want: [...] It's a bug [1]. [1]

Re: this r-value optimizations

2017-08-01 Thread Moritz Maxeiner via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 22:47:24 UTC, Nordlöw wrote: Given the `struct S` with lots of data fields, I've written the following functional way of initializing only a subset of the members in an instance of `S`: struct S { [...] } Now the question becomes: will the S-copying inside

Re: [OT] Alternative to Thunderbird (was: Re: NG technical issues: Is it just me?)

2017-08-01 Thread H. S. Teoh via Digitalmars-d
On Tue, Aug 01, 2017 at 03:50:02PM -0700, Ali Çehreli via Digitalmars-d wrote: [...] > Perhaps I should get used to reading news and email with Emacs > already. :/ [...] I've been using Mutt for years, and quite happy with it. There's a version/patch floating around somewhere that has built-in

Re: why won't byPair work with a const AA?

2017-08-01 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Aug 01, 2017 at 07:31:41PM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: > On 8/1/17 7:15 PM, H. S. Teoh via Digitalmars-d-learn wrote: > > On Tue, Aug 01, 2017 at 07:09:45PM -0400, Steven Schveighoffer via > > Digitalmars-d-learn wrote: > > > If this were a true

Re: why won't byPair work with a const AA?

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/1/17 7:15 PM, H. S. Teoh via Digitalmars-d-learn wrote: On Tue, Aug 01, 2017 at 07:09:45PM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: If this were a true implementation without the opaqueness, it would not work properly. [...] Actually, a proper implementation would

Re: Adding deprecated to an enum member

2017-08-01 Thread Jeremy DeHaan via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 02:06:27 UTC, dark777 wrote: I did as follows using deprecated may help you to elucidate in relation to this https://pastebin.com/NEHtWiGx Deprecating an entire module isn't really a solution though. I only want parts of an existing enum to be deprecated when

Re: why won't byPair work with a const AA?

2017-08-01 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Aug 01, 2017 at 07:09:45PM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: > On 8/1/17 6:50 PM, H. S. Teoh via Digitalmars-d-learn wrote: [...] > > Actually, there's nothing about the implementation of both > > byKeyValue (the underlying implementation in druntime) and byPair

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread Moritz Maxeiner via Digitalmars-d
On Tuesday, 1 August 2017 at 22:52:26 UTC, H. S. Teoh wrote: On Tue, Aug 01, 2017 at 06:46:17PM -0400, Steven Schveighoffer via Digitalmars-d wrote: On 8/1/17 6:17 PM, Moritz Maxeiner wrote: [...] > import std.algorithm; > // I probably wouldn't even define this but use the body as > is >

Re: why won't byPair work with a const AA?

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/1/17 6:50 PM, H. S. Teoh via Digitalmars-d-learn wrote: On Tue, Aug 01, 2017 at 10:04:18AM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: On 7/30/17 12:19 AM, Matthew Gamble wrote: [...] import std.array; import std.algorithm; class A { this() { aa = ["a":1, "b" : 2,

[Issue 17711] std.array.byPair should be usable with const AA

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17711 hst...@quickfur.ath.cx changed: What|Removed |Added Keywords||pull --- Comment #1 from

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread H. S. Teoh via Digitalmars-d
On Tue, Aug 01, 2017 at 06:46:17PM -0400, Steven Schveighoffer via Digitalmars-d wrote: > On 8/1/17 6:17 PM, Moritz Maxeiner wrote: [...] > > import std.algorithm; > > // I probably wouldn't even define this but use the body as is > > auto strnlen_safe(in char[] str) > > { > > return

Re: why won't byPair work with a const AA?

2017-08-01 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Aug 01, 2017 at 10:04:18AM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: > On 7/30/17 12:19 AM, Matthew Gamble wrote: [...] > > import std.array; > > import std.algorithm; > > > > class A > > { > > this() { aa = ["a":1, "b" : 2, "c" : 3]; } > > auto pairs()

[OT] Alternative to Thunderbird (was: Re: NG technical issues: Is it just me?)

2017-08-01 Thread Ali Çehreli via Digitalmars-d
On 08/01/2017 09:58 AM, Mike Wey wrote: The errors seem to be getting more frequent lately. But i nog also get these errors on the GtkD newsgroup (vibenews) so it might be a Thunderbird issue. Is anybody getting the errors with a different client? Is there a better (lightweight, more

[Issue 17711] New: std.array.byPair should be usable with const AA

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17711 Issue ID: 17711 Summary: std.array.byPair should be usable with const AA Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d
On 8/1/17 6:17 PM, Moritz Maxeiner wrote: On Tuesday, 1 August 2017 at 21:59:46 UTC, Steven Schveighoffer wrote: On 8/1/17 5:54 PM, Moritz Maxeiner wrote: On Tuesday, 1 August 2017 at 20:39:35 UTC, Marco Leise wrote: Am Tue, 1 Aug 2017 10:50:59 -0700 schrieb "H. S. Teoh via Digitalmars-d"

Re: gtk arch issues

2017-08-01 Thread FoxyBrown via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 21:03:44 UTC, Mike Wey wrote: On 01-08-17 22:16, Johnson Jones wrote: nvm, the file exists. Why it is not being found is unknown. I did some stuff and it says it is not a valid win32, this is using that gtk3 runtime I linked to... says it's x64 version but

this r-value optimizations

2017-08-01 Thread Nordlöw via Digitalmars-d-learn
Given the `struct S` with lots of data fields, I've written the following functional way of initializing only a subset of the members in an instance of `S`: struct S { int i; float f; ... this(int i) { this.i = i; } S withF(float f) { // will this be optimized

Re: [OT] Generative C++

2017-08-01 Thread Moritz Maxeiner via Digitalmars-d
On Tuesday, 1 August 2017 at 22:11:47 UTC, Stefan Koch wrote: On Tuesday, 1 August 2017 at 22:06:28 UTC, Walter Bright wrote: On 7/31/2017 5:41 AM, Joakim wrote: If he's right that C++ use is so balkanized, this will simplify some code but further balkanize the language. That might be worth

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread Moritz Maxeiner via Digitalmars-d
On Tuesday, 1 August 2017 at 21:59:46 UTC, Steven Schveighoffer wrote: On 8/1/17 5:54 PM, Moritz Maxeiner wrote: On Tuesday, 1 August 2017 at 20:39:35 UTC, Marco Leise wrote: Am Tue, 1 Aug 2017 10:50:59 -0700 schrieb "H. S. Teoh via Digitalmars-d" : On Tue, Aug

Re: [OT] Generative C++

2017-08-01 Thread Stefan Koch via Digitalmars-d
On Tuesday, 1 August 2017 at 22:06:28 UTC, Walter Bright wrote: On 7/31/2017 5:41 AM, Joakim wrote: If he's right that C++ use is so balkanized, this will simplify some code but further balkanize the language. That might be worth it for them, but rather than simplifying the language, it

Re: [OT] Generative C++

2017-08-01 Thread Walter Bright via Digitalmars-d
On 7/31/2017 5:41 AM, Joakim wrote: If he's right that C++ use is so balkanized, this will simplify some code but further balkanize the language. That might be worth it for them, but rather than simplifying the language, it makes it more powerful and more complex, heading higher up into the

[Issue 15759] chunks should work with only an input range

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15759 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15759] chunks should work with only an input range

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15759 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/6826427ba55b9ae9a0f64f4489c359a851e08087 Fix issue 15759: Extend std.range.chunks to work with

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d
On 8/1/17 5:54 PM, Moritz Maxeiner wrote: On Tuesday, 1 August 2017 at 20:39:35 UTC, Marco Leise wrote: Am Tue, 1 Aug 2017 10:50:59 -0700 schrieb "H. S. Teoh via Digitalmars-d" : On Tue, Aug 01, 2017 at 05:12:38PM +, w0rp via Digitalmars-d wrote: > Direct OS

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread Moritz Maxeiner via Digitalmars-d
On Tuesday, 1 August 2017 at 20:39:35 UTC, Marco Leise wrote: Am Tue, 1 Aug 2017 10:50:59 -0700 schrieb "H. S. Teoh via Digitalmars-d" : On Tue, Aug 01, 2017 at 05:12:38PM +, w0rp via Digitalmars-d wrote: > Direct OS function calls should probably all be

newCTFE Status August 2017

2017-08-01 Thread Stefan Koch via Digitalmars-d
Hi Guys, At the end of July newCTFE became capable of executing the bf-ctfe[1] code and pass the tests. At 5 times the speed. While using 40% the memory. (It should be noted that the code generated by bf-ctfe is optimized to put as little pressure on ctfe as possible and tries to avoid the

Re: gtk arch issues

2017-08-01 Thread Mike Wey via Digitalmars-d-learn
On 01-08-17 22:16, Johnson Jones wrote: nvm, the file exists. Why it is not being found is unknown. I did some stuff and it says it is not a valid win32, this is using that gtk3 runtime I linked to... says it's x64 version but probably x86. Would be nice if the error message printed the

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread H. S. Teoh via Digitalmars-d
On Tue, Aug 01, 2017 at 10:39:35PM +0200, Marco Leise via Digitalmars-d wrote: > Am Tue, 1 Aug 2017 10:50:59 -0700 > schrieb "H. S. Teoh via Digitalmars-d" > : > > > On Tue, Aug 01, 2017 at 05:12:38PM +, w0rp via Digitalmars-d wrote: > > > Direct OS function calls

Re: gtk arch issues(fixed)

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
So, The error I currently get is object.Exception@generated\gtkd\gtkd\Loader.d(125): Library load failed (libgdk-3-0x64.dll): is not a valid Win32 application. and libgdk-3-0x64.dll was libgdk-3-0.dll from the 64-bit gtk package. (I simply added the extension)... the package downloaded

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread Marco Leise via Digitalmars-d
Am Tue, 1 Aug 2017 10:50:59 -0700 schrieb "H. S. Teoh via Digitalmars-d" : > On Tue, Aug 01, 2017 at 05:12:38PM +, w0rp via Digitalmars-d wrote: > > Direct OS function calls should probably all be treated as unsafe, > > except for rare cases where the behaviour is

Re: covered - processes output of code coverage analysis performed by the D programming language compiler

2017-08-01 Thread Anton Fediushin via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 08:19:47 UTC, Szabo Bogdan wrote: Nice work! I would like to contribute to such a tool :) I was working at something similar with trial( http://trial.szabobogdan.com/ ), and I would like to include your library if it's possible. Thanks! Yes, module

Re: How do you use D?

2017-08-01 Thread aberba via Digitalmars-d
On Friday, 28 July 2017 at 14:58:01 UTC, Ali wrote: While the Orgs using D page is very nice ... I hoping to hear more personal stories ... So How do you use D? I'm a full stack developer using D on my personal backend project development and APis. In work, (key projects or smaller side

Re: Bug in gtkd?

2017-08-01 Thread Mike Wey via Digitalmars-d-learn
On 01-08-17 21:44, Johnson Jones wrote: On Tuesday, 1 August 2017 at 15:20:08 UTC, Mike Wey wrote: On 01-08-17 05:53, Johnson Jones wrote: GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0. Which version of glade are you using? The latest: Glade

Re: gtk arch issues

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
nvm, the file exists. Why it is not being found is unknown. I did some stuff and it says it is not a valid win32, this is using that gtk3 runtime I linked to... says it's x64 version but probably x86. Would be nice if the error message printed the full path of what was being loaded so it's

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Taylor Hillegeist via Digitalmars-d-announce
On Monday, 31 July 2017 at 08:51:16 UTC, Mike wrote: https://github.com/JinShil/svd_to_d SVD_to_D is a command-line utility that generates D code from ARM Cortex-M SVD files. [...] Reminds me of something I put together a while ago. https://github.com/taylorh140/SVD_TO_D But this looks

Re: gtk arch issues

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 15:14:50 UTC, Mike Wey wrote: On 01-08-17 01:37, Johnson Jones wrote: So, the question is, is this a gtkd problem or a gtk problem? In either case, what's the way to get them both to work. Do you guys actually test out both versions installed on the same system?

[Issue 9287] DMD should read from stdin when an input file is "-"

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9287 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7d1813309a8c89c8349672ba37a8c15f9d5a42a2 Fix issue 9287 - implement reading source from stdin.

Re: Bug in gtkd?

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 15:20:08 UTC, Mike Wey wrote: On 01-08-17 05:53, Johnson Jones wrote: GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0. Which version of glade are you using? The latest: Glade 3.8.5

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Johannes Pfau via Digitalmars-d-announce
Am Mon, 31 Jul 2017 08:51:16 + schrieb Mike : > https://github.com/JinShil/svd_to_d > > SVD_to_D is a command-line utility that generates D code from ARM > Cortex-M SVD files. > > SVD files are XML files that describe, in great detail, the > memory layout and

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread H. S. Teoh via Digitalmars-d
On Tue, Aug 01, 2017 at 05:12:38PM +, w0rp via Digitalmars-d wrote: > Direct OS function calls should probably all be treated as unsafe, > except for rare cases where the behaviour is very well defined in > standards and in actual implementations to be safe. The way to get > safe functions for

Re: args.d | a command line argument and config file parser

2017-08-01 Thread H. S. Teoh via Digitalmars-d-announce
On Tue, Aug 01, 2017 at 03:44:34PM +, Robert burner Schadek via Digitalmars-d-announce wrote: > args.d is a command line argument and config file parser. > > The basic idea of args.d is that that command line options and config > file options are basically the same or should be. > The

Re: Can you parse the d source file during compile time with std.regex?

2017-08-01 Thread 12345swordy via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 16:20:07 UTC, Stefan Koch wrote: On Tuesday, 1 August 2017 at 16:16:46 UTC, 12345swordy wrote: I don't see this anywhere in the documentation. I am asking this as I want to know that it's possible to create a attribute to prevent certain functions being called in

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread w0rp via Digitalmars-d
Direct OS function calls should probably all be treated as unsafe, except for rare cases where the behaviour is very well defined in standards and in actual implementations to be safe. The way to get safe functions for OS functionality is to write wrapper functions in D which prohibit unsafe

Re: NG technical issues: Is it just me?

2017-08-01 Thread Mike Wey via Digitalmars-d
On 21-04-17 19:03, Mike Wey wrote: On 04/21/2017 10:27 AM, Vladimir Panteleev wrote: On Thursday, 20 April 2017 at 23:37:25 UTC, Ali Çehreli wrote: *Looks* like a server/network issue but behaves like a screwy local issue. Started happening more in recent weeks. I don't select automatic

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-08-01 Thread MysticZach via Digitalmars-d
On Monday, 31 July 2017 at 09:55:22 UTC, Nick Treleaven wrote: This is subjective. If you put `do` on the end of the line, it is trivial: in(x > 4) out(works) out(r; r.test) out(flag) do { // body } The common case is for `out` contracts to test for the return variable. Something like 90%

Re: Can you parse the d source file during compile time with std.regex?

2017-08-01 Thread Stefan Koch via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 16:16:46 UTC, 12345swordy wrote: I don't see this anywhere in the documentation. I am asking this as I want to know that it's possible to create a attribute to prevent certain functions being called in the body of a function. To enforce a certain code standard upon

Can you parse the d source file during compile time with std.regex?

2017-08-01 Thread 12345swordy via Digitalmars-d-learn
I don't see this anywhere in the documentation. I am asking this as I want to know that it's possible to create a attribute to prevent certain functions being called in the body of a function. To enforce a certain code standard upon myself.

Re: How to build GUI-based applications in D ?

2017-08-01 Thread Dukc via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 15:18:12 UTC, ashit wrote: i couldn't set control's width and height (Button widget) shows error. maybe it works a different way. 1. Try layoutHeight/width. Remember to set it for the main widget too, not just the children of it. 2. DlangUI is not intended to

[Issue 17686] [REG2.075.0] Covariant return types doesn't work with override in some cases

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17686 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/1fb7bd7fd889941c818cba6b1eb277e90e61dc9c Fix issue 17686: [REG2.075.0] Covariant return types doesn't

[Issue 17676] [REG 2.075] bad inlining of functions with multiple return statements

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17676 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d48421509341bfb43ac48cd3b971948f4b55f57b fix issue 17676: do not inline function with multiple return

Re: args.d | a command line argument and config file parser

2017-08-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 15:44:34 UTC, Robert burner import args; I suggest adding a module declaration with some kind of top level namespace as soon as possible. This is liable to conflict with some other module with the same name from a user's project.

args.d | a command line argument and config file parser

2017-08-01 Thread Robert burner Schadek via Digitalmars-d-announce
args.d is a command line argument and config file parser. The basic idea of args.d is that that command line options and config file options are basically the same or should be. The configuration options are build from UDA annotated structs that can be nested. The package can be used with dub

Re: How to build GUI-based applications in D ?

2017-08-01 Thread ashit via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 14:57:50 UTC, JamesD wrote: On Tuesday, 1 August 2017 at 09:31:32 UTC, ashit wrote: what is the simplest library to create gui applications in D? i want to create gui applications but couldnt configure the tools so far. [snip] I recommend you check out the D

Re: It makes me sick!

2017-08-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 15:16:44 UTC, Vladimir Panteleev wrote: Sorry, isn't that how things work now? For modules, yes. For packages, no. That inconsistency is what I want to change. So since we have a package here and the compiler doesn't allow you to define a package in the

Re: How to build GUI-based applications in D ?

2017-08-01 Thread ashit via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 10:09:56 UTC, Russel Winder wrote: I use GtkD (with GStreamerD) for my GUI applications written in D. https://gtkd.org/ thank you Russel. i have tried to config that several months ago, but no luck. i should try that once again.

Re: Bug in gtkd?

2017-08-01 Thread Mike Wey via Digitalmars-d-learn
On 01-08-17 05:53, Johnson Jones wrote: GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0. Which version of glade are you using? -- Mike Wey

Re: How to build GUI-based applications in D ?

2017-08-01 Thread ashit via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 09:44:48 UTC, ketmar wrote: ashit wrote: [...] Adam Ruppe has minigui in his arsd[0] repo. and minigui_xml to make interface creation easier. it is not really well-documented yet, tho, so you will prolly have to figure some things on your own. [0]

Re: It makes me sick!

2017-08-01 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 14:29:28 UTC, Adam D. Ruppe wrote: So we can keep the search path: `datetime.di`, then `datetime.d`, then `datetime/package.d`, and any one of them, as long as it has `module std.datetime;` at the top, can count equally as the package.d. Sorry, isn't that how

Re: How to build GUI-based applications in D ?

2017-08-01 Thread ashit via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 09:39:36 UTC, Daniel Kozak wrote: https://www.youtube.com/watch?v=5eUL8Z9AFW0 https://github.com/buggins/dlangui thank you Daniel. i have tried Dlangui previously and had no luck. but this time i could successfully compile my first app. now, i can say level

Re: gtk arch issues

2017-08-01 Thread Mike Wey via Digitalmars-d-learn
On 01-08-17 01:37, Johnson Jones wrote: So, the question is, is this a gtkd problem or a gtk problem? In either case, what's the way to get them both to work. Do you guys actually test out both versions installed on the same system? Gtk also loads some of it's own libraries at start up

Re: It makes me sick!

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/1/17 10:29 AM, Adam D. Ruppe wrote: On Tuesday, 1 August 2017 at 14:20:00 UTC, Steven Schveighoffer wrote: But the fix here is to fix the bizarre package.d design. Don't break the zip for cases like mine where adding files is a key feature of it. How should it be fixed? Well, my

Re: How to build GUI-based applications in D ?

2017-08-01 Thread JamesD via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 09:31:32 UTC, ashit wrote: what is the simplest library to create gui applications in D? i want to create gui applications but couldnt configure the tools so far. [snip] I recommend you check out the D widget toolkit (DWT). DWT is a library for creating

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/31/17 4:51 AM, Mike wrote: https://github.com/JinShil/svd_to_d SVD_to_D is a command-line utility that generates D code from ARM Cortex-M SVD files. Mike, I have to say still your talk in 2014 was one of my favorites. One of the things that was so impressive to me was the way you

A DUB Case Study: Compiling DMD as a Library

2017-08-01 Thread Mike Parker via Digitalmars-d-announce
Jacob Carlborg announced here recently that he had configured DMD to compile as a library. From there, he decided to write a blog post intended as an introduction to DUB, with the DMD-as-a-library bit as a case study. I convinced him to post it on The D Blog and then deviously hijacked his

Re: Accessing memory after destroy

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d
On 7/30/17 9:17 AM, Petar Kirov [ZombineDev] wrote: On Sunday, 30 July 2017 at 07:45:27 UTC, Johan Engelen wrote: On Saturday, 29 July 2017 at 23:09:38 UTC, Jonathan M Davis wrote: [1] https://dlang.org/spec/class.html#deallocators If destroy has been called on a class object, then it is a

Re: It makes me sick!

2017-08-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 14:20:00 UTC, Steven Schveighoffer wrote: But the fix here is to fix the bizarre package.d design. Don't break the zip for cases like mine where adding files is a key feature of it. How should it be fixed? Well, my preference would be to treat it just like any

Re: Convert ResultSet to List of Associted Array

2017-08-01 Thread Jshah via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 14:14:57 UTC, Steven Schveighoffer wrote: On 8/1/17 10:14 AM, Steven Schveighoffer wrote: On 7/30/17 1:02 PM, Jshah wrote: On Sunday, 30 July 2017 at 16:39:05 UTC, Jshah wrote: Hi I am new to D writing a web service with vibe. My webservice connect to mysql and

Re: import std.stdio; void main() { size_t count; bool[8191] flags; writeln("10 iterations"); // using iter as a throwaway variable foreach (iter; 1 .. 11) { count = 0; flags[] = 1

2017-08-01 Thread Stefan Koch via Digitalmars-d
On Tuesday, 1 August 2017 at 14:08:26 UTC, enter per ner wrote: whats the mistake you are passing a ptr to writefln.

Re: import std.stdio; void main() { size_t count; bool[8191] flags; writeln("10 iterations"); // using iter as a throwaway variable foreach (iter; 1 .. 11) { count = 0; flags[] = 1

2017-08-01 Thread Anonymouse via Digitalmars-d
On Tuesday, 1 August 2017 at 14:08:26 UTC, enter per ner wrote: whats the mistake For everyone's sanity: https://run.dlang.io/is/bjlaNy

Re: import std.stdio; void main() { size_t count; bool[8191] flags; writeln("10 iterations"); // using iter as a throwaway variable foreach (iter; 1 .. 11) { count = 0; flags[] = 1

2017-08-01 Thread Stefan Koch via Digitalmars-d
On Tuesday, 1 August 2017 at 14:08:26 UTC, enter per ner wrote: whats the mistake wrong forum. this is for d. learn. Also you posted the text in the title.

Re: It makes me sick!

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/29/17 3:51 PM, Adam D. Ruppe wrote: But the fix here is to fix the bizarre package.d design. Don't break the zip for cases like mine where adding files is a key feature of it. How should it be fixed? -Steve

Re: Convert ResultSet to List of Associted Array

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/1/17 10:14 AM, Steven Schveighoffer wrote: On 7/30/17 1:02 PM, Jshah wrote: On Sunday, 30 July 2017 at 16:39:05 UTC, Jshah wrote: Hi I am new to D writing a web service with vibe. My webservice connect to mysql and return the result as JSON. How do I convert resultset to Array of

Re: Convert ResultSet to List of Associted Array

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/30/17 1:02 PM, Jshah wrote: On Sunday, 30 July 2017 at 16:39:05 UTC, Jshah wrote: Hi I am new to D writing a web service with vibe. My webservice connect to mysql and return the result as JSON. How do I convert resultset to Array of Associated Array [["col1" : value, "col2" : value],

import std.stdio; void main() { size_t count; bool[8191] flags; writeln("10 iterations"); // using iter as a throwaway variable foreach (iter; 1 .. 11) { count = 0;

2017-08-01 Thread enter per ner via Digitalmars-d
whats the mistake

Re: why won't byPair work with a const AA?

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/30/17 12:19 AM, Matthew Gamble wrote: I have a class member function from which I'm trying to return a sorted array of key, value tuples stored in an associative array as a private member. The member function should be able to be marked const to prevent the AA from being modified. I have

Re: The progress of D since 2013

2017-08-01 Thread Jacob Carlborg via Digitalmars-d
On 2017-07-31 09:22, Maxim Fomin wrote: Hi! Good to see D is progressing! I was active forum and bugzilla participant in 2011-2013. Since then I have not touched D. What is the progress of D (2014-2017) in following dimensions: 1) Support of linking in win64? AFAIK Walter introduced win64

[Issue 16230] core.atomic.atomicLoad removes shared from aggregate types too eagerly

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16230 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/7e87d0646a3c2177e41253c7b9c3fca09c6fb08f prepare for fix of druntime issue 16230

[Issue 982] Codeview: symbols of enum type are declared integer

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=982 anonymous4 changed: What|Removed |Added Keywords||symdeb --

Re: How do you use D?

2017-08-01 Thread Jacob Carlborg via Digitalmars-d
On 2017-07-28 16:58, Ali wrote: While the Orgs using D page is very nice ... I hoping to hear more personal stories ... So How do you use D? In work, (key projects or smaller side projects) in your side project, (github, links please) just to learn something new? (I would easily argue that

[Issue 17710] New: Undefined behaviour and non-working casting of overloaded methods invoking overloaded delegates

2017-08-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17710 Issue ID: 17710 Summary: Undefined behaviour and non-working casting of overloaded methods invoking overloaded delegates Product: D Version: D2 Hardware: x86 OS:

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-01 Thread Kagamin via Digitalmars-d
On Monday, 31 July 2017 at 13:56:48 UTC, Shachar Shemesh wrote: One of the things that really bother me with the D community is the "100% or nothing" approach. In the worst case when a function becomes unsafe, only @safe attribute will be removed from it, which will be a breaking change, but

Re: Problem of undefined behaviour with overloaded methods and overloaded delegate's invokers

2017-08-01 Thread John Colvin via Digitalmars-d
On Tuesday, 1 August 2017 at 11:07:59 UTC, knex wrote: I came across a strange thing and I am not sure if this is a bug or just an undefined behaviour of a compiler. Here is some sample code to present the case: // alias BoolFirst = void delegate(bool b, string s); alias StringFirst = void

Re: Problem of undefined behaviour with overloaded methods and overloaded delegate's invokers

2017-08-01 Thread knex via Digitalmars-d
Erratum: which is clearly true ---> which is clearly untrue

Problem of undefined behaviour with overloaded methods and overloaded delegate's invokers

2017-08-01 Thread knex via Digitalmars-d
I came across a strange thing and I am not sure if this is a bug or just an undefined behaviour of a compiler. Here is some sample code to present the case: // alias BoolFirst = void delegate(bool b, string s); alias StringFirst = void delegate(string s, bool b); class Caller { void

Re: [OT] uncovering x86 hardware bugs and unknown instructions by fuzzing.

2017-08-01 Thread Guillaume Chatelet via Digitalmars-d
On Monday, 31 July 2017 at 23:51:57 UTC, deadalnix wrote: This man is a superhero. Actually this guy is Cypher (https://g.co/kgs/NMRPQU), he's just back from the Matrix :D

Re: sharedLog between dll

2017-08-01 Thread rikki cattermole via Digitalmars-d-learn
On 01/08/2017 11:27 AM, Domain wrote: On Tuesday, 1 August 2017 at 09:06:39 UTC, rikki cattermole wrote: On 01/08/2017 9:28 AM, Domain wrote: I want to redirect the sharedLog to my logger in one dll, and all dlls will use the new one. What should I do? sharedLog = new MyLogger(); // this

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Mike via Digitalmars-d-announce
On Monday, 31 July 2017 at 08:51:16 UTC, Mike wrote: The code generated by SVD_to_D depends on this memory-mapped-IO library: https://github.com/JinShil/memory_mapped_io That library uses D's CTFE and meta-programming features to generate highly optimized code (for both size and speed) at

Re: sharedLog between dll

2017-08-01 Thread Domain via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 09:06:39 UTC, rikki cattermole wrote: On 01/08/2017 9:28 AM, Domain wrote: I want to redirect the sharedLog to my logger in one dll, and all dlls will use the new one. What should I do? sharedLog = new MyLogger(); // this will not change the logger in other dll

Re: How to build GUI-based applications in D ?

2017-08-01 Thread Russel Winder via Digitalmars-d-learn
I use GtkD (with GStreamerD) for my GUI applications written in D. https://gtkd.org/ On Tue, 2017-08-01 at 09:31 +, ashit via Digitalmars-d-learn wrote: > what is the simplest library to create gui applications in D? > i want to create gui applications but couldnt configure the tools  > so

Re: is the ubuntu sourceforge repository safe?

2017-08-01 Thread Michael via Digitalmars-d
On Monday, 24 July 2017 at 11:02:55 UTC, Russel Winder wrote: On Sun, 2017-07-23 at 18:23 +, Michael via Digitalmars-d wrote: I stopped using it. It kept causing error messages in my package manager and I couldn't update it properly so I've just stuck to downloading the updates on

  1   2   >