Re: Situation with D on iOS, Android, and WP8?

2015-03-15 Thread Joakim via Digitalmars-d
On Monday, 16 March 2015 at 05:31:05 UTC, Mitchell wrote: I've seen a few posts similar to this but they were quite old and probably have outdated information, so I'd like to ask again - what is the situation with D on the major mobile platforms? Not really concerned with C#/Obj-C/Java intero

Situation with D on iOS, Android, and WP8?

2015-03-15 Thread Mitchell via Digitalmars-d
I've seen a few posts similar to this but they were quite old and probably have outdated information, so I'd like to ask again - what is the situation with D on the major mobile platforms? Not really concerned with C#/Obj-C/Java interop, more just if you can compile a hello world using Phobos

Re: The next iteration of scope

2015-03-15 Thread Zach the Mystic via Digitalmars-d
On Sunday, 15 March 2015 at 14:10:02 UTC, Marc Schütz wrote: Here's the new version of my scope proposal: http://wiki.dlang.org/User:Schuetzm/scope2 It's still missing real-life examples, a section on the implementation, and a more formal specification, as well as a discussion of backwards com

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Israel via Digitalmars-d
On Monday, 16 March 2015 at 01:22:47 UTC, cym13 wrote: HINT 2: it took me about a month and a good tutorial on templates (btw, thanks G.Willoughby) to start understanding the full prototypes of standard functions. I really recommend putting the constraint part in slight grey so that it is sti

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread deadalnix via Digitalmars-d
On Monday, 16 March 2015 at 01:22:47 UTC, cym13 wrote: It is anecdotic but after reading everywhere about how fast is compiling D, I was very surprised to see it taking 2s for a regular "Hello World". I understand it better now but at the time I was disapointed. It would be interesting to k

Re: dfmt options

2015-03-15 Thread Brian Schott via Digitalmars-d
On Monday, 16 March 2015 at 01:52:57 UTC, Idan Arye wrote: And if you need a more concrete reason - a code formatter should be able to act as a filter - put code in STDIN, get formatted code from STDOUT. There are probably some languages where this will work, such as Lua, but this will never

Re: dfmt options

2015-03-15 Thread Brad Anderson via Digitalmars-d
On Saturday, 14 March 2015 at 23:15:35 UTC, Brian Schott wrote: First, a disclaimer: I am an idiot for starting this thread. Moving on... I'm working on a list of configuration options for dfmt - a formatter for D source code. So far I have the following: * Insert spaces between if, while,

Re: dfmt options

2015-03-15 Thread Idan Arye via Digitalmars-d
On Monday, 16 March 2015 at 00:13:58 UTC, Rikki Cattermole wrote: On 16/03/2015 8:08 a.m., Walter Bright wrote: On 3/14/2015 8:32 PM, Rikki Cattermole wrote: This might be a bit of a out of scope, but auto generating of DDOC comments for symbols would be nice. Basically to enforce before e.g.

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread cym13 via Digitalmars-d
If stories are wanted, I might as well tell mine. It is not a success story but as a newcommer to D I feel like writing it down somewhere before forgetting my first impressions. But first, a bit of background. I'm a CS student and an autodidact before that. I grew up with GNU/Linux and never

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread w0rp via Digitalmars-d
On Sunday, 15 March 2015 at 13:45:28 UTC, ponce wrote: On Sunday, 15 March 2015 at 04:32:25 UTC, Walter Bright wrote: I'd also prefer to get rid of /+ +/ comments, I thought they'd be more useful than they are. Using /+ +/ regularly. Very useful to comment out large areas of code. I like /

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread H. S. Teoh via Digitalmars-d
On Sun, Mar 15, 2015 at 05:12:55PM -0700, Walter Bright via Digitalmars-d wrote: > On 3/15/2015 4:06 AM, "Marc =?UTF-8?B?U2Now7x0eiI=?= " > wrote: > >This I agree with. Their usefulness is also greatly diminished by > >them being strings, instead of byte (ubyte?) arrays. When would you > >actually

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 7:46 AM, Sativa wrote: Um, This is wrong. You already have simple languages. People are not going to choose D no matter how much you dumb it down. What sets D apart is it's advanced features... remove them or stop such enhancements and it won't be able to compete with any other langu

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread deadalnix via Digitalmars-d
On Monday, 16 March 2015 at 00:11:37 UTC, Walter Bright wrote: It's the drip-drip-drip of a thousand features that adds up. Anyhow, it obviously isn't going anywhere. It mostly a problem when features are not orthogonals.

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 4:02 AM, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: Nope, that requires the commented-out part to be syntactically correct. My primary use-case for /+ +/ is during development, when I quickly need to disable specific parts of code. These frequently don't coincide with syntactic boundar

Re: dfmt options

2015-03-15 Thread Rikki Cattermole via Digitalmars-d
On 16/03/2015 8:08 a.m., Walter Bright wrote: On 3/14/2015 8:32 PM, Rikki Cattermole wrote: This might be a bit of a out of scope, but auto generating of DDOC comments for symbols would be nice. Basically to enforce before e.g. committing that everything has been explained. Autogeneration of d

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 4:06 AM, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: This I agree with. Their usefulness is also greatly diminished by them being strings, instead of byte (ubyte?) arrays. When would you actually want to write a string (= text) using hex notation? 1. test data 2. strings that aren't in

Re: const as default for variables

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 1:09 PM, deadalnix wrote: On Sunday, 15 March 2015 at 07:44:50 UTC, Walter Bright wrote: "const ref" can tell the optimizer that that path for a ref counted object cannot alter its ref count. That is not clear why. const ref is supposed to protect against escaping when ref does no

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 4:28 PM, Andrei Alexandrescu wrote: That's what nice about library artifacts vs. language artifacts: you can add more of the former! Define hexBytes and hexString. -- Andrei Yup. Should resist the urge to "fix" hexString, just make it a dropin replacement.

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Andrei Alexandrescu via Digitalmars-d
On 3/15/15 2:37 PM, Walter Bright wrote: On 3/15/2015 1:38 PM, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: Can we make it so it returns a ubyte[]? Unfortunately, it needs to be a dropin replacement for x"...", which returns a string/wstring/dstring. That's what nice about library artifacts vs. l

Re: Replace core language HexStrings with library entity

2015-03-15 Thread bearophile via Digitalmars-d
Andrei Alexandrescu: hexString and hexBytes. -- Andrei Can you show me one or two different use cases of hexString? Bye, bearophile

Re: Replace core language HexStrings with library entity

2015-03-15 Thread H. S. Teoh via Digitalmars-d
On Sun, Mar 15, 2015 at 04:21:09PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: > On 3/15/15 12:46 PM, Walter Bright wrote: > >HexStrings: > > > > http://dlang.org/lex.html#HexString > > > >They're rarely used, but very useful when needed. But, as the octal > >literals have shown, they

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Andrei Alexandrescu via Digitalmars-d
On 3/15/15 12:46 PM, Walter Bright wrote: HexStrings: http://dlang.org/lex.html#HexString They're rarely used, but very useful when needed. But, as the octal literals have shown, they can be easily replaced with a library template: x"00 FBCD 32FD 0A" becomes: hex!"00 FBCD 32FD

Re: Replace core language HexStrings with library entity

2015-03-15 Thread H. S. Teoh via Digitalmars-d
On Sun, Mar 15, 2015 at 11:32:04PM +0100, FG via Digitalmars-d wrote: > On 2015-03-15 at 22:41, bearophile wrote: > >Walter Bright: > > > >>Unfortunately, it needs to be a dropin replacement for x"...", which > >>returns a string/wstring/dstring. > > > >This is bad. 99% of the times you don't want

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 2:44 PM, Baz wrote: Yes, i'll send a PR tomorrow of tuesday. Good!

Re: const as default for variables

2015-03-15 Thread Sönke Ludwig via Digitalmars-d
Am 15.03.2015 um 15:16 schrieb "Marc =?UTF-8?B?U2Now7x0eiI=?= ": On Sunday, 15 March 2015 at 13:21:11 UTC, Sönke Ludwig wrote: My proposal would be to make "scope" (with strong recursive guarantees) the default instead to achieve that goal. That would give the compiler a lot of optimization pote

Re: Replace core language HexStrings with library entity

2015-03-15 Thread FG via Digitalmars-d
On 2015-03-15 at 22:41, bearophile wrote: Walter Bright: Unfortunately, it needs to be a dropin replacement for x"...", which returns a string/wstring/dstring. This is bad. 99% of the times you don't want a string/wstring/dstring out of a hex string: Then maybe hex!"..." should produce th

Re: dfmt options

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 1:34 PM, Jonathan M Davis via Digitalmars-d wrote: but I hate it when I have to format code in ways that I don't like. It's like walking around with a pebble in your shoe. It may not stop you from getting any work done, but it's a constant point of pain. I fully understand your poi

Re: Replace core language HexStrings with library entity

2015-03-15 Thread bearophile via Digitalmars-d
Walter Bright: Unfortunately, it needs to be a dropin replacement for x"...", which returns a string/wstring/dstring. This is bad. 99% of the times you don't want a string/wstring/dstring out of a hex string: https://issues.dlang.org/show_bug.cgi?id=10454 https://issues.dlang.org/show_bug.c

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Baz via Digitalmars-d
On Sunday, 15 March 2015 at 21:34:22 UTC, Walter Bright wrote: On 3/15/2015 2:18 PM, Baz wrote: On Sunday, 15 March 2015 at 19:47:06 UTC, Walter Bright wrote: HexStrings: http://dlang.org/lex.html#HexString They're rarely used, but very useful when needed. But, as the octal literals have

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 2:29 PM, bearophile wrote: There is an enhancement request on this (for the built in hex strings). A link would be helpful!

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 2:34 PM, Walter Bright wrote: P.S. Also need to include all the examples in the dlang reference as unittest cases. Also, HexStrings can handle w and d postfixes. Use the lexer.c code for TOK::hexStringConstant() as a guide to be sure all the permutations are covered.

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 1:38 PM, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: Can we make it so it returns a ubyte[]? Unfortunately, it needs to be a dropin replacement for x"...", which returns a string/wstring/dstring.

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 2:18 PM, Baz wrote: On Sunday, 15 March 2015 at 19:47:06 UTC, Walter Bright wrote: HexStrings: http://dlang.org/lex.html#HexString They're rarely used, but very useful when needed. But, as the octal literals have shown, they can be easily replaced with a library template:

Re: Replace core language HexStrings with library entity

2015-03-15 Thread bearophile via Digitalmars-d
Marc Schütz: Can we make it so it returns a ubyte[]? There is an enhancement request on this (for the built in hex strings). Bye, bearophile

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Baz via Digitalmars-d
On Sunday, 15 March 2015 at 19:47:06 UTC, Walter Bright wrote: HexStrings: http://dlang.org/lex.html#HexString They're rarely used, but very useful when needed. But, as the octal literals have shown, they can be easily replaced with a library template: x"00 FBCD 32FD 0A" becomes:

Re: dfmt options

2015-03-15 Thread ketmar via Digitalmars-d
On Sun, 15 Mar 2015 13:23:09 -0700, Jonathan M Davis via Digitalmars-d wrote: > Yes, sorry. Forcing is too strong a word. However, if we're putting out > an official formatting tool which has no configurability, unless we're > telling folks that it's specifically for the official source code and

Re: Post increment and decrement

2015-03-15 Thread ketmar via Digitalmars-d
On Sun, 15 Mar 2015 19:46:39 +, Kagamin wrote: > On Sunday, 15 March 2015 at 19:39:06 UTC, ketmar wrote: >> wow! i wrote an excellect optimizer yesterday. it optimizes any code to >> `nop`... > > Why, rm didn't work for you? no. it removes code, and i want to optimize code. signature.asc De

Re: Replace core language HexStrings with library entity

2015-03-15 Thread via Digitalmars-d
On Sunday, 15 March 2015 at 19:55:39 UTC, Kagamin wrote: http://dpaste.dzfl.pl/0f63623cc262a ? Wrong link? Or wrong thread?

Re: Replace core language HexStrings with library entity

2015-03-15 Thread via Digitalmars-d
On Sunday, 15 March 2015 at 19:47:06 UTC, Walter Bright wrote: HexStrings: http://dlang.org/lex.html#HexString They're rarely used, but very useful when needed. But, as the octal literals have shown, they can be easily replaced with a library template: x"00 FBCD 32FD 0A" becomes:

Re: dfmt options

2015-03-15 Thread Jonathan M Davis via Digitalmars-d
On Sunday, March 15, 2015 03:02:53 Walter Bright via Digitalmars-d wrote: > Haven't we all got better things to do than argue about formatting styles? Sure, like we have better things than to argue about vim vs emacs. But I wouldn't want to be forced to use emacs (or micro-emacs) just because that

Re: dfmt options

2015-03-15 Thread Jonathan M Davis via Digitalmars-d
On Sunday, March 15, 2015 02:10:13 Walter Bright via Digitalmars-d wrote: > > Let's _please_ not try and force any particular style on the D community. > > Forcing is a little strong. dfmt is an optional tool, not the core language. Yes, sorry. Forcing is too strong a word. However, if we're putt

Re: const as default for variables

2015-03-15 Thread deadalnix via Digitalmars-d
On Sunday, 15 March 2015 at 07:44:50 UTC, Walter Bright wrote: "const ref" can tell the optimizer that that path for a ref counted object cannot alter its ref count. That is not clear why. const ref is supposed to protect against escaping when ref does not ?

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread deadalnix via Digitalmars-d
On Sunday, 15 March 2015 at 14:59:22 UTC, Sativa wrote: On Sunday, 15 March 2015 at 14:15:18 UTC, disme wrote: do you people really want to see this language be more popular? do you? doesnt look like it at all to me, the only few people in those 18+ pages that are actually telling you the real

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread deadalnix via Digitalmars-d
On Sunday, 15 March 2015 at 14:01:00 UTC, bearophile wrote: Walter Bright: I'd also prefer to get rid of /+ +/ comments, I thought they'd be more useful than they are. I prefer to get rid of /* */ instead :-) Because /++/ can do things /**/ can't. Bye, bearophile /* ... /*/ ... //*/

Re: Post increment and decrement

2015-03-15 Thread deadalnix via Digitalmars-d
On Sunday, 15 March 2015 at 08:45:55 UTC, Jonathan M Davis wrote: On Saturday, March 14, 2015 15:35:24 Ali Çehreli via Digitalmars-d wrote: On 03/14/2015 03:23 PM, deadalnix wrote: > But, for some reason, the topic come up again and again from C++ devs > that have no idea the optimization gu

Re: Replace core language HexStrings with library entity

2015-03-15 Thread deadalnix via Digitalmars-d
On Sunday, 15 March 2015 at 19:48:22 UTC, Walter Bright wrote: The motivation for this came from a post by deadalnix. And I'm obviously all for it :)

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Kagamin via Digitalmars-d
http://dpaste.dzfl.pl/0f63623cc262a ?

Replace core language HexStrings with library entity

2015-03-15 Thread Walter Bright via Digitalmars-d
HexStrings: http://dlang.org/lex.html#HexString They're rarely used, but very useful when needed. But, as the octal literals have shown, they can be easily replaced with a library template: x"00 FBCD 32FD 0A" becomes: hex!"00 FBCD 32FD 0A" It'll simplify the core language sligh

Re: Post increment and decrement

2015-03-15 Thread Kagamin via Digitalmars-d
On Sunday, 15 March 2015 at 19:39:06 UTC, ketmar wrote: wow! i wrote an excellect optimizer yesterday. it optimizes any code to `nop`... Why, rm didn't work for you?

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Walter Bright via Digitalmars-d
The motivation for this came from a post by deadalnix.

Re: Post increment and decrement

2015-03-15 Thread ketmar via Digitalmars-d
On Sun, 15 Mar 2015 19:34:11 +, Kagamin wrote: > Optimizer optimizes any code, it doesn't matter, what the code does. wow! i wrote an excellect optimizer yesterday. it optimizes any code to `nop`... signature.asc Description: PGP signature

Re: Post increment and decrement

2015-03-15 Thread Kagamin via Digitalmars-d
On Sunday, 15 March 2015 at 08:45:55 UTC, Jonathan M Davis wrote: cost you anything, and you can't rely on the compiler's ability to optimize If you want performance and can't rely on optimizations, you can only use assembler. because the C++ standards committee didn't restrict the overload

Re: The next iteration of scope

2015-03-15 Thread via Digitalmars-d
On Sunday, 15 March 2015 at 17:31:17 UTC, Nick Treleaven wrote: On 15/03/2015 14:10, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: Here's the new version of my scope proposal: http://wiki.dlang.org/User:Schuetzm/scope2 It's still missing real-life examples, a section on the implementation, and a mor

Re: dfmt options

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/14/2015 8:32 PM, Rikki Cattermole wrote: This might be a bit of a out of scope, but auto generating of DDOC comments for symbols would be nice. Basically to enforce before e.g. committing that everything has been explained. Autogeneration of documentation is by definition useless. Document

Re: dfmt options

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 10:37 AM, Idan Arye wrote: The thing is - gofmt was where from the very beginning of Go(or at least from r56, the first stable release. I didn't dig any deeper...). This means that any Go project was using the one true style from the beginning. dfmt, on the other hand, comes out when

Re: The documentation for std.format needs work

2015-03-15 Thread anonymous via Digitalmars-d
On Sunday, 15 March 2015 at 18:02:30 UTC, Gary Willoughby wrote: The documentation seems to be screwed here: http://dlang.org/phobos/std_format.html Already fixed, just waiting for the release: http://dlang.org/phobos-prerelease/std_format.html https://github.com/D-Programming-Language/phobos

Re: dfmt options

2015-03-15 Thread Walter Bright via Digitalmars-d
On 3/15/2015 3:12 AM, Dicebot wrote: It is also matter of expectation. Until now D was very un-opinionated language, probably even closer to language construction set. If this changes for one case, one may fear more similar decisions may follow. That's not entirely correct. For example, the rul

Re: dfmt options

2015-03-15 Thread Idan Arye via Digitalmars-d
On Saturday, 14 March 2015 at 23:15:35 UTC, Brian Schott wrote: First, a disclaimer: I am an idiot for starting this thread. Moving on... I'm working on a list of configuration options for dfmt - a formatter for D source code. So far I have the following: * Insert spaces between if, while,

Re: dfmt options

2015-03-15 Thread Martin Nowak via Digitalmars-d
On 03/15/2015 12:48 AM, Walter Bright wrote: > On 3/14/2015 4:15 PM, Brian Schott wrote: >> What am I missing? > > I suggest defining "The One True Way" and have no configuration options. It's a bit late to enforce a particular D code style on all the existing code and people already using D. Som

The documentation for std.format needs work

2015-03-15 Thread Gary Willoughby via Digitalmars-d
The documentation seems to be screwed here: http://dlang.org/phobos/std_format.html

Re: sudo apt-get install dmd

2015-03-15 Thread Andrei Alexandrescu via Digitalmars-d
On 3/15/15 10:49 AM, weaselcat wrote: On Sunday, 15 March 2015 at 13:13:25 UTC, Russel Winder wrote: On Sat, 2015-03-14 at 19:34 +, weaselcat via Digitalmars-d wrote: […] I thought DMD wasn't included in free distros because of licensing issues? Well it's about time the licences changed t

Re: sudo apt-get install dmd

2015-03-15 Thread weaselcat via Digitalmars-d
On Sunday, 15 March 2015 at 17:51:18 UTC, Andrei Alexandrescu wrote: On 3/15/15 10:49 AM, weaselcat wrote: On Sunday, 15 March 2015 at 13:13:25 UTC, Russel Winder wrote: On Sat, 2015-03-14 at 19:34 +, weaselcat via Digitalmars-d wrote: […] I thought DMD wasn't included in free distros beca

Re: sudo apt-get install dmd

2015-03-15 Thread weaselcat via Digitalmars-d
On Sunday, 15 March 2015 at 17:52:45 UTC, weaselcat wrote: On Sunday, 15 March 2015 at 17:51:18 UTC, Andrei Alexandrescu wrote: On 3/15/15 10:49 AM, weaselcat wrote: On Sunday, 15 March 2015 at 13:13:25 UTC, Russel Winder wrote: On Sat, 2015-03-14 at 19:34 +, weaselcat via Digitalmars-d wr

Re: Smart references

2015-03-15 Thread Zach the Mystic via Digitalmars-d
On Saturday, 14 March 2015 at 15:55:51 UTC, Marc Schütz wrote: Are the suggested changes also related to the possibility of making `ref` a type? Are there plans to do this? I remember Walter suggested `ref` for non-parameters, i.e. local variables, but as a storage class, not a type modifier.

Re: sudo apt-get install dmd

2015-03-15 Thread weaselcat via Digitalmars-d
On Sunday, 15 March 2015 at 13:13:25 UTC, Russel Winder wrote: On Sat, 2015-03-14 at 19:34 +, weaselcat via Digitalmars-d wrote: […] I thought DMD wasn't included in free distros because of licensing issues? Well it's about time the licences changed then. It would be nice if Walter com

Re: sudo apt-get install dmd

2015-03-15 Thread Andrei Alexandrescu via Digitalmars-d
On 3/15/15 5:25 AM, Joseph Rushton Wakeling via Digitalmars-d wrote: On 14/03/15 18:31, Andrei Alexandrescu via Digitalmars-d wrote: I was looking at easy installation of dmd on ubuntu, and found this: http://d-apt.sourceforge.net/ Should we make it part of the official distribution? It woul

Re: dfmt options

2015-03-15 Thread Idan Arye via Digitalmars-d
On Sunday, 15 March 2015 at 09:10:13 UTC, Walter Bright wrote: On 3/15/2015 1:12 AM, Jonathan M Davis via Digitalmars-d wrote: Which would instantly make it useless for many users, because many of them will disagree with the "One True Way" regardless of what it is. Tabs vs spaces, BSD Allman br

Re: The next iteration of scope

2015-03-15 Thread Nick Treleaven via Digitalmars-d
On 15/03/2015 14:10, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: Here's the new version of my scope proposal: http://wiki.dlang.org/User:Schuetzm/scope2 It's still missing real-life examples, a section on the implementation, and a more formal specification, as well as a discussion of backwards compa

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Nicolas Sicard via Digitalmars-d
On Sunday, 15 March 2015 at 14:01:00 UTC, bearophile wrote: Walter Bright: I'd also prefer to get rid of /+ +/ comments, I thought they'd be more useful than they are. I prefer to get rid of /* */ instead :-) Because /++/ can do things /**/ can't. +1 And on my keyboard, /++/ is easier tha

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread weaselcat via Digitalmars-d
On Sunday, 15 March 2015 at 14:15:18 UTC, disme wrote: do you people really want to see this language be more popular? do you? doesnt look like it at all to me, the only few people in those 18+ pages that are actually telling you the real problems are mostly being ignored for futile python, go

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Almighty Bob via Digitalmars-d
On Sunday, 15 March 2015 at 05:06:41 UTC, Walter Bright wrote: On 3/13/2015 2:20 PM, bearophile wrote: I have used languages that did not have implicit casting (Pascal) and didn't have a positive experience with it. It didn't detect a single actual bug, and managed to be quite annoying. I'

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Chris via Digitalmars-d
On Sunday, 15 March 2015 at 14:15:18 UTC, disme wrote: do you people really want to see this language be more popular? do you? doesnt look like it at all to me, the only few people in those 18+ pages that are actually telling you the real problems are mostly being ignored for futile python, go

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Sativa via Digitalmars-d
On Sunday, 15 March 2015 at 14:15:18 UTC, disme wrote: do you people really want to see this language be more popular? do you? doesnt look like it at all to me, the only few people in those 18+ pages that are actually telling you the real problems are mostly being ignored for futile python, go

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Sativa via Digitalmars-d
On Friday, 13 March 2015 at 03:24:44 UTC, Walter Bright wrote: On 3/12/2015 5:20 PM, Andrei Alexandrescu wrote: * Golang: simple! D1 was the simple version of D. People wanted more. Java was originally sold as, and got a great of adoption because, it was a C++ like language with all that ann

Re: dfmt options

2015-03-15 Thread ketmar via Digitalmars-d
On Sun, 15 Mar 2015 14:49:35 +0100, Mathias Lang via Digitalmars-d wrote: > but One True Way would just lead to fork exactly! signature.asc Description: PGP signature

Re: Trying to build my app with DMD2.66 and GtkD 2.4.2

2015-03-15 Thread Steve Teale via Digitalmars-d
On Sunday, 15 March 2015 at 12:57:42 UTC, Rikki Cattermole wrote: On 16/03/2015 1:49 a.m., Steve Teale wrote: On Sunday, 15 March 2015 at 12:32:31 UTC, Rikki Cattermole wrote: On 16/03/2015 1:28 a.m., Steve Teale wrote: I'm trying to build my app after upgrading to DMD2.66 and the latest GtkD.

Re: sudo apt-get install dmd

2015-03-15 Thread Iain Buclaw via Digitalmars-d
On 15 Mar 2015 13:45, "Joseph Rushton Wakeling via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > On 15/03/15 14:11, Russel Winder via Digitalmars-d wrote: >> >> Experience tells us that Launchpad PPAs are fine for Ubuntu and no use >> for Debian. > > > Ack, that's a shame. I have no dir

thoughts on best way to implement bokeh interface in D

2015-03-15 Thread Laeeth Isharc via Digitalmars-d
Bokeh is a very cool charting library that is distinguished by a focus on interactivity in the browser. Each chart is an html file with an embedded bokeh javascript library - the server generates JSON from the object model and the client take this and renders it. There are ways to register ca

Re: const as default for variables

2015-03-15 Thread via Digitalmars-d
On Sunday, 15 March 2015 at 13:21:11 UTC, Sönke Ludwig wrote: My proposal would be to make "scope" (with strong recursive guarantees) the default instead to achieve that goal. That would give the compiler a lot of optimization potential (much more than just for RC), and would at the same time m

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread disme via Digitalmars-d
do you people really want to see this language be more popular? do you? doesnt look like it at all to me, the only few people in those 18+ pages that are actually telling you the real problems are mostly being ignored for futile python, go and rust talk, seriously? let me go ahead and say tha

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 15 March 2015 at 12:52:37 UTC, Chris wrote: Apart from performance issues, for language processing, string handling etc., Python quickly becomes a nightmare (UTF-8). Then there are issues like the one that classes cannot really have private variables. [I am by no means expert in Py

The next iteration of scope

2015-03-15 Thread via Digitalmars-d
Here's the new version of my scope proposal: http://wiki.dlang.org/User:Schuetzm/scope2 It's still missing real-life examples, a section on the implementation, and a more formal specification, as well as a discussion of backwards compatibility. But I thought I'd show what I have, so that it ca

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread bearophile via Digitalmars-d
Walter Bright: I'd also prefer to get rid of /+ +/ comments, I thought they'd be more useful than they are. I prefer to get rid of /* */ instead :-) Because /++/ can do things /**/ can't. Bye, bearophile

Re: Template constraints

2015-03-15 Thread matovitch via Digitalmars-d
Sorry for the mistakes in the above message (and in this one). I didnt gave earlier my personnal opinion on the matter but essentially if I like the syntax of type classes very much, you can do much more with templates constraint and D meta programming abilities...But you still have to fix some

Re: dfmt options

2015-03-15 Thread ketmar via Digitalmars-d
On Sun, 15 Mar 2015 13:47:26 +, ketmar wrote: > on the other side, i can see a sense in generating "stubs" for functions > and templates, as it's somewhat boring to copypaste argument names. not > that it's a big deal, but... ;-) i mean ddoc stubs, of course. ;-) signature.asc Description: P

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 15 March 2015 at 10:53:21 UTC, Marc Schütz wrote: I hope you'll get better! Thanks. On the mend, but it takes time... 3. I have said so before (the GroupBy docs) - standard library documentation is 'perfectly clear' if you have a technical mindset and are used to reading formalis

Re: dfmt options

2015-03-15 Thread ketmar via Digitalmars-d
On Mon, 16 Mar 2015 02:37:46 +1300, Rikki Cattermole wrote: > On 16/03/2015 2:33 a.m., ketmar wrote: >> On Mon, 16 Mar 2015 02:19:08 +1300, Rikki Cattermole wrote: >> >>> On 16/03/2015 2:16 a.m., ketmar wrote: On Sun, 15 Mar 2015 16:32:25 +1300, Rikki Cattermole wrote: > This might b

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread ponce via Digitalmars-d
On Sunday, 15 March 2015 at 04:32:25 UTC, Walter Bright wrote: I'd also prefer to get rid of /+ +/ comments, I thought they'd be more useful than they are. Using /+ +/ regularly. Very useful to comment out large areas of code.

Re: Template constraints

2015-03-15 Thread matovitch via Digitalmars-d
On Sunday, 15 March 2015 at 10:40:17 UTC, w0rp wrote: On Sunday, 15 March 2015 at 08:29:01 UTC, bearophile wrote: Observe: https://github.com/D-Programming-Language/phobos/pull/3054 Is this change the partial proof of another failure of a part of D language design? What's the point of templat

Re: dfmt options

2015-03-15 Thread Mathias Lang via Digitalmars-d
2015-03-15 13:56 GMT+01:00 ketmar via Digitalmars-d < digitalmars-d@puremagic.com>: > > maybe it's time to fix the compiler, so it will simply reject the UnTrue > Sources? why relay to external tool for such fundamental task? That would be terrible. They are thing the compiler should enforce (IM

Re: sudo apt-get install dmd

2015-03-15 Thread Joseph Rushton Wakeling via Digitalmars-d
On 15/03/15 14:11, Russel Winder via Digitalmars-d wrote: Experience tells us that Launchpad PPAs are fine for Ubuntu and no use for Debian. Ack, that's a shame. I have no direct experience from the Debian side, but I'd thought the PPAs did allow for creating package builds for Debian release

Re: dfmt options

2015-03-15 Thread Rikki Cattermole via Digitalmars-d
On 16/03/2015 2:33 a.m., ketmar wrote: On Mon, 16 Mar 2015 02:19:08 +1300, Rikki Cattermole wrote: On 16/03/2015 2:16 a.m., ketmar wrote: On Sun, 15 Mar 2015 16:32:25 +1300, Rikki Cattermole wrote: This might be a bit of a out of scope, but auto generating of DDOC comments for symbols would

Re: dfmt options

2015-03-15 Thread ketmar via Digitalmars-d
On Mon, 16 Mar 2015 02:19:08 +1300, Rikki Cattermole wrote: > On 16/03/2015 2:16 a.m., ketmar wrote: >> On Sun, 15 Mar 2015 16:32:25 +1300, Rikki Cattermole wrote: >> >>> This might be a bit of a out of scope, but auto generating of DDOC >>> comments for symbols would be nice. Basically to enforce

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Mengu via Digitalmars-d
On Friday, 13 March 2015 at 02:00:08 UTC, Vladimir Panteleev wrote: On Friday, 13 March 2015 at 00:20:40 UTC, Andrei Alexandrescu wrote: I'd love us to derive a few action items from this and other feedback. I think the front page focuses too much on the language itself at the moment. Perhaps

Re: const as default for variables

2015-03-15 Thread Sönke Ludwig via Digitalmars-d
Am 15.03.2015 um 08:44 schrieb Walter Bright: On 3/14/2015 10:23 PM, deadalnix wrote: On Sunday, 15 March 2015 at 05:08:54 UTC, Walter Bright wrote: On 3/14/2015 8:50 PM, deadalnix wrote: Const is the inconvenience of immutability without its benefit. That would be a poor default, IMO. It's

Re: dfmt options

2015-03-15 Thread Sönke Ludwig via Digitalmars-d
Am 15.03.2015 um 06:55 schrieb Dicebot: On Sunday, 15 March 2015 at 01:45:56 UTC, Walter Bright wrote: On 3/14/2015 4:59 PM, Brian Schott wrote: On Saturday, 14 March 2015 at 23:49:00 UTC, Walter Bright wrote: I suggest defining "The One True Way" and have no configuration options. I hope you

Re: dfmt options

2015-03-15 Thread Rikki Cattermole via Digitalmars-d
On 16/03/2015 2:16 a.m., ketmar wrote: On Sun, 15 Mar 2015 16:32:25 +1300, Rikki Cattermole wrote: This might be a bit of a out of scope, but auto generating of DDOC comments for symbols would be nice. Basically to enforce before e.g. committing that everything has been explained. this never

Re: dfmt options

2015-03-15 Thread ketmar via Digitalmars-d
On Sun, 15 Mar 2015 16:32:25 +1300, Rikki Cattermole wrote: > This might be a bit of a out of scope, but auto generating of DDOC > comments for symbols would be nice. Basically to enforce before e.g. > committing that everything has been explained. this never helps. what sense of having "document

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Russel Winder via Digitalmars-d
On Sat, 2015-03-14 at 22:12 +, deadalnix via Digitalmars-d wrote: […] > > When it come to concurrency, Rust is. None of the other are. That would imply Rust has the possibility of replacing Spark Ada then? > Now you can double down on trying to make me prove a negative, > but that only make

Re: sudo apt-get install dmd

2015-03-15 Thread Russel Winder via Digitalmars-d
On Sun, 2015-03-15 at 06:05 +, Dicebot via Digitalmars-d wrote: […] > > You can't "distribute" repository. It could be good to move it to > "dlang.org" domain though and suggest using it in "downloads" > section instead of plain .deb package. It would be a good first step to move d-apt from

  1   2   >