Re: python vs d

2014-04-28 Thread Chris via Digitalmars-d
On Thursday, 24 April 2014 at 06:38:42 UTC, Suliman wrote: I am following discussions about GC and some other 'critical' improves in D language for a long time. I see a lot of arguments and heaps of code, that often hard to understand (for example Templates) even more complicated to use it.

Re: python vs d

2014-04-28 Thread Chris via Digitalmars-d
On Monday, 28 April 2014 at 09:27:33 UTC, John Colvin wrote: On Monday, 28 April 2014 at 09:10:53 UTC, Chris wrote: On Thursday, 24 April 2014 at 06:38:42 UTC, Suliman wrote: I am following discussions about GC and some other 'critical' improves in D language for a long time. I see a lot of

Re: python vs d

2014-04-28 Thread Chris via Digitalmars-d
On Monday, 28 April 2014 at 13:26:51 UTC, Russel Winder via Digitalmars-d wrote: On Mon, 2014-04-28 at 09:43 +, Chris via Digitalmars-d wrote: […] Yeah, Python is good for fast prototyping, that's why the scientific community uses it. However, when it comes to using the code for real

Re: python vs d

2014-04-28 Thread Chris via Digitalmars-d
On Monday, 28 April 2014 at 17:28:16 UTC, Ola Fosheim Grøstad wrote: On Monday, 28 April 2014 at 16:22:47 UTC, Russel Winder via Digitalmars-d wrote: Their environment is one in which Python is the only option (long story), so they write in Python and then optimize by using Cython on the CPU

Re: python vs d

2014-04-28 Thread Chris via Digitalmars-d
My point is basically: a lot of projects / modules start out as little helper functions, prototypes or proofs-of-concept, but grow bigger very fast. Especially in the scientific community Python is popular because one can protoype very fast, test things etc. However, as the code base grows it

Re: python vs d

2014-04-29 Thread Chris via Digitalmars-d
On Tuesday, 29 April 2014 at 11:28:07 UTC, Russel Winder via Digitalmars-d wrote: Principally there are a large number of users and installation and there is a wealth of support for different user bases from sys admins to quants. Python is a relatively small language that is easy to learn.

Re: D For A Web Developer

2014-04-29 Thread Chris via Digitalmars-d
On Tuesday, 29 April 2014 at 15:17:10 UTC, Etienne wrote: On 2014-04-29 10:41 AM, James wrote: I have a friend that is a web developer. I, however want to collaborate with him, so I am trying to get him to learn D. I don't know how to persuade him! How can D be used to greatly assist an

Re: python vs d

2014-04-30 Thread Chris via Digitalmars-d
On Wednesday, 30 April 2014 at 06:12:24 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 30 April 2014 at 01:46:21 UTC, Nick Sabalausky wrote: indentation rules. All it can do, and indeed all is *does* do, is blindly assume that the indentation as presented is correct and adheres to the universal

Re: D For A Web Developer

2014-04-30 Thread Chris via Digitalmars-d
On Tuesday, 29 April 2014 at 17:09:53 UTC, Adam D. Ruppe wrote: On Tuesday, 29 April 2014 at 15:55:13 UTC, Etienne wrote: That's funny b/c most people say RoR made them love web development. That's probably because they went into it with very little experience with the alternatives. I was

Re: python vs d

2014-04-30 Thread Chris via Digitalmars-d
On Wednesday, 30 April 2014 at 10:16:12 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 30 April 2014 at 08:52:48 UTC, Chris wrote: Say you have a Python file with 500 lines of code. Try to copy and paste something with a different indentation from somewhere else into an if statement. Paste in

Re: python vs d

2014-04-30 Thread Chris via Digitalmars-d
On Wednesday, 30 April 2014 at 11:46:32 UTC, Nick Sabalausky wrote: On 4/30/2014 6:16 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Wednesday, 30 April 2014 at 08:52:48 UTC, Chris wrote: In D you can do this: if (mode == TEST) { // Second block added later if (x == 1)

Re: python vs d

2014-04-30 Thread Chris via Digitalmars-d
On Wednesday, 30 April 2014 at 14:57:44 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 30 April 2014 at 10:56:22 UTC, Chris wrote: which is not very elegant, and it's error prone (what if you overlook the TEST bit for release?) I'd probably tie it to DEBUG and make sure it has the correct

Re: python vs d

2014-05-01 Thread Chris via Digitalmars-d
On Thursday, 1 May 2014 at 06:04:57 UTC, Russel Winder via Digitalmars-d wrote: On Wed, 2014-04-30 at 15:21 -0400, Nick Sabalausky via Digitalmars-d wrote: […] I've heard this a lot, but I've yet to hear anyone explain concretely how this dynamic mindset causes the lack of things like static

Re: DIP(?) Warning to facilitate porting to other archs

2014-05-02 Thread Chris via Digitalmars-d
On Thursday, 1 May 2014 at 11:17:10 UTC, Temtaime wrote: Hi everyone. I think it's need to have -w64(or other name, offers ?) flag that warns if code may not compile on other archs. Example: size_t a; uint b = a; // ok on 32 without a warning but fail on 64 with error And on 32 with -w64

Re: HILT 2014

2014-05-02 Thread Chris via Digitalmars-d
On Friday, 2 May 2014 at 13:26:00 UTC, bearophile wrote: Any one interested in writing a little paper about D language used for medium-integrity software systems? :-) http://lambda-the-ultimate.org/node/4943 http://sigada.org/conf/hilt2014/ While D isn't Ada, I think it's plenty better than

Julia vs. D?

2014-05-06 Thread Chris via Digitalmars-d
I recently came across this article http://www.wired.com/2014/02/julia/. On the Julia homepage there are some benchmarks times relative to C. I know that bearophile has mentioned Julia several times on this forum. Has anyone compared D's vs Julia's performance as well as design features?

Re: Julia vs. D?

2014-05-06 Thread Chris via Digitalmars-d
On Tuesday, 6 May 2014 at 11:20:33 UTC, Paulo Pinto wrote: On Tuesday, 6 May 2014 at 09:11:30 UTC, Chris wrote: I recently came across this article http://www.wired.com/2014/02/julia/. On the Julia homepage there are some benchmarks times relative to C. I know that bearophile has mentioned

Re: Julia vs. D?

2014-05-06 Thread Chris via Digitalmars-d
On Tuesday, 6 May 2014 at 13:25:56 UTC, Ary Borenszweig wrote: On 5/6/14, 8:23 AM, bearophile wrote: Paulo Pinto: You can think of Julia as a dynamic language similar to Python, with optional typing and for such a young language, a quite good JIT compiler backed by the LLVM backend.

Re: Julia vs. D?

2014-05-06 Thread Chris via Digitalmars-d
On Tuesday, 6 May 2014 at 17:10:39 UTC, Ary Borenszweig wrote: On 5/6/14, 10:41 AM, Chris wrote: On Tuesday, 6 May 2014 at 13:25:56 UTC, Ary Borenszweig wrote: On 5/6/14, 8:23 AM, bearophile wrote: Paulo Pinto: You can think of Julia as a dynamic language similar to Python, with optional

Re: Julia vs. D?

2014-05-06 Thread Chris via Digitalmars-d
On Tuesday, 6 May 2014 at 20:52:20 UTC, Paulo Pinto wrote: Am 06.05.2014 22:44, schrieb Chris: On Tuesday, 6 May 2014 at 17:10:39 UTC, Ary Borenszweig wrote: On 5/6/14, 10:41 AM, Chris wrote: On Tuesday, 6 May 2014 at 13:25:56 UTC, Ary Borenszweig wrote: On 5/6/14, 8:23 AM, bearophile wrote:

Re: Julia vs. D?

2014-05-07 Thread Chris via Digitalmars-d
On Tuesday, 6 May 2014 at 23:19:47 UTC, Mason McGill wrote: On Tuesday, 6 May 2014 at 11:28:21 UTC, Chris wrote: Maybe it's time to think about a D interface to Julia. If Julia catches on within the scientific community, it would be good to have a foot in the door. Science quickly creates

Re: Julia vs. D?

2014-05-07 Thread Chris via Digitalmars-d
On Tuesday, 6 May 2014 at 21:31:32 UTC, bearophile wrote: Paulo Pinto: That is an implementation detail I would say, It's not an implementation detail, it has consequences on the kind of code you are allowed to write, because it's not really a dynamic language. After the JIT compilation

Re: Julia vs. D?

2014-05-07 Thread Chris via Digitalmars-d
On Wednesday, 7 May 2014 at 12:05:10 UTC, bachmeier wrote: On Wednesday, 7 May 2014 at 09:16:01 UTC, Chris wrote: On Tuesday, 6 May 2014 at 23:19:47 UTC, Mason McGill wrote: On Tuesday, 6 May 2014 at 11:28:21 UTC, Chris wrote: Maybe it's time to think about a D interface to Julia. If Julia

Re: [OT] Go officially won't get generics

2014-05-09 Thread Chris via Digitalmars-d
On Friday, 9 May 2014 at 07:38:46 UTC, Paulo Pinto wrote: On Friday, 9 May 2014 at 07:05:59 UTC, Bienlein wrote: Well, he had previously stated that there would be no breaking changes, and that if there were changes it would have to be called go version 2 or something. So when generics were

Re: D for Android

2014-05-09 Thread Chris via Digitalmars-d
On Thursday, 8 May 2014 at 16:16:22 UTC, Joakim wrote: Well, Android/x86 for now. I've been plugging away at getting D running on Android/x86 and got all of the druntime modules' unit tests and 37 of 50 phobos modules' unit tests to pass. I had to hack dmd into producing something like packed

Re: [OT] Go officially won't get generics

2014-05-09 Thread Chris via Digitalmars-d
On Friday, 9 May 2014 at 13:59:38 UTC, Dicebot wrote: On Friday, 9 May 2014 at 07:38:46 UTC, Paulo Pinto wrote: I had the opportunity to meet Wirth at CERN, when he and a few ETHZ members took part on the Oberon Day, back in 2004. He is really great guy, but he could not understand why Oberon

Re: New opportunities for D = ASM.js

2014-05-14 Thread Chris via Digitalmars-d
On Tuesday, 13 May 2014 at 17:16:18 UTC, Etienne wrote: I've been reading on Emscripten and LDC and how they would be nice together, and came across this nice little library: http://www.leaningtech.com/duetto/examples/ It's a C++ server/client framework that compiles to JS through clang =

Re: New opportunities for D = ASM.js

2014-05-16 Thread Chris via Digitalmars-d
On Friday, 16 May 2014 at 11:38:14 UTC, Paulo Pinto wrote: On Friday, 16 May 2014 at 10:36:16 UTC, Ola Fosheim Grøstad wrote: On Friday, 16 May 2014 at 06:21:40 UTC, Paulo Pinto wrote: The problem is that currently it is a document format, trying to be an application, with a clustf of

Re: D to ASM.js vs D to Dart (VM)

2014-05-16 Thread Chris via Digitalmars-d
On Friday, 16 May 2014 at 12:55:30 UTC, Wyatt wrote: On Thursday, 15 May 2014 at 20:34:31 UTC, Etienne wrote: My position has changed, and I now think D would be in a better position if it ran in the Dart VM. Even if I _were_ a Chrome user, I'd have precisely zero interest in a browser

Re: D to ASM.js vs D to Dart (VM)

2014-05-16 Thread Chris via Digitalmars-d
On Friday, 16 May 2014 at 13:21:22 UTC, Etienne wrote: On 2014-05-16 9:12 AM, Chris wrote: I don't trust product / company centric software. It will lock you in or lock you out. Google doesn't have a reputation of creating company centric software. SPDY was adopted by other browsers as

Re: D to ASM.js vs D to Dart (VM)

2014-05-16 Thread Chris via Digitalmars-d
On Friday, 16 May 2014 at 14:20:36 UTC, Etienne wrote: On 2014-05-16 10:15 AM, Chris wrote: C isn't the best programming language. Only because something is everywhere, doesn't mean it's good (Windows comes to mind, and other big brands). As to the revolutionary ideas, are they really

Re: D to ASM.js vs D to Dart (VM)

2014-05-16 Thread Chris via Digitalmars-d
On Friday, 16 May 2014 at 14:46:43 UTC, Etienne wrote: On 2014-05-16 10:41 AM, Chris wrote: Isn't it sometimes just choosing the lesser evil instead of being able to choose something really good? Alright, so you can try and make something really good and see if it can satisfy 95% of the

Re: D to ASM.js vs D to Dart (VM)

2014-05-16 Thread Chris via Digitalmars-d
On Friday, 16 May 2014 at 15:02:42 UTC, Etienne wrote: On 2014-05-16 10:57 AM, Chris wrote: And companies are run by humans, if I'm not completely mistaken. It's not the army that kills people, it's the humans in the army that kill other humans. Stoutly reasoned! Hatred for humans because

Re: Good name for f.byLine.map!(x = x.idup)?

2014-05-21 Thread Chris via Digitalmars-d
On Thursday, 20 March 2014 at 01:38:38 UTC, Andrei Alexandrescu wrote: On 3/19/14, 4:53 PM, Meta wrote: On Wednesday, 19 March 2014 at 22:30:55 UTC, Peter Alexander wrote: On Sunday, 16 March 2014 at 16:58:36 UTC, Andrei Alexandrescu wrote: A classic idiom for reading lines and keeping them is

Re: Good name for f.byLine.map!(x = x.idup)?

2014-05-21 Thread Chris via Digitalmars-d
On Wednesday, 21 May 2014 at 13:46:21 UTC, bearophile wrote: Chris: byLineAsString In my own APIs I usually use AsString in the signature to make it clear what you'll get, if an entity can take many forms (an array of strings, user defined types). In other cases toString().

Re: Including Dub with D

2014-05-23 Thread Chris via Digitalmars-d
On Thursday, 22 May 2014 at 19:50:51 UTC, Dicebot wrote: Yeah Sonke contributions to community are beyond any imagination already. She should push for him and move forward (assuming he is ok with it ;)) I agree. I have a project (and even handed in a paper about it*) based on vibe.d. It was

Re: Easy huge GC optimizations

2014-05-23 Thread Chris via Digitalmars-d
On Friday, 23 May 2014 at 06:17:43 UTC, Rainer Schuetze wrote: On 22.05.2014 21:04, Etienne wrote: On 2014-05-22 2:12 PM, Rainer Schuetze wrote: NO_INTERIOR is currently only used for the hash array used by associative arrays. It is a bit dangerous to use as any pointer,slice or register

Re: Steve Yegge on D

2014-05-23 Thread Chris via Digitalmars-d
On Friday, 23 May 2014 at 05:31:48 UTC, Mengu wrote: On Thursday, 22 May 2014 at 09:52:20 UTC, Joakim wrote: I was reading Brad Roberts' bio before his upcoming talk today, where he mentioned that he first heard of D because of blog posts by Steve Yegge, when I remembered that it was likely

Re: Why is there still a web archive for the newsgroup?

2014-05-23 Thread Chris via Digitalmars-d
On Friday, 23 May 2014 at 14:12:38 UTC, H. S. Teoh via Digitalmars-d wrote: On Fri, May 23, 2014 at 11:35:18AM +, w0rp via Digitalmars-d wrote: I wonder what effect this has on PageRank. I have been told that Google can identify a site as an originator of content some times, and could

Re: Why is there still a web archive for the newsgroup?

2014-05-23 Thread Chris via Digitalmars-d
On Friday, 23 May 2014 at 15:12:06 UTC, H. S. Teoh via Digitalmars-d wrote: On Fri, May 23, 2014 at 02:30:56PM +, Chris via Digitalmars-d wrote: On Friday, 23 May 2014 at 14:12:38 UTC, H. S. Teoh via Digitalmars-d wrote: [...] I've always been skeptical of SEO. Google is known

Re: Easy huge GC optimizations

2014-05-23 Thread Chris via Digitalmars-d
On Friday, 23 May 2014 at 15:41:39 UTC, John Colvin wrote: On Friday, 23 May 2014 at 13:43:53 UTC, Chris wrote: On Friday, 23 May 2014 at 06:17:43 UTC, Rainer Schuetze wrote: On 22.05.2014 21:04, Etienne wrote: On 2014-05-22 2:12 PM, Rainer Schuetze wrote: NO_INTERIOR is currently only

Re: Easy huge GC optimizations

2014-05-23 Thread Chris via Digitalmars-d
On Friday, 23 May 2014 at 17:38:27 UTC, Etienne wrote: On 2014-05-23 1:29 PM, Chris wrote: I know that CPU's do a good bit of guessing. But that's not the same thing. If they err, they make up for it (Ooops, it's not in the cache! Will get it from HD, just a nanosec!). If the GC errs, how do

Re: RedBlackTree thin wrapper initialization

2014-05-28 Thread Chris via Digitalmars-d
On Wednesday, 28 May 2014 at 07:13:37 UTC, BlackEdder wrote: I'm trying to write a thin wrapper around redblacktree, but it seems every object of the class shares the same copy of redblacktree. Am I doing something wrong or is this a bug. Minimal code example: import std.array; import

Re: RedBlackTree thin wrapper initialization

2014-05-28 Thread Chris via Digitalmars-d
On Wednesday, 28 May 2014 at 08:49:42 UTC, Rene Zwanenburg wrote: On Wednesday, 28 May 2014 at 08:37:14 UTC, Chris wrote: On Wednesday, 28 May 2014 at 07:13:37 UTC, BlackEdder wrote: I'm trying to write a thin wrapper around redblacktree, but it seems every object of the class shares the same

Re: D Language Version 3

2014-05-29 Thread Chris via Digitalmars-d
On Wednesday, 28 May 2014 at 22:48:22 UTC, Jonathan M Davis via Digitalmars-d wrote: Is this the first attempt at D Version 3? :-)

Re: D Users Survey: Primary OS?

2014-05-29 Thread Chris via Digitalmars-d
On Thursday, 29 May 2014 at 18:24:57 UTC, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks. Best regards, -Tom

Re: D Users Survey: Primary OS?

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 09:25:40 UTC, Jacob Carlborg wrote: On 2014-05-30 00:13, Kiith-Sa wrote: Or if you're working on tools, don't make them for $OS, make them cross-platform. (I boycott non-crossplatform tools by default) That's not so easy, depending on what you're doing. Some things

[OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
Reading through Adam's book at home made me think about how much time I've spent reading / learning / thinking about programs outside the office. I read TDPL in my spare time. I checked out things in the D Cookbook in my spare time and applied them the next day, like loads of other things

Re: D Users Survey: Primary OS?

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 13:37:47 UTC, Dicebot wrote: On Friday, 30 May 2014 at 13:27:10 UTC, Bruno Medeiros wrote: On 29/05/2014 22:12, Dicebot wrote: When similar question was asked during one of DConf talks vast majority raised their hands as Linux users ;) It is not that surprising

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:26:46 UTC, Kagamin wrote: On Friday, 30 May 2014 at 11:35:19 UTC, Chris wrote: The issue is that most employers don't really appreciate this. Your employer doesn't appreciate professional growth? My point was that they are not aware of the fact that we spend a

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:31:26 UTC, Chris wrote: On Friday, 30 May 2014 at 14:26:46 UTC, Kagamin wrote: On Friday, 30 May 2014 at 11:35:19 UTC, Chris wrote: The issue is that most employers don't really appreciate this. Your employer doesn't appreciate professional growth? My point was

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:35:45 UTC, bearophile wrote: Chris: My point was that they are not aware of the fact that we spend a lot of our spare time learning and improving things. Every programmer worth the job (and even most that are not worth it) uses some time every day or every week

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:45:22 UTC, Etienne wrote: On 2014-05-30 7:35 AM, Chris wrote: Reading through Adam's book at home made me think about how much time I've spent reading / learning / thinking about programs outside the office. I read TDPL in my spare time. I checked out things in

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:56:49 UTC, Adam D. Ruppe wrote: I've actually been doing a lot less programming lately than I used to. Even though programming is my day job, I actually write pretty little code; I think I spend more time in meetings talking about direction (or worse yet, reading

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 15:26:00 UTC, Adam D. Ruppe wrote: On Friday, 30 May 2014 at 15:09:00 UTC, Chris wrote: Plus, if there's a bug, you're stuck. I like to re-invent the wheel too, because existing wheels might not be fit for your purpose. Aye. But I don't like the term reinvent the

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-03 Thread Chris via Digitalmars-d
On Monday, 2 June 2014 at 23:54:27 UTC, deadalnix wrote: On Monday, 2 June 2014 at 23:12:15 UTC, ponce wrote: On Monday, 2 June 2014 at 23:01:56 UTC, deadalnix wrote: On Monday, 2 June 2014 at 22:53:10 UTC, ponce wrote: - no exceptions (!) How do they do error handling ? I guess error

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-04 Thread Chris via Digitalmars-d
On Wednesday, 4 June 2014 at 09:45:21 UTC, Temtaime wrote: [snip] And if one speak about compilation time... Yes dmd compiles faster than ldc but the difference is not so great. And who cares about compilation time when one write the code ? I do. I don't care about it when it's done and

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-04 Thread Chris via Digitalmars-d
On Wednesday, 4 June 2014 at 10:02:49 UTC, Temtaime wrote: It debug builds ldc fast as dmd does. I once had a program where it took considerably longer (in development mode) than dmd. Then again, the code did some XML parsing with std.xml* (shudder!). In release mode it took ldc a long time

Re: [OT] Extra time spent

2014-06-04 Thread Chris via Digitalmars-d
On Tuesday, 3 June 2014 at 18:05:54 UTC, Walter Bright wrote: On 6/2/2014 6:58 PM, Nick Sabalausky wrote: A friend of mine (not a techie) has a (non-Pro) Surface and loves it. I had a look at the new Pro Surface at the Microsoft store yesterday. They've fixed the screen, meaning it's much

Re: [OT] Extra time spent

2014-06-06 Thread Chris via Digitalmars-d
On Friday, 6 June 2014 at 04:02:22 UTC, deadalnix wrote: On Friday, 6 June 2014 at 02:21:45 UTC, Nick Sabalausky wrote: On 6/5/2014 6:08 PM, deadalnix wrote: On Thursday, 5 June 2014 at 14:11:32 UTC, H. S. Teoh via Digitalmars-d wrote: Ha! Though, truth be told, I can't stand modern pop

Re: [OT] Extra time spent

2014-06-06 Thread Chris via Digitalmars-d
On Friday, 6 June 2014 at 13:24:22 UTC, Dejan Lekic wrote: On Wednesday, 4 June 2014 at 17:57:16 UTC, Nick Sabalausky wrote: On 6/4/2014 7:59 AM, Dejan Lekic wrote: I humbly believe programmer who does not spend spare time reading literature related to his/her work is most likely going to

Re: For Chuck Allison: possible homework in D

2014-06-09 Thread Chris via Digitalmars-d
On Saturday, 7 June 2014 at 06:48:39 UTC, Philippe Sigaud wrote: I was watching Chuck Allison talk yesterday, and wondered what could be a possible homework in D. Maybe other people here have some ideas, maybe Bearophile will point to RosettaCode, I don't know. But here is a possible idea:

Re: For Chuck Allison: possible homework in D

2014-06-09 Thread Chris via Digitalmars-d
On Monday, 9 June 2014 at 10:01:25 UTC, Philippe Sigaud via Digitalmars-d wrote: struct / class Element(T) { T name; T[T] attributes; // ... string toString() { return ...; } } Why did you chose the same type for keys and values? And shouldn't 'name' always be a string? For a

Re: [OT] Extra time spent

2014-06-11 Thread Chris via Digitalmars-d
On Wednesday, 11 June 2014 at 08:15:00 UTC, John Colvin wrote: On Wednesday, 11 June 2014 at 07:30:41 UTC, Kagamin wrote: And last time I did an indie game (ages ago) I was very surprised how much difference I noticed (even on ordinary speakers) when encoding the music as 128kbps MP3, as

[OT] Intel for mobile

2014-07-02 Thread Chris via Digitalmars-d
Will Intel get into the mobile market in the next couple of years? I've heard that some mobile devices are now fitted with Intel processors. First tablets and now a Lenovo smartphone.

Re: Redesign of dlang.org

2014-07-03 Thread Chris via Digitalmars-d
On Friday, 18 April 2014 at 14:04:04 UTC, Aleksandar Ruzicic wrote: Hello, I've been D enthusiast for couple of years now (but I do not participate much in discussions here, although I read forums almost daily), and I keep telling people about D and how awesome it is. But, all this time

Re: Redesign of dlang.org

2014-07-08 Thread Chris via Digitalmars-d
On Thursday, 3 July 2014 at 17:38:22 UTC, w0rp wrote: On Thursday, 3 July 2014 at 13:16:34 UTC, Chris wrote: [I haven't had time to follow the entire thread, but] I like the design, it's a good starting point. Especially the integration of the logo. Nice and clean. (The current logo is just

Re: Redesign of dlang.org

2014-07-09 Thread Chris via Digitalmars-d
On Tuesday, 8 July 2014 at 21:01:46 UTC, Iain Buclaw via Digitalmars-d wrote: On 8 July 2014 21:20, deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 4 July 2014 at 07:39:51 UTC, Russel Winder via Digitalmars-d wrote: On Fri, 2014-07-04 at 07:46 +0100, Iain Buclaw via

Re: before D there was d

2014-07-09 Thread Chris via Digitalmars-d
On Wednesday, 9 July 2014 at 13:18:00 UTC, jim schmit wrote: i recently sent this email to andrei. he encouraged me to post it in this forum. here it is: hi andrei a colleague  recently pointed me to the wired article about you your D computer language.  thought you might be interested an

Re: critique of vibe.d

2014-07-09 Thread Chris via Digitalmars-d
On Wednesday, 9 July 2014 at 01:35:49 UTC, Puming wrote: That commenter is probably a web developer that wants all batteries included. Yep. He mistook vibe.d for a complete web development framework, I suppose. It's quite common that people are put off because they expect too much or do not

Re: [OT] Re: Redesign of dlang.org

2014-07-09 Thread Chris via Digitalmars-d
On Wednesday, 9 July 2014 at 15:34:03 UTC, Alix Pexton wrote: On 09/07/2014 12:36 PM, Chris wrote: On Tuesday, 8 July 2014 at 21:01:46 UTC, Iain Buclaw via Digitalmars-d And everyone should drive on the left. Driving on the left goes back to the times when coaches (carriages) were still

Re: [OT] Re: Redesign of dlang.org

2014-07-10 Thread Chris via Digitalmars-d
On Wednesday, 9 July 2014 at 21:20:28 UTC, Alix Pexton wrote: On 09/07/2014 4:43 PM, Chris wrote: This sounds just like Imperial education. Very interesting how it equates Imperial practices with the right thing and the (continental) arch enemy with the wrong thing. By the way, there was a

Re: critique of vibe.d

2014-07-10 Thread Chris via Digitalmars-d
On Thursday, 10 July 2014 at 10:24:23 UTC, Dicebot wrote: On Wednesday, 9 July 2014 at 21:07:26 UTC, Johannes Pfau wrote: Am Wed, 09 Jul 2014 17:28:42 + schrieb Dicebot pub...@dicebot.lv: On Wednesday, 9 July 2014 at 17:05:21 UTC, Johannes Pfau wrote: Completely off-topic, but: Have

Re: critique of vibe.d

2014-07-10 Thread Chris via Digitalmars-d
On Thursday, 10 July 2014 at 13:42:30 UTC, Adam D. Ruppe wrote: On Thursday, 10 July 2014 at 07:56:43 UTC, Jacob Carlborg wrote: To me that sounds a bit backwards. I can go both ways, depending on the design of the form and how many helper tags we decide to use for the project. My dom

Re: critique of vibe.d

2014-07-10 Thread Chris via Digitalmars-d
@Adam At the moment, I'm looking into web development frameworks (from Foundation to CMSes to sever side solutions etc.), because in the months / years to come we (as in the team I work in) will need a solid website. Ideally, it would be PHP-free and not need much Javascript development

Re: critique of vibe.d

2014-07-10 Thread Chris via Digitalmars-d
On Thursday, 10 July 2014 at 14:50:50 UTC, Adam D. Ruppe wrote: On Thursday, 10 July 2014 at 13:55:14 UTC, Chris wrote: Would you be interested in putting a web development framework (or parts of it) together we can tie in with vibe.d? Meh, not really. I've never used vibe.d so getting

Using D

2014-07-11 Thread Chris via Digitalmars-d
I have followed the recent discussions about D and I can see the usual pattern, to wit GC, Go (or whatever) is so much better, everyone blaming each other for not contributing, not being allowed to contribute blah. First of all, I am in no position to criticize anyone who is contributing to

Re: Using D

2014-07-11 Thread Chris via Digitalmars-d
On Friday, 11 July 2014 at 16:22:27 UTC, Russel Winder via Digitalmars-d wrote: On Fri, 2014-07-11 at 15:30 +, Chris via Digitalmars-d wrote: […] Let's not forget that Go has millions and billions of dollars behind it and that it is inevitable that the whole internet will be full

Re: Using D

2014-07-11 Thread Chris via Digitalmars-d
On Friday, 11 July 2014 at 16:54:40 UTC, Chris wrote: On Friday, 11 July 2014 at 16:22:27 UTC, Russel Winder via Digitalmars-d wrote: On Fri, 2014-07-11 at 15:30 +, Chris via Digitalmars-d wrote: […] Let's not forget that Go has millions and billions of dollars behind

Re: Using D

2014-07-11 Thread Chris via Digitalmars-d
On Friday, 11 July 2014 at 17:15:36 UTC, H. S. Teoh via Digitalmars-d wrote: On Fri, Jul 11, 2014 at 03:30:15PM +, Chris via Digitalmars-d wrote: I have followed the recent discussions about D and I can see the usual pattern, to wit GC, Go (or whatever) is so much better, everyone blaming

Re: Using D

2014-07-11 Thread Chris via Digitalmars-d
On Friday, 11 July 2014 at 17:41:41 UTC, H. S. Teoh via Digitalmars-d wrote: [...] Mind you, D is a hindsight language, which makes it wiser. Does it have flaws? Yes. I come across them sometimes. Is there a language without flaws? If there is, tell me about it. When I was still using C/C++

Re: Using D

2014-07-11 Thread Chris via Digitalmars-d
On Friday, 11 July 2014 at 17:54:38 UTC, Israel Rodriguez wrote: On Friday, 11 July 2014 at 15:30:18 UTC, Chris wrote: Let's not forget that zeolots and professional posters will always point out the flaws of D, and blow them out of proportion. D doesn't have xyz, so it's shit! Divide et

Re: Using D

2014-07-11 Thread Chris via Digitalmars-d
I forgot to mention that the fact that D implements the Thompson algorithm for regular expressions made me smile. All other languages insist on inefficient algorithms.

Re: Using D

2014-07-11 Thread Chris via Digitalmars-d
On Friday, 11 July 2014 at 19:00:30 UTC, Joakim wrote: On Friday, 11 July 2014 at 15:42:04 UTC, simendsjo wrote: On 07/11/2014 05:30 PM, Chris wrote: (...) Believe me, D's supposed sluggishness as regards GC is not so important for most applications. I dare say 90% of all applications are fine

Re: Using D

2014-07-14 Thread Chris via Digitalmars-d
On Saturday, 12 July 2014 at 10:27:12 UTC, Russel Winder via Digitalmars-d wrote: On Fri, 2014-07-11 at 16:54 +, Chris via Digitalmars-d wrote: […] I remember Java used to be th best thing ever. After years of using it, however, I found out how restricted the language was / is. Still

Re: Wrapping D library with a C API

2014-07-14 Thread Chris via Digitalmars-d
On Monday, 14 July 2014 at 13:25:46 UTC, chaoskampf wrote: Is it possible to expose a C interface from a D library? I think this is one of the really powerful features of C++. It allows bindings to be written for basically every other language. D and C can interface both ways:

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-15 Thread Chris via Digitalmars-d
On Monday, 14 July 2014 at 23:43:57 UTC, H. S. Teoh via Digitalmars-d wrote: On Mon, Jul 14, 2014 at 11:22:53PM +, John Carter via Digitalmars-d wrote: [...] Any other good blog posts / social media comments / pointers I can digest and use? This one came to mind:

Re: D logo copyright

2014-07-15 Thread Chris via Digitalmars-d
On Tuesday, 15 July 2014 at 11:12:57 UTC, Alix Pexton wrote: I've been researching what is necessary to transfer the copyright of the D logo to Digital Mars, which is complicated by international issues. It seems that the term copyright is often aliased to the German Deutsches Urheberrecht

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-16 Thread Chris via Digitalmars-d
On Tuesday, 15 July 2014 at 23:02:19 UTC, Araq wrote: On Tuesday, 15 July 2014 at 21:11:24 UTC, H. S. Teoh via Digitalmars-d wrote: On Tue, Jul 15, 2014 at 09:03:36PM +, Araq via Digitalmars-d wrote: The only way to *really* guarantee 100% predictable memory reclamation is to write your

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-16 Thread Chris via Digitalmars-d
On Tuesday, 15 July 2014 at 21:57:30 UTC, H. S. Teoh via Digitalmars-d wrote: On Tue, Jul 15, 2014 at 09:11:23PM +, John Colvin via Digitalmars-d wrote: On Tuesday, 15 July 2014 at 20:03:15 UTC, Chris wrote: On Monday, 14 July 2014 at 23:43:57 UTC, H. S. Teoh via Digitalmars-d wrote:

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Chris via Digitalmars-d
On Wednesday, 16 July 2014 at 21:02:42 UTC, Timon Gehr wrote: On 07/16/2014 01:22 PM, Remo wrote: On Monday, 14 July 2014 at 23:43:57 UTC, H. S. Teoh via Digitalmars-d wrote: On Mon, Jul 14, 2014 at 11:22:53PM +, John Carter via Digitalmars-d wrote: [...] Any other good blog posts /

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme that performance required no GC and GC mean poor performance. The debate has been restarted on the Go mailing list under the banner go without garbage collector. The

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 08:56:40 UTC, Chris wrote: The funny thing about C++ is that there is a plethora of books that teach you how to do it right, which is a sign that there is something inherently wrong with the language*. I find that in D there aren't many ways to *really* do it

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: On Thursday, 17 July 2014 at 09:26:38 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme that performance required no GC and GC mean poor

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 11:15:10 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: On Thursday, 17 July 2014 at 09:26:38 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 09:52:45 UTC, eles wrote: On Thursday, 17 July 2014 at 09:32:15 UTC, Chris wrote: On Thursday, 17 July 2014 at 08:56:40 UTC, Chris wrote: The funny thing about C++ is that there is a plethora of books that teach you how to do it right, which is a sign that there

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 11:29:40 UTC, eles wrote: On Thursday, 17 July 2014 at 11:20:30 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:52:45 UTC, eles wrote: On Thursday, 17 July 2014 at 09:32:15 UTC, Chris wrote: On Thursday, 17 July 2014 at 08:56:40 UTC, Chris wrote: Then why not

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 14:05:02 UTC, Brian Rogoff wrote: On Thursday, 17 July 2014 at 13:29:18 UTC, John wrote: If D came without GC, it would have replaced C++ a long time ago! That's overly optimistic I think, but I believe that the adoption rate would have been far greater for a D

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 15:19:59 UTC, bachmeier wrote: On Thursday, 17 July 2014 at 13:29:18 UTC, John wrote: On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: It's not about acceptance, it's about the reality that a GC is not a universal solution to memory management. Just

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 17:49:24 UTC, H. S. Teoh via Digitalmars-d wrote: On Thu, Jul 17, 2014 at 05:28:01PM +, Vic via Digitalmars-d wrote: On Thursday, 17 July 2014 at 17:13:04 UTC, Peter Alexander wrote: On Thursday, 17 July 2014 at 16:56:56 UTC, Vic wrote: If GC is so good, why

  1   2   3   4   5   6   7   8   9   10   >