Re: Coedit 1 gold released

2015-06-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-06-11 11:51, Brian Schott wrote: Would it? Coedit is written in Pascal. Really? I had no idea. I just assumed it was written in D. If it's written in Pascal then there's no excuses [1] :) Anyway, it wouldn't hurt :) [1] http://wiki.freepascal.org/FPC_PasCocoa -- /Jacob Carlborg

Re: Shortest way to allocate an array and initialize it with a specific value.

2015-06-11 Thread via Digitalmars-d-learn
On Thursday, 11 June 2015 at 07:57:47 UTC, Per Nordlöw wrote: On Wednesday, 10 June 2015 at 22:03:52 UTC, Ali Çehreli wrote: Another option: void main() { auto a2 = new ubyte[5]; But this causes an extra zero-initialization of a2. a2[] = 0xAA;// -- Assign to all elements Is

Re: Encapsulate return value in scoped

2015-06-11 Thread Daniel Kozák via Digitalmars-d-learn
On Thu, 11 Jun 2015 09:01:04 + Yuxuan Shui via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: A x = scoped!A(10); use auto x = scoped!A(10);

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Kagamin via Digitalmars-d
On Thursday, 11 June 2015 at 10:17:26 UTC, Ola Fosheim Grøstad wrote: People here often request features you can only ask for after years of programming experience. This shows that there is a lot of experience in the D community. Without experience D wouldn't be where it is, having only

Re: What is D's minimum requirements on Mac?

2015-06-11 Thread Kagamin via Digitalmars-d-learn
Whee, $99/year.

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Chris via Digitalmars-d
On Thursday, 11 June 2015 at 07:08:02 UTC, Ola Fosheim Grøstad wrote: On Thursday, 11 June 2015 at 03:04:50 UTC, Rikki Cattermole wrote: The biggest difference between the D community in general and other communities is actually quite simple. Experience. Indeed! The world has never seen a

Re: Daily downloads in decline

2015-06-11 Thread QAston via Digitalmars-d
On Wednesday, 10 June 2015 at 17:04:56 UTC, Dennis Ritchie wrote: It seems to me that many still do not understand what the Rust :) Many have not seen Lisp, so they think that Rust is something innovative. At least from the syndrome of angle brackets and other syntactic shaluhi its developers

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread via Digitalmars-d
On Thursday, 11 June 2015 at 09:14:00 UTC, Chris wrote: Now, now. It is true that bad and frustrating experience with other languages drove me (and probably others) to D. Suggesting that a language like D is based on experience in comparison to Go is... not right... given the experienced

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread via Digitalmars-d
On Thursday, 11 June 2015 at 07:11:33 UTC, rsw0x wrote: actually making a good GC for D is difficult because the only type of barrier you can use it hardware protection faults. The performance dropoff isn't _that_ bad from what I've read in various papers. I should have an article up in a

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread via Digitalmars-d
On Thursday, 11 June 2015 at 10:52:08 UTC, weaselcat wrote: heavily disagree honestly. Ken Thompson - B? Rob Pike - Limbo? Joking? Not your kind of experience? But still experience... So there is a limit to how far experience can take you. Anyway, language designers that do multiple

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Chris via Digitalmars-d
On Thursday, 11 June 2015 at 10:17:26 UTC, Ola Fosheim Grøstad wrote: On Thursday, 11 June 2015 at 09:14:00 UTC, Chris wrote: Now, now. It is true that bad and frustrating experience with other languages drove me (and probably others) to D. Suggesting that a language like D is based on

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread via Digitalmars-d
On Thursday, 11 June 2015 at 10:52:06 UTC, Chris wrote: vaguely familiar but I cannot put my finger on it. Usually I don't follow an idea that somehow sounds familiar. Well, in this case it might sound familiar to me because it is based manipulated sample of another tune I made... But I

Encapsulate return value in scoped

2015-06-11 Thread Yuxuan Shui via Digitalmars-d-learn
Is there a way to encapsulate return value into scoped? Say I have a function that returns a new object: X new_x(T t...) { //Super complex input processing return new X(something); } And I want to encapsulate the result using scoped, is that possible? Can I just do: return

[Issue 14683] New: atomicop comparison returntype incorrect

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14683 Issue ID: 14683 Summary: atomicop comparison returntype incorrect Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: minor

Re: Encapsulate return value in scoped

2015-06-11 Thread Yuxuan Shui via Digitalmars-d-learn
On Thursday, 11 June 2015 at 08:48:22 UTC, Yuxuan Shui wrote: Is there a way to encapsulate return value into scoped? Say I have a function that returns a new object: X new_x(T t...) { //Super complex input processing return new X(something); } And I want to encapsulate the result

Re: Coedit 1 gold released

2015-06-11 Thread Paolo Invernizzi via Digitalmars-d-announce
On Thursday, 11 June 2015 at 06:28:08 UTC, Jacob Carlborg wrote: On 2015-06-10 08:57, Andrei Alexandrescu wrote: I can haz OSX pliz pliz ok thx bye -- Andrei Having D/Objective-C merged [1] would make it a lot easier. [1] https://github.com/D-Programming-Language/dmd/pull/4321 +1000

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Abdulhaq via Digitalmars-d
I really wish people would stop complaining about other languages having the same features as D without giving credit. It is impossible to figure out exactly where ideas from features come from, but most features predate even C++ if being first is the main point. Hear, hear, is it so

Re: Shortest way to allocate an array and initialize it with a specific value.

2015-06-11 Thread via Digitalmars-d-learn
On Thursday, 11 June 2015 at 08:33:46 UTC, Daniel Kozák wrote: On Wed, 10 Jun 2015 20:22:17 + Adel Mamin via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: ubyte[5] a = 0xAA; // Fine. Five 0xAA bytes. auto a2 = new ubyte[5]; // Fine. Five 0 bytes. Now, let's say, I want to

Re: foreach with a default range

2015-06-11 Thread w0rp via Digitalmars-d
On Thursday, 11 June 2015 at 08:24:25 UTC, Dmitry Olshansky wrote: On 11-Jun-2015 11:18, w0rp wrote: A thought just came to me. When I'm implementing foreach for a container, I'm left with the choice of using a range for a container or opApply. I've found often that I prefer the ranges, as

Re: Daily downloads in decline

2015-06-11 Thread via Digitalmars-d
On Wednesday, 10 June 2015 at 22:01:22 UTC, Dennis Ritchie wrote: No bounds checking of arrays. Huh? Whatever gave you that impression? Well, if Rust created for huge projects, why these macros? I fear that macros are simply not needed in C-family languages. The macros help in D? Write

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Chris via Digitalmars-d
On Wednesday, 10 June 2015 at 19:57:15 UTC, Russel Winder wrote: Please note, OED (which is the definition of the English language As Tofu Ninja said, a dictionary only (partly) reflects the current usage of a language. Look up the word sophisticated and you'll find out that it had a

Re: Coedit 1 gold released

2015-06-11 Thread Brian Schott via Digitalmars-d-announce
On Thursday, 11 June 2015 at 06:28:08 UTC, Jacob Carlborg wrote: On 2015-06-10 08:57, Andrei Alexandrescu wrote: I can haz OSX pliz pliz ok thx bye -- Andrei Having D/Objective-C merged [1] would make it a lot easier. [1] https://github.com/D-Programming-Language/dmd/pull/4321 Would it?

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread weaselcat via Digitalmars-d
On Thursday, 11 June 2015 at 10:17:26 UTC, Ola Fosheim Grøstad wrote: On Thursday, 11 June 2015 at 09:14:00 UTC, Chris wrote: Now, now. It is true that bad and frustrating experience with other languages drove me (and probably others) to D. Suggesting that a language like D is based on

Re: What is D's minimum requirements on Mac?

2015-06-11 Thread Kagamin via Digitalmars-d-learn
On Wednesday, 10 June 2015 at 18:55:27 UTC, Adam D. Ruppe wrote: I'm still tempted to grab a used Mac so I can port my display stuff to Cocoa and test it, but Macs are outrageously expensive and I hate them, so want to spend as little as possible. What does dmd minimally require on a mac? If

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread via Digitalmars-d
On Thursday, 11 June 2015 at 11:20:12 UTC, Kagamin wrote: Then brainfuck wins. Always.

Re: Daily downloads in decline

2015-06-11 Thread weaselcat via Digitalmars-d
On Thursday, 11 June 2015 at 08:54:54 UTC, Marc Schütz wrote: On Wednesday, 10 June 2015 at 22:01:22 UTC, Dennis Ritchie wrote: No bounds checking of arrays. Huh? Whatever gave you that impression? Well, if Rust created for huge projects, why these macros? I fear that macros are simply not

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Kagamin via Digitalmars-d
On Wednesday, 10 June 2015 at 18:13:53 UTC, Dave wrote: Another backwards annotation is nothrow. I don't really care if something doesn't throw, I care when it throws, because then I have to do something (or my program may crash unexpectedly). I recently debugged such no crash bug: the code

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Bruno Medeiros via Digitalmars-d
On 10/06/2015 12:38, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: I think Rust has an advantage over Go in the name Mozilla alone, they are more idealistic than Google. Agreed. In concrete terms, Mozilla is a non-profit, whereas Google is not. Google can

Re: Shortest way to allocate an array and initialize it with a specific value.

2015-06-11 Thread Daniel Kozák via Digitalmars-d-learn
On Thu, 11 Jun 2015 11:43:25 + via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Thursday, 11 June 2015 at 08:33:46 UTC, Daniel Kozák wrote: On Wed, 10 Jun 2015 20:22:17 + Adel Mamin via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: ubyte[5]

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread weaselcat via Digitalmars-d
On Thursday, 11 June 2015 at 09:14:00 UTC, Chris wrote: Because this hurts some people. The D crowd doesn't snob other languages, in fact, people here often point at features of other languages saying Da', can I have this, pleze?.

[Issue 14682] [REG2.037] Incorrect interpretation of ~ []

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14682 --- Comment #5 from Vladimir Panteleev thecybersha...@gmail.com --- I think it should be fixed, because if you want to append [], you can do so explicitly, but if you want to append an empty array, there is no convenient syntax for it. I ran into it

Re: Automatic documentation builds

2015-06-11 Thread David Gileadi via Digitalmars-d
On 6/11/15 7:04 AM, Steven Schveighoffer wrote: On 6/11/15 8:21 AM, Vladimir Panteleev wrote: I've put together a CI system of sorts that builds the documentation for all pull requests. Hopefully this should avoid the dlang.org build breaking again in the future. It integrates with GitHub as

[Issue 14675] template specialization for T: T* and T: T[] has issues with IFTI

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14675 --- Comment #2 from Steven Schveighoffer schvei...@yahoo.com --- Well, if T: T* isn't going to be removed, and we cannot use IFTI with it, we should at least update the documentation. The documentation doesn't seem accurate, since specializations do

Re: Automatic documentation builds

2015-06-11 Thread Steven Schveighoffer via Digitalmars-d
On 6/11/15 8:21 AM, Vladimir Panteleev wrote: I've put together a CI system of sorts that builds the documentation for all pull requests. Hopefully this should avoid the dlang.org build breaking again in the future. It integrates with GitHub as well, and on repositories covered by Brad's

Re: Python's features, which requires D

2015-06-11 Thread Dennis Ritchie via Digitalmars-d-learn
On Saturday, 23 May 2015 at 10:58:33 UTC, Kagamin wrote: On Saturday, 23 May 2015 at 02:36:14 UTC, Dennis Ritchie wrote: For example, the code in Python looks quite natural: a = [[int(j) for j in input().split()] for i in range(n)] About D-code, I can not say: auto a = stdin .byLine

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread David Gileadi via Digitalmars-d
On 6/10/15 6:43 PM, Tofu Ninja wrote: On Thursday, 11 June 2015 at 01:30:08 UTC, weaselcat wrote: 'he' has been a gender neutral pronoun for centuries, and as far as I'm aware this has its roots in latin using 'man'(vir?) as a gender neutral pronoun. I am just saying that personally it sounds

[Issue 14289] WindowsException should not attempt to parse code 0

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

[Issue 14288] std.windows.registry should use std.windows.syserror

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14288 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/3024e3d3be066a055031264ad4381c6117c3425d fix Issue 14288 -

Re: Daily downloads in decline

2015-06-11 Thread weaselcat via Digitalmars-d
On Thursday, 11 June 2015 at 13:35:25 UTC, QAston wrote: For me simple templates + simple macros are clearer than complicated templates + ctfe + mixins. There are tradeoffs there, with ctfe being an optimization at the expense of build time. On the other hand dmd is much much faster than the

[Issue 14682] [REG2.037] Incorrect interpretation of ~ []

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14682 --- Comment #7 from Kenji Hara k.hara...@gmail.com --- (In reply to Vladimir Panteleev from comment #5) I think it should be fixed, because if you want to append [], you can do so explicitly, but if you want to append an empty array, there is no

[Issue 14681] Add a way to specify a file import's contents on the command line

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14681 --- Comment #2 from Kenji Hara k.hara...@gmail.com --- The ':' prefix allows the compiler to tell apart import paths and key/value pairs. I think it's not good. Indeed in most platform `:` cannot be in file name, but it actually depends on the

Re: dub : multiple dmd instances

2015-06-11 Thread weaselcat via Digitalmars-d
On Thursday, 11 June 2015 at 14:07:10 UTC, weaselcat wrote: On Thursday, 11 June 2015 at 14:01:12 UTC, Temtaime wrote: Hi all ! I wonder why there's no option to tell dub split files into groups of equal size and then run N instances of dmd ? I think it can greatly reduce compile time. dub

Re: Daily downloads in decline

2015-06-11 Thread Dennis Ritchie via Digitalmars-d
On Thursday, 11 June 2015 at 13:35:25 UTC, QAston wrote: It's a matter of taste and I won't advocate for Rust on D forums. It is not required. But it would be nice if you could post a topic in DLearn like this just about Rust :)

dub : multiple dmd instances

2015-06-11 Thread Temtaime via Digitalmars-d
Hi all ! I wonder why there's no option to tell dub split files into groups of equal size and then run N instances of dmd ? I think it can greatly reduce compile time.

Re: dub : multiple dmd instances

2015-06-11 Thread weaselcat via Digitalmars-d
On Thursday, 11 June 2015 at 14:01:12 UTC, Temtaime wrote: Hi all ! I wonder why there's no option to tell dub split files into groups of equal size and then run N instances of dmd ? I think it can greatly reduce compile time. dub options are a bit hidden. dub build --help

[Issue 14682] [REG2.037] Incorrect interpretation of ~ []

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14682 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC|

[Issue 14684] New: Circular import cases Must be imported as FileName error

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14684 Issue ID: 14684 Summary: Circular import cases Must be imported as FileName error Product: D Version: D2 Hardware: x86_64 OS: Mac OS X Status: NEW

Re: Daily downloads in decline

2015-06-11 Thread Dicebot via Digitalmars-d
On Thursday, 11 June 2015 at 13:16:13 UTC, Dennis Ritchie wrote: Do templates Rust is better than D? Those are considerably less powerful: - can only have type arguments - no variadic argument list support - no arbitrary condition constraints (thus only partial duck typing support) On the

Re: Shortest way to allocate an array and initialize it with a specific value.

2015-06-11 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/11/15 7:51 AM, Daniel Kozák via Digitalmars-d-learn wrote: On Thu, 11 Jun 2015 11:43:25 + via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Thursday, 11 June 2015 at 08:33:46 UTC, Daniel Kozák wrote: On Wed, 10 Jun 2015 20:22:17 + Adel Mamin via

[Issue 14675] template specialization for T: T* and T: T[] has issues with IFTI

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14675 --- Comment #3 from Steven Schveighoffer schvei...@yahoo.com --- (In reply to Steven Schveighoffer from comment #2) I feel like it's shorthand for this: foo(U : T*, T)(U *t) But U isn't actually listed or accessible. BTW, the above has the

Re: Encapsulate return value in scoped

2015-06-11 Thread Yuxuan Shui via Digitalmars-d-learn
On Thursday, 11 June 2015 at 09:11:47 UTC, Daniel Kozák wrote: On Thu, 11 Jun 2015 09:01:04 + Yuxuan Shui via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: A x = scoped!A(10); use auto x = scoped!A(10); Thanks! Curious question, why doesn't compiler reject

Re: Encapsulate return value in scoped

2015-06-11 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/11/15 1:28 PM, Yuxuan Shui wrote: On Thursday, 11 June 2015 at 09:11:47 UTC, Daniel Kozák wrote: On Thu, 11 Jun 2015 09:01:04 + Yuxuan Shui via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: A x = scoped!A(10); use auto x = scoped!A(10); Thanks! Curious

Re: Encapsulate return value in scoped

2015-06-11 Thread Yuxuan Shui via Digitalmars-d-learn
On Thursday, 11 June 2015 at 17:34:56 UTC, Steven Schveighoffer wrote: On 6/11/15 1:28 PM, Yuxuan Shui wrote: On Thursday, 11 June 2015 at 09:11:47 UTC, Daniel Kozák wrote: On Thu, 11 Jun 2015 09:01:04 + Yuxuan Shui via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: A

Re: Encapsulate return value in scoped

2015-06-11 Thread Ali Çehreli via Digitalmars-d-learn
On 06/11/2015 11:43 AM, Yuxuan Shui wrote: On Thursday, 11 June 2015 at 17:34:56 UTC, Steven Schveighoffer wrote: On 6/11/15 1:28 PM, Yuxuan Shui wrote: On Thursday, 11 June 2015 at 09:11:47 UTC, Daniel Kozák wrote: On Thu, 11 Jun 2015 09:01:04 + Yuxuan Shui via Digitalmars-d-learn

Re: Encapsulate return value in scoped

2015-06-11 Thread Yuxuan Shui via Digitalmars-d-learn
On Thursday, 11 June 2015 at 19:23:49 UTC, Ali Çehreli wrote: On 06/11/2015 11:43 AM, Yuxuan Shui wrote: On Thursday, 11 June 2015 at 17:34:56 UTC, Steven Schveighoffer wrote: On 6/11/15 1:28 PM, Yuxuan Shui wrote: On Thursday, 11 June 2015 at 09:11:47 UTC, Daniel Kozák wrote: On Thu, 11

Reading array of integers readln performance issues

2015-06-11 Thread kerdemdemir via Digitalmars-d-learn
Hi; To learn D better and challanging myself I am tring code computation's with D. There is a question which is about reading a line of integer which consist of 20 elements. My solution fails because Time limit exceeded, I thought it is because of my algorithm first. I realize time

.sizeof dynamically allocated array

2015-06-11 Thread Adel Mamin via Digitalmars-d-learn
import std.stdio; void main() { ubyte[] a1 = new ubyte[65]; ubyte[65] a2; writeln(a1.sizeof = , a1.sizeof); // prints 16 writeln(a2.sizeof = , a2.sizeof); // prints 65 } Why a1.sizeof is 16?

Re: .sizeof dynamically allocated array

2015-06-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 11 June 2015 at 20:09:38 UTC, Adel Mamin wrote: Why a1.sizeof is 16? sizeof is tied to *type*, not a variable. (I kinda wish a1.sizeof was prohibited, forcing you to say typeof(a1).sizeof so it is clear but whatever). A dynamic array's size is the length variable plus the

Re: .sizeof dynamically allocated array

2015-06-11 Thread Meta via Digitalmars-d-learn
On Thursday, 11 June 2015 at 20:09:38 UTC, Adel Mamin wrote: import std.stdio; void main() { ubyte[] a1 = new ubyte[65]; ubyte[65] a2; writeln(a1.sizeof = , a1.sizeof); // prints 16 writeln(a2.sizeof = , a2.sizeof); // prints 65 } Why a1.sizeof is 16? ubyte[] is a slice,

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Nick Sabalausky via Digitalmars-d
On 06/11/2015 06:52 AM, Chris wrote: In your case, the song reminds me of: Wouldn't It Be Good - Nik Kershaw https://www.youtube.com/watch?v=AYMAtbq0bjY (God, I'm so old!) :-) Oh man, that takes me back. 80's had the best pop music, IMHO. Miss that stuff. Although, I still have trouble

Re: Daily downloads in decline

2015-06-11 Thread Dennis Ritchie via Digitalmars-d
On Thursday, 11 June 2015 at 15:03:39 UTC, Dicebot wrote: Those are considerably less powerful: - can only have type arguments - no variadic argument list support - no arbitrary condition constraints (thus only partial duck typing support) On the other hand they have one important advantage:

Re: Daily downloads in decline

2015-06-11 Thread Dennis Ritchie via Digitalmars-d
On Thursday, 11 June 2015 at 15:08:48 UTC, Dicebot wrote: My experience of explaining those concepts to other people indicates otherwise. D templates and mixins are dirty but also very simple concepts that pretty much any new programmers gets quickly and intuitively, learning how to do more

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Nick Sabalausky via Digitalmars-d
On 06/11/2015 07:31 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Thursday, 11 June 2015 at 11:20:12 UTC, Kagamin wrote: Then brainfuck wins. Always. It *is* very fun to implement. I'm more partial to this one though:

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Nick Sabalausky via Digitalmars-d
On 06/11/2015 07:37 AM, Bruno Medeiros wrote: On 10/06/2015 12:38, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: I think Rust has an advantage over Go in the name Mozilla alone, they are more idealistic than Google. Agreed. In concrete terms, Mozilla is a

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Idan Arye via Digitalmars-d
On Thursday, 11 June 2015 at 13:21:27 UTC, Dave wrote: Exceptions are not meant to force handling errors at he source. This attitude is why so many exceptions go unhandled at the upper layers. When you have a top level that calls a function that calls 50 other functions, each that throw a

Re: DIP80: phobos additions

2015-06-11 Thread Andrei Alexandrescu via Digitalmars-d
On 6/11/15 5:17 AM, Steven Schveighoffer wrote: On 6/11/15 4:15 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: On Wednesday, 10 June 2015 at 20:31:52 UTC, Steven Schveighoffer wrote: OK, thanks for the explanation. I'd do it the other way around: Flag!threadlocal, since we should be

Re: Daily downloads in decline

2015-06-11 Thread Andrei Alexandrescu via Digitalmars-d
On 6/11/15 9:33 AM, Dennis Ritchie wrote: On Thursday, 11 June 2015 at 15:03:39 UTC, Dicebot wrote: Those are considerably less powerful: - can only have type arguments - no variadic argument list support - no arbitrary condition constraints (thus only partial duck typing support) On the other

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread via Digitalmars-d
On Thursday, 11 June 2015 at 16:49:15 UTC, Nick Sabalausky wrote: On 06/11/2015 07:31 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Thursday, 11 June 2015 at 11:20:12 UTC, Kagamin wrote: Then brainfuck wins. Always. It *is* very fun to implement.

Re: Daily downloads in decline

2015-06-11 Thread Dennis Ritchie via Digitalmars-d
On Thursday, 11 June 2015 at 17:41:49 UTC, Andrei Alexandrescu wrote: It is possible that Walter and Andrei against macro because of this: macro_rules! o_O { ( $( $x:expr; [ $( $y:expr ),* ] );* ) = { [ $($( $x + $y ),*),* ] } } fn main()

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread weaselcat via Digitalmars-d
On Thursday, 11 June 2015 at 17:42:48 UTC, Ola Fosheim Grøstad wrote: On Thursday, 11 June 2015 at 16:49:15 UTC, Nick Sabalausky wrote: On 06/11/2015 07:31 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Thursday, 11 June 2015 at 11:20:12 UTC, Kagamin

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread via Digitalmars-d
On Thursday, 11 June 2015 at 17:45:32 UTC, weaselcat wrote: https://gist.github.com/sprain/be75c6c456146b272178 Ah, that's awsome! Instead of using true and false you get to use thumbs-up and thumbs-down...

Re: Right after allocators: containers or database connectivity?

2015-06-11 Thread Nick Sabalausky via Digitalmars-d
On 06/09/2015 01:53 PM, Jacob Carlborg wrote: I vote for databases. I also vote for an interface that is independent of ODBC, but ODBC could be one of the drivers that implements this interface. I know that there's a native implementation of the MySQL protocol on code.dlang.org. This is kind

Re: Right after allocators: containers or database connectivity?

2015-06-11 Thread Andrei Alexandrescu via Digitalmars-d
On 6/11/15 10:59 AM, Nick Sabalausky wrote: 2. There's also question about async I/O. A *LOT* of DB users are also going to be Vibe.d users, so we cannot afford to have problems in this area. Perhaps what we need to look at is getting Vibe's async I/O (or at least some low-level portion of it,

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Dave via Digitalmars-d
Exceptions are for when something went wrong. Returned errors are for when the function can't do what you asked it to do, but that doesn't mean that something went wrong. You seem to be implying this as a fact, when traditionally this is not how things are done. For example, if you try to

Re: [OT] Modules dropped out of C++17

2015-06-11 Thread krzaq via Digitalmars-d
On Thursday, 11 June 2015 at 12:33:55 UTC, Steven Schveighoffer wrote: On 6/10/15 8:52 AM, John Colvin wrote: On Tuesday, 9 June 2015 at 17:43:18 UTC, Steven Schveighoffer wrote: On 6/9/15 4:06 AM, Brian Schott wrote: On Tuesday, 9 June 2015 at 07:49:24 UTC, Shachar Shemesh wrote: Also, you

Re: Right after allocators: containers or database connectivity?

2015-06-11 Thread Erik Smith via Digitalmars-d
I’m actively working on the low level interface and I’m making good progress. My goal is to have a high quality interface definition with working reference drivers for top tier databases. The current references drivers are ODBC, sqlite, mysql, and Oracle. I think it’s important to

Re: Daily downloads in decline

2015-06-11 Thread Walter Bright via Digitalmars-d
On 6/11/2015 8:03 AM, Dicebot wrote: On the other hand they have one important advantage: all type arguments must comply to one or more trairs and thus bodies of generics are checked before institation. You are only allowed to call methods and operations of generic arguments that are defined in

Re: Automatic documentation builds

2015-06-11 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 11 June 2015 at 13:12:17 UTC, Steven Schveighoffer wrote: On 6/11/15 9:04 AM, John Colvin wrote: it doesn't seem to have triggered/finished yet for that one, but older pulls have a link in them Yeah, hah! I seemed to have picked the only one that doesn't :) It was the siren of

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Tofu Ninja via Digitalmars-d
On Thursday, 11 June 2015 at 11:40:55 UTC, Abdulhaq wrote: It's quite a nice twist that the thread discussing which language is better branched into what version of English is the right one - as if such a thing is meaningful. Arguing about definitions and terminology is surely such a useless

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Kagamin via Digitalmars-d
On Thursday, 11 June 2015 at 18:17:01 UTC, Dave wrote: Disagree. Traditionally also handled by throwing exceptions. C# throws a Format exception if a parse fails. https://msdn.microsoft.com/en-us/library/f02979c7%28v=vs.110%29.aspx

[Issue 11370] core.simd segfault

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11370 Maxim Fomin maxim-fo...@outlook.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13628] Error: immutable method S.~this is not callable using a mutable object and vice versa

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13628 Maxim Fomin maxim-fo...@outlook.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14685] New: Silent incorrect behavior with enforce and custom exception

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14685 Issue ID: 14685 Summary: Silent incorrect behavior with enforce and custom exception Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 13628] Error: immutable method S.~this is not callable using a mutable object and vice versa

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13628 --- Comment #3 from Marco Leise marco.le...@gmx.de --- You can't just close this without further discussion. That is disrespectful given the three questions I had refer to my failed attempts at doing what you propose as a solution. --

Re: DIP80: phobos additions

2015-06-11 Thread Steven Schveighoffer via Digitalmars-d
On 6/11/15 4:15 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: On Wednesday, 10 June 2015 at 20:31:52 UTC, Steven Schveighoffer wrote: OK, thanks for the explanation. I'd do it the other way around: Flag!threadlocal, since we should be safe by default. `RefCounted!T` is also

Re: foreach with a default range

2015-06-11 Thread Steven Schveighoffer via Digitalmars-d
On 6/11/15 4:24 AM, Dmitry Olshansky wrote: Already works. Just define opSlice for container that returns a range and then: foreach(elem; container) {} is lowered to: foreach(elem; container[]) {} I think you want to do opIndex which takes no parameters. opSlice is no longer supposed to

Automatic documentation builds

2015-06-11 Thread Vladimir Panteleev via Digitalmars-d
I've put together a CI system of sorts that builds the documentation for all pull requests. Hopefully this should avoid the dlang.org build breaking again in the future. It integrates with GitHub as well, and on repositories covered by Brad's auto-tester, will create a second status for the

Re: Automatic documentation builds

2015-06-11 Thread Steven Schveighoffer via Digitalmars-d
On 6/11/15 8:21 AM, Vladimir Panteleev wrote: I've put together a CI system of sorts that builds the documentation for all pull requests. Hopefully this should avoid the dlang.org build breaking again in the future. It integrates with GitHub as well, and on repositories covered by Brad's

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Dave via Digitalmars-d
It seems to be a controversial subject: https://github.com/D-Programming-Language/phobos/pull/1090#issuecomment-12737986 As the topic has been argued for the past 50 years. No one ever agrees on the best way to handle errors. But I think most of this is because programmers tend to be the most

[Issue 14289] WindowsException should not attempt to parse code 0

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14289 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/a2102aa66c2145a4dfe2ec2dfd1c171530d2e3a7 fix Issue 14289 -

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread via Digitalmars-d
On Thursday, 11 June 2015 at 11:40:55 UTC, Abdulhaq wrote: Hear, hear, is it so unlikely that one footstep should fall in the footprint of another? We all stand on the shoulders of giants, etc. This is it. Great languages (IMO) have condensed their features down to the smallest set of

Re: Automatic documentation builds

2015-06-11 Thread Rikki Cattermole via Digitalmars-d
On 12/06/2015 12:21 a.m., Vladimir Panteleev wrote: I've put together a CI system of sorts that builds the documentation for all pull requests. Hopefully this should avoid the dlang.org build breaking again in the future. It integrates with GitHub as well, and on repositories covered by Brad's

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Abdulhaq via Digitalmars-d
On Thursday, 11 June 2015 at 12:11:49 UTC, Ola Fosheim Grøstad wrote: As a norwegian I can't make up my mind as to whether I should write color or colour. I suspect it will be taken as some kind of political statement. Hey, I am neutral! I use color in source code and colour in writing. :)

Re: Right after allocators: containers or database connectivity?

2015-06-11 Thread Steven Schveighoffer via Digitalmars-d
On 6/9/15 6:05 PM, Jonathan M Davis wrote: On Tuesday, 9 June 2015 at 18:49:04 UTC, Brad Anderson wrote: We also have map in the form of RedBlackTree. I think you might be able to use RedBlackTree for a set too but I haven't tried it. You can, but it's a bit of a pain, because you have to

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Dave via Digitalmars-d
I should also mention that D has essentially enabled this philosophy that I am speaking about concerning errors by using the 'scope' keyword. I believe handling errors with scope literally translates to try\catch blocks behind the scenes. I also believe this is an encouraged way of dealing with

[Issue 14664] missing pages / broken links

2015-06-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14664 --- Comment #3 from John Colvin john.loughran.col...@gmail.com --- (In reply to Vladimir Panteleev from comment #2) (In reply to John Colvin from comment #0) It's linked from http://dlang.org/phobos-prerelease/index.html but is 404. What is?

Re: Automatic documentation builds

2015-06-11 Thread Rikki Cattermole via Digitalmars-d
On 12/06/2015 12:28 a.m., Vladimir Panteleev wrote: On Thursday, 11 June 2015 at 12:27:29 UTC, Rikki Cattermole wrote: So for a PR it puts up a URL on the request? Because this would be pretty awesome in that context! Yes, just click Details at the bottom of the PR page to go to the test

Re: Automatic documentation builds

2015-06-11 Thread Rikki Cattermole via Digitalmars-d
On 12/06/2015 12:44 a.m., Steven Schveighoffer wrote: On 6/11/15 8:21 AM, Vladimir Panteleev wrote: I've put together a CI system of sorts that builds the documentation for all pull requests. Hopefully this should avoid the dlang.org build breaking again in the future. It integrates with GitHub

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-11 Thread Abdulhaq via Digitalmars-d
D is really unique in the sense that it's open enough for people not to feel that they have to role their own. D also has enough features to satisfy many different users, although - and this is often forgotten - you don't _have_ to use them all. People like Go and Rust, because it tells them

Re: Automatic documentation builds

2015-06-11 Thread John Colvin via Digitalmars-d
On Thursday, 11 June 2015 at 12:44:32 UTC, Steven Schveighoffer wrote: On 6/11/15 8:21 AM, Vladimir Panteleev wrote: [...] This sounds really cool! So given I have a PR, for example, https://github.com/D-Programming-Language/druntime/pull/1301 How do I find the ddoc build for it? -Steve

  1   2   3   >