Re: std.allocator issues

2016-03-07 Thread Marco Leise via Digitalmars-d
Am Sat, 20 Feb 2016 08:47:47 -0500 schrieb Andrei Alexandrescu : > On 02/20/2016 12:39 AM, Steven Schveighoffer wrote: > > Given that there is "goodAllocSize", this seems reasonable. But for > > ease-of-use (and code efficiency), it may be more straightforward to > > allow returning more data than

Re: Parameterized Keywords

2016-03-07 Thread Patience via Digitalmars-d
On Tuesday, 8 March 2016 at 00:47:10 UTC, Mike Parker wrote: On Monday, 7 March 2016 at 20:54:22 UTC, Patience wrote: On Monday, 7 March 2016 at 15:09:48 UTC, Lass Safin wrote: On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: int[size] <- creates an integer of size bits. You declare

Re: Speed kills

2016-03-07 Thread Marco Leise via Digitalmars-d
Am Wed, 17 Feb 2016 19:55:08 + schrieb Basile B. : > Also, forgot to say, but an uniform API is needed to set the > rounding mode, whether SSE is used or the FPU... At least GCC has a codegen switch for that. A solution would have to either set both rounding modes at once or the compilers wo

year to date pull statistics

2016-03-07 Thread Brad Roberts via Digitalmars-d
A topic that rolls around periodically is the number of open pulls and or the frequency at which a pull is 'ignored' (no, it's not ignored, it's just lost in the noise). I've dug up some rate of change statistics for the year to date for pulls to the D-P-L master branches of the dmd, druntime,

Re: Parameterized Keywords

2016-03-07 Thread Bob the Viking via Digitalmars-d
On Monday, 7 March 2016 at 20:54:22 UTC, Patience wrote: On Monday, 7 March 2016 at 15:09:48 UTC, Lass Safin wrote: On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: int[size] <- creates an integer of size bits. You declare arrays of integers with int[size], you know that, right? No

Re: Parameterized Keywords

2016-03-07 Thread Mike Parker via Digitalmars-d
On Monday, 7 March 2016 at 20:54:22 UTC, Patience wrote: On Monday, 7 March 2016 at 15:09:48 UTC, Lass Safin wrote: On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: int[size] <- creates an integer of size bits. You declare arrays of integers with int[size], you know that, right? No

Re: DDMD: functions defined in both C++ and D

2016-03-07 Thread Walter Bright via Digitalmars-d
On 3/7/2016 2:19 PM, Daniel Murphy wrote: That. Daniel is a man of few words :-)

Re: DDMD: functions defined in both C++ and D

2016-03-07 Thread Daniel Murphy via Digitalmars-d
On 8/03/2016 7:12 AM, Johan Engelen wrote: or perhaps a remnant of semi-automated C++->D conversion? That.

Re: The most enjoyable programming language I've ever used

2016-03-07 Thread Rikki Cattermole via Digitalmars-d
On 08/03/16 7:57 AM, Michalis wrote: On Sunday, 6 March 2016 at 14:23:51 UTC, Rikki Cattermole wrote: On 07/03/16 3:19 AM, Michalis wrote: Hello everyone, I just started learning D yesterday evening and at this point I started playing around with vibe-d and the database connector libraries..

Re: Parameterized Keywords

2016-03-07 Thread Patience via Digitalmars-d
On Monday, 7 March 2016 at 16:29:27 UTC, NX wrote: On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: Just curious if anyone can see the use for them? I believe 'new' keyword can take advantage of this quite good. For example you can pass memory usage strategy like so: MyClass mc = new[s

Re: Parameterized Keywords

2016-03-07 Thread Patience via Digitalmars-d
On Monday, 7 March 2016 at 15:09:48 UTC, Lass Safin wrote: On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: int[size] <- creates an integer of size bits. You declare arrays of integers with int[size], you know that, right? No, not right. Think again. Get your mind out the gutter. Ma

Re: Pitching D to academia

2016-03-07 Thread Timon Gehr via Digitalmars-d
On 07.03.2016 06:08, Walter Bright wrote: On 3/5/2016 11:38 PM, Ali Çehreli wrote: Motivated by Dmitry's "Pitching D to a gang of Gophers" thread, how about pitching it to a gang of professors and graduate students? I will be presenting D to such an audience at METU in Ankara. What are the poin

DDMD: functions defined in both C++ and D

2016-03-07 Thread Johan Engelen via Digitalmars-d
(this is about DDMD internals, but the DMD-internals forum is maillist only, so posting here. Pardon me please. [*] ) Currently some functions are defined (as opposed to declared) both in C++ and in D. For example, all of Visitor's virtual methods. The "double-defined" methods are all defined

Re: Uniform Function Call Syntax?

2016-03-07 Thread Timon Gehr via Digitalmars-d
On 07.03.2016 01:19, Xinok wrote: On Sunday, 6 March 2016 at 07:45:58 UTC, Ola Fosheim Grøstad wrote: I think it would be better idea to just add the ability to add unicode operators, and to avoid precedence issues one could just require them to use parentheses. That way you could define opCusto

Re: Uniform Function Call Syntax?

2016-03-07 Thread Timon Gehr via Digitalmars-d
On 07.03.2016 18:49, Wyatt wrote: But I really don't want any language features predicated on the programmer having an APL keyboard. I can't think of any language feature that would be.

Re: The most enjoyable programming language I've ever used

2016-03-07 Thread Michalis via Digitalmars-d
On Sunday, 6 March 2016 at 17:06:12 UTC, Chris Wright wrote: On Sun, 06 Mar 2016 15:02:20 +, Tourist wrote: Cool! On Sunday, 6 March 2016 at 14:19:21 UTC, Michalis wrote: Even though Java is still my favorite... For completeness... Do you have experience with C#? They said they use Mo

Re: Pitching D to a gang of Gophers

2016-03-07 Thread landaire via Digitalmars-d
On Saturday, 5 March 2016 at 11:05:09 UTC, Dmitry Olshansky wrote: - tooling, tooling, tooling (IDE plugins and build tools work great) I'd like to add that one of the things that I love about Go is that it is crazy easy to cross-compile. `GOOS=freebsd go build` and I have a FreeBSD binary si

Re: Uniform Function Call Syntax?

2016-03-07 Thread Ola Fosheim Grøstad via Digitalmars-d
On Monday, 7 March 2016 at 18:57:03 UTC, Chris Wright wrote: It's still not inconsistent to disallow math symbols. It is inconsistent if you accept that different communities have different notations/languages. Why you would you want to exclude the scientific community? here: I want to guid

Re: Uniform Function Call Syntax?

2016-03-07 Thread Chris Wright via Digitalmars-d
On Mon, 07 Mar 2016 18:45:34 +, Ola Fosheim Grøstad wrote: > There are lots of interesting letters from various languages that can be > used, so prohibiting access to the proper symbols is kinda pointless. > The end result is that people just pick inappropriate characters > instead. I don't th

Re: Named arguments via struct initialization in functions

2016-03-07 Thread Chris Wright via Digitalmars-d
On Mon, 07 Mar 2016 11:06:13 +, ZombineDev wrote: > The compiler should detect that this call is ambiguous and would not > allow it. It's a potentially significant amount of work to determine that the expression is ambiguous, or to disambiguate. > To resolve the ambiguity, the user can write

Re: Pitching D to academia

2016-03-07 Thread Andrew via Digitalmars-d
On Sunday, 6 March 2016 at 07:38:01 UTC, Ali Çehreli wrote: Motivated by Dmitry's "Pitching D to a gang of Gophers" thread, how about pitching it to a gang of professors and graduate students? I will be presenting D to such an audience at METU in Ankara. What are the points that you would str

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-07 Thread Abhishek Kumar via Digitalmars-d
Hello I have fixed https://issues.dlang.org/show_bug.cgi?id=4509 and sent a PR.Please have a look.How should I discuss my GSoC proposal, what things I should work upon etc.? Thanks Abhishek Kumar

Re: The most enjoyable programming language I've ever used

2016-03-07 Thread Michalis via Digitalmars-d
On Sunday, 6 March 2016 at 14:23:51 UTC, Rikki Cattermole wrote: On 07/03/16 3:19 AM, Michalis wrote: Hello everyone, I just started learning D yesterday evening and at this point I started playing around with vibe-d and the database connector libraries.. I just have one thing to say about

Re: Uniform Function Call Syntax?

2016-03-07 Thread Chris Wright via Digitalmars-d
On Mon, 07 Mar 2016 18:45:34 +, Ola Fosheim Grøstad wrote: > On Monday, 7 March 2016 at 18:35:44 UTC, Chris Wright wrote: >> The partial integral symbol is not a letter or digit under any >> circumstances. It is a mathematical symbol. Identifiers cannot contain >> mathematical symbols in D or

Re: Uniform Function Call Syntax?

2016-03-07 Thread Chris Wright via Digitalmars-d
On Mon, 07 Mar 2016 12:58:51 +, Lass Safin wrote: > Have you ever heard of .XCompose? > For linux: https://github.com/kragen/xcompose For windows: > https://github.com/samhocevar/wincompose How it works: > You choose a compose key, then use it to compose special characters with > specific seque

Re: Uniform Function Call Syntax?

2016-03-07 Thread Ola Fosheim Grøstad via Digitalmars-d
On Monday, 7 March 2016 at 18:35:44 UTC, Chris Wright wrote: The partial integral symbol is not a letter or digit under any circumstances. It is a mathematical symbol. Identifiers cannot contain mathematical symbols in D or C99 or even C#. Well, but that argument is kinda bogus. Scientists hav

Re: Uniform Function Call Syntax?

2016-03-07 Thread Chris Wright via Digitalmars-d
On Mon, 07 Mar 2016 10:32:09 +, Ola Fosheim Grøstad wrote: > D is inconsistent in what parts > of unicode you can use in names though. The basic idea is that you can use any letter or '_' as the first element of an identifier, and you can use any letter or number or '_' as a subsequent eleme

Re: TypeInfo madness

2016-03-07 Thread Yuxuan Shui via Digitalmars-d
On Monday, 7 March 2016 at 08:49:36 UTC, Johan Engelen wrote: On Monday, 7 March 2016 at 01:47:53 UTC, Yuxuan Shui wrote: On Sunday, 6 March 2016 at 23:27:45 UTC, Adam D. Ruppe wrote: It is just a mistake that TypeInfo isn't immutable, in my opinion. ...though changing it would be a breaking

Re: Uniform Function Call Syntax?

2016-03-07 Thread Ola Fosheim Grøstad via Digitalmars-d
On Monday, 7 March 2016 at 17:49:35 UTC, Wyatt wrote: I've mentioned this before, but I think a constrained set of user-defined operators using annotations/affixes on the existing set is a better fit for D. It's a lesson well-learned from other languages (cf. OCaml; F#), and fits with D's gen

Re: Named arguments via struct initialization in functions

2016-03-07 Thread Meta via Digitalmars-d
On Monday, 7 March 2016 at 10:40:15 UTC, ZombineDev wrote: Which I don't think will cause ambiguity with delegates: auto tuple3 = { getInt() }; tuple auto tuple3 = { getInt(); }; lambda Unfortunately this will not work. There was a tuple proposal sometime back in 2012 or 2013. I can't remember

Re: Uniform Function Call Syntax?

2016-03-07 Thread Wyatt via Digitalmars-d
On Sunday, 6 March 2016 at 07:45:58 UTC, Ola Fosheim Grøstad wrote: I think it would be better idea to just add the ability to add unicode operators, and to avoid precedence issues one could just require them to use parentheses. That way you could define opCustom"•" and use it as: I've ment

Re: Parameterized Keywords

2016-03-07 Thread NX via Digitalmars-d
On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: Just curious if anyone can see the use for them? I believe 'new' keyword can take advantage of this quite good. For example you can pass memory usage strategy like so: MyClass mc = new[stream] MyClass(); MyClass mc2 = new[static] MyClass(

Re: Parameterized Keywords

2016-03-07 Thread Lass Safin via Digitalmars-d
On Monday, 7 March 2016 at 05:56:54 UTC, Patience wrote: int[size] <- creates an integer of size bits. You declare arrays of integers with int[size], you know that, right? And I really don't see any useful improvement, that could be added with this. It would just be wasted efforts.

Re: std.xml2 (collecting features)

2016-03-07 Thread Craig Dillabaugh via Digitalmars-d
On Sunday, 6 March 2016 at 11:46:00 UTC, Robert burner Schadek wrote: On Saturday, 5 March 2016 at 15:20:12 UTC, Craig Dillabaugh wrote: Robert, we have had some student interest in GSOC for XML. Would you be interested in mentoring a student to work with you on this. Craig Of course Gre

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-07 Thread CraigDillabaugh via Digitalmars-d
On Monday, 7 March 2016 at 12:46:51 UTC, Abhishek Kumar wrote: Hello While looking into D language I found few Phobos standard libraries very interesting to work upon during GSoC.I will like to work on std.i18n or xml parsing libraries.I looked into Phobos github repositories but there's no is

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-07 Thread Seb via Digitalmars-d
On Monday, 7 March 2016 at 12:46:51 UTC, Abhishek Kumar wrote: Hello While looking into D language I found few Phobos standard libraries very interesting to work upon during GSoC.I will like to work on std.i18n or xml parsing libraries.I looked into Phobos github repositories but there's no is

Re: Uniform Function Call Syntax?

2016-03-07 Thread Lass Safin via Digitalmars-d
On Monday, 7 March 2016 at 07:58:53 UTC, Era Scarecrow wrote: On Monday, 7 March 2016 at 06:57:48 UTC, Ola Fosheim Grøstad wrote: immutable π = 3.14; Oh, the horror! With the assumption pi is declared elsewhere (say, in std.math), what i wonder is the number for pi vs 2 letters. Unicode 03

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-07 Thread Abhishek Kumar via Digitalmars-d
Hello While looking into D language I found few Phobos standard libraries very interesting to work upon during GSoC.I will like to work on std.i18n or xml parsing libraries.I looked into Phobos github repositories but there's no issues section that I can work upon.Can someone help me with some

Re: Pitching D to academia

2016-03-07 Thread Martin Tschierschke via Digitalmars-d
On Sunday, 6 March 2016 at 07:38:01 UTC, Ali Çehreli wrote: Motivated by Dmitry's "Pitching D to a gang of Gophers" thread, how about pitching it to a gang of professors and graduate students? I will be presenting D to such an audience at METU in Ankara. What are the points that you would str

Re: A very interesting slide deck comparing sync and async IO

2016-03-07 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 6 March 2016 at 13:21:41 UTC, Shachar Shemesh wrote: You have an iret whether you switched or not. Going into the kernel and coming back has that, whether we switched or not. In particular, since you need a system call in order to call "read", "write" and "accept", these are there re

Re: C++ UFCS update

2016-03-07 Thread Dejan Lekic via Digitalmars-d
On Wednesday, 2 March 2016 at 15:57:41 UTC, Piotrek wrote: On Wednesday, 2 March 2016 at 13:29:03 UTC, Dejan Lekic wrote: I am not sure I agree with this. "->" will make it *visible* what is going on, while "." can mean many things, and I would have to investigate what .something in part of a c

Re: Named arguments via struct initialization in functions

2016-03-07 Thread ZombineDev via Digitalmars-d
On Sunday, 6 March 2016 at 19:10:50 UTC, Chris Wright wrote: On Sun, 06 Mar 2016 17:35:38 +, Seb wrote: [...] We want something to let people provide arguments sparsely and unambiguously, and if possible in arbitrary order. The existing DIP just lets you provide compiler-checked annotat

Re: Named arguments via struct initialization in functions

2016-03-07 Thread ZombineDev via Digitalmars-d
On Sunday, 6 March 2016 at 20:35:49 UTC, Jacob Carlborg wrote: On 2016-03-06 18:35, Seb wrote: Hey all, I wanted to relive the discussion on named arguments and ping for its current status. There is a bunch of examples to show how needed a unified solution for this problem is, let me give

Re: Uniform Function Call Syntax?

2016-03-07 Thread Ola Fosheim Grøstad via Digitalmars-d
On Monday, 7 March 2016 at 07:58:53 UTC, Era Scarecrow wrote: On Monday, 7 March 2016 at 06:57:48 UTC, Ola Fosheim Grøstad wrote: immutable π = 3.14; Oh, the horror! With the assumption pi is declared elsewhere (say, in std.math), what i wonder is the number for pi vs 2 letters. Unicode 03

Re: Uniform Function Call Syntax?

2016-03-07 Thread krzaq via Digitalmars-d
On Monday, 7 March 2016 at 07:58:53 UTC, Era Scarecrow wrote: On Monday, 7 March 2016 at 06:57:48 UTC, Ola Fosheim Grøstad wrote: immutable π = 3.14; Oh, the horror! With the assumption pi is declared elsewhere (say, in std.math), what i wonder is the number for pi vs 2 letters. Unicode 03

Re: std.xml2 (collecting features)

2016-03-07 Thread Lodovico Giaretta via Digitalmars-d
On Sunday, 6 March 2016 at 11:46:00 UTC, Robert burner Schadek wrote: On Saturday, 5 March 2016 at 15:20:12 UTC, Craig Dillabaugh wrote: Robert, we have had some student interest in GSOC for XML. Would you be interested in mentoring a student to work with you on this. Craig Of course Hi,

Re: TypeInfo madness

2016-03-07 Thread Johan Engelen via Digitalmars-d
On Monday, 7 March 2016 at 01:47:53 UTC, Yuxuan Shui wrote: On Sunday, 6 March 2016 at 23:27:45 UTC, Adam D. Ruppe wrote: It is just a mistake that TypeInfo isn't immutable, in my opinion. ...though changing it would be a breaking change, I think it would make sense to do it. Is there reall

Re: GSoC Project Feedback - iOS and Android versions of DSFML

2016-03-07 Thread Dmitry via Digitalmars-d
On Monday, 7 March 2016 at 02:34:41 UTC, Jeremy DeHaan wrote: Please let me know if you think this is worth the effort and would make a good GSoF project. I don't know, is it good project for GSoC or not, but I will be happy if it will be done. (and yep, I really use DSFML in my projects) P.

Re: Uniform Function Call Syntax?

2016-03-07 Thread Era Scarecrow via Digitalmars-d
On Monday, 7 March 2016 at 06:57:48 UTC, Ola Fosheim Grøstad wrote: immutable π = 3.14; Oh, the horror! With the assumption pi is declared elsewhere (say, in std.math), what i wonder is the number for pi vs 2 letters. Unicode 03C0h, so now i have to convert that to decimal, code 960. Alt+96