Re: I'm getting an unhelpful linker error, what've I got wrong?

2015-10-28 Thread Kagamin via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 11:48:27 UTC, pineapple wrote: There's also a writebuffer method in the interface with this signature, though: streamint writebuffer(T)(in T* buffer, in streamint count); Interface can't have templated virtual instance methods.

Re: Safe reference counting cannot be implemented as a library

2015-10-28 Thread David Nadlinger via Digitalmars-d
On Wednesday, 28 October 2015 at 11:21:17 UTC, Manu wrote: RC is okay-ish in C++11 (with rval references), although it could be much better, for instance, the type mangling/wrapping induced by this sort of library solution always leads to awkward situations, ie, 'this' pointer in a method is

Re: Safe reference counting cannot be implemented as a library

2015-10-28 Thread Manu via Digitalmars-d
On 28 October 2015 at 11:13, Walter Bright via Digitalmars-d wrote: > On 10/27/2015 11:10 AM, deadalnix wrote: >> >> I've made the claim that we should implement reference counting as a >> library >> many time, so I think I should explicit my position. Indeed, RC

Re: Automatic method overriding in sub-classes

2015-10-28 Thread Idan Arye via Digitalmars-d
On Tuesday, 27 October 2015 at 23:15:39 UTC, Tofu Ninja wrote: An alternative solution could be that if you provide a header to a class and don't include the auto override body, then the auto override functionality is removed and the method is treated as a regular method from that point

Re: Fastest JSON parser in the world is a D project

2015-10-28 Thread wobbles via Digitalmars-d-announce
On Wednesday, 28 October 2015 at 11:26:59 UTC, wobbles wrote: So yes - opDispatch is cool but should be used VERY sparingly. I just had a thought, I could check if dataName is in [__traits(allMembers ... )]. That would at least ensure I'm referencing something that exists. Maybe that'd be

Re: I'm getting an unhelpful linker error, what've I got wrong?

2015-10-28 Thread pineapple via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 11:40:14 UTC, tcak wrote: The "writebuffer" is defined to take an array as parameter. Yet, you are passing a pointer and a length to it. Instead, pass the parameter "str" to it directly. Also, you do not have to put "!char" to there. Compiler will solve it out

Re: I'm getting an unhelpful linker error, what've I got wrong?

2015-10-28 Thread tcak via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 11:48:27 UTC, pineapple wrote: On Wednesday, 28 October 2015 at 11:40:14 UTC, tcak wrote: The "writebuffer" is defined to take an array as parameter. Yet, you are passing a pointer and a length to it. Instead, pass the parameter "str" to it directly. Also, you

Re: I'm getting an unhelpful linker error, what've I got wrong?

2015-10-28 Thread pineapple via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 12:06:14 UTC, Kagamin wrote: On Wednesday, 28 October 2015 at 11:48:27 UTC, pineapple wrote: There's also a writebuffer method in the interface with this signature, though: streamint writebuffer(T)(in T* buffer, in streamint count); Interface can't have

Re: Safe reference counting cannot be implemented as a library

2015-10-28 Thread Manu via Digitalmars-d
On 28 October 2015 at 21:29, David Nadlinger via Digitalmars-d wrote: > On Wednesday, 28 October 2015 at 11:21:17 UTC, Manu wrote: >> >> RC is okay-ish in C++11 (with rval references), although it could be >> much better, for instance, the type mangling/wrapping

I'm getting an unhelpful linker error, what've I got wrong?

2015-10-28 Thread pineapple via Digitalmars-d-learn
When I attempt to compile my code I get the same linker error with both dmd and ldc2. I know where the problematic code is, as I don't get the error when I comment out lines 102 through 107, but I don't understand why it's bad. I must have some misconceptions about how templates work? Is there

What's up with staticIota?

2015-10-28 Thread rcorre via Digitalmars-d
Its not uncommon that I need a compile-time list that counts from 0..n. It seems like the only 'standard' way to do this is `std.typecons.staticIota`, which is undocumented and has package level access. Looking through the archives I've seen 3 suggestions: 1. Expose staticIota as-is. 2.

Re: Fastest JSON parser in the world is a D project

2015-10-28 Thread wobbles via Digitalmars-d-announce
On Tuesday, 27 October 2015 at 14:00:07 UTC, Martin Nowak wrote: On Tuesday, 27 October 2015 at 13:14:36 UTC, wobbles wrote: How can `coordinates` member be known at compile-time when the input argument is a run-time string? I suspect through the opDispatch operator overload.

Re: We need to have a way to say "convert this nested function into a struct"

2015-10-28 Thread John Colvin via Digitalmars-d
On Saturday, 6 June 2015 at 12:49:37 UTC, Atila Neves wrote: On Saturday, 6 June 2015 at 06:59:26 UTC, Jonathan M Davis wrote: On Saturday, 6 June 2015 at 06:16:17 UTC, Andrei Alexandrescu wrote: Nested functions that allocate their environment dynamically can be quite useful. However,

Re: I'm getting an unhelpful linker error, what've I got wrong?

2015-10-28 Thread tcak via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 11:11:01 UTC, pineapple wrote: When I attempt to compile my code I get the same linker error with both dmd and ldc2. I know where the problematic code is, as I don't get the error when I comment out lines 102 through 107, but I don't understand why it's bad. I

[Issue 15235] inline asm: silent ICE (segfault) in asm_add_exp()

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15235 --- Comment #1 from anoneu...@gmail.com --- After some more thorough testing: void main() { asm { mov [+], EAX; // syntax error mov [-], EAX; // syntax error mov [*], EAX; // segfault mov [], EAX; // segfault

Re: Safe reference counting cannot be implemented as a library

2015-10-28 Thread Andrei Alexandrescu via Digitalmars-d
On 10/28/2015 04:13 AM, Jacob Carlborg wrote: On 2015-10-27 22:19, Andrei Alexandrescu wrote: That doesn't seem to be the case at all. -- Andrei I'm not a C++ or Rust expert. But I think that in Rust and with the new C++ guide lines the idea is to use reference counting pointers only for

Re: Lifetime study group

2015-10-28 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 28 October 2015 at 14:53:01 UTC, Andrei Alexandrescu wrote: On 10/27/2015 10:50 PM, Vladimir Panteleev wrote: On Tuesday, 27 October 2015 at 21:12:24 UTC, Andrei Alexandrescu wrote: Thanks to all interested! Brad Roberts created a mailing list. Please subscribe here:

How coding bootloader with (Asm+Dlang)?

2015-10-28 Thread guodemone via Digitalmars-d-learn
I would like to use (Dlang + nasm) to write bootloader, how to write?

Re: Playing SIMD

2015-10-28 Thread Marco Leise via Digitalmars-d
Am Mon, 26 Oct 2015 14:04:18 +0100 schrieb Iain Buclaw via Digitalmars-d : > > Yeah but PMOVMSKB not implemented in core.simd. > > > > Don't use core.simd, push for getting std.simd in, then leverage the > generics exposed through that module. Yeah, but PMOVMSKB is

Re: Fastest JSON parser in the world is a D project

2015-10-28 Thread Marco Leise via Digitalmars-d-announce
Am Tue, 27 Oct 2015 14:00:06 + schrieb Martin Nowak : > On Tuesday, 27 October 2015 at 13:14:36 UTC, wobbles wrote: > >> How can `coordinates` member be known at compile-time when the > >> input argument is a run-time string? > > > > I suspect through the opDispatch operator

Re: DMD is slow for matrix maths?

2015-10-28 Thread Marco Leise via Digitalmars-d
Am Mon, 26 Oct 2015 11:37:16 + schrieb Etienne Cimon : > On Monday, 26 October 2015 at 04:48:09 UTC, H. S. Teoh wrote: > > On Mon, Oct 26, 2015 at 02:37:16AM +, Etienne Cimon via > > Digitalmars-d wrote: > > > > If you must use DMD, I recommend filing an enhancement

Re: "Programming in D" ebook is available for purchase

2015-10-28 Thread Ali Çehreli via Digitalmars-d-announce
On 10/28/2015 02:32 AM, Joakim wrote: > Do you have a bitcoin address I can use instead? Sorry, I am way behind on that topic. :) Ali

Re: Playing SIMD

2015-10-28 Thread Andrei Alexandrescu via Digitalmars-d
On 10/28/2015 10:27 AM, Marco Leise wrote: Am Mon, 26 Oct 2015 14:04:18 +0100 schrieb Iain Buclaw via Digitalmars-d : Yeah but PMOVMSKB not implemented in core.simd. Don't use core.simd, push for getting std.simd in, then leverage the generics exposed through

Re: Fastest JSON parser in the world is a D project

2015-10-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 27 October 2015 at 14:00:07 UTC, Martin Nowak wrote: Yikes, this is such an anti-pattern. https://github.com/rejectedsoftware/vibe.d/issues/634 Every time I use opDispatch, I add an if(name != "popFront") constraint, at least (unless it is supposed to be forwarding). It helps

Re: Lifetime study group

2015-10-28 Thread Andrei Alexandrescu via Digitalmars-d
On 10/27/2015 10:50 PM, Vladimir Panteleev wrote: On Tuesday, 27 October 2015 at 21:12:24 UTC, Andrei Alexandrescu wrote: Thanks to all interested! Brad Roberts created a mailing list. Please subscribe here: http://lists.puremagic.com/cgi-bin/mailman/listinfo/dlang-study That will be a list

Short film about our visit in Brasov

2015-10-28 Thread Andrei Alexandrescu via Digitalmars-d-announce
https://www.youtube.com/watch?v=s4EvygDNB0Q=youtu.be Andrei

Re: Automatic method overriding in sub-classes

2015-10-28 Thread bitwise via Digitalmars-d
On Tuesday, 27 October 2015 at 23:15:39 UTC, Tofu Ninja wrote: On Tuesday, 27 October 2015 at 22:23:15 UTC, bitwise wrote: [...] -H also keeps the body of template functions so I would assume it would treat auto overrides the same. Well.. It's not going to just work. Dmd will surely have

Re: Fixing spurious "statement is not reachable" in template code

2015-10-28 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, 28 October 2015 at 10:03:44 UTC, Daniel Murphy wrote: On 28/10/2015 4:02 PM, tsbockman wrote: (But not all control flow statements have static equivalents, so this solution can only be applied to some code. Even if we had `static switch`, `static foreach`, `static goto`, etc., I

[Issue 15251] [REG2.069.0-rc1] std.datetime bug with -inline

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

[Issue 15251] [REG2.069.0-rc1] std.datetime bug with -inline

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15251 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5ea992ff02f216438341f17835560d3d818124be fix Issue 15251 -

Re: [OT] LLVM Community Code of Conduct

2015-10-28 Thread Walter Bright via Digitalmars-d
On 10/13/2015 12:13 PM, Walter Bright wrote: On 10/13/2015 6:36 AM, Daniel Kozak wrote: lists.llvm.org/pipermail/llvm-dev/2015-October/091218.html Maybe we could have something similar in D community No. People who need to be told what decent behavior is won't pay attention to such a

[Issue 15253] New: [REG2.069.0-rc1] inliner prevent compilation

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15253 Issue ID: 15253 Summary: [REG2.069.0-rc1] inliner prevent compilation Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression

Re: Safe reference counting cannot be implemented as a library

2015-10-28 Thread Paulo Pinto via Digitalmars-d
On Wednesday, 28 October 2015 at 03:55:25 UTC, deadalnix wrote: On Wednesday, 28 October 2015 at 01:13:16 UTC, Walter Bright wrote: It's not just safety. If the compiler knows that reference counting is going on, it can potentially elide a lot of the overhead. If it is faced with an

Re: Slack discussion group?

2015-10-28 Thread Andrew Benton via Digitalmars-d
On Tuesday, 27 October 2015 at 18:16:51 UTC, Jack Stouffer wrote: On Tuesday, 27 October 2015 at 17:49:51 UTC, Andrew Benton wrote: Slack seems like it is becoming more and more popular. Have we considered setting up a Slack chat group? Slack is designed for small teams, and many programming

Re: Release Candidate D 2.069.0-rc1

2015-10-28 Thread sdfghj via Digitalmars-d-announce
On Monday, 26 October 2015 at 23:30:56 UTC, Martin Nowak wrote: First and hopefully only release candidate for the 2.069.0. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.0.html A list of fixes over 2.069.0-b2

Re: Slack discussion group?

2015-10-28 Thread Dejan Lekic via Digitalmars-d
Just imagine a Slack channel with 100+ people where every second someone posts a code snippet, a picture, etc. :) Brr, I had that picture in my hear for few seconds and it looked scary. No, Slack is not for large communities (IRC), but for small, private teams.

LDC 0.16.1 has been released!

2015-10-28 Thread Kai Nacke via Digitalmars-d-announce
Hi everyone, LDC 0.16.1, the LLVM-based D compiler, is available for download! This release is based on the 2.067.1 frontend and standard library and supports LLVM 3.1-3.7 (OS X: no support for 3.3). Don't miss to check if your preferred system is supported by this release. We also have a

Re: Safe reference counting cannot be implemented as a library

2015-10-28 Thread Jacob Carlborg via Digitalmars-d
On 2015-10-27 22:50, Andrei Alexandrescu wrote: You can safely ignore the C++ part, the views are unsafe. I'd appreciate if you backed up your claim on Rust. -- Andrei Rust is unsafe as well, when you interface with unsafe code. -- /Jacob Carlborg

Re: Make all new symbols go through std.experimental?

2015-10-28 Thread Nordlöw via Digitalmars-d
On Wednesday, 28 October 2015 at 00:28:51 UTC, Andrei Alexandrescu wrote: I was looking at https://github.com/D-Programming-Language/phobos/pull/3765 and whilst it's a sensible addition, I'm thinking we'd want to pass it and all other library additions through std.experimental first. So we'd

"Programming in D" ebook is available for purchase

2015-10-28 Thread Ali Çehreli via Digitalmars-d-announce
Although the book will always be free[1], many of you have expressed a need to pay without having to buy the paper version. The ebook versions are now available at Gumroad: https://gum.co/PinD The price is the very affordable $0+ ;) and you can pay with credit card number or through

Re: Safe reference counting cannot be implemented as a library

2015-10-28 Thread Jacob Carlborg via Digitalmars-d
On 2015-10-28 07:07, Paulo Pinto wrote: However their exceptions work in a more RC friendly way. Swift doesn't support exceptions. And in Objective-C exceptions are like Errors in D. They should not be caught and the program should terminate. The error handling support that was added in

[Issue 15253] [REG2.069.0-rc1] inliner prevent compilation

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15253 Rainer Schuetze changed: What|Removed |Added CC||r.sagita...@gmx.de

Re: Safe reference counting cannot be implemented as a library

2015-10-28 Thread Jacob Carlborg via Digitalmars-d
On 2015-10-27 22:19, Andrei Alexandrescu wrote: That doesn't seem to be the case at all. -- Andrei I'm not a C++ or Rust expert. But I think that in Rust and with the new C++ guide lines the idea is to use reference counting pointers only for owning resources. If you want to pass the data

[Issue 15168] [REG2.068.0] std.variant.Algebraic interacts badly with string alias this sub-types

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15168 Martin Nowak changed: What|Removed |Added Keywords||pull --- Comment #6 from

Re: Make all new symbols go through std.experimental?

2015-10-28 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 28 October 2015 at 00:28:51 UTC, Andrei Alexandrescu wrote: What say you? -1 To add to Robert's arguments: A: Hey, I'm really missing this function from Phobos, I think it would be a great addition. B: OK, here's a pull request which implements it. A: Great, it's merged!

Re: Fixing spurious "statement is not reachable" in template code

2015-10-28 Thread Daniel Murphy via Digitalmars-d
On 28/10/2015 4:29 PM, tsbockman wrote: I would say none, since *the template* contains no unreachable code, and the compiler can easily trim unreachable code from any *instantiation* which needs it, without bothering me about it. If it's unreachable or not depends on what the template is

Re: Fixing spurious "statement is not reachable" in template code

2015-10-28 Thread Daniel Murphy via Digitalmars-d
On 28/10/2015 4:02 PM, tsbockman wrote: (But not all control flow statements have static equivalents, so this solution can only be applied to some code. Even if we had `static switch`, `static foreach`, `static goto`, etc., I doubt that forcing the user to segregate all compile-time logic from

Re: Make all new symbols go through std.experimental?

2015-10-28 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 28 October 2015 at 09:55:10 UTC, Vladimir Panteleev wrote: A: Great, it's merged! When can I start using it? B: I don't know, maybe in a year or so? To expand on this a bit: The obvious counter-argument is "why not just import std.experimental"? Well, this is not really a

Re: D bindings for Bonjour

2015-10-28 Thread Vincent R via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 16:09:02 UTC, Cauterite wrote: On Wednesday, 28 October 2015 at 16:04:52 UTC, Vincent R wrote: [...] enum kDNSServiceOutputFlags = (kDNSServiceFlagsValidate | kDNSServiceFlagsValidateOptional | kDNSServiceFlagsMoreComing | kDNSServiceFlagsAdd |

Re: D bindings for Bonjour

2015-10-28 Thread Daniel Kozák via Digitalmars-d-learn
V Wed, 28 Oct 2015 16:36:32 + Vincent R via Digitalmars-d-learn napsáno: > On Wednesday, 28 October 2015 at 16:12:08 UTC, Vincent R wrote: > > On Wednesday, 28 October 2015 at 16:09:02 UTC, Cauterite wrote: > >> On Wednesday, 28 October 2015 at 16:04:52

Re: Fastest JSON parser in the world is a D project

2015-10-28 Thread Meta via Digitalmars-d-announce
On Wednesday, 28 October 2015 at 13:56:27 UTC, Adam D. Ruppe wrote: On Tuesday, 27 October 2015 at 14:00:07 UTC, Martin Nowak wrote: Yikes, this is such an anti-pattern. https://github.com/rejectedsoftware/vibe.d/issues/634 Every time I use opDispatch, I add an if(name != "popFront")

Re: D bindings for Bonjour

2015-10-28 Thread Cauterite via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 16:04:52 UTC, Vincent R wrote: Hi, I am starting my first project in D and I would like to do a Bonjour(Zeroconf) browser app. My first task is to write a binding to the dns_sd library but I have an issue with the following macro: #define

D bindings for Bonjour

2015-10-28 Thread Vincent R via Digitalmars-d-learn
Hi, I am starting my first project in D and I would like to do a Bonjour(Zeroconf) browser app. My first task is to write a binding to the dns_sd library but I have an issue with the following macro: #define kDNSServiceOutputFlags (kDNSServiceFlagsValidate | kDNSServiceFlagsValidateOptional

Re: I'm getting an unhelpful linker error, what've I got wrong?

2015-10-28 Thread Kagamin via Digitalmars-d-learn
streamint writebuffer(in ubyte[] buffer); final streamint writebuffer(T)(in T* buffer, in streamint count){ return this.writebuffer(cast(ubyte[])buffer[0..count]); }

Re: D bindings for Bonjour

2015-10-28 Thread Vincent R via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 16:12:08 UTC, Vincent R wrote: On Wednesday, 28 October 2015 at 16:09:02 UTC, Cauterite wrote: On Wednesday, 28 October 2015 at 16:04:52 UTC, Vincent R wrote: [...] enum kDNSServiceOutputFlags = (kDNSServiceFlagsValidate | kDNSServiceFlagsValidateOptional |

Re: [OT] LLVM Community Code of Conduct

2015-10-28 Thread deadalnix via Digitalmars-d
On Wednesday, 28 October 2015 at 09:12:55 UTC, Jakob Bornecrantz wrote: You are not in good company tho. Even the page you link to says nobody else could or should say stuff like that. Quick, call the thought police ! And attitudes like that will only disurage people from trying to improve

Re: "Programming in D" ebook is available for purchase

2015-10-28 Thread Ali Çehreli via Digitalmars-d-announce
On 10/28/2015 11:29 AM, Andrei Alexandrescu wrote: On 10/28/2015 10:50 AM, Andrei Alexandrescu wrote: On 10/28/2015 04:01 AM, Ali Çehreli wrote: Although the book will always be free[1], many of you have expressed a need to pay without having to buy the paper version. The ebook versions are

Re: D bindings for Bonjour

2015-10-28 Thread Vincent R via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 16:53:15 UTC, Daniel Kozák wrote: V Wed, 28 Oct 2015 16:36:32 + Vincent R via Digitalmars-d-learn napsáno: On Wednesday, 28 October 2015 at 16:12:08 UTC, Vincent R wrote: > On Wednesday, 28 October 2015 at 16:09:02 UTC,

[Issue 15235] inline asm: silent ICE (segfault) in asm_add_exp()

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15235 anoneu...@gmail.com changed: What|Removed |Added Assignee|nob...@puremagic.com|anoneu...@gmail.com --

Re: How coding bootloader with (Asm+Dlang)?

2015-10-28 Thread tcak via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 15:23:11 UTC, guodemone wrote: I would like to use (Dlang + nasm) to write bootloader, how to write? Start from here: http://wiki.osdev.org/D_Bare_Bones I would suggest you to start by learning to do it with C first though. There are too many documents

Re: Get type from string

2015-10-28 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 17:38:45 UTC, DarkRiDDeR wrote: string name = "Bob"; __traits(getMember, Types.getType(name), "print")(); How can you implement "Types.getType(name)"? I do not know in advance what can be the class names. You don't. __traits works at compile time, the string

Re: Lifetime study group

2015-10-28 Thread Dejan Lekic via Digitalmars-d
I suggest we do not try to reinvent the wheel. Simply take a look how existing, large communities do this kind of work. Example: https://jcp.org/en/jsr/all For each large feature (a good example in the D case would be pattern matching, allocators, reference counting, additional garbage

Re: [OT] LLVM Community Code of Conduct

2015-10-28 Thread rsw0x via Digitalmars-d
On Wednesday, 28 October 2015 at 17:38:49 UTC, David DeWitt wrote: On Wednesday, 28 October 2015 at 17:13:27 UTC, deadalnix wrote: On Wednesday, 28 October 2015 at 09:12:55 UTC, Jakob Bornecrantz wrote: You are not in good company tho. Even the page you link to says nobody else could or

National charsets support

2015-10-28 Thread Nikolay via Digitalmars-d-announce
I am quite happy with UTF support in phobos, but support for national codepages is very limited in phobos. Also it is not conform with ranges. So I decide share my project for supporting national charsets: https://bitbucket.org/sibnick/national-encoding.git Sample code: import

Re: DConf 2016, Berlin: Call for Submissions is now open!

2015-10-28 Thread ponce via Digitalmars-d-announce
On Monday, 26 October 2015 at 10:12:30 UTC, ponce wrote: On Sunday, 25 October 2015 at 23:59:16 UTC, Andrei Alexandrescu wrote: Yes please! Forgot to mention that. Many thanks!! -- Andrei Added to my TODO list :) So I've made a logo here:

Re: Fixing spurious "statement is not reachable" in template code

2015-10-28 Thread tsbockman via Digitalmars-d
On Wednesday, 28 October 2015 at 10:02:01 UTC, Daniel Murphy wrote: If it's unreachable or not depends on what the template is instantiated with, there is no clear concept of unreachable code without knowing the template parameters. If a statement in a template is reachable in at least one

Re: DConf 2016, Berlin: Call for Submissions is now open!

2015-10-28 Thread nazriel via Digitalmars-d-announce
On Friday, 23 October 2015 at 16:37:20 UTC, Andrei Alexandrescu wrote: Please join us at DConf 2016, the conference of the D programming language in Berlin, Germany, May 4-6 2016. [...] Awesome that it is happening in Europe! See ya soon then! :)

Re: "Programming in D" ebook is available for purchase

2015-10-28 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 10/28/2015 10:50 AM, Andrei Alexandrescu wrote: On 10/28/2015 04:01 AM, Ali Çehreli wrote: Although the book will always be free[1], many of you have expressed a need to pay without having to buy the paper version. The ebook versions are now available at Gumroad: https://gum.co/PinD

Re: "Programming in D" ebook is available for purchase

2015-10-28 Thread cym13 via Digitalmars-d-announce
On Wednesday, 28 October 2015 at 08:01:29 UTC, Ali Çehreli wrote: Although the book will always be free[1], many of you have expressed a need to pay without having to buy the paper version. It's a bit late now but I like what Cory Doctorow (a writter who publishes mainly books under Creative

Re: D bindings for Bonjour

2015-10-28 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 17:07:32 UTC, Vincent R wrote: Sorry to ask so much question but how do you declare different calling conventions like the following macro: This specific case is common enough to be built into the language: use `extern(System)` instead of Windows or C and the

Re: [OT] LLVM Community Code of Conduct

2015-10-28 Thread David DeWitt via Digitalmars-d
On Wednesday, 28 October 2015 at 17:13:27 UTC, deadalnix wrote: On Wednesday, 28 October 2015 at 09:12:55 UTC, Jakob Bornecrantz wrote: You are not in good company tho. Even the page you link to says nobody else could or should say stuff like that. Quick, call the thought police ! And

Re: [OT] LLVM Community Code of Conduct

2015-10-28 Thread Walter Bright via Digitalmars-d
On 10/28/2015 2:12 AM, Jakob Bornecrantz wrote: You are not in good company tho. Even the page you link to says nobody else could or should say stuff like that. And attitudes like that will only disurage people from trying to improve this community.

Get type from string

2015-10-28 Thread DarkRiDDeR via Digitalmars-d-learn
Example: class Bob { static void print () { write("str"); } } string name = "Bob"; __traits(getMember, Types.getType(name), "print")(); How can you implement "Types.getType(name)"? I do not know in advance what can be the class names.

[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624 anoneu...@gmail.com changed: What|Removed |Added Keywords||iasm CC|

Re: Get type from string

2015-10-28 Thread DarkRiDDeR via Digitalmars-d-learn
Thank you! Is it possible to call a method from a string at run time?

Re: DConf 2016, Berlin: Call for Submissions is now open!

2015-10-28 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 10/28/2015 01:00 PM, ponce wrote: On Monday, 26 October 2015 at 10:12:30 UTC, ponce wrote: On Sunday, 25 October 2015 at 23:59:16 UTC, Andrei Alexandrescu wrote: Yes please! Forgot to mention that. Many thanks!! -- Andrei Added to my TODO list :) So I've made a logo here:

Re: Automatic method overriding in sub-classes

2015-10-28 Thread Shammah Chancellor via Digitalmars-d
On Monday, 26 October 2015 at 23:25:49 UTC, Tofu Ninja wrote: So we have TemplateThisParameters methods which are cool but have some drawbacks. They are templates so they are implicitly non-virtual and are called based on the type of the reference. It would be very nice to be able to auto

Re: DConf 2016, Berlin: Call for Submissions is now open!

2015-10-28 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 10/28/2015 02:57 PM, ponce wrote: On Wednesday, 28 October 2015 at 18:10:04 UTC, Andrei Alexandrescu wrote: What needs to be written next to it? Looks interesting but I fail to see "DConf". The text should read "DConf 2016/May 4-6/Berlin, Germany" -- Andrei That would give something

Re: Get type from string

2015-10-28 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 17:57:16 UTC, DarkRiDDeR wrote: Thank you! Is it possible to call a method from a string at run time? Yes, though you have to prepare code to do it. Again, I'd try to make it work on interfaces on some level. The free sample chapter of my book

Re: "Programming in D" ebook is available for purchase

2015-10-28 Thread Ali Çehreli via Digitalmars-d-announce
On 10/28/2015 11:46 AM, cym13 wrote: On Wednesday, 28 October 2015 at 08:01:29 UTC, Ali Çehreli wrote: Although the book will always be free[1], many of you have expressed a need to pay without having to buy the paper version. It's a bit late now but I like what Cory Doctorow (a writter who

2music

2015-10-28 Thread captaindet via Digitalmars-d-announce
more BJM related http://www.amazon.com/Declare-Nothing-Parks-Anton-Newcombe/dp/B00WZXX2NC

Re: DConf 2016, Berlin: Call for Submissions is now open!

2015-10-28 Thread ponce via Digitalmars-d-announce
On Wednesday, 28 October 2015 at 19:24:13 UTC, Andrei Alexandrescu wrote: On 10/28/2015 02:57 PM, ponce wrote: On Wednesday, 28 October 2015 at 18:10:04 UTC, Andrei Alexandrescu wrote: What needs to be written next to it? Looks interesting but I fail to see "DConf". The text should read

Re: Automatic method overriding in sub-classes

2015-10-28 Thread Tofu Ninja via Digitalmars-d
On Wednesday, 28 October 2015 at 15:13:40 UTC, bitwise wrote: [...] I have to disagree with this. A function's meaning should not change because it's definition is removed. I suppose you are right. [...] A.foo() or B.foo() seems to work instead of super.super.foo() or super.foo()

Re: DConf 2016, Berlin: Call for Submissions is now open!

2015-10-28 Thread ponce via Digitalmars-d-announce
On Wednesday, 28 October 2015 at 18:10:04 UTC, Andrei Alexandrescu wrote: What needs to be written next to it? Looks interesting but I fail to see "DConf". The text should read "DConf 2016/May 4-6/Berlin, Germany" -- Andrei That would give something like:

Re: 2music

2015-10-28 Thread captaindet via Digitalmars-d-announce
sorry, emailer(me) malfunction. pls ignore

Re: Lifetime study group

2015-10-28 Thread Andrei Alexandrescu via Digitalmars-d
On 10/28/2015 01:41 PM, Dejan Lekic wrote: I suggest we do not try to reinvent the wheel. Simply take a look how existing, large communities do this kind of work. Example: https://jcp.org/en/jsr/all For each large feature (a good example in the D case would be pattern matching, allocators,

Re: Automatic method overriding in sub-classes

2015-10-28 Thread bitwise via Digitalmars-d
On Thursday, 29 October 2015 at 01:14:35 UTC, Tofu Ninja wrote: On Thursday, 29 October 2015 at 00:11:06 UTC, Tofu Ninja wrote: [...] Actually never mind, what I just said was basically auto override for this() so its not really any different. And it is kinda limited with some problems.

Compile time features

2015-10-28 Thread Shammah Chancellor via Digitalmars-d
Currently D has some very very powerful compile time features, but they can get unwieldily quickly when doing compile time reflection with mildly complicated logic. It's pretty disappointing. I'd like to start a discussion around some of the problems I've ran into using these features. If

Re: We need to have a way to say "convert this nested function into a struct"

2015-10-28 Thread deadalnix via Digitalmars-d
On Saturday, 6 June 2015 at 12:42:38 UTC, Marc Schütz wrote: On Saturday, 6 June 2015 at 06:16:17 UTC, Andrei Alexandrescu wrote: Nested functions that allocate their environment dynamically can be quite useful. However, oftentimes the need is to convert the code plus the data needed into an

Re: We need to have a way to say "convert this nested function into a struct"

2015-10-28 Thread deadalnix via Digitalmars-d
On Saturday, 6 June 2015 at 06:16:17 UTC, Andrei Alexandrescu wrote: Nested functions that allocate their environment dynamically can be quite useful. However, oftentimes the need is to convert the code plus the data needed into an anonymous struct that copies the state inside, similar to C++

[Issue 15255] New: Generated better code for saturation arithmetic

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15255 Issue ID: 15255 Summary: Generated better code for saturation arithmetic Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 15255] Generated better code for saturation arithmetic

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15255 Walter Bright changed: What|Removed |Added Keywords||performance --

[Issue 15255] Generated better code for saturation arithmetic

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15255 --- Comment #1 from Walter Bright --- That was written by and posted on behalf of Manu, not me. --

Re: Can you give me your files[kickstart32.s kmain.d linker32.ld makefile]?

2015-10-28 Thread lobo via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 11:01:14 UTC, guodemone wrote: My english is poor. My code to build is wrong.so need make some improvements. I would like to refer to your 32-bit code, make some improvements. My Email: 704975...@qq.com very very thank you. I've uploaded a dummy kernel

Re: "Programming in D" ebook is available for purchase

2015-10-28 Thread Dylan Allbee via Digitalmars-d-announce
On Wednesday, 28 October 2015 at 18:51:04 UTC, Ali Çehreli wrote: On 10/28/2015 11:46 AM, cym13 wrote: On Wednesday, 28 October 2015 at 08:01:29 UTC, Ali Çehreli wrote: Although the book will always be free[1], many of you have expressed a need to pay without having to buy the paper version.

Re: LDC 0.16.1 has been released!

2015-10-28 Thread Matt Soucy via Digitalmars-d-announce
On 10/28/2015 03:52 AM, Kai Nacke wrote: > Hi everyone, > > LDC 0.16.1, the LLVM-based D compiler, is available for download! > This release is based on the 2.067.1 frontend and standard library and > supports LLVM 3.1-3.7 (OS X: no support for 3.3). > > Don't miss to check if your preferred

Re: What's up with staticIota?

2015-10-28 Thread Nordlöw via Digitalmars-d
On Wednesday, 28 October 2015 at 12:09:53 UTC, rcorre wrote: Its not uncommon that I need a compile-time list that counts from 0..n. It seems like the only 'standard' way to do this is `std.typecons.staticIota`, which is undocumented and has package level access. Looking through the

Re: Safe reference counting cannot be implemented as a library

2015-10-28 Thread Walter Bright via Digitalmars-d
On 10/28/2015 7:58 AM, Andrei Alexandrescu wrote: On 10/28/2015 04:13 AM, Jacob Carlborg wrote: On 2015-10-27 22:19, Andrei Alexandrescu wrote: That doesn't seem to be the case at all. -- Andrei I'm not a C++ or Rust expert. But I think that in Rust and with the new C++ guide lines the idea

Re: Automatic method overriding in sub-classes

2015-10-28 Thread bitwise via Digitalmars-d
On Wednesday, 28 October 2015 at 20:04:44 UTC, Shammah Chancellor wrote: On Monday, 26 October 2015 at 23:25:49 UTC, Tofu Ninja wrote: So we have TemplateThisParameters methods which are cool but have some drawbacks. They are templates so they are implicitly non-virtual and are called based

Re: Automatic method overriding in sub-classes

2015-10-28 Thread Tofu Ninja via Digitalmars-d
On Wednesday, 28 October 2015 at 20:04:44 UTC, Shammah Chancellor wrote: This kind of magic is detrimental to being able to reason about the code you are writing. If libraries do this for example, there's too much spooky action-at-a-distance occurring. Having explicit mixins is the

  1   2   >