[Issue 12543] Class.sizeof requires the Class' definition

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12543 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a080c8b3242c27efe07325b1c5ddfacb998d4e99 Move issue 12543 14010 test

[Issue 14010] Support mangleof property for opaque enum and struct type

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14010 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a080c8b3242c27efe07325b1c5ddfacb998d4e99 Move issue 12543 14010 test

[Issue 6766] Forward reference error for default struct/class arguments

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6766 --- Comment #6 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7d3e1fb463f71b6332512ffb094f2285e2b07825 Move issue 6766 test case to

[Issue 8698] Forward reference error with interfaces

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8698 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/fdbfd70aa1a3a991ba620a5855f9aa0b489f2905 Move issue 8698 test case to

Re: std.reflection prototype

2015-03-30 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-30 04:09, Rikki Cattermole wrote: We also need some form of RTInfo for modules. I made a pull request for that but unfortunately it hasn't been accepted yet. The reason seems to be that we need to come up with a way to do custom RTInfo without modifying druntime, that can also be

Re: std.reflection prototype

2015-03-30 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-30 09:06, Rikki Cattermole wrote: You, me and Walter should have a chat then. I could pretty easily come up with a way to add data into RTInfo. I've already come up with a way, any template with the @rtInfo UDA is treated the same way as RTInfo is now. The problem is then how to

[Issue 9023] CTFE: cannot use ~= on an empty AA.

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9023 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 9023] CTFE: cannot use ~= on an empty AA.

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9023 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1e25862da6b588794165ced4b89f72870fa660d7 fix Issue 9023 - CTFE:

Re: dsq-1: open-source software synthesizer

2015-03-30 Thread Rikki Cattermole via Digitalmars-d-announce
On 30/03/2015 7:14 p.m., ketmar wrote: On Mon, 30 Mar 2015 18:54:42 +1300, Rikki Cattermole wrote: On 30/03/2015 6:35 p.m., ketmar wrote: On Mon, 30 Mar 2015 18:23:11 +1300, Rikki Cattermole wrote: Although I'm a little concerned because dub is meant to validate and tell you conflicts in

Re: [OT]: Congrats Andrei!

2015-03-30 Thread Paulo Pinto via Digitalmars-d
On Saturday, 28 March 2015 at 01:51:39 UTC, Rikki Cattermole wrote: Lets all give it up for Andrei and his wife Sanda. Who had their second son today (Dan)! Please congratulate them both. Ok now down to business, who wants to step up in place of Andrei hmm? But seriously we should all

Re: dsq-1: open-source software synthesizer

2015-03-30 Thread ketmar via Digitalmars-d-announce
On Mon, 30 Mar 2015 19:17:35 +1300, Rikki Cattermole wrote: On 30/03/2015 7:14 p.m., ketmar wrote: On Mon, 30 Mar 2015 18:54:42 +1300, Rikki Cattermole wrote: On 30/03/2015 6:35 p.m., ketmar wrote: On Mon, 30 Mar 2015 18:23:11 +1300, Rikki Cattermole wrote: Although I'm a little concerned

They wrote the fastest parallelized BAM parser in D

2015-03-30 Thread george via Digitalmars-d
http://bioinformatics.oxfordjournals.org/content/early/2015/02/18/bioinformatics.btv098.full.pdf+html and a feature

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Jonathan M Davis via Digitalmars-d-announce
On Saturday, March 28, 2015 14:19:46 Walter Bright via Digitalmars-d-announce wrote: Thank you. I need to learn std.algorithm better. Don't we all. Part of the problem with std.algorithm is its power. It's frequently the case that you think that something isn't there when it's either there

Re: The D Language: A sweet-spot between Python and C

2015-03-30 Thread Rikki Cattermole via Digitalmars-d
On 30/03/2015 6:43 p.m., Laeeth Isharc wrote: On Monday, 30 March 2015 at 05:04:57 UTC, Rikki Cattermole wrote: On 30/03/2015 5:48 p.m., weaselcat wrote: On Monday, 30 March 2015 at 04:35:44 UTC, Rikki Cattermole wrote: On 30/03/2015 5:25 p.m., Laeeth Isharc wrote: On Monday, 30 March 2015

[Issue 12271] Undefined reference linker error with __traits(compiles) that returns false.

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12271 Kapps opantm2+db...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12531] forward reference with nested struct

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12531 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d178c0490b9db7f9b4c3cbc0a89f98cb79fa358b Move issue 12531 test case

[Issue 9514] template instance … is not an alias

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9514 --- Comment #12 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/53f165ea15c8317d8a331214d5be3d22d9aacbfc Move issue 9514 test case to

Re: dsq-1: open-source software synthesizer

2015-03-30 Thread Rikki Cattermole via Digitalmars-d-announce
On 30/03/2015 7:26 p.m., ketmar wrote: On Mon, 30 Mar 2015 19:17:35 +1300, Rikki Cattermole wrote: On 30/03/2015 7:14 p.m., ketmar wrote: On Mon, 30 Mar 2015 18:54:42 +1300, Rikki Cattermole wrote: On 30/03/2015 6:35 p.m., ketmar wrote: On Mon, 30 Mar 2015 18:23:11 +1300, Rikki Cattermole

Re: std.reflection prototype

2015-03-30 Thread Rikki Cattermole via Digitalmars-d
On 30/03/2015 7:59 p.m., Jacob Carlborg wrote: On 2015-03-30 04:09, Rikki Cattermole wrote: We also need some form of RTInfo for modules. I made a pull request for that but unfortunately it hasn't been accepted yet. The reason seems to be that we need to come up with a way to do custom

Re: readln() doesn't stop to read the input.

2015-03-30 Thread jonaspm via Digitalmars-d
I see... thanks to everyone for helping me out!

[Issue 14330] Wrong DWARF type of dynamic array variable

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14330 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/614c756180296550be45e4f3f81223f16ede8eb1 Fix Issue 14330 - Wrong

Re: dsq-1: open-source software synthesizer

2015-03-30 Thread ketmar via Digitalmars-d-announce
On Mon, 30 Mar 2015 18:54:42 +1300, Rikki Cattermole wrote: On 30/03/2015 6:35 p.m., ketmar wrote: On Mon, 30 Mar 2015 18:23:11 +1300, Rikki Cattermole wrote: Although I'm a little concerned because dub is meant to validate and tell you conflicts in licenses. O_O Hey hey hey, context

[Issue 14330] Wrong DWARF type of dynamic array variable

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14330 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12201] Crash on forward reference import within mixed in template

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12201 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e1db093d7373076379c65702c9218ed950c0ecca Move issue 12201 test case

Re: Format double in decimal notation without trailing zeros after the decimal point

2015-03-30 Thread akaDemik via Digitalmars-d-learn
Thank you. Actually, I'm doing this: format(%.4f, d).stripRight('0').stripRight('.') (not so elegant, but it works.) But I thinking that do not know much about the format string. On Sunday, 29 March 2015 at 03:29:26 UTC, Baz wrote: On Friday, 27 March 2015 at 15:02:19 UTC, akaDemik wrote:

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Paulo Pinto via Digitalmars-d-announce
On Sunday, 29 March 2015 at 22:07:40 UTC, Laeeth Isharc wrote: should we add a link to the wiki and ask author if we could mirror there ? This section on wiki looks like it could with a bit of fleshing out! http://wiki.dlang.org/Coming_From/Python I just seen what you did in the wiki,

[Issue 8609] A forward reference error with static arrays

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8609 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/34dd113d61f9fdd537a5591986732961790c07c6 Move issue 8609 test case to

[Issue 11166] Forward reference error when alias of template instance is private

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11166 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d7a356e71c7df01b54677d49d532741b2ea792e4 Move issue 11166 test case

[Issue 10015] Segfault on forward referencing a variable of templated struct

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10015 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/38996d31647a6427aa44cec77e81acd6603248f2 Move issue 10015 test case

[Issue 10101] static if conditional cannot be at global scope using mixin template

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10101 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e56015dd24c077ecc36685b8c43f12a9afc294ed Move issue 10101 test case

[Issue 12983] overload not recognized depending on order of declaration

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12983 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b96b82c277c9a6f236cd0cafe27e9fdc4a22b910 Move issue 12983 test case

[Issue 13860] template required forward reference for typeof(member)

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13860 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a8882ca72aa11f6c0a439ebb51caa69de48a8a20 Move issue 13860 test case

Re: I submitted my container library to code.dlang.org

2015-03-30 Thread Johannes Pfau via Digitalmars-d
Am Mon, 30 Mar 2015 00:32:12 +0200 schrieb Martin Nowak code+news.digitalm...@dawg.eu: On 03/29/2015 05:19 PM, w0rp wrote: 4. I ended up writing my own library hashmap, which when I tested ages ago competed with the standard associative array in terms of performance. This allows me to mark

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Gary Willoughby via Digitalmars-d-announce
On Monday, 30 March 2015 at 00:20:11 UTC, Laeeth Isharc wrote: https://www.quora.com/Why-didnt-D-language-become-mainstream-comparing-to-Golang Post this on reddit.

Re: Passing myself, a struct, as a C callback context

2015-03-30 Thread via Digitalmars-d-learn
On Monday, 30 March 2015 at 02:53:36 UTC, Paul O'Neil wrote: I'm registering a callback with some C code. The simplified story is here, but the actual code is on GitHub [1] at the end if you care. The call looks something like this. void register(void(*fp)(void*), void* context); I have a

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Paulo Pinto via Digitalmars-d-announce
On Monday, 30 March 2015 at 03:26:14 UTC, deadalnix wrote: On Sunday, 29 March 2015 at 16:32:32 UTC, Idan Arye wrote: Computer science is all about tradeoffs. I used to love Ruby, but then a Rails project got out of hand... Nowadays I use it mainly as a bash replacement - Hundredfolds more

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread via Digitalmars-d-announce
On Sunday, 29 March 2015 at 19:03:06 UTC, Laeeth Isharc wrote: On Sunday, 29 March 2015 at 15:34:35 UTC, Ola Fosheim Grøstad wrote: Actually, there is quite a large overlap if you look beyond the syntax. Dart is completely unexciting, but I also find it very productive when used with the IDE.

Re: DMD compilation speed

2015-03-30 Thread Martin Nowak via Digitalmars-d
On 03/30/2015 01:14 AM, Martin Krejcirik wrote: It seems like every DMD release makes compilation slower. This time I see 10.8s vs 7.8s on my little project. I know this is generally least of concern, and D1's lighting-fast times are long gone, but since Walter often claims D's superior

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread ketmar via Digitalmars-d-announce
On Mon, 30 Mar 2015 00:29:46 -0700, Jonathan M Davis via Digitalmars-d-announce wrote: On Saturday, March 28, 2015 14:19:46 Walter Bright via Digitalmars-d-announce wrote: Thank you. I need to learn std.algorithm better. Don't we all. Part of the problem with std.algorithm is its power.

Re: Easy bugs

2015-03-30 Thread Martin Nowak via Digitalmars-d
On 03/29/2015 10:20 PM, Jonathan wrote: Hey folks, I'm been starting to work on Debian bugs and found that most of the issues are eventually ranked from easy to hard to fix. I wondering if we can do the same (if not already). I think it would encourage new folks to pick up tasks (like

Re: [OT]: Congrats Andrei!

2015-03-30 Thread Guillaume Chatelet via Digitalmars-d
w00t \O/ congrats !

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Paulo Pinto via Digitalmars-d-announce
On Monday, 30 March 2015 at 08:53:15 UTC, Ola Fosheim Grøstad wrote: On Sunday, 29 March 2015 at 19:03:06 UTC, Laeeth Isharc wrote: On Sunday, 29 March 2015 at 15:34:35 UTC, Ola Fosheim Grøstad wrote: Actually, there is quite a large overlap if you look beyond the syntax. Dart is completely

Re: Format double in decimal notation without trailing zeros after the decimal point

2015-03-30 Thread akaDemik via Digitalmars-d-learn
Thanks for the reply. I remember about the accuracy of floating point numbers. It is encouraging that the %g can handle it. format(%.17g, 123456.789123); // == 123456.789123 And we have a flag #. As mentioned in documentation: '#' floating Always insert the decimal point and print trailing

Re: DMD compilation speed

2015-03-30 Thread Mathias Lang via Digitalmars-d
Is it only DMD compile time or DMD + ld ? ld can be very slow sometimes. 2015-03-30 1:14 GMT+02:00 Martin Krejcirik via Digitalmars-d digitalmars-d@puremagic.com: It seems like every DMD release makes compilation slower. This time I see 10.8s vs 7.8s on my little project. I know this is

Re: The D Language: A sweet-spot between Python and C

2015-03-30 Thread Laeeth Isharc via Digitalmars-d
How about we (ie you, the language expert!) jot down a few more points to later turn into a short but useful article on how to deal with the GC in practical situations? I'm by far not a language expert, especially with manual memory management. I can only discuss what I've dealt with my

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Idan Arye via Digitalmars-d-announce
On Monday, 30 March 2015 at 07:45:50 UTC, Paulo Pinto wrote: On Monday, 30 March 2015 at 03:26:14 UTC, deadalnix wrote: On Sunday, 29 March 2015 at 16:32:32 UTC, Idan Arye wrote: Computer science is all about tradeoffs. I used to love Ruby, but then a Rails project got out of hand... Nowadays

Re: I submitted my container library to code.dlang.org

2015-03-30 Thread thedeemon via Digitalmars-d
On Sunday, 29 March 2015 at 22:32:34 UTC, Martin Nowak wrote: Always use open addressing when implementing a hash table. https://github.com/D-Programming-Language/dmd/pull/4088 https://github.com/higgsjs/Higgs/pull/170 Here's a variant of a open addressing hash table (Robin Hood one) that

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Laeeth Isharc via Digitalmars-d-announce
On Monday, 30 March 2015 at 07:29:56 UTC, Jonathan M Davis wrote: On Saturday, March 28, 2015 14:19:46 Walter Bright via Digitalmars-d-announce wrote: Thank you. I need to learn std.algorithm better. Don't we all. Part of the problem with std.algorithm is its power. It's frequently the case

Re: pureity of closures

2015-03-30 Thread Dicebot via Digitalmars-d
On Sunday, 29 March 2015 at 12:29:13 UTC, Stefan Koch wrote: On Friday, 27 March 2015 at 17:47:26 UTC, H. S. Teoh wrote: What I'm more concerned about is whether the current compiler implementation may accidentally allow leakage of the pure function's internal context, which would break

Re: Windows - std.process - Setting env variables from D

2015-03-30 Thread wobbles via Digitalmars-d-learn
On Monday, 30 March 2015 at 12:54:28 UTC, Adam D. Ruppe wrote: On Monday, 30 March 2015 at 12:28:19 UTC, wobbles wrote: Any solutions that people know of? You can't from an exe, it is a limitation of the operating system (same on Linux btw, environment variable inheritance is always from

Stream - What is D actually used for?

2015-03-30 Thread Rikki Cattermole via Digitalmars-d
I was asked during my stream what is D actually used for of course I mentioned e.g. Sociomantic. But as has been said thanks to e.g. Reddit. We really need to push the use cases on the site much much more. Saying it has e.g. performance is wishy washy. We need actual metrics with a purpose.

Re: They wrote the fastest parallelized BAM parser in D

2015-03-30 Thread Paulo Pinto via Digitalmars-d
On Monday, 30 March 2015 at 06:50:19 UTC, george wrote: http://bioinformatics.oxfordjournals.org/content/early/2015/02/18/bioinformatics.btv098.full.pdf+html and a feature

Re: They wrote the fastest parallelized BAM parser in D

2015-03-30 Thread Laeeth Isharc via Digitalmars-d
On Monday, 30 March 2015 at 06:50:19 UTC, george wrote: http://bioinformatics.oxfordjournals.org/content/early/2015/02/18/bioinformatics.btv098.full.pdf+html and a feature

Re: Windows - std.process - Setting env variables from D

2015-03-30 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 30 March 2015 at 12:28:19 UTC, wobbles wrote: Any solutions that people know of? You can't from an exe, it is a limitation of the operating system (same on Linux btw, environment variable inheritance is always from parent to child, never from child to parent). The reason batch

Re: Windows - std.process - Setting env variables from D

2015-03-30 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 30 March 2015 at 12:28:19 UTC, wobbles wrote: I'm trying to set environment variables that will be visible when my D program exits. It is possible in a windows batch file using the set command (like set VAR=VALUE ) However, running this in D using: import std.process; import

Re: Specify an entire directory tree for string imports

2015-03-30 Thread Alex Parrill via Digitalmars-d-learn
On Monday, 30 March 2015 at 02:51:56 UTC, Baz wrote: It's a DMD Windows bug. It's just been reported 2 days ago: https://issues.dlang.org/show_bug.cgi?id=14349 so nothing wrong from you side. Ok, glad to see it's a bug and not a (fairly limiting) feature. I might take a stab at fixing it,

Re: Windows - std.process - Setting env variables from D

2015-03-30 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 30 March 2015 at 13:29:06 UTC, wobbles wrote: On Monday, 30 March 2015 at 12:54:28 UTC, Adam D. Ruppe wrote: On Monday, 30 March 2015 at 12:28:19 UTC, wobbles wrote: Any solutions that people know of? You can't from an exe, it is a limitation of the operating system (same on

[Issue 14349] String imports with subpaths don't work on Windows

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14349 Alex Parrill initrd...@gmail.com changed: What|Removed |Added CC||initrd...@gmail.com ---

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Laeeth Isharc via Digitalmars-d-announce
On Monday, 30 March 2015 at 08:53:15 UTC, Ola Fosheim Grøstad wrote: same theme. I pick them based on what they+ecosystem is good at, not the language by itself. So basically, you have to be best at one particular application area to do well. Go is aiming to have a good runtime for building

Windows - std.process - Setting env variables from D

2015-03-30 Thread wobbles via Digitalmars-d-learn
I'm trying to set environment variables that will be visible when my D program exits. It is possible in a windows batch file using the set command (like set VAR=VALUE ) However, running this in D using: import std.process; import std.stdio; void main(){ auto pid1 = spawnShell(`set

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread bearophile via Digitalmars-d-announce
Ola Fosheim Grøstad: So, it will just fade way in the sea of JavaScript wannabe replacements. Maybe, but Google is using it for Google Ads. Which is their primary business? Still, a bit early to say what happens next. Perhaps next some kind of blend of Typescript and Dart will become part

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread via Digitalmars-d-announce
On Monday, 30 March 2015 at 10:04:11 UTC, Paulo Pinto wrote: Very dark as Angular team decided to look for Typescript instead[0]. It isn't very dark though, they cooperate with MS to build atscript features into Typescript instead. The two dialect were always meant to be merged at some

Re: dsq-1: open-source software synthesizer

2015-03-30 Thread Vadim Lopatin via Digitalmars-d-announce
On Monday, 30 March 2015 at 06:26:00 UTC, ketmar wrote: On Mon, 30 Mar 2015 19:17:35 +1300, Rikki Cattermole wrote: On 30/03/2015 7:14 p.m., ketmar wrote: On Mon, 30 Mar 2015 18:54:42 +1300, Rikki Cattermole wrote: On 30/03/2015 6:35 p.m., ketmar wrote: On Mon, 30 Mar 2015 18:23:11 +1300,

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

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9378 zunk...@gmail.com changed: What|Removed |Added CC||zunk...@gmail.com --

Re: DIP66 1.2 (Multiple) alias this. Continuation of work.

2015-03-30 Thread Steven Schveighoffer via Digitalmars-d
On 3/29/15 1:34 PM, IgorStepanov wrote: 1. We should reject types which use opDispatch and alias this at the same time. Why? Alias this has no filter. opDispatch can use template constraints. It makes perfect sense to prefer opDispatch, unless it doesn't have a valid match, and then use

Re: D1 operator overloading in D2

2015-03-30 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/30/15 1:42 AM, ketmar wrote: it's still working. moreover, it is used in Phobos! and yet it's not documented anywhere. what i want to know is whether they will be removed for good, or brought back and properly documented? the current situation is awful: compiler has special treatment for

[Issue 14364] DMD should compile (correctly) SDC test0167.d

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14364 --- Comment #6 from Kenji Hara k.hara...@gmail.com --- (In reply to deadalnix from comment #5) Reopening. The spec is wrong. It has been discussed many time that should have LTR semantic. Can you list the links to the discussions? --

[Issue 12891] add atomicInc and atomicDec to core.atomic

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12891 Jonathan Dunlap jad...@gmail.com changed: What|Removed |Added CC||jad...@gmail.com ---

Re: Passing myself, a struct, as a C callback context

2015-03-30 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/30/15 5:12 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: On Monday, 30 March 2015 at 02:53:36 UTC, Paul O'Neil wrote: I'm registering a callback with some C code. The simplified story is here, but the actual code is on GitHub [1] at the end if you care. The call looks

Re: D1 operator overloading in D2

2015-03-30 Thread ketmar via Digitalmars-d-learn
On Mon, 30 Mar 2015 11:25:01 -0400, Steven Schveighoffer wrote: On 3/30/15 1:42 AM, ketmar wrote: it's still working. moreover, it is used in Phobos! and yet it's not documented anywhere. what i want to know is whether they will be removed for good, or brought back and properly documented?

[Issue 14371] [CTFE] Binary assignment expression makes wrong result in compile-time

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14371 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4a3c841ed8d4141af227bd47cd75db1d687983af fix Issue 14371 - [CTFE]

[Issue 14371] [CTFE] Binary assignment expression makes wrong result in compile-time

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14371 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Easy bugs

2015-03-30 Thread Jonathan via Digitalmars-d
Actually, this is a good alternative: post here if anyone knows about simple bugs that I can tackle. Although Martin, I wouldn't considering writing patches involving atomic ops to be easy/simple bugs. However, I think I know enough x86 asm to write an optimized version of atomicInc and

Re: pureity of closures

2015-03-30 Thread Meta via Digitalmars-d
On Monday, 30 March 2015 at 13:18:44 UTC, Dicebot wrote: On Sunday, 29 March 2015 at 12:29:13 UTC, Stefan Koch wrote: On Friday, 27 March 2015 at 17:47:26 UTC, H. S. Teoh wrote: What I'm more concerned about is whether the current compiler implementation may accidentally allow leakage of the

Re: pureity of closures

2015-03-30 Thread via Digitalmars-d
On Monday, 30 March 2015 at 13:18:44 UTC, Dicebot wrote: On Sunday, 29 March 2015 at 12:29:13 UTC, Stefan Koch wrote: On Friday, 27 March 2015 at 17:47:26 UTC, H. S. Teoh wrote: What I'm more concerned about is whether the current compiler implementation may accidentally allow leakage of the

Re: This Week in D #11: new release, undocumented feature exposed, FAQ answered, DConf schedule posted.

2015-03-30 Thread Steven Schveighoffer via Digitalmars-d-announce
On 3/29/15 10:35 PM, weaselcat wrote: On Monday, 30 March 2015 at 01:14:59 UTC, Adam D. Ruppe wrote: http://arsdnet.net/this-week-in-d/mar-29.html The big pieces have already been posted to Reddit, so idk if we want to post again, but if you want to, go ahead and just post the reddit link here

D as System Language

2015-03-30 Thread Columbus via Digitalmars-d
I'm not so much into the D Projects, but am familiar with the concepts of the language. I want to use D as the language of a hobby operating system. There isn't much documentation about doing so, and the question already got asked: When D is a system language, why hasn't anyone made an OS in it

[Issue 14377] compiler segfault

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14377 --- Comment #1 from Ketmar Dark ket...@ketmar.no-ip.org --- seems to be fixed in 2.067. --

Re: D as System Language

2015-03-30 Thread cym13 via Digitalmars-d
On Monday, 30 March 2015 at 15:32:25 UTC, Columbus wrote: Don't expect any repositories hosted by me about an OS in D, it's just a hobbyistic interest of me. I find it a bit sad... I mean, today not much documentation exists, such a project could be a great example. If everybody locks down

Re: D as System Language

2015-03-30 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 30 March 2015 at 15:32:25 UTC, Columbus wrote: Is there usefull documentation about using D as OS language? I wrote briefly in my book some stuff that might help get you started https://www.packtpub.com/application-development/d-cookbook Basically you can start with an empty

Re: D as System Language

2015-03-30 Thread weaselcat via Digitalmars-d
On Monday, 30 March 2015 at 15:32:25 UTC, Columbus wrote: I'm not so much into the D Projects, but am familiar with the concepts of the language. I want to use D as the language of a hobby operating system. There isn't much documentation about doing so, and the question already got asked: When D

rvalue based copy

2015-03-30 Thread matovitch via Digitalmars-d-learn
Hi, Surely I am misunderstanding something. I got something like this : struct S { void opAssign(const ref s) { //... } } S genS() { S s; //... return s; } main() { S s; s = genS(); } DMD says : ...opAssign (ref const(S) point) is not callable using

Re: Windows - std.process - Setting env variables from D

2015-03-30 Thread wobbles via Digitalmars-d-learn
On Monday, 30 March 2015 at 14:14:50 UTC, Laeeth Isharc wrote: On Monday, 30 March 2015 at 13:29:06 UTC, wobbles wrote: On Monday, 30 March 2015 at 12:54:28 UTC, Adam D. Ruppe wrote: On Monday, 30 March 2015 at 12:28:19 UTC, wobbles wrote: Any solutions that people know of? You can't from

Re: D as System Language

2015-03-30 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 30 March 2015 at 17:19:38 UTC, Columbus wrote: Also I thought I would find some documentation about creating a custom runtime and so on. Which is information I didn't get from osdev.org I think there is a page on the osdev wiki somewhere, but odds are the chapter in my book is the

Re: string concatenation with %s

2015-03-30 Thread anonymous via Digitalmars-d-learn
On Monday, 30 March 2015 at 17:18:01 UTC, Suliman wrote: same problem. I am preparing string to next SQL request: string sss = format(SELECT * FROM test.imgs WHERE src LIKE CONCAT('%', REPLACE(CAST(CURDATE()as char), -, ), '%') OR CONCAT('%', CAST(CURDATE()as char), '%')); Here's your code

Re: rvalue based copy

2015-03-30 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 30 March 2015 at 17:20:30 UTC, matovitch wrote: Yes but you know what they say does it really do a copy of the struct or is the compiler smart enougth most of the time to avoid copy. (I think it's called return value optimization). Copying isn't necessarily a problem, for small

Re: D as System Language

2015-03-30 Thread Columbus via Digitalmars-d
On Monday, 30 March 2015 at 17:22:47 UTC, Adam D. Ruppe wrote: I think there is a page on the osdev wiki somewhere, but odds are the chapter in my book is the best we have (and even there, I didn't go too deep into it, I just got interrupts working on x86) I can also offer my minimal.zip

Re: rvalue based copy

2015-03-30 Thread anonymous via Digitalmars-d-learn
On Monday, 30 March 2015 at 17:21:53 UTC, Steven Schveighoffer wrote: One solution is to overload void opAssign(ref const S s) {...} void opAssign(const S s) {...} lvalues will go into the ref version, rvalues into the non-ref. There won't be any copying of data, so you still save a postblit

Re: string concatenation with %s

2015-03-30 Thread Suliman via Digitalmars-d-learn
string sss = format(foo-, bar); It should be obvious now that you forgot to escape those double quotes. Thanks! Is there any way to stay string as is. without need of it's escaping and so on? It's seems I have seen something like it in docs, but I am not sure about it...

Re: string concatenation with %s

2015-03-30 Thread anonymous via Digitalmars-d-learn
On Monday, 30 March 2015 at 17:34:20 UTC, Suliman wrote: string sss = format(foo-, bar); It should be obvious now that you forgot to escape those double quotes. Thanks! Is there any way to stay string as is. without need of it's escaping and so on? It's seems I have seen something like it

Re: D as System Language

2015-03-30 Thread Columbus via Digitalmars-d
Many thanks for your work!!! This is the thing I searched so long. Now only the people from risc-v need to publish the privileged ISA documentation, and I can work on my weird plan. I don't know in what kind of problems I'm running into, but it is one of the only exciting things I'm interested

[Issue 14376] [REG2.064] false positive Error: one path skips field

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14376 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

Re: D as System Language

2015-03-30 Thread Paulo Pinto via Digitalmars-d
On Monday, 30 March 2015 at 15:42:46 UTC, weaselcat wrote: On Monday, 30 March 2015 at 15:32:25 UTC, Columbus wrote: I'm not so much into the D Projects, but am familiar with the concepts of the language. I want to use D as the language of a hobby operating system. There isn't much

Re: They wrote the fastest parallelized BAM parser in D

2015-03-30 Thread george via Digitalmars-d
.NET actually already has a foothold in bioinformatics, specially in user facing software and steering of reading equipments and robots. So D's needs a story over C# and F# (alongside WPF for data visualization) use cases. -- Paulo Though when it comes to open source bioinformatics

Re: Stream - What is D actually used for?

2015-03-30 Thread Israel via Digitalmars-d
On Monday, 30 March 2015 at 13:29:08 UTC, Rikki Cattermole wrote: what is D actually used for Have you ever heard that phrase, Jack of all trades, master of none? If you could pick one language that lives up to this, which one would you pick?

Re: rvalue based copy

2015-03-30 Thread matovitch via Digitalmars-d-learn
On Monday, 30 March 2015 at 17:14:27 UTC, Adam D. Ruppe wrote: On Monday, 30 March 2015 at 17:09:14 UTC, matovitch wrote: (I am gessing ref argument explitly means no rvalue) That's right. I'd first say don't use ref, just use const S and it will work and probably do what you need

Re: rvalue based copy

2015-03-30 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/30/15 1:09 PM, matovitch wrote: Hi, Surely I am misunderstanding something. I got something like this : struct S { void opAssign(const ref s) { //... } } S genS() { S s; //... return s; } main() { S s; s = genS(); } DMD says :

[Issue 12984] Cannot interpret [template] at compile time depending on order of declaration

2015-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12984 Nils nilsboss...@googlemail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Stream - What is D actually used for?

2015-03-30 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 30 March 2015 at 17:24:25 UTC, Israel wrote: Have you ever heard that phrase, Jack of all trades, master of none? If you could pick one language that lives up to this, which one would you pick? I'd say C++, you can do everything with it, it is just awkward. D actually is a

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread via Digitalmars-d-announce
On Monday, 30 March 2015 at 10:45:50 UTC, bearophile wrote: Ola Fosheim Grøstad: So, it will just fade way in the sea of JavaScript wannabe replacements. Maybe, but Google is using it for Google Ads. Which is their primary business? Still, a bit early to say what happens next. Perhaps

  1   2   3   >