Re: DDT 0.7.0 released

2013-08-19 Thread Jacob Carlborg
On 2013-08-16 15:12, Bruno Medeiros wrote: Very strange! (that it completes the install, but doesn't start properly) Let me see your configuration log, it's at: Help About Eclipse Installation Details Configuration And also the Error log, it's at View Error Log on that same dialog. Here's

Re: DDT 0.7.0 released

2013-08-19 Thread Bruno Medeiros
On 19/08/2013 08:40, Jacob Carlborg wrote: On 2013-08-16 15:12, Bruno Medeiros wrote: Very strange! (that it completes the install, but doesn't start properly) Let me see your configuration log, it's at: Help About Eclipse Installation Details Configuration And also the Error log, it's at

Re: DDT 0.7.0 released

2013-08-19 Thread Bruno Medeiros
On 16/08/2013 17:26, Russel Winder wrote: On Fri, 2013-08-16 at 14:19 +0100, Bruno Medeiros wrote: […] If you add the update site for the new Eclipse release (for example http://download.eclipse.org/releases/kepler for Kepler) to your current installation, and run the Check for Updates it

Re: D at University of Minnesota

2013-08-19 Thread Andrei Alexandrescu
On Saturday, 17 August 2013 at 15:22:26 UTC, Carl Sturtivant wrote: Well, CS2 in D is over, and grades are in. Being a summer course it was conducted at twice the speed as in a regular semester. [...]

Re: DDT 0.7.0 released

2013-08-19 Thread Russel Winder
On Mon, 2013-08-19 at 14:06 +0100, Bruno Medeiros wrote: […] Hum, I guess the annoyance is proportional to the amount of extra plugins you have. Personally I usually only have 1 or 2, the rest comes bundled with Eclipse, but I can definitely see that a lot of users could have a lot more

Lumen - KTextEditor/Kate/KDevelop Autocompletion Plugin

2013-08-19 Thread David
Lumen = Lumen is a KTextEditor autocompletion plugin for the D programming language, which works e.g. in Kate or KDevelop, based on the DCD autocompletion server. Lumen: https://github.com/Dav1dde/lumen DCD: https://github.com/Hackerpilot/DCD With this Plugin KDevelop finally evolves to the

Re: Lumen - KTextEditor/Kate/KDevelop Autocompletion Plugin

2013-08-19 Thread Kiith-Sa
On Monday, 19 August 2013 at 17:59:13 UTC, David wrote: Lumen = Lumen is a KTextEditor autocompletion plugin for the D programming language, which works e.g. in Kate or KDevelop, based on the DCD autocompletion server. Lumen: https://github.com/Dav1dde/lumen DCD:

Re: blocks with attributes vs inlined lambda

2013-08-19 Thread monarch_dodra
On Monday, 19 August 2013 at 02:33:43 UTC, Kenji Hara wrote: 2013/8/18 monarch_dodra monarchdo...@gmail.com On Tuesday, 18 June 2013 at 07:58:06 UTC, Kenji Hara wrote: Inlining should remove performance penalty. Nobody holds the immediately called lambda, so it should be treated as a 'scope

Re: Is D the Answer to the One vs. Two Language High ,Performance Computing Dilemma?

2013-08-19 Thread Paulo Pinto
On Sunday, 18 August 2013 at 18:33:05 UTC, Dicebot wrote: ... When people expect to get a performance gain from simply using certain language, it just can't end good. Specially because they tend to do the common fallacy of comparing languages instead of implementations.

[dox] Add 256-bit SIMD types to Vector Extensions chapter of D Programming Language Specification

2013-08-19 Thread Paul Jurczak
My mouse is red hot from clicking around Interwebs trying to find how to fix or report documentation issue. If this is not the best place, please direct me to the right one. Current (downloaded today) version of D Programming Language Specification doesn't have 256-bit SIMD types in Vector

Re: [dox] Add 256-bit SIMD types to Vector Extensions chapter of D Programming Language Specification

2013-08-19 Thread Iain Buclaw
On 19 August 2013 08:23, Paul Jurczak pauljurc...@yahoo.com wrote: My mouse is red hot from clicking around Interwebs trying to find how to fix or report documentation issue. If this is not the best place, please direct me to the right one. 'Websites' is a component in the bugzilla:

Re: [dox] Add 256-bit SIMD types to Vector Extensions chapter of D Programming Language Specification

2013-08-19 Thread Paul Jurczak
On Monday, 19 August 2013 at 07:36:42 UTC, Iain Buclaw wrote: [..] Documentation source is hosted here: https://github.com/D-Programming-Language/dlang.org Thanks, I was close, but somehow missed these files. Now I just have to learn the syntax of .dd files. [..] Oh... you mean someone

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread ilya-stromberg
On Sunday, 18 August 2013 at 18:26:55 UTC, Dicebot wrote: On Monday, 12 August 2013 at 13:27:45 UTC, Dicebot wrote: Stepping up to act as a Review Manager for Jacob Carlborg std.serialization So as a review manager, I think voting should be delayed until API is ready to address lazy

Re: [dox] Add 256-bit SIMD types to Vector Extensions chapter of D Programming Language Specification

2013-08-19 Thread Paul Jurczak
On Monday, 19 August 2013 at 07:36:42 UTC, Iain Buclaw wrote: [..] Documentation source is hosted here: https://github.com/D-Programming-Language/dlang.org I submitted my first pull request on Github. Is this the way to go about documentation issues, which are pretty straightforward (no

Missing dmd.conf for FreeBSD in DMD 2.063.2 release

2013-08-19 Thread Jacob Carlborg
The subject says it all. -- /Jacob Carlborg

Re: [dox] Add 256-bit SIMD types to Vector Extensions chapter of D Programming Language Specification

2013-08-19 Thread Iain Buclaw
On 19 August 2013 09:40, Paul Jurczak pauljurc...@yahoo.com wrote: On Monday, 19 August 2013 at 07:36:42 UTC, Iain Buclaw wrote: [..] Documentation source is hosted here: https://github.com/D-Programming-Language/dlang.org I submitted my first pull request on Github. Is this the way to go

Re: trusted purity?

2013-08-19 Thread monarch_dodra
I've been struggling with this, so here are my observations: On Monday, 29 April 2013 at 18:31:15 UTC, Walter Bright wrote: On 4/29/2013 3:58 AM, monarch_dodra wrote: Is there *any* way to make a call to a non-pure function in a pure context, if you know you won't violate your own purity? 2.

My thoughts on D

2013-08-19 Thread Larry
Hello, Maybe nobody cares, maybe not. I use D for a month now. It is great, the community is great. Really easy to handle it enables to get the productivity it promises. Almost. I used to run c++. I don't even want to look at my codes now. Instead, I run python along with D. D is very

Re: My thoughts on D

2013-08-19 Thread Larry
3) Some pages are not documented properly. And, as i am not someone pointing out the problems and hiding when time comes to propose solutions/solve them, I cannot even figure out the way some standard libraries are expected to work. (e.g:json; the json.org might be helpful but, common, we

Re: My thoughts on D

2013-08-19 Thread evilrat
On Monday, 19 August 2013 at 10:10:58 UTC, Larry wrote: 1) The library is getting wider. Good. But as of now, it is still TOO MUCH in the c++ style, in which you have to go to github to grab some non official libraries. Sometimes it works, sometimes it won't (of course it will compile but

Re: My thoughts on D

2013-08-19 Thread John Colvin
On Monday, 19 August 2013 at 10:10:58 UTC, Larry wrote: Hello, Maybe nobody cares, maybe not. I use D for a month now. It is great, the community is great. Really easy to handle it enables to get the productivity it promises. Almost. I used to run c++. I don't even want to look at my

Re: My thoughts on D

2013-08-19 Thread Larry
On Monday, 19 August 2013 at 10:29:53 UTC, evilrat wrote: On Monday, 19 August 2013 at 10:10:58 UTC, Larry wrote: 1) The library is getting wider. Good. But as of now, it is still TOO MUCH in the c++ style, in which you have to go to github to grab some non official libraries. Sometimes it

Re: My thoughts on D

2013-08-19 Thread Larry
I took the example of std.json. Where are the examples to write, read a json file ? http://dlang.org/phobos/std_json.html is absolutely helpless. It is that : details. When it will be fixed, D will really shine.

Re: When compiling multiple source files

2013-08-19 Thread Jacob Carlborg
On 2013-08-18 17:31, ProgrammingGhost wrote: How does the compiler do static typing of multiple source files? I heard D malloc memory and doesn't free to speed up compilation but I am guessing every instance doesn't compile just one source file? My question is if I have a function in this file

Re: Component programming

2013-08-19 Thread Chris
On Monday, 12 August 2013 at 12:28:36 UTC, Jason den Dulk wrote: On Wednesday, 31 July 2013 at 10:20:57 UTC, Chris wrote: This is only losely related to D, but I don't fully understand the separation of component programming and OOP What the wikipedia entry is saying, in a roundabout way is:

Re: My thoughts on D

2013-08-19 Thread Jason King
http://dlang.org/phobos/std_json.html is absolutely helpless. It is that : details. Larry has a point here. I suppose the DDoc is better than nothing, but it doesn't give me a clue how to actually use the package. But enough complaining, to improve the documentation would I 1) clone Phobos

Re: Tango Phobos

2013-08-19 Thread anggayono
On Sunday, 2 May 2010 at 18:16:59 UTC, Bane wrote: Walter Bright Wrote: Bane wrote: I meant on topic removal from DM newsgroup. I guess Walther did it, as he is the one administering it, right? I support his decision for a reason I wrote above. Yes, I did it, it was my idea to do so.

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Jacob Carlborg
On 2013-08-18 01:31, Jesse Phillips wrote: I'd like to start off by saying I don't really know what I want from a std.serialize module. I've done some work with a C# JSON serializer and dealt with Protocol Buffers. This library looks to be providing a means to serialize any D data structure. It

Re: trusted purity?

2013-08-19 Thread bearophile
monarch_dodra: FYI, the problem I'm trying to fix is this one: * uninitializedArray returns an array with un-initialized elements. This, by definition, is not pure, since the value returned is garbage. I'm fixing the function so that it becomes *impure*. * array is implemented in terms of

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Jacob Carlborg
On 2013-08-18 20:26, Dicebot wrote: OK, time to make a short summary. There have been mentioned several issues / improvement possibilities. I don't think they prevent voting and it is up to Jacob to decide what he want to incorporate from it. I've been quite busy lately but I've tried to

Re: My thoughts on D

2013-08-19 Thread Jason den Dulk
1) The library is getting wider. Good. But as of now, it is still TOO MUCH in the c++ style, in which you have to go to github to grab some non official libraries. Sometimes it works, sometimes it won't (of course it will compile but not easy to use or error prone - not a good standard for a

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Dicebot
On Monday, 19 August 2013 at 12:57:56 UTC, Jacob Carlborg wrote: I've been quite busy lately but I've tried to address the minor issues with regards of documentation. I've hit a new problem in the process: http://forum.dlang.org/thread/kujcns$1quo$1...@digitalmars.com I also expect that

Re: My thoughts on D

2013-08-19 Thread Dicebot
On Monday, 19 August 2013 at 12:03:14 UTC, Jason King wrote: But enough complaining, to improve the documentation would I 1) clone Phobos in github 2) improve the docs on my branch 3) request a (merge|pull|whatever the git verb is to apply my changes) Assuming that path is correct, to whom

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread ilya-stromberg
On Monday, 19 August 2013 at 12:49:48 UTC, Jacob Carlborg wrote: I have had a brief look at Protocol Buffers and I don't see why it wouldn't work as an archive. I would probably need to implement a Protocol Buffers archive type to see what the limitations of std.serialization and Protocol

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Jacob Carlborg
On 2013-08-19 15:03, Dicebot wrote: Great! Are there any difficulties with the input? It just that I don't clearly know how the code will need to look like, and I'm not particular familiar with implementing range based code. -- /Jacob Carlborg

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Dicebot
On Monday, 19 August 2013 at 13:31:27 UTC, Jacob Carlborg wrote: On 2013-08-19 15:03, Dicebot wrote: Great! Are there any difficulties with the input? It just that I don't clearly know how the code will need to look like, and I'm not particular familiar with implementing range based code.

Re: My thoughts on D

2013-08-19 Thread qznc
On Monday, 19 August 2013 at 12:03:14 UTC, Jason King wrote: http://dlang.org/phobos/std_json.html is absolutely helpless. It is that : details. Larry has a point here. I suppose the DDoc is better than nothing, but it doesn't give me a clue how to actually use the package. But enough

Re: ClassInfo.find not working for nested classes

2013-08-19 Thread ilya-stromberg
On Thursday, 15 August 2013 at 20:12:44 UTC, Jacob Carlborg wrote: I just noticed that ClassInfo.find not working for nested classes, even if they are static. For example: Bugzilla?

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Tyler Jameson Little
On Monday, 19 August 2013 at 13:31:27 UTC, Jacob Carlborg wrote: On 2013-08-19 15:03, Dicebot wrote: Great! Are there any difficulties with the input? It just that I don't clearly know how the code will need to look like, and I'm not particular familiar with implementing range based code.

Re: windows .lib files (dmc has them, dmd doesn't)

2013-08-19 Thread Damian
On Sunday, 18 August 2013 at 14:53:25 UTC, Andrej Mitrovic wrote: On Sunday, 18 August 2013 at 14:51:52 UTC, Adam D. Ruppe wrote: Can we get some more .lib files with the dmd distribution? And also update the old ones: http://d.puremagic.com/issues/show_bug.cgi?id=6625 This should really

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread bsd
On Sunday, 18 August 2013 at 20:33:01 UTC, Jonathan M Davis wrote: On Sunday, August 18, 2013 21:45:59 Jacob Carlborg wrote: If versioning is crucial it can be added. I don't know if it's crucial or not, but I know that the Java guys didn't have it initially but ended up adding it later,

Re: trusted purity?

2013-08-19 Thread monarch_dodra
On Monday, 19 August 2013 at 12:55:54 UTC, bearophile wrote: The problem is that while writing down the proof of the purity of foo3 is probably not too much hard, later the D compiler is not able to verify such proof. Bye, bearophile Right, that is pretty much it. EG: // import

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Jacob Carlborg
On 2013-08-19 15:47, Dicebot wrote: Ok, I'll investigate related part of package a bit more in details during this week and see if I can suggest something. What I have now is something like this: auto foo = new Foo; foo.a = 3; auto archive = new XmlArchive!(string); // string is the range

Re: ClassInfo.find not working for nested classes

2013-08-19 Thread Jacob Carlborg
On 2013-08-19 16:10, ilya-stromberg wrote: Bugzilla? Yeah, I was hoping to start a discussion here to see if it's even possible to support. -- /Jacob Carlborg

Re: ClassInfo.find not working for nested classes

2013-08-19 Thread Jacob Carlborg
On 2013-08-19 16:10, ilya-stromberg wrote: Bugzilla? Added: http://d.puremagic.com/issues/show_bug.cgi?id=10853 -- /Jacob Carlborg

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Jesse Phillips
On Monday, 19 August 2013 at 13:17:48 UTC, ilya-stromberg wrote: On Monday, 19 August 2013 at 12:49:48 UTC, Jacob Carlborg wrote: I have had a brief look at Protocol Buffers and I don't see why it wouldn't work as an archive. I would probably need to implement a Protocol Buffers archive type

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Jesse Phillips
On Monday, 19 August 2013 at 12:49:48 UTC, Jacob Carlborg wrote: I have had a brief look at Protocol Buffers and I don't see why it wouldn't work as an archive. I would probably need to implement a Protocol Buffers archive type to see what the limitations of std.serialization and Protocol

Re: Any cryptographically secure pseudo-random number generator (CSPRNG) for D?

2013-08-19 Thread ilya-stromberg
On Sunday, 18 August 2013 at 19:32:50 UTC, QAston wrote: You may be interested in https://github.com/D-Programming-Deimos/openssl - D bindings for openssl. How can I get access to the /dev/random or /dev/urandom (Linux only)? Like a file via std.file, or D have spesial function?

Re: Any cryptographically secure pseudo-random number generator (CSPRNG) for D?

2013-08-19 Thread John Colvin
On Monday, 19 August 2013 at 15:56:04 UTC, ilya-stromberg wrote: On Sunday, 18 August 2013 at 19:32:50 UTC, QAston wrote: You may be interested in https://github.com/D-Programming-Deimos/openssl - D bindings for openssl. How can I get access to the /dev/random or /dev/urandom (Linux only)?

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Jacob Carlborg
On 2013-08-19 17:40, Jesse Phillips wrote: I not familiar with the interaction of Archive and Serializer. I was overwhelmed by the number of functions I'd have to implement (or in my case ignore) and ultimately I didn't know what my serialized data would look like. std.serialization basically

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Jacob Carlborg
On 2013-08-19 15:03, Dicebot wrote: This thread: http://forum.dlang.org/post/xqklcesoguxujifij...@forum.dlang.org I have removed all uses of mixin annotations. -- /Jacob Carlborg

Re: Actor model D

2013-08-19 Thread Andrei Alexandrescu
On 8/18/13 9:24 PM, Tyler Jameson Little wrote: On Monday, 19 August 2013 at 03:11:00 UTC, Luís Marques wrote: Can anyone please explain me what it means for the D language to follow the Actor model, as the relevant Wikipedia page says it does? [1] [1]

Re: Language and library reference pages very slow to load

2013-08-19 Thread Andrei Alexandrescu
On 8/18/13 10:28 PM, H. S. Teoh wrote: On Mon, Aug 19, 2013 at 06:42:04AM +0200, finalpatch wrote: Apparently the javascript that's responsible for creating hyperlinks runs very slowly, usually several seconds or longer. eg. http://dlang.org/phobos/core_memory.html is so slow it causes Mozilla

Re: Language and library reference pages very slow to load

2013-08-19 Thread Andrei Alexandrescu
On 8/18/13 9:42 PM, finalpatch wrote: Apparently the javascript that's responsible for creating hyperlinks runs very slowly, usually several seconds or longer. eg. http://dlang.org/phobos/core_memory.html is so slow it causes Mozilla Firefox to pop up the page not responding box. I have also

Please submit to bugzilla (Was: Re: Missing dmd.conf for FreeBSD in DMD 2.063.2 release)

2013-08-19 Thread Andrei Alexandrescu
On 8/19/13 2:16 AM, Jacob Carlborg wrote: The subject says it all. Ditto :o). Andrei

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Jacob Carlborg
On 2013-08-19 17:41, Jesse Phillips wrote: Code has moved to https://github.com/opticron/ProtocolBuffer Does it have any utility functions that are fairly standalone to handle the basic types, i.e. int, string, float and so on? -- /Jacob Carlborg

Re: Please submit to bugzilla (Was: Re: Missing dmd.conf for FreeBSD in DMD 2.063.2 release)

2013-08-19 Thread Jacob Carlborg
On 2013-08-19 18:27, Andrei Alexandrescu wrote: Ditto :o). Done: http://d.puremagic.com/issues/show_bug.cgi?id=10855 -- /Jacob Carlborg

64bit version of DMD for FreeBSD in the release?

2013-08-19 Thread Jacob Carlborg
Is there a reason for why we don't have a 64bit version of DMD for FreeBSD in the release? -- /Jacob Carlborg

Re: Actor model D

2013-08-19 Thread Russel Winder
On Mon, 2013-08-19 at 09:20 -0700, Andrei Alexandrescu wrote: […] Go is CSP - isn't that different from Actor? CSP certainly is very different from actors, it's in the synchronization structure. Go's model isn't CSP per se, it is a more or less the same thing developed by Pike over the years.

Re: Actor model D

2013-08-19 Thread deadalnix
On Monday, 19 August 2013 at 16:20:37 UTC, Andrei Alexandrescu wrote: Go is CSP - isn't that different from Actor? Andrei I'd be interested to know the difference.

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Wyatt
Note: I'm leading off with a reply to bearophile transplanted here to stop making OT noise in John's thread about TypeTuple. On Friday, 16 August 2013 at 23:23:59 UTC, bearophile wrote: It's short, clear, has a precedent with q{}. Wait, what is q{}? That's something in D? What does that

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Dicebot
On Monday, 19 August 2013 at 16:53:06 UTC, Wyatt wrote: Note: I'm leading off with a reply to bearophile transplanted here to stop making OT noise in John's thread about TypeTuple. On Friday, 16 August 2013 at 23:23:59 UTC, bearophile wrote: It's short, clear, has a precedent with q{}.

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Wyatt
On Monday, 19 August 2013 at 16:57:35 UTC, Dicebot wrote: Check Token Strings in http://dlang.org/lex.html Didn't make it to the end of the paragraph? ;)

Re: When compiling multiple source files

2013-08-19 Thread ProgrammingGhost
On Monday, 19 August 2013 at 11:01:54 UTC, Jacob Carlborg wrote: The compiler will start compiling the files passed on the command line. It will read the files asynchronously and then lex, parse build an AST and do semantic analyze. When the semantic analyze is done it will have access to all

Re: A Discussion of Tuple Syntax

2013-08-19 Thread H. S. Teoh
On Mon, Aug 19, 2013 at 06:53:05PM +0200, Wyatt wrote: [...] This is the third or fourth time that I know of that tuple syntax has come up, and as of yet, nothing has been done about it. I'd really like to get the ball rolling on this, as I think a good syntax for these tuple operations would

Re: Language and library reference pages very slow to load

2013-08-19 Thread H. S. Teoh
On Mon, Aug 19, 2013 at 09:21:58AM -0700, Andrei Alexandrescu wrote: On 8/18/13 10:28 PM, H. S. Teoh wrote: On Mon, Aug 19, 2013 at 06:42:04AM +0200, finalpatch wrote: Apparently the javascript that's responsible for creating hyperlinks runs very slowly, usually several seconds or longer. eg.

Re: A Discussion of Tuple Syntax

2013-08-19 Thread John Colvin
On Monday, 19 August 2013 at 16:53:06 UTC, Wyatt wrote: Note: I'm leading off with a reply to bearophile transplanted here to stop making OT noise in John's thread about TypeTuple. On Friday, 16 August 2013 at 23:23:59 UTC, bearophile wrote: It's short, clear, has a precedent with q{}.

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Dicebot
On Monday, 19 August 2013 at 17:22:26 UTC, H. S. Teoh wrote: What I'd like to know, is how all of these proposals address the fundamental differences between symbol tuples (compile-time construct) Those are not symbol tuples. For example, `int` is not a symbol.

Re: trusted purity?

2013-08-19 Thread monarch_dodra
On Monday, 19 August 2013 at 12:55:54 UTC, bearophile wrote: For the function array() this is not enough, because instead of = void you have a function that returns some void-initialized data. To help the D type system a bit perhaps an annotations like @void_init is useful, to be attached to

Re: Language and library reference pages very slow to load

2013-08-19 Thread Nick Sabalausky
On Mon, 19 Aug 2013 09:21:58 -0700 Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 8/18/13 10:28 PM, H. S. Teoh wrote: My guess is that this is caused either by hyphenate.js or hyphenate-selectively.js, both of which, thankfully, will be going away once dlang.org is updated

Re: Any cryptographically secure pseudo-random number generator (CSPRNG) for D?

2013-08-19 Thread Walter Bright
On 8/19/2013 8:56 AM, ilya-stromberg wrote: On Sunday, 18 August 2013 at 19:32:50 UTC, QAston wrote: You may be interested in https://github.com/D-Programming-Deimos/openssl - D bindings for openssl. How can I get access to the /dev/random or /dev/urandom (Linux only)? Like a file via

Re: When compiling multiple source files

2013-08-19 Thread John Colvin
On Monday, 19 August 2013 at 17:15:35 UTC, ProgrammingGhost wrote: On Monday, 19 August 2013 at 11:01:54 UTC, Jacob Carlborg wrote: The compiler will start compiling the files passed on the command line. It will read the files asynchronously and then lex, parse build an AST and do semantic

Re: Static unittests?

2013-08-19 Thread monarch_dodra
On Sunday, 18 August 2013 at 20:35:06 UTC, Walter Bright wrote: On 8/5/2013 11:27 AM, monarch_dodra wrote: What about, for example: assertCTFEable!({ int i = 5; string s; while (i--) s ~= 'a'; assert(s == a); }); I don't believe that is a valid use case because

Re: A Discussion of Tuple Syntax

2013-08-19 Thread H. S. Teoh
On Mon, Aug 19, 2013 at 07:34:38PM +0200, Dicebot wrote: On Monday, 19 August 2013 at 17:22:26 UTC, H. S. Teoh wrote: What I'd like to know, is how all of these proposals address the fundamental differences between symbol tuples (compile-time construct) Those are not symbol tuples. For

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Dicebot
On Monday, 19 August 2013 at 17:45:44 UTC, H. S. Teoh wrote: On Mon, Aug 19, 2013 at 07:34:38PM +0200, Dicebot wrote: On Monday, 19 August 2013 at 17:22:26 UTC, H. S. Teoh wrote: What I'd like to know, is how all of these proposals address the fundamental differences between symbol tuples

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Meta
On Monday, 19 August 2013 at 17:22:26 UTC, H. S. Teoh wrote: What I'd like to know, is how all of these proposals address the fundamental differences between symbol tuples (compile-time construct) and std.range.Tuple (runtime construct). As far as I can tell, people are still confusing the

Re: Language and library reference pages very slow to load

2013-08-19 Thread Andrei Alexandrescu
On 8/19/13 10:32 AM, H. S. Teoh wrote: On Mon, Aug 19, 2013 at 09:21:58AM -0700, Andrei Alexandrescu wrote: On 8/18/13 10:28 PM, H. S. Teoh wrote: On Mon, Aug 19, 2013 at 06:42:04AM +0200, finalpatch wrote: Apparently the javascript that's responsible for creating hyperlinks runs very slowly,

Unable to build deimos/libX11 with ldc2

2013-08-19 Thread Paul Z. Barsan
I got ldc2 from github and built it following this tutorial: http://wiki.dlang.org/Building_LDC_from_source . The ldc build and install went fine but when I try to build libX11 with it, I get the following errors: $make -j2 sh: arch: command not found Makefile:159: warning: overriding

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Johannes Pfau
Am Mon, 19 Aug 2013 16:21:44 +0200 schrieb Tyler Jameson Little beatgam...@gmail.com: On Monday, 19 August 2013 at 13:31:27 UTC, Jacob Carlborg wrote: On 2013-08-19 15:03, Dicebot wrote: Great! Are there any difficulties with the input? It just that I don't clearly know how the code

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Andrei Alexandrescu
On 8/19/13 10:54 AM, Dicebot wrote: On Monday, 19 August 2013 at 17:45:44 UTC, H. S. Teoh wrote: On Mon, Aug 19, 2013 at 07:34:38PM +0200, Dicebot wrote: On Monday, 19 August 2013 at 17:22:26 UTC, H. S. Teoh wrote: What I'd like to know, is how all of these proposals address the fundamental

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Dicebot
On Monday, 19 August 2013 at 17:57:45 UTC, Meta wrote: As far as I can tell, when everyone talks about tuple syntax, they are talking about run-time tuples. That's definitely what I'm talking about whenever I mention tuple syntax, as I don't think it would be a good thing to use it for both

Re: Ideas for a brand new widget toolkit

2013-08-19 Thread Joakim
On Friday, 16 August 2013 at 12:36:39 UTC, Wyatt wrote: On Thursday, 15 August 2013 at 18:35:22 UTC, Joakim wrote: I've only done X11 forwarding over ssh, both WAN and LAN, it was incredibly laggy in both cases. As Andrei and I have pointed out, NX does a much better job of things. If

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Dicebot
On Monday, 19 August 2013 at 18:11:34 UTC, Andrei Alexandrescu wrote: I'd call them alias tuples. Because we don't have strict definition of alias too? :) Actually, I have forgot again that built-in tuples are not always compile-time. They can be used to declare run-time entities with tuple

Re: A Discussion of Tuple Syntax

2013-08-19 Thread bearophile
Wyatt: The octothorpe _is_ much better than the t simply in terms of readability, though, even more than q{} or t{}, I have concerns about its ability to be found with an ordinary search engine by an ordinary user. Have you tried looking for documentation on weird operators with a search

Re: Unable to build deimos/libX11 with ldc2

2013-08-19 Thread David Nadlinger
On Monday, 19 August 2013 at 18:05:41 UTC, Paul Z. Barsan wrote: deimos/X11/Xlibint.d(895): Error: Function type does not match previously declared function with the same mangled name: Data Without having looked at the libX11 sources at all, the error message implies that there are multiple

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Dicebot
On Monday, 19 August 2013 at 18:19:11 UTC, bearophile wrote: Mine was an idea, but if it turns out to be a bad idea, then let's ignore it. I was initially completely opposed against it but now that I have realized built-in ones do some run-time magic too, it does not sound _that_ crazy

Experience report: teaching D at a summer course at University of Minnesota

2013-08-19 Thread Walter Bright
http://www.reddit.com/r/programming/comments/1ko94o/experience_report_teaching_d_at_a_summer_course/

Re: A Discussion of Tuple Syntax

2013-08-19 Thread H. S. Teoh
On Mon, Aug 19, 2013 at 08:10:38PM +0200, Dicebot wrote: On Monday, 19 August 2013 at 17:57:45 UTC, Meta wrote: As far as I can tell, when everyone talks about tuple syntax, they are talking about run-time tuples. That's definitely what I'm talking about whenever I mention tuple syntax, as I

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Meta
On Monday, 19 August 2013 at 16:53:06 UTC, Wyatt wrote: To be clear, I'm not talking about braces, {}; I'm talking about parentheses, (). I read over that whole DIP32 thread a couple times, and didn't see any rationale offered for why the likely cleanest version can't be used. It wasn't even

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Wyatt
On Monday, 19 August 2013 at 18:19:11 UTC, bearophile wrote: The ? of regexes is inside strings, so I think it causes no problems. And I think it doesn't clash with the ternary operator because before the ? wildcard you put a comma, a semicolon or a #(. I was primarily addressing the fact

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Meta
Realistically, Andrei, how amenable are you and Walter to adding tuple literal/packingunpacking/pattern matching syntax to D, be it Tuple, TypeTuple, whatever? I don't recall either of you commenting much in the two other discussion threads linked. We can discuss this all day, but it what are

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread Dmitry Olshansky
19-Aug-2013 22:05, Johannes Pfau пишет: Am Mon, 19 Aug 2013 16:21:44 +0200 schrieb Tyler Jameson Little beatgam...@gmail.com: Another point is that serialize in the above example could be renamed to put. This way Serializer would itself be an OutputRange which allows stuff like

Re: Unable to build deimos/libX11 with ldc2

2013-08-19 Thread Paul Z. Barsan
Oh, sorry for using the wrong forum section. I used the dmd compiler and the build went fine. Is pretty weird though because ldc2 is the default compiler used to build libX11. I filed an issue report for deimos/libX11 on their project page.

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Timon Gehr
On 08/19/2013 07:44 PM, H. S. Teoh wrote: Well, OK, whatever they're supposed to be called. Compiler-tuples, or expression tuples, or whatever. See, part of the problem is that they just don't have any good name that correctly conveys what they are. They are simply template argument lists.

Re: Unable to build deimos/libX11 with ldc2

2013-08-19 Thread Adam D. Ruppe
BTW what do you plan to do with the libx11? You might find my simpledisplay.d (also depends on color.d) interesting from my miscellaneous github: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff It provides a class called SimpleWindow that supports basic

Re: std.serialization: pre-voting review / discussion

2013-08-19 Thread David Nadlinger
On Monday, 19 August 2013 at 14:47:15 UTC, bsd wrote: I think this versioning idea is more important for protocol buffers, msgpck, thrift like libraries that use a separate IDL schema and IDL-compiled code. std.serialization uses the D code itself to serialize so the version is practically

Re: Unable to build deimos/libX11 with ldc2

2013-08-19 Thread Paul Z. Barsan
On Monday, 19 August 2013 at 19:25:03 UTC, Adam D. Ruppe wrote: BTW what do you plan to do with the libx11? It's a dependency for Cairo. I want to use Cairo for drawing stuff on the screen. This library is also used by GTK 3 to render all their widgets.Besides that, it supports multiple

Re: A Discussion of Tuple Syntax

2013-08-19 Thread bearophile
Meta: It *could* be an underscore; the only thing is that the underscore is a valid variable name, so the above expression would actually be binding two variables, which might surprise someone who was expecting otherwise. I don't really care all that much, but it's something to think about.

Re: A Discussion of Tuple Syntax

2013-08-19 Thread Meta
On Monday, 19 August 2013 at 19:54:43 UTC, bearophile wrote: ... That too.

Re: A Discussion of Tuple Syntax

2013-08-19 Thread bearophile
void main() { auto t1 = #(5, hello, 1.5); auto (_, _, x) = t1; auto (_, gr, _) = t1; } I need to get used to the proposed syntax, sorry: void main() { auto t1 = #(5, hello, 1.5); auto #(_, _, x) = t1; auto #(_, gr, _) = t1; } Bye, bearophile

  1   2   3   >