Re: Convert duration to years?

2017-01-14 Thread rikki cattermole via Digitalmars-d-learn
On 15/01/2017 4:43 PM, Nestor wrote: Hi, I would simply like to get someone's age, but I am a little lost with time and date functions. I can already get the duration, but after reading the documentation it's unclear to me how to convert that into years. See following code: import std.stdio;

Re: Beta 2.073.0-b1

2017-01-14 Thread Walter Bright via Digitalmars-d-announce
On 1/7/2017 6:44 AM, biozic wrote: Are phobos unittests not passing when compiling with -dip1000 considered bugs or is it this experimental? druntime is now being compiled with -dip1000. https://github.com/dlang/druntime/pull/1733 Phobos is next!

Re: Gtkd how to add double value to liststore

2017-01-14 Thread Erdem via Digitalmars-d-learn
On Sunday, 15 January 2017 at 01:36:44 UTC, Ali Çehreli wrote: It looks like ListStore is a collection of 'Value's. Does the following work? setValue(iterator, 1, new Value(price)); Yes it works. Ali bey teşekkürler! :)

Re: GSoC 2017 Ideas!

2017-01-14 Thread Jack Stouffer via Digitalmars-d
On Saturday, 14 January 2017 at 15:19:23 UTC, Craig Dillabaugh wrote: So the ideas page is up for the 2017 GSoC. Its a bit light on content. Please feel free to use this forum thread to discuss any ideas you might have for appropriate projects. https://wiki.dlang.org/GSOC_2017_Ideas Cheers

Re: GSoC 2017 Ideas!

2017-01-14 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 15 January 2017 at 04:11:06 UTC, Craig Dillabaugh wrote: I've been trying to find something on this, but haven't yet, but I am not sure if website work would be considered appropriate. The website is still a program, and the ranking algorithm is, well, an algorithm, so it is code;

Re: Beta 2.073.0-b2

2017-01-14 Thread Jack Stouffer via Digitalmars-d-announce
On Sunday, 15 January 2017 at 01:03:26 UTC, Martin Nowak wrote: Second beta for the 2.073.0 release. This adds a few more dmd bugfixes over the first beta. https://github.com/dlang/dmd/compare/v2.073.0-b1...v2.073.0-b2 http://dlang.org/download.html#dmd_beta

Re: GSoC 2017 Ideas!

2017-01-14 Thread rikki cattermole via Digitalmars-d
On 15/01/2017 4:54 AM, Craig Dillabaugh wrote: On Saturday, 14 January 2017 at 15:23:19 UTC, rikki cattermole wrote: On 15/01/2017 4:19 AM, Craig Dillabaugh wrote: So the ideas page is up for the 2017 GSoC. Its a bit light on content. Please feel free to use this forum thread to discuss any

Re: GSoC 2017 Ideas!

2017-01-14 Thread Craig Dillabaugh via Digitalmars-d
On Saturday, 14 January 2017 at 16:20:06 UTC, Adam D. Ruppe wrote: On Saturday, 14 January 2017 at 16:12:43 UTC, Adam D. Ruppe wrote: but sorting by rating in search I'm sorry, that was a run on sentence. The big picture goal I'd like to see is that the package manager, or even a tutorial

Re: libgmp deimos library

2017-01-14 Thread Andrew Hall via Digitalmars-d
On Thursday, 12 January 2017 at 16:55:10 UTC, Nordlöw wrote: On Thursday, 12 January 2017 at 09:19:26 UTC, Russel Winder wrote: Is the intention for this to stand with or replace std.bigint ? I have no plan yet. I'm just gonna work on it for fun until it covers most of GNU MP. Pull requests

[Issue 16691] New debug experience: hovering over a string function argument doesn't display the string

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16691 --- Comment #4 from Manu --- Nice. --

[Issue 17090] `dmd -transition=?` needs quoting => make it `-transition=help`

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17090 Timothee Cour changed: What|Removed |Added CC|

[Issue 16974] [REG2.068] Equal associative arrays with associative array keys are considered unequal

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16974 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/5cc28431b92d6849ef7758d200f714f5aee996f3 Fix Issue 16974 - Equal associative arrays with

Re: Accessing a function within an object's superclass from the outside

2017-01-14 Thread Meta via Digitalmars-d-learn
On Saturday, 14 January 2017 at 23:31:53 UTC, Adam D. Ruppe wrote: On Saturday, 14 January 2017 at 21:55:27 UTC, David Zhang wrote: I seem to remember something about using aliases to fix this, but I can't find anything about it either way. So you can alias the names together to merge the

Re: Software Engineer at LinkedIn praises D

2017-01-14 Thread Walter Bright via Digitalmars-d-announce
Thanks for letting us know! Very nice to hear.

Silvermirror to mirror websites

2017-01-14 Thread Chris Wright via Digitalmars-d-announce
Github: https://github.com/dhasenan/silvermirror Silvermirror is a tool to mirror websites -- download them locally and serve copies of them. Compared to wget, which is the standard tool, its advantages are: * Resumability * Reduced memory usage (at least 20x in my tests) * Consistent URL

[Issue 9378] std.internal.digest.sha_SSE3 breaks if compiled with PIC

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9378 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/12c56c935c6bd0130fcb545264293cc0e500799f partly fix Issue 9378 - SHA1 asm not PIC compatible

Re: Gtkd how to add double value to liststore

2017-01-14 Thread Ali Çehreli via Digitalmars-d-learn
On 01/14/2017 11:47 AM, Erdem wrote: > void addGoods(string name, double price) > { > TreeIter iterator = createIter(); > setValue(iterator, 0, name); > setValue(iterator, 1, price); > } > } > Error: none of the overloads of 'setValue' are callable using

Pry v0.3.1 is out!

2017-01-14 Thread Dmitry Olshansky via Digitalmars-d-announce
Pry is a new pragmatic parser combinators library. https://github.com/DmitryOlshansky/pry (also available on Dub) It's still in the early stages but I think it might be a good time to gauge some interest. Two key areas of focus are (compared to say Pegged): - performance, on par with

[Issue 17073] [Reg 2.071.0] Priority clash with `void` default initialization of struct fields

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17073 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/5f490432785a36efea2cb4dcda0d3ebb036d6c21 Fix issue 17073 - Do not ignore the explicit initializers

[Issue 17059] [REG 2.072.2] incorrect circular reference with `is(Klass : Interface)`

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17059 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/c4ac1abed6e6aa95b1312d777f77fb634e2dac07 fix Issue 17059 - incorrect circular reference with `is(Klass

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

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

[Issue 16598] [REG2.069] ICE with void ternary + finalizers

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16598 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b6ac3bae6fe21fd5c060e9f8bad99e2d28e882a6 Fix issue 16598 - Explicitly discard the exp. value in void

Beta 2.073.0-b2

2017-01-14 Thread Martin Nowak via Digitalmars-d-announce
Second beta for the 2.073.0 release. This adds a few more dmd bugfixes over the first beta. https://github.com/dlang/dmd/compare/v2.073.0-b1...v2.073.0-b2 http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.073.0.html Please report any bugs at https://issues.dlang.org -Martin

Re: SmartRef: The Smart Pointer In D

2017-01-14 Thread Martin Nowak via Digitalmars-d-announce
On 01/14/2017 04:41 PM, Dmitry Olshansky wrote: > Not quite true, there is at least one huge advantage - thread-locality. > That is C++ smart_ptr has to be atomic, while its D counter part may > safely be non-atomic because everything is TLS be default. And you can add a shared postblit overload

Re: Beta 2.073.0-b1

2017-01-14 Thread Martin Nowak via Digitalmars-d-announce
On 01/14/2017 03:14 AM, bitwise wrote: > Is it possible to get an ETA on protection work on __traits? As any responsible programmer, I won't give out dates ;). But as was mentioned this is mostly just removing existing access checks, the visibility checks already treat __traits specially. This

[Issue 17090] `dmd -transition=?` needs quoting => make it `-transition=help`

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17090 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #1

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

2017-01-14 Thread Matthias Klumpp via Digitalmars-d
On Saturday, 14 January 2017 at 23:24:18 UTC, Jack Applegame wrote: On Saturday, 14 January 2017 at 18:41:21 UTC, Russel Winder wrote: On Sat, 2017-01-14 at 17:28 +, Elronnd via Digitalmars-d wrote: On Friday, 13 January 2017 at 11:50:25 UTC, Russel Winder wrote: > LDC which is packaged

Re: Accessing a function within an object's superclass from the outside

2017-01-14 Thread Ali Çehreli via Digitalmars-d-learn
Templates are not virtual. Depending the interface, a different function is called: import std.stdio; class ClassA { void fun(T)(T a) { writeln("ClassA"); } } class ClassB: ClassA { void fun(uint a) { writeln("ClassB"); } } void main() { auto cb = new ClassB(); ClassA ca =

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

2017-01-14 Thread Jack Applegame via Digitalmars-d
On Saturday, 14 January 2017 at 18:41:21 UTC, Russel Winder wrote: On Sat, 2017-01-14 at 17:28 +, Elronnd via Digitalmars-d wrote: On Friday, 13 January 2017 at 11:50:25 UTC, Russel Winder wrote: > LDC which is packaged by both Debian and Fedora is the > only practically usable D compiler

Re: GSoC 2017 Ideas!

2017-01-14 Thread Iain Buclaw via Digitalmars-d
On 14 January 2017 at 19:44, Jack Stouffer via Digitalmars-d wrote: > On Saturday, 14 January 2017 at 15:19:23 UTC, Craig Dillabaugh wrote: >> >> So the ideas page is up for the 2017 GSoC. Its a bit light on content. >> Please feel free to use this forum thread to

Re: Accessing a function within an object's superclass from the outside

2017-01-14 Thread ketmar via Digitalmars-d-learn
On Saturday, 14 January 2017 at 22:38:15 UTC, David Zhang wrote: On Saturday, 14 January 2017 at 22:17:23 UTC, ketmar wrote: class ClassB: ClassA { alias fun = super.fun; override void fun(uint a) {} } I tried that, but it seems to think I mean to override super.fun(uint) instead of

Re: Accessing a function within an object's superclass from the outside

2017-01-14 Thread David Zhang via Digitalmars-d-learn
On Saturday, 14 January 2017 at 22:17:23 UTC, ketmar wrote: class ClassB: ClassA { alias fun = super.fun; override void fun(uint a) {} } I tried that, but it seems to think I mean to override super.fun(uint) instead of super.fun(uint, float). Looking at my code again, one of them is

Not found reachear paper in the D's wiki

2017-01-14 Thread nbro via Digitalmars-d
Hi, I just wanted to report a broken link, specifically a 404 (or not found) when you click on the only research paper here: https://wiki.dlang.org/ResearchPapers

Re: Beta 2.073.0-b1

2017-01-14 Thread Timothee Cour via Digitalmars-d-announce
> > * -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. https://issues.dlang.org/show_bug.cgi?id=17090 `dmd -transition=?` needs quoting => make it `-transition=help` On Sat, Jan 14, 2017 at

[Issue 17090] New: `dmd -transition=?` needs quoting => make it `-transition=help`

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17090 Issue ID: 17090 Summary: `dmd -transition=?` needs quoting => make it `-transition=help` Product: D Version: D2 Hardware: x86 OS: All Status: NEW

Accessing a function within an object's superclass from the outside

2017-01-14 Thread David Zhang via Digitalmars-d-learn
Hello, Say I have a class, and it overrides a function from its superclass. However, the superclass has two overloaded versions of the same function. My intent is to override only one of the functions, but the second is rendered inaccessible from outside of the class. How can I make the

[Issue 17089] New: changelog: some bug fixes are duplicated in several releases

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17089 Issue ID: 17089 Summary: changelog: some bug fixes are duplicated in several releases Product: D Version: D2 Hardware: x86 OS: All Status: NEW

[Issue 16245] the message emitted when a const function mutates members is misleading

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16245 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/141c88bcfaa1c5b79ac4d5c6dd7b278d11b5de84 fix issue 16245 - the message emitted when a const function

Re: Voting for std.experimental.checkedint

2017-01-14 Thread Jack Stouffer via Digitalmars-d
On Friday, 13 January 2017 at 12:39:38 UTC, Robert burner Schadek wrote: ... Overall, the code looks good and the design looks solid. However, I have no personal use for such a module, so I can't really comment on it's design with any authority. Abstain.

[Issue 13017] opEquals for null std.typecons.Nullable

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13017 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/5dc7aa24217bb7751200eb5b2e869c2c5feab557 Fix issue #13017: opEquals for null

[Issue 13017] opEquals for null std.typecons.Nullable

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

[Issue 16691] New debug experience: hovering over a string function argument doesn't display the string

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16691 Rainer Schuetze changed: What|Removed |Added Keywords||pull --- Comment #3

Re: switch to member

2017-01-14 Thread Meta via Digitalmars-d-learn
On Saturday, 14 January 2017 at 16:05:33 UTC, Ignacious wrote: Go join the Nazi Youth group, you OSS Sympathizer! What?

Re: Converting from DirIterator to string[] without a loop

2017-01-14 Thread Dave Chapman via Digitalmars-d-learn
On Saturday, 14 January 2017 at 01:02:38 UTC, Ali Çehreli wrote: On 01/13/2017 04:29 PM, Dave Chapman wrote: > When I use auto and print out the type of b it is something like > args.main.FilterResult!(__lambda2, DirIterator).FilterResult and for the > "if" version of > b and

[Issue 16598] [REG2.069] ICE with void ternary + finalizers

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16598 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b6ac3bae6fe21fd5c060e9f8bad99e2d28e882a6 Fix issue 16598 - Explicitly discard the exp. value in void

[Issue 16598] [REG2.069] ICE with void ternary + finalizers

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

Gtkd how to add double value to liststore

2017-01-14 Thread Erdem via Digitalmars-d-learn
I would like to pass some double value to ListStore's constructor but it doesn't allows me to do. import gtk.Main; import gtk.MainWindow; import gtk.Box; import gtk.ListStore; import gtk.TreeView; import gtk.TreeViewColumn; import gtk.TreeIter; import gtk.CellRendererText; class MyWindow:

[Issue 15282] Import osmodel.mak from dmd to detect OS and MODEL

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15282 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/tools https://github.com/dlang/tools/commit/6220f0a31d0934c0a8d87ff7650e209e29400e14 Merge pull request #179 from sohgo/import-osmodel.mak

Candidate for promoting D

2017-01-14 Thread aberba via Digitalmars-d
https://fossbytes.com/syntaxdb-programming-syntax-search-engine-coders/ Allows you to query certain demo code in a programming language. Support for D can...

Re: Android Status

2017-01-14 Thread Andre Pany via Digitalmars-d-learn
On Wednesday, 11 January 2017 at 21:13:07 UTC, Ignacious wrote: 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

Re: GSoC 2017 Ideas!

2017-01-14 Thread Jack Stouffer via Digitalmars-d
On Saturday, 14 January 2017 at 15:19:23 UTC, Craig Dillabaugh wrote: So the ideas page is up for the 2017 GSoC. Its a bit light on content. Please feel free to use this forum thread to discuss any ideas you might have for appropriate projects. https://wiki.dlang.org/GSOC_2017_Ideas Cheers

Re: Wrong enum comparisons

2017-01-14 Thread Era Scarecrow via Digitalmars-d
On Monday, 28 May 2012 at 13:47:47 UTC, Andrei Alexandrescu wrote: On 5/28/12 8:19 AM, foobar wrote: See functional languages such as ML for a correct implementation and also Java 5 Enums (similar but with an OO flavor). I've always found it amusing to watch what a kitchen sink Java

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

2017-01-14 Thread Russel Winder via Digitalmars-d
On Sat, 2017-01-14 at 17:28 +, Elronnd via Digitalmars-d wrote: > On Friday, 13 January 2017 at 11:50:25 UTC, Russel Winder wrote: > > > LDC which is packaged by both Debian and Fedora is the > > only practically usable D compiler on both these platforms. > > What's impractical about

Re: Referring to array element by descriptive name

2017-01-14 Thread Ali Çehreli via Digitalmars-d-learn
On 01/14/2017 07:11 AM, albert-j wrote: > Is it possible to refer to an array element by a descriptive name, just > for code clarity, without performance overhead? E.g. > > void aFunction(double[] arr) { > double importantElement = arr[3]; > ... use importantElement ... > } > > But the

Re: writeln and ~

2017-01-14 Thread Era Scarecrow via Digitalmars-d-learn
On Saturday, 14 January 2017 at 17:42:05 UTC, Ignacious wrote: Why can't string concatenation automatically try to convert the arguments? Is there any reason this is bad behavior? Somehow I think that everything implicitly converting to a string seems like a bad idea. Although writefln

Re: Referring to array element by descriptive name

2017-01-14 Thread Era Scarecrow via Digitalmars-d-learn
On Saturday, 14 January 2017 at 15:11:40 UTC, albert-j wrote: Is it possible to refer to an array element by a descriptive name, just for code clarity, without performance overhead? E.g. void aFunction(double[] arr) { double importantElement = arr[3]; ... use importantElement ... }

Re: How do we make dub more useful?

2017-01-14 Thread aberba via Digitalmars-d
On Saturday, 14 January 2017 at 11:02:51 UTC, Joakim wrote: There were two recent posts by a new Rust user about how he's finding that language, that got a lot of attention on their reddit. In the latter post, he mentions D as a competitor: [...] linking to local modules too. Is it

Re: Wrong enum comparisons

2017-01-14 Thread LemonBoy via Digitalmars-d
On Monday, 28 May 2012 at 21:01:43 UTC, bearophile wrote: Andrei Alexandrescu: I do agree that it's wrong to _conflate_ the enumerated value with it ordinal, I agree it is possible to fix enum. Thank you for your answers Andrei. I have filed an enhancement request:

Re: writeln and ~

2017-01-14 Thread thedeemon via Digitalmars-d-learn
On Saturday, 14 January 2017 at 17:42:05 UTC, Ignacious wrote: writeln(x ~ " ok"); Just write writeln(x, " ok"); Any number of arguments, no unnecessary allocations. Do you really need ~?

Re: GSoC 2017 Ideas!

2017-01-14 Thread Jack Stouffer via Digitalmars-d
On Saturday, 14 January 2017 at 15:54:46 UTC, Craig Dillabaugh wrote: What did you have in mind, new default language for the config file perhaps :o)? Here's a list of issues that are considered blocking by the guy who's in charge of getting D into Debian's package manager:

Re: writeln and ~

2017-01-14 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 14 January 2017 at 17:42:05 UTC, Ignacious wrote: Why can't string concatenation automatically try to convert the arguments? Is there any reason this is bad behavior? You'd be liable to write buggy stuff like appending the wrong kind of array since the auto conversion was wrong.

writeln and ~

2017-01-14 Thread Ignacious via Digitalmars-d-learn
string concatenation is weird. We can do stuff like writeln(x); where x is, say a struct and it prints fine but when we do writeln(x ~ " ok"); it fails and requires us to convert x! Why can't string concatenation automatically try to convert the arguments? Is there any reason this is bad

Re: SmartRef: The Smart Pointer In D

2017-01-14 Thread Nordlöw via Digitalmars-d-announce
On Friday, 13 January 2017 at 16:50:37 UTC, Dsby wrote: I write the ref count pointer and the scoped point in D. How do two of these differ from - https://dlang.org/phobos/std_typecons.html#.RefCounted - https://dlang.org/phobos/std_typecons.html#.Unique under

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

2017-01-14 Thread Elronnd via Digitalmars-d
On Friday, 13 January 2017 at 11:50:25 UTC, Russel Winder wrote: LDC which is packaged by both Debian and Fedora is the only practically usable D compiler on both these platforms. What's impractical about downloading and installing an rpm? For that matter, downloading the source and

Re: GSoC 2017 Ideas!

2017-01-14 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 14 January 2017 at 16:12:43 UTC, Adam D. Ruppe wrote: but sorting by rating in search I'm sorry, that was a run on sentence. The big picture goal I'd like to see is that the package manager, or even a tutorial author for some topic, just take the choice away. Sure, you can

Re: GSoC 2017 Ideas!

2017-01-14 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 14 January 2017 at 15:54:46 UTC, Craig Dillabaugh wrote: What did you have in mind, new default language for the config file perhaps :o)? The website could use some work. Things that would make me hate it less (fyi, I don't actually use dub, but I sometimes try to keep packages

Re: switch to member

2017-01-14 Thread Ignacious via Digitalmars-d-learn
On Saturday, 14 January 2017 at 11:32:10 UTC, Marc Schütz wrote: You can utilize a little-known `switch` syntax trick in combination with `foreach`. Because a `foreach` over tuples is unrolled at compile time, it works even if your fields don't have exactly the same types:

Re: switch to member

2017-01-14 Thread Ignacious via Digitalmars-d-learn
On Saturday, 14 January 2017 at 08:30:04 UTC, Meta wrote: On Saturday, 14 January 2017 at 05:29:49 UTC, Nicholas Wilson wrote: enum XX { X = Q.X.offsetof, Y = Q.Y.offsetof //ect. } and then *(cast(void*)(this) + x) = e; //if inside struct/class or *(cast(void*)(q) + x) = e; // if

Re: GSoC 2017 Ideas!

2017-01-14 Thread Craig Dillabaugh via Digitalmars-d
On Saturday, 14 January 2017 at 15:23:19 UTC, rikki cattermole wrote: On 15/01/2017 4:19 AM, Craig Dillabaugh wrote: So the ideas page is up for the 2017 GSoC. Its a bit light on content. Please feel free to use this forum thread to discuss any ideas you might have for appropriate projects.

Re: Interior pointers and fast GC

2017-01-14 Thread Rainer Schuetze via Digitalmars-d
On 14.01.2017 05:37, Chris Wright wrote: Interior pointers are a barrier to performant garbage collection. [...] * In a binary search tree, a prefix tree, or the like [...] The third strategy is O(log N) in the expected case and has similar data locality to the hashtable. Obviously, we

Re: Referring to array element by descriptive name

2017-01-14 Thread tcak via Digitalmars-d-learn
On Saturday, 14 January 2017 at 15:11:40 UTC, albert-j wrote: Is it possible to refer to an array element by a descriptive name, just for code clarity, without performance overhead? E.g. void aFunction(double[] arr) { double importantElement = arr[3]; ... use importantElement ... }

Re: GSoC 2017 Ideas!

2017-01-14 Thread rikki cattermole via Digitalmars-d
On 15/01/2017 4:19 AM, Craig Dillabaugh wrote: So the ideas page is up for the 2017 GSoC. Its a bit light on content. Please feel free to use this forum thread to discuss any ideas you might have for appropriate projects. https://wiki.dlang.org/GSOC_2017_Ideas Cheers Craig This year

Re: mysql user definde functions (UDF) in D

2017-01-14 Thread crimaniak via Digitalmars-d
On Friday, 13 January 2017 at 12:30:51 UTC, Martin Tschierschke wrote: My thought was that the main benefit of using the DB engine to do the layout rendering, would be that you do not need to convert db values to serialized data, and than convert them to values before you convert them to

GSoC 2017 Ideas!

2017-01-14 Thread Craig Dillabaugh via Digitalmars-d
So the ideas page is up for the 2017 GSoC. Its a bit light on content. Please feel free to use this forum thread to discuss any ideas you might have for appropriate projects. https://wiki.dlang.org/GSOC_2017_Ideas Cheers Craig

Referring to array element by descriptive name

2017-01-14 Thread albert-j via Digitalmars-d-learn
Is it possible to refer to an array element by a descriptive name, just for code clarity, without performance overhead? E.g. void aFunction(double[] arr) { double importantElement = arr[3]; ... use importantElement ... } But the above, I suppose, introduces an extra copy operation?

Re: SmartRef: The Smart Pointer In D

2017-01-14 Thread Chris Wright via Digitalmars-d-announce
On Sat, 14 Jan 2017 11:52:34 +, nbro wrote: > Garbage collection in D is more expensive just because of the poor > implementation, from what I've heard. If that's the case, people who > work on it should be able to improve it over time. I posted about this in general. A GC for Java, Python,

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

2017-01-14 Thread Russel Winder via Digitalmars-d
On Fri, 2017-01-13 at 18:56 -0800, Jonathan M Davis via Digitalmars-d wrote: […] > And why on earth does having to download the package from dlang.org > rather > than getting it from the official Debian or Fedora repos make dmd not > practically usable on those distros? Sure, it would be nice if

[Issue 17081] Bodies in extern cpp functions in D files are not linked

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17081 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/e3e8b23401dd1a323f1f4567cef7612f74984bf9 Merge pull request #1736 from Darredevil/issue-17081

Re: SmartRef: The Smart Pointer In D

2017-01-14 Thread nbro via Digitalmars-d-announce
On Saturday, 14 January 2017 at 04:14:11 UTC, Chris Wright wrote: It's reference counting. Reference counting is like garbage collection, but deamortized. This is better for real-time applications. However, it adds overhead on every assignment and every variable going out of scope. In D,

Re: Why not promoting team work?

2017-01-14 Thread rikki cattermole via Digitalmars-d
On 15/01/2017 12:38 AM, nbro wrote: Nobody has understood yet the goal of this post. I'm not saying that everybody should work in a team or shouldn't try to create what one needs, if there isn't a better alternative. I'm suggesting that for a few interesting, useful and possibly valuable

Re: Beta 2.073.0-b1

2017-01-14 Thread Walter Bright via Digitalmars-d-announce
On 1/7/2017 3:54 AM, Jacob Carlborg wrote: On 2017-01-07 06:02, Martin Nowak wrote: an experimental safety checks (-transition=safe/-dip1000) Is the flag to enable the new checks or revert to the previous behavior? enable

Re: switch to member

2017-01-14 Thread Ivan Kazmenko via Digitalmars-d-learn
On Saturday, 14 January 2017 at 11:32:10 UTC, Marc Schütz wrote: You can utilize a little-known `switch` syntax trick in combination with `foreach`. Because a `foreach` over tuples is unrolled at compile time, it works even if your fields don't have exactly the same types: That looks

Re: Why not promoting team work?

2017-01-14 Thread nbro via Digitalmars-d
Nobody has understood yet the goal of this post. I'm not saying that everybody should work in a team or shouldn't try to create what one needs, if there isn't a better alternative. I'm suggesting that for a few interesting, useful and possibly valuable projects, before they start (but

Re: switch to member

2017-01-14 Thread Marc Schütz via Digitalmars-d-learn
You can utilize a little-known `switch` syntax trick in combination with `foreach`. Because a `foreach` over tuples is unrolled at compile time, it works even if your fields don't have exactly the same types: -- struct Foo { int

Re: How do we make dub more useful?

2017-01-14 Thread rikki cattermole via Digitalmars-d
On 15/01/2017 12:02 AM, Joakim wrote: There were two recent posts by a new Rust user about how he's finding that language, that got a lot of attention on their reddit. In the latter post, he mentions D as a competitor: http://esr.ibiblio.org/?p=7303 Worth reading because we have similar

How do we make dub more useful?

2017-01-14 Thread Joakim via Digitalmars-d
There were two recent posts by a new Rust user about how he's finding that language, that got a lot of attention on their reddit. In the latter post, he mentions D as a competitor: http://esr.ibiblio.org/?p=7303 Worth reading because we have similar issues with the dub registry, that Sönke

Re: Gui in D: I miss this project

2017-01-14 Thread Dukc via Digitalmars-d
Which platforms do dlangui work on? It's console feature is cool, I do that with terminal.d rather than simpledisplay.d. I guess the other difference is probably Mac, I only support it there with the X11 thing installed, which Apple no longer supports. I kinda want to wait till there's

[Issue 16692] New debug experience: possible to execute pure functions during expression evaluation?

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16692 --- Comment #2 from Manu --- >_< --

[Issue 16691] New debug experience: hovering over a string function argument doesn't display the string

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16691 --- Comment #2 from Manu --- Is there a solution possible that isn't broken one way or another? --

[Issue 16692] New debug experience: possible to execute pure functions during expression evaluation?

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16692 Rainer Schuetze changed: What|Removed |Added CC||r.sagita...@gmx.de

[Issue 16691] New debug experience: hovering over a string function argument doesn't display the string

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16691 Rainer Schuetze changed: What|Removed |Added CC||r.sagita...@gmx.de

[Issue 4372] type of enumerator values reduced to base type in debug info

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4372 Rainer Schuetze changed: What|Removed |Added CC||turkey...@gmail.com

[Issue 16700] New debug experience: enums are integers

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

[Issue 16711] unittest writefln

2017-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16711 Rainer Schuetze changed: What|Removed |Added Priority|P1 |P2

Re: switch to member

2017-01-14 Thread Meta via Digitalmars-d-learn
On Saturday, 14 January 2017 at 05:29:49 UTC, Nicholas Wilson wrote: enum XX { X = Q.X.offsetof, Y = Q.Y.offsetof //ect. } and then *(cast(void*)(this) + x) = e; //if inside struct/class or *(cast(void*)(q) + x) = e; // if outside Unfortunately this loses you `@safe`ty, but as

Re: Beta 2.073.0-b1

2017-01-14 Thread Basile B. via Digitalmars-d-announce
On Saturday, 14 January 2017 at 07:51:13 UTC, Basile B. wrote: On Saturday, 7 January 2017 at 05:02:13 UTC, Martin Nowak wrote: First beta for the 2.073.0 release. _D4core4time12TickDuration25__T10opOpAssignVAyaa1_2bZ10opOpAssignMFNaNbNcNiNfS4core4time12TickDurationZS4core4time12TickDuration