Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread deadalnix via Digitalmars-d
On Monday, 13 April 2015 at 17:04:51 UTC, John Colvin wrote: Eww. auto arr = new int[3]; Also, I think he's referring to something slightly different. IMO, that shouldn't be too difficult to promote that on stack if the reference do not escape in most cases.

Re: IMAP library

2015-04-13 Thread Jens Bauer via Digitalmars-d-learn
On Monday, 13 April 2015 at 14:31:56 UTC, Johannes Pfau wrote: Am Sun, 12 Apr 2015 17:27:31 + schrieb Jens Bauer doc...@who.no: I won't say it's impossible, but it would be cumbersome processing email on an AVR. There are HTTP servers for AVR(8bit) devices, so it should be possible.

Re: DlangUI

2015-04-13 Thread John Colvin via Digitalmars-d-announce
On Monday, 13 April 2015 at 18:35:59 UTC, Vadim Lopatin wrote: On Monday, 13 April 2015 at 17:51:54 UTC, John Colvin wrote: On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote: Hello! I would like to announce my project, DlangUI library - cross-platform GUI for D.

[Issue 14402] std.conv.emplace segfaults for nested class

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14402 weaselcat r9shacklef...@gmail.com changed: What|Removed |Added CC||r9shacklef...@gmail.com

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread Johannes Pfau via Digitalmars-d
Am Mon, 13 Apr 2015 17:44:41 + schrieb Laeeth Isharc laeeth.nos...@nospam-laeeth.com: On Monday, 13 April 2015 at 16:33:06 UTC, Joakim wrote: On Sunday, 12 April 2015 at 19:03:33 UTC, Laeeth Isharc wrote: BTW - since we have linux on ARM, the following may be useful if you wish to run

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread via Digitalmars-d
On Monday, 13 April 2015 at 19:10:28 UTC, Steven Schveighoffer wrote: It would be nice if alloca could be wrapped so it could be made safe(r). string stackArray(T)(string name, string len) { import std.format : format; return q{ import core.stdc.stdlib : alloca; import

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread via Digitalmars-d
On Monday, 13 April 2015 at 17:56:57 UTC, Steven Schveighoffer wrote: No, just g++ (and i believe this is clang) -Steve Clang tracks gcc, but it isn't C++ and therefore not portable: Variable length arrays are not currently supported in Visual C++.

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread Steven Schveighoffer via Digitalmars-d
On 4/13/15 1:51 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Monday, 13 April 2015 at 17:24:38 UTC, Steven Schveighoffer wrote: Note, it's best to show when comparing C/C++ to D the C++ code and how you expect it to work too. Did you compile C++ with

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread Steven Schveighoffer via Digitalmars-d
On 4/13/15 1:34 PM, BS LD wrote: On Monday, 13 April 2015 at 17:24:38 UTC, Steven Schveighoffer wrote: D doesn't do this, you have to know the size of the stack array at compile time. You can use alloca, which will give you some runtime allocation of stack, but it can be dangerous (as noted).

[Issue 14424] [REG2.066] dmd crashes with __traits(getUnitTests)

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14424 Martin Krejcirik m...@krej.cz changed: What|Removed |Added CC||m...@krej.cz

Re: Implementing cent/ucent...

2015-04-13 Thread Kai Nacke via Digitalmars-d-announce
On Monday, 13 April 2015 at 09:00:30 UTC, Dominikus Dittes Scherkl wrote: I once had added cent/ucent to std/traits.d TypeInfo for cent/ucent is now in druntime. std.traits has cent/ucent support. I need to address some comments in std.format before it can be merged. Other modules (e.g.

Re: DlangUI

2015-04-13 Thread Vadim Lopatin via Digitalmars-d-announce
On Monday, 13 April 2015 at 17:51:54 UTC, John Colvin wrote: On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote: Hello! I would like to announce my project, DlangUI library - cross-platform GUI for D. https://github.com/buggins/dlangui License: Boost License 1.0 Native library

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread Laeeth Isharc via Digitalmars-d
On Monday, 13 April 2015 at 16:33:06 UTC, Joakim wrote: On Sunday, 12 April 2015 at 19:03:33 UTC, Laeeth Isharc wrote: BTW - since we have linux on ARM, the following may be useful if you wish to run a D application on your Android mobile device. No ADB or root required.

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread Steven Schveighoffer via Digitalmars-d
On 4/13/15 2:55 PM, bearophile wrote: Steven Schveighoffer: It's very unlikely this will make it into the language. Alloca should be good enough for this, it's not a very common usage, and supporting it is not easy. alloca is bug-prone and unsafe, and if you want to create a 2D array on the

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread Paulo Pinto via Digitalmars-d
On Monday, 13 April 2015 at 17:53:24 UTC, John Colvin wrote: On Monday, 13 April 2015 at 17:51:27 UTC, Ola Fosheim Grøstad wrote: On Monday, 13 April 2015 at 17:24:38 UTC, Steven Schveighoffer wrote: Note, it's best to show when comparing C/C++ to D the C++ code and how you expect it to work

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread BS LD via Digitalmars-d
On Monday, 13 April 2015 at 17:32:31 UTC, Dmitri Makarov wrote: On Monday, 13 April 2015 at 17:24:05 UTC, Dylan Knutson wrote: On Monday, 13 April 2015 at 17:20:04 UTC, Dmitri Makarov wrote: This should work the way you want it to: void main() { immutable size_t szArr = 3; int[szArr] arr;

Re: rant D's makefiles... /rant

2015-04-13 Thread Atila Neves via Digitalmars-d
On Monday, 13 April 2015 at 14:24:58 UTC, Dicebot wrote: I want to replace those with D scripts for a reason. Me too. Let's see if we can actually agree on how they'd end up looking, huh? ;) Atila

[Issue 14424] dmd crashes with __traits(getUnitTests)

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14424 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added CC||and...@erdani.com

Re: I came up with a new logo for the D language

2015-04-13 Thread Walter Bright via Digitalmars-d
On 4/13/2015 12:12 AM, deadalnix wrote: It does not matter if one knows this is planets or not (these aren't planet technically, but phobos and deimos, mars's moons). What does matter is that the logo is recognized and associated with D. Any logo change goes against that goal, so that's

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread bearophile via Digitalmars-d
Steven Schveighoffer: It's very unlikely this will make it into the language. Alloca should be good enough for this, it's not a very common usage, and supporting it is not easy. alloca is bug-prone and unsafe, and if you want to create a 2D array on the stack it's not good enough. They are

Re: D vs nim

2015-04-13 Thread matovitch via Digitalmars-d
Sorry if I don't make my point accurately, it's been not so long since I started learning English. I often found programming language community relates to churchs. I find D to be really present on reddit and that’s great because other people can discover that wonderful language. But blaming

Re: I came up with a new logo for the D language

2015-04-13 Thread weaselcat via Digitalmars-d
I rather liked the anthropomorphized D that used to be somewhere on the site.

Re: I came up with a new logo for the D language

2015-04-13 Thread CraigDillabaugh via Digitalmars-d
On Monday, 13 April 2015 at 20:45:29 UTC, weaselcat wrote: I rather liked the anthropomorphized D that used to be somewhere on the site. This guy : http://dlang.org/overview.html

Re: I came up with a new logo for the D language

2015-04-13 Thread H. S. Teoh via Digitalmars-d
On Mon, Apr 13, 2015 at 08:49:13PM +, CraigDillabaugh via Digitalmars-d wrote: On Monday, 13 April 2015 at 20:45:29 UTC, weaselcat wrote: I rather liked the anthropomorphized D that used to be somewhere on the site. This guy : http://dlang.org/overview.html Here's my attempt to

Re: I came up with a new logo for the D language

2015-04-13 Thread Piotrek via Digitalmars-d
On Monday, 13 April 2015 at 20:25:21 UTC, Barry Smith wrote: On Monday, 13 April 2015 at 18:56:45 UTC, Walter Bright wrote: On 4/13/2015 12:12 AM, deadalnix wrote: It does not matter if one knows this is planets or not (these aren't planet technically, but phobos and deimos, mars's moons).

Re: I came up with a new logo for the D language

2015-04-13 Thread Andrei Alexandrescu via Digitalmars-d
On 4/13/15 3:31 AM, ixid wrote: On Monday, 13 April 2015 at 07:12:29 UTC, deadalnix wrote: It does not matter if one knows this is planets or not (these aren't planet technically, but phobos and deimos, mars's moons). What does matter is that the logo is recognized and associated with D. Any

Re: Updated D TextMate bundle for D2 and TM2

2015-04-13 Thread biozic via Digitalmars-d-announce
On Monday, 13 April 2015 at 15:08:47 UTC, Jacob Carlborg wrote: On 2015-04-13 13:39, biozic wrote: Awesome! The only quirk I can see so far is that `xxx yyy(` is always parsed so that yyy is considered to be the symbol of a function, is highlighted as such, and appears in the symbol tree.

Re: rant D's makefiles... /rant

2015-04-13 Thread Andrei Alexandrescu via Digitalmars-d
On 4/13/15 7:34 AM, H. S. Teoh via Digitalmars-d wrote: On Mon, Apr 13, 2015 at 02:24:57PM +, Dicebot via Digitalmars-d wrote: I want to replace those with D scripts for a reason. Now that dmd is dependent on an existing version of dmd to build, it should be no problem to replace the

Re: rant D's makefiles... /rant

2015-04-13 Thread deadalnix via Digitalmars-d
On Monday, 13 April 2015 at 13:56:17 UTC, Russel Winder wrote: On Mon, 2015-04-13 at 13:12 +, Atila Neves via Digitalmars-d wrote: I did a `git up` on dmd, druntime and phobos, but phobos wouldn't build. Weird, but I had to fork phobos anyway, let me do that. Still wouldn't build. I tried

Re: rant D's makefiles... /rant

2015-04-13 Thread deadalnix via Digitalmars-d
On Monday, 13 April 2015 at 13:12:23 UTC, Atila Neves wrote: I did a `git up` on dmd, druntime and phobos, but phobos wouldn't build. Weird, but I had to fork phobos anyway, let me do that. Still wouldn't build. I tried `make clean`, can't remember exactly what happened but that didn't work

Re: rant D's makefiles... /rant

2015-04-13 Thread weaselcat via Digitalmars-d
On Monday, 13 April 2015 at 21:27:47 UTC, deadalnix wrote: To be fair, I've seen a lot of new build systems, but not a lot of better build system. I keep coming back to makefile, not because it is good, but because it is not worse than most of the shit I tried, and at least it is available

[Issue 14433] std.encoding does not support Central European ISO-8859-2 and CP1250 encodings

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14433 --- Comment #1 from Tomáš Chaloupka chalu...@gmail.com --- https://github.com/D-Programming-Language/phobos/pull/3173 --

Re: D Hackathon: April 25 - May 1

2015-04-13 Thread Andrei Alexandrescu via Digitalmars-d
On 4/13/15 7:10 AM, Russel Winder via Digitalmars-d wrote: I can only make the D Hackathon 2015, on 2015-04-30 and 2015-05-01. I'd love to get stuck in on something. Probably best for me to find out the state of play (!) at 2015-04-30T06:00+01:00 and find out how/where to contribute then.

[Issue 14443] New: [Reg 2.067.0] Incorrect double freeing of reference counted struct

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14443 Issue ID: 14443 Summary: [Reg 2.067.0] Incorrect double freeing of reference counted struct Product: D Version: unspecified Hardware: All OS: All

Re: D Hackathon: April 25 - May 1

2015-04-13 Thread Piotrek via Digitalmars-d
On Monday, 13 April 2015 at 20:37:02 UTC, Andrei Alexandrescu wrote: On 4/13/15 7:10 AM, Russel Winder via Digitalmars-d wrote: I can only make the D Hackathon 2015, on 2015-04-30 and 2015-05-01. I'd love to get stuck in on something. Probably best for me to find out the state of play (!) at

Re: I came up with a new logo for the D language

2015-04-13 Thread Andrei Alexandrescu via Digitalmars-d
On 4/13/15 5:49 AM, Abdulhaq wrote: Only a small fraction of those people associate D with its current logo I think that's incorrect. A simple thought: if you have graphics talents and inclination there's a TON of opportunity to apply them all over dlang.org and dconf.org. Cue my desperate

cdb reader and creator

2015-04-13 Thread ketmar via Digitalmars-d-announce
here is Cdb[1] reader and creator, in two small modules. reader: [2] creator: [3] sample: [4] it's totally untested, but i believe that is works. at least for the given sample. Public Domain, based on tinycdb[5]. [1] http://cr.yp.to/cdb.html [2]

Re: I came up with a new logo for the D language

2015-04-13 Thread Barry Smith via Digitalmars-d
On Monday, 13 April 2015 at 18:56:45 UTC, Walter Bright wrote: On 4/13/2015 12:12 AM, deadalnix wrote: It does not matter if one knows this is planets or not (these aren't planet technically, but phobos and deimos, mars's moons). What does matter is that the logo is recognized and associated

Programming languages and performance

2015-04-13 Thread Walter Bright via Digitalmars-d
https://www.reddit.com/r/programming/comments/32f4as/why_most_high_level_languages_are_slow/ Good article, discussion is a bit lame.

Re: Programming languages and performance

2015-04-13 Thread weaselcat via Digitalmars-d
On Monday, 13 April 2015 at 23:28:46 UTC, Walter Bright wrote: Good article, discussion is a bit lame. It's reddit, that's not really surprising.

Re: Programming languages and performance

2015-04-13 Thread H. S. Teoh via Digitalmars-d
On Mon, Apr 13, 2015 at 04:28:45PM -0700, Walter Bright via Digitalmars-d wrote: https://www.reddit.com/r/programming/comments/32f4as/why_most_high_level_languages_are_slow/ Good article, discussion is a bit lame. While Phobos is making good progress at being allocation-free, it still has a

Re: Programming languages and performance

2015-04-13 Thread weaselcat via Digitalmars-d
On Tuesday, 14 April 2015 at 02:12:18 UTC, Walter Bright wrote: On 4/13/2015 4:28 PM, Walter Bright wrote: https://www.reddit.com/r/programming/comments/32f4as/why_most_high_level_languages_are_slow/ Good article, discussion is a bit lame. One of the reasons I've been range-ifying Phobos is

Re: Programming languages and performance

2015-04-13 Thread Laeeth Isharc via Digitalmars-d
thanks for the links and colour, Walter and HST But at the end of the day, the programmer has to know how to write cache-efficient code. No matter how the language/compiler tries to be smart and do the Right Thing(tm), poorly-laid out data is poorly-laid out data, and you're gonna incur cache

[Issue 13460] dmd can no longer be built with DEBUG=1 on Linux/x86_64

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13460 Martin Krejcirik m...@krej.cz changed: What|Removed |Added Keywords||pull Status|NEW

[Issue 14439] aa's keys, values, byKey, byValue not usable in @safe context

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14439 Brad Roberts bra...@puremagic.com changed: What|Removed |Added Summary|aa's are essentially|aa's keys, values, byKey,

Re: I came up with a new logo for the D language

2015-04-13 Thread Walter Bright via Digitalmars-d
On 4/13/2015 1:49 PM, CraigDillabaugh wrote: On Monday, 13 April 2015 at 20:45:29 UTC, weaselcat wrote: I rather liked the anthropomorphized D that used to be somewhere on the site. This guy : http://dlang.org/overview.html I drew that on an envelope many years ago, and scanned it in. My

Re: Programming languages and performance

2015-04-13 Thread Walter Bright via Digitalmars-d
On 4/13/2015 4:28 PM, Walter Bright wrote: https://www.reddit.com/r/programming/comments/32f4as/why_most_high_level_languages_are_slow/ Good article, discussion is a bit lame. One of the reasons I've been range-ifying Phobos is not only to remove dependence on the GC, but often to eliminate

Re: IMAP library

2015-04-13 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 13 April 2015 at 18:03:12 UTC, Jens Bauer wrote: On Monday, 13 April 2015 at 14:31:56 UTC, Johannes Pfau wrote: Am Sun, 12 Apr 2015 17:27:31 + schrieb Jens Bauer doc...@who.no: I won't say it's impossible, but it would be cumbersome processing email on an AVR. There are HTTP

[Issue 14444] New: Segfault in GC.malloc

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1 Issue ID: 1 Summary: Segfault in GC.malloc Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1

Re: Programming languages and performance

2015-04-13 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 14 April 2015 at 02:44:15 UTC, Laeeth Isharc wrote: thanks for the links and colour, Walter and HST But at the end of the day, the programmer has to know how to write cache-efficient code. No matter how the language/compiler tries to be smart and do the Right Thing(tm),

Re: IMAP library

2015-04-13 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 14 April 2015 at 02:31:23 UTC, Adam D. Ruppe wrote: You might like my email.d too https://github.com/adamdruppe/arsd/blob/master/email.d It is able to help construct emails and also read an mbox format - part of that code might help your imap library too. Thanks, Adam. Was just

Re: Programming languages and performance

2015-04-13 Thread weaselcat via Digitalmars-d
On Tuesday, 14 April 2015 at 02:39:40 UTC, Walter Bright wrote: On 4/13/2015 7:23 PM, weaselcat wrote: this is essentially fusion/deforestation, correct? ?? http://en.wikipedia.org/wiki/Deforestation_(computer_science)

Re: Programming languages and performance

2015-04-13 Thread weaselcat via Digitalmars-d
On Tuesday, 14 April 2015 at 02:45:37 UTC, weaselcat wrote: On Tuesday, 14 April 2015 at 02:39:40 UTC, Walter Bright wrote: On 4/13/2015 7:23 PM, weaselcat wrote: this is essentially fusion/deforestation, correct? ?? http://en.wikipedia.org/wiki/Deforestation_(computer_science) my bad,

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread Laeeth Isharc via Digitalmars-d
On Monday, 13 April 2015 at 18:30:16 UTC, Johannes Pfau wrote: Am Mon, 13 Apr 2015 17:44:41 + schrieb Laeeth Isharc laeeth.nos...@nospam-laeeth.com: On Monday, 13 April 2015 at 16:33:06 UTC, Joakim wrote: On Sunday, 12 April 2015 at 19:03:33 UTC, Laeeth Isharc wrote: BTW - since we

Re: Mitigating the attribute proliferation - attribute inference for functions

2015-04-13 Thread Elie Morisse via Digitalmars-d
Freeing D users from the burden of writing redundant attributes that the compiler can infer would be a fantastic enhancement imo. For public functions I was thinking of a way to make inference safer: generating a .di file with the inferred attributes and auto substituted by the return type,

[Issue 12697] -inline ICE backend\el.c 802

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12697 Martin Krejcirik m...@krej.cz changed: What|Removed |Added CC||m...@krej.cz --- Comment #1

[Issue 14445] New: std.net.curl not usable in @safe code

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14445 Issue ID: 14445 Summary: std.net.curl not usable in @safe code Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1

Re: DMD 64 bit on Windows

2015-04-13 Thread Dennis Ritchie via Digitalmars-d-learn
Main article here: http://wiki.dlang.org/Installing_DMD_on_64-bit_Windows_7_%28COFF-compatible%29

[Issue 14446] New: ICE on invalid import

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14446 Issue ID: 14446 Summary: ICE on invalid import Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority: P1

DMD 64 bit on Windows

2015-04-13 Thread Etienne via Digitalmars-d-learn
I'm currently experiencing Out Of Memory errors when compiling in DMD on Windows Has anyone found a way to compile a DMD x86_64 compiler on Windows?

Re: DMD 64 bit on Windows

2015-04-13 Thread Dennis Ritchie via Digitalmars-d-learn
On Tuesday, 14 April 2015 at 01:31:27 UTC, Etienne wrote: I'm currently experiencing Out Of Memory errors when compiling in DMD on Windows Has anyone found a way to compile a DMD x86_64 compiler on Windows? For example, here:

Re: I came up with a new logo for the D language

2015-04-13 Thread Walter Bright via Digitalmars-d
On 4/13/2015 9:42 AM, bitwise wrote: The next biggest things on my wish list are actually delivering on the optional GC promise https://github.com/D-Programming-Language/phobos/pull/3187 https://github.com/D-Programming-Language/phobos/pull/3185

Re: DMD 64 bit on Windows

2015-04-13 Thread Etienne via Digitalmars-d-learn
On 4/13/2015 9:42 PM, Dennis Ritchie wrote: Main article here: http://wiki.dlang.org/Installing_DMD_on_64-bit_Windows_7_%28COFF-compatible%29 I think this might be about the -m64 option in the d compiler. I'm actually having the Out Of Memory error with the -m64 option, because DMD crashes

Re: IMAP library

2015-04-13 Thread Adam D. Ruppe via Digitalmars-d-learn
You might like my email.d too https://github.com/adamdruppe/arsd/blob/master/email.d It is able to help construct emails and also read an mbox format - part of that code might help your imap library too.

Re: Programming languages and performance

2015-04-13 Thread Walter Bright via Digitalmars-d
On 4/13/2015 7:23 PM, weaselcat wrote: this is essentially fusion/deforestation, correct? ??

[Issue 12891] add atomicFetchAdd and atomicFetchSub to core.atomic

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12891 --- Comment #12 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/c5f10192bb88255beec572bfc2e3510267ecd766 Merge pull

[Issue 14435] [D1] backport deprecated(msg)

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

[Issue 14435] [D1] backport deprecated(msg)

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14435 --- Comment #1 from github-bugzi...@puremagic.com --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/bc99930d1c92f997c849e5925f9f17455c7b2470 fix Issue 14435 - [D1]

Re: std.reflection prototype

2015-04-13 Thread bitwise via Digitalmars-d
On Mon, 13 Apr 2015 08:57:26 -0400, rcorre r...@rcorre.net wrote: For me, having a solid reflection library like this is one of the most important improvements D can make right now. At this point, I've kinda hit a wall. Generating a hierarchical/object-oriented representation of the type

[Issue 14447] adding isRandomAccessRange!S causes std.array unittests to fail to compile

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14447 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added See Also|

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread Joakim via Digitalmars-d
On Monday, 13 April 2015 at 17:44:42 UTC, Laeeth Isharc wrote: On Monday, 13 April 2015 at 16:33:06 UTC, Joakim wrote: So that is why vibed demo app doesn't work although it does compile. (The TLS kludge not yet in GDC). So if I make all globall gshared, I can do useful work today using Gdc

[Issue 14447] New: adding isRandomAccessRange!S causes std.array unittests to fail to compile

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14447 Issue ID: 14447 Summary: adding isRandomAccessRange!S causes std.array unittests to fail to compile Product: D Version: D2 Hardware: All OS: All

[Issue 8521] ICE(e2ir.c) when a function uses a template which relies on that function and -release and -inline are used

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8521 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Programming languages and performance

2015-04-13 Thread via Digitalmars-d
On Tuesday, 14 April 2015 at 02:23:08 UTC, weaselcat wrote: On Tuesday, 14 April 2015 at 02:12:18 UTC, Walter Bright wrote: On 4/13/2015 4:28 PM, Walter Bright wrote: https://www.reddit.com/r/programming/comments/32f4as/why_most_high_level_languages_are_slow/ Good article, discussion is a bit

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread John Colvin via Digitalmars-d
On Monday, 13 April 2015 at 17:51:27 UTC, Ola Fosheim Grøstad wrote: On Monday, 13 April 2015 at 17:24:38 UTC, Steven Schveighoffer wrote: Note, it's best to show when comparing C/C++ to D the C++ code and how you expect it to work too. Did you compile C++ with strict/pedantic options? ( I

Re: DlangUI

2015-04-13 Thread John Colvin via Digitalmars-d-announce
On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote: Hello! I would like to announce my project, DlangUI library - cross-platform GUI for D. https://github.com/buggins/dlangui License: Boost License 1.0 Native library written in D (not a wrapper to other GUI library) - easy to

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread via Digitalmars-d
On Monday, 13 April 2015 at 17:24:38 UTC, Steven Schveighoffer wrote: Note, it's best to show when comparing C/C++ to D the C++ code and how you expect it to work too. Did you compile C++ with strict/pedantic options? ( I don't think it should work in compliant C++ )

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread BS LD via Digitalmars-d
On Monday, 13 April 2015 at 17:02:13 UTC, CraigDillabaugh wrote: On Monday, 13 April 2015 at 16:53:55 UTC, BS LD wrote: As you know in 'C' you can create a variable-length-array using variably modified type and a run-time variable allocating a storage for it - the same way for any local

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread CraigDillabaugh via Digitalmars-d
On Monday, 13 April 2015 at 17:05:59 UTC, BS LD wrote: On Monday, 13 April 2015 at 17:02:13 UTC, CraigDillabaugh wrote: On Monday, 13 April 2015 at 16:53:55 UTC, BS LD wrote: As you know in 'C' you can create a variable-length-array using variably modified type and a run-time variable

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread via Digitalmars-d
On Monday, 13 April 2015 at 17:05:59 UTC, BS LD wrote: On Monday, 13 April 2015 at 17:02:13 UTC, CraigDillabaugh wrote: On Monday, 13 April 2015 at 16:53:55 UTC, BS LD wrote: As you know in 'C' you can create a variable-length-array using variably modified type and a run-time variable

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread CraigDillabaugh via Digitalmars-d
On Monday, 13 April 2015 at 17:08:57 UTC, CraigDillabaugh wrote: On Monday, 13 April 2015 at 17:05:59 UTC, BS LD wrote: On Monday, 13 April 2015 at 17:02:13 UTC, CraigDillabaugh wrote: On Monday, 13 April 2015 at 16:53:55 UTC, BS LD wrote: As you know in 'C' you can create a

Re: I came up with a new logo for the D language

2015-04-13 Thread deadalnix via Digitalmars-d
On Monday, 13 April 2015 at 10:31:06 UTC, ixid wrote: On Monday, 13 April 2015 at 07:12:29 UTC, deadalnix wrote: It does not matter if one knows this is planets or not (these aren't planet technically, but phobos and deimos, mars's moons). What does matter is that the logo is recognized and

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread John Colvin via Digitalmars-d
On Monday, 13 April 2015 at 17:05:59 UTC, BS LD wrote: On Monday, 13 April 2015 at 17:02:13 UTC, CraigDillabaugh wrote: On Monday, 13 April 2015 at 16:53:55 UTC, BS LD wrote: As you know in 'C' you can create a variable-length-array using variably modified type and a run-time variable

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread Dmitri Makarov via Digitalmars-d
This should work the way you want it to: void main() { immutable size_t szArr = 3; int[szArr] arr; } Regards, Dmitri On Mon, Apr 13, 2015 at 7:05 PM, BS LD via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 13 April 2015 at 17:02:13 UTC, CraigDillabaugh wrote: On

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread Dylan Knutson via Digitalmars-d
On Monday, 13 April 2015 at 17:20:04 UTC, Dmitri Makarov wrote: This should work the way you want it to: void main() { immutable size_t szArr = 3; int[szArr] arr; } Regards, Dmitri No, this isn't what VLA is. Ola Fosheim Grøstad has the right of it; he'll need to use alloca to

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread Steven Schveighoffer via Digitalmars-d
On 4/13/15 12:53 PM, BS LD wrote: As you know in 'C' you can create a variable-length-array using variably modified type and a run-time variable allocating a storage for it - the same way for any local (normally using the stack). However in 'D' I don't see such feature. Code like this fails:

Re: D vs nim

2015-04-13 Thread Timothee Cour via Digitalmars-d
I think people interested in D should take a closer look at nim and judge for yourself ; http://nim-lang.org/tut1.html is a good starting point (docs in general are very well written). I went through their tutorials and here are some first impressions: * nim is already bootstrapped

Re: I came up with a new logo for the D language

2015-04-13 Thread via Digitalmars-d
On Monday, 13 April 2015 at 15:12:18 UTC, Gary Willoughby wrote: On Monday, 13 April 2015 at 12:49:19 UTC, Abdulhaq wrote: I'd suggest a fresh look be introduced when the ref counting and GC work has been done, Believe it or not i'm not opposed to this. and personally I'd suggest just a

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread Dmitri Makarov via Digitalmars-d
On Monday, 13 April 2015 at 17:24:05 UTC, Dylan Knutson wrote: On Monday, 13 April 2015 at 17:20:04 UTC, Dmitri Makarov wrote: This should work the way you want it to: void main() { immutable size_t szArr = 3; int[szArr] arr; } Regards, Dmitri No, this isn't what VLA is. Ola Fosheim

Re: Does 'D' language supports 'C' like VLA?

2015-04-13 Thread BS LD via Digitalmars-d
On Monday, 13 April 2015 at 17:24:38 UTC, Steven Schveighoffer wrote: On 4/13/15 12:53 PM, BS LD wrote: As you know in 'C' you can create a variable-length-array using variably modified type and a run-time variable allocating a storage for it - the same way for any local (normally using the

[Issue 14442] Wrong this.outer reference in nested classes

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14442 Iain Buclaw ibuc...@gdcproject.org changed: What|Removed |Added Keywords||accepts-invalid,

[Issue 14442] Wrong this.outer reference in nested classes

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14442 --- Comment #1 from Iain Buclaw ibuc...@gdcproject.org --- Also affects the debug code written. As all you see of this parent chain is garbage values. (gdb) p this $1 = (__anonclass1 ) @0x77ed5fc0: { Object = { __vptr = 0x4890e0 vtable

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread Dicebot via Digitalmars-d
On Monday, 13 April 2015 at 06:37:34 UTC, weaselcat wrote: Is there a need for people running tests on Raspberry Pis? I'm planning on picking up the new version in a few days, was unaware D even really worked on ARM. Currently vibe.d uses Travis CI so unless it gets replaced with some

Re: I came up with a new logo for the D language

2015-04-13 Thread deadalnix via Digitalmars-d
It does not matter if one knows this is planets or not (these aren't planet technically, but phobos and deimos, mars's moons). What does matter is that the logo is recognized and associated with D. Any logo change goes against that goal, so that's probably won't happen.

[Issue 14442] Wrong this.outer reference in nested classes

2015-04-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14442 Dicebot pub...@dicebot.lv changed: What|Removed |Added CC||pub...@dicebot.lv --- Comment #2

Re: Mitigating the attribute proliferation - attribute inference for functions

2015-04-13 Thread Dicebot via Digitalmars-d
On Monday, 13 April 2015 at 05:52:47 UTC, Dicebot wrote: I think point about `export` is important. Tying definition of API to `export` instead of `public` fits much better definition of those attributes (latter only guarantees symbol access, former also ensures cross-binary availablity) and

Re: I came up with a new logo for the D language

2015-04-13 Thread Gary Willoughby via Digitalmars-d
On Monday, 13 April 2015 at 08:14:05 UTC, Abdulhaq wrote: On Sunday, 12 April 2015 at 22:02:01 UTC, Barry Smith wrote: It's simple, but clean. Somewhat similar to the old one. Hope you like it. http://s2.postimg.org/m6qcfemhl/dlang.png Email me at barry.of.sm...@gmail.com if you want the SVG

Re: Mixed closures and class.outer references

2015-04-13 Thread Iain Buclaw via Digitalmars-d
On 12 April 2015 at 21:36, Iain Buclaw ibuc...@gdcproject.org wrote: Hi, Can someone tell me what is supposed to happen in Outer.foo.Inner.bar? And how it should look in debug? --- class Outer { int x = 42; void foo() { int y = 43; class Inner {

Re: Implementing cent/ucent...

2015-04-13 Thread Dominikus Dittes Scherkl via Digitalmars-d-announce
On Tuesday, 7 April 2015 at 15:55:24 UTC, Kai Nacke wrote: Hi all! I started to work on cent/ucent support in LDC (and possible in upstream DMD). Here is the current state: Hurray! I missed that. If you like to help: - clone test - Druntime/Phobos should support cent/ucent. I already

Re: This week in D #13: =void tip, ddmd, if(arr) warn, dconf registration

2015-04-13 Thread via Digitalmars-d-announce
On Monday, 13 April 2015 at 03:37:17 UTC, Adam D. Ruppe wrote: http://arsdnet.net/this-week-in-d/apr-12.html http://www.reddit.com/r/d_language/comments/32ek17/this_week_in_d_13_void_tip_ddmd_ifarr_warn_dconf/ https://twitter.com/adamdruppe/status/587459000729473024 The example in the first

  1   2   >