Re: Go vs. D [was Re: Rust vs Dlang]

2013-11-05 Thread ponce
On Sunday, 17 March 2013 at 21:13:48 UTC, Paulo Pinto wrote: If I am not mistaken, Rust makes use of them as well. Rust doesn't anymore: https://mail.mozilla.org/pipermail/rust-dev/2013-November/006314.html The announcement also mentions performance problems related to Go segmented stacks:

Re: Go vs. D [was Re: Rust vs Dlang]

2013-10-04 Thread Paul
The trick is to make something which is powerful and flexible for the experienced user and yet not too daunting for the newbie. I don't know how well we've succeeded on that front, but I'm sure that more tutorials and better documentation and whatnot would help. - Jonathan M Davis

Re: Go vs. D [was Re: Rust vs Dlang]

2013-09-01 Thread jokster
On Monday, 18 March 2013 at 19:05:09 UTC, Walter Bright wrote: On 3/18/2013 3:25 AM, bearophile wrote: Walter Bright: That's just not an issue when you have 64 bits of address space. You can still have 4 billion stacks of 4 billion bytes each. At this point I suggest you to study exactly

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-26 Thread Rory McGuire
On Tue, Mar 26, 2013 at 4:43 AM, Walter Bright newshou...@digitalmars.comwrote: How to do profiling with the dmd D compiler: 1. Add the -profile switch to the command line. 2. Read the report generated. To do coverage analysis: 1. Add the -cov switch to the command line. 2. Read the

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-26 Thread Dmitry Olshansky
26-Mar-2013 13:38, Rory McGuire пишет: On Tue, Mar 26, 2013 at 4:43 AM, Walter Bright newshou...@digitalmars.com mailto:newshou...@digitalmars.com wrote: How to do profiling with the dmd D compiler: 1. Add the -profile switch to the command line. 2. Read the report generated.

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-26 Thread Walter Bright
On 3/26/2013 2:38 AM, Rory McGuire wrote: Thanks I remember about the -profile switch but I don't see memory usage there. -profile and -cov do not track memory usage. If you see your program using more and more memory even though it should not be how do you check where the problem is? I've

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-26 Thread Walter Bright
On 3/26/2013 3:04 AM, Walter Bright wrote: On 3/26/2013 2:38 AM, Rory McGuire wrote: Thanks I remember about the -profile switch but I don't see memory usage there. -profile and -cov do not track memory usage. If you see your program using more and more memory even though it should not be

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-26 Thread Jacob Carlborg
On 2013-03-26 10:49, Dmitry Olshansky wrote: What everybody in all other native languages use, for instance: valgrind --tool=massif, valgrind --tool=callgrind Any general purpose profiler works. I can confirm that e.g. AMD CodeAnalyst works just fine if application is compiled with symbols.

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-26 Thread Paulo Pinto
On Tuesday, 26 March 2013 at 10:08:30 UTC, Walter Bright wrote: On 3/26/2013 3:04 AM, Walter Bright wrote: On 3/26/2013 2:38 AM, Rory McGuire wrote: Thanks I remember about the -profile switch but I don't see memory usage there. -profile and -cov do not track memory usage. If you see your

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-25 Thread Rory McGuire
On Mon, Mar 18, 2013 at 2:21 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Could you please go into details on the debugging and benchmarking tools? Thanks. Hi Andrei, Apologies for not replying sooner. Perhaps it is actually just the feel of the debugging and benchmarking,

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-25 Thread Andrei Alexandrescu
On 3/25/13 8:02 AM, Rory McGuire wrote: Perhaps it is actually just the feel of the debugging and benchmarking, and the general completeness of the *documentation*. This set of slides: http://talks.golang.org/2012/simple.slide introduces pretty much everything you need to know about Go. Graphs

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-25 Thread Walter Bright
On 3/25/2013 5:02 AM, Rory McGuire wrote: The profiling doc is here: http://blog.golang.org/2011/06/profiling-go-programs.html It is all super easy, and documented so that you can do it now. What it says about profiling: To start tuning the Go program, we have to enable profiling. If the

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-25 Thread Andrei Alexandrescu
On 3/25/13 10:43 PM, Walter Bright wrote: On 3/25/2013 5:02 AM, Rory McGuire wrote: The profiling doc is here: http://blog.golang.org/2011/06/profiling-go-programs.html It is all super easy, and documented so that you can do it now. What it says about profiling: To start tuning the Go

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-25 Thread Alan
Whether it is Go or D, I wish one of you guys would fill the gap between the numeric work I need to do in fortran and the ui/string parsing/web work/plotting/animating I do in python. While working in two languages is realistically not a huge deal, it would be nice if there was something that

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-25 Thread Alan
edit: ditch both python and fortran.

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-25 Thread Geancarlo Rocha
That's julia's(http://julialang.org/) goal, but of course it's not nearly polished. I'm interested in this as well, since I'm not totally comfortable about using a pirated MATLAB version and I hear that numpy can't match its performance on macro code.

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-25 Thread Alan
On Tuesday, 26 March 2013 at 04:11:05 UTC, Geancarlo Rocha wrote: That's julia's(http://julialang.org/) goal, but of course it's not nearly polished. I'm interested in this as well, since I'm not totally comfortable about using a pirated MATLAB version and I hear that numpy can't match its

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-18 Thread Russel Winder
On Sun, 2013-03-17 at 22:13 +0100, Paulo Pinto wrote: Am 17.03.2013 20:28, schrieb 1100110: […] The day I can compile pypy without needing 8Gb of memory is the day I'll consider it. Uau, that much?! I tend to use Python only for shell scripting type of tasks, so I wasn't aware that

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-18 Thread Russel Winder
On Sun, 2013-03-17 at 13:56 -0700, Walter Bright wrote: On 3/17/2013 3:01 AM, Russel Winder wrote: I guess this is because of the segmented stacks architecture behind the realization of Go. Segmented stacks have a significant performance cost to them, as well as making it hard to

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-18 Thread Walter Bright
On 3/18/2013 2:22 AM, Russel Winder wrote: On Sun, 2013-03-17 at 13:56 -0700, Walter Bright wrote: On 3/17/2013 3:01 AM, Russel Winder wrote: I guess this is because of the segmented stacks architecture behind the realization of Go. Segmented stacks have a significant performance cost to

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-18 Thread Paulo Pinto
On Monday, 18 March 2013 at 09:18:38 UTC, Russel Winder wrote: On Sun, 2013-03-17 at 22:13 +0100, Paulo Pinto wrote: Am 17.03.2013 20:28, schrieb 1100110: […] The day I can compile pypy without needing 8Gb of memory is the day I'll consider it. Uau, that much?! I tend to use Python only

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-18 Thread bearophile
Walter Bright: That's just not an issue when you have 64 bits of address space. You can still have 4 billion stacks of 4 billion bytes each. At this point I suggest you to study exactly why Rust developers have decided to use a segmented stack. It seems to work well for them. Bye,

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-18 Thread Andrei Alexandrescu
On 3/18/13 1:46 AM, Rory McGuire wrote: The reason I use golang and not dlang for development at work is because debugging is straightforward no weird segfaults after you program has been running for a couple of days. Their debugging and benchmark tools are really good and the documentation is

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-18 Thread Walter Bright
On 3/18/2013 3:25 AM, bearophile wrote: Walter Bright: That's just not an issue when you have 64 bits of address space. You can still have 4 billion stacks of 4 billion bytes each. At this point I suggest you to study exactly why Rust developers have decided to use a segmented stack. It

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-18 Thread Paulo Pinto
Am 18.03.2013 13:21, schrieb Andrei Alexandrescu: On 3/18/13 1:46 AM, Rory McGuire wrote: The reason I use golang and not dlang for development at work is because debugging is straightforward no weird segfaults after you program has been running for a couple of days. Their debugging and

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-18 Thread Dmitry Olshansky
18-Mar-2013 14:25, bearophile пишет: Walter Bright: That's just not an issue when you have 64 bits of address space. You can still have 4 billion stacks of 4 billion bytes each. At this point I suggest you to study exactly why Rust developers have decided to use a segmented stack. It seems

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Russel Winder
On Sun, 2013-03-17 at 08:59 +0100, Paulo Pinto wrote: […] However the Go guys just don't agree with the progresses made in language abstractions in the last decades, which in my view is a plus point for D and Rust, and made me stop caring about Go. […] So what are the features that Go is

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Paulo Pinto
On 17.03.2013 09:05, Russel Winder wrote: On Sun, 2013-03-17 at 08:59 +0100, Paulo Pinto wrote: […] However the Go guys just don't agree with the progresses made in language abstractions in the last decades, which in my view is a plus point for D and Rust, and made me stop caring about Go. […]

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Walter Bright
On 3/17/2013 1:17 AM, Paulo Pinto wrote: On 17.03.2013 09:05, Russel Winder wrote: So what are the features that Go is ignoring that D has? - exceptions; - enumerations; - generic types; - direct use of OS APIs, without the need of writing wrappers; - currently only static compilation is

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Russel Winder
On Sun, 2013-03-17 at 09:17 +0100, Paulo Pinto wrote: […] The first known one is that Go is the only strong typed language to eschew generics in the 21st century. On the other hand, perhaps generics is not a good thing, yet has created an unchallenged mindset? NB I am tainted by C++ templates

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Russel Winder
On Sun, 2013-03-17 at 01:57 -0700, Walter Bright wrote: […] I'd like to add that D has: - operator overloading - user defined attributes - dll's (coming soon) - vector operations - SIMD operations - scope guard - compile time function execution - true immutability and purity - inline

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Dmitry Olshansky
17-Mar-2013 14:06, Russel Winder пишет: On Sun, 2013-03-17 at 01:57 -0700, Walter Bright wrote: […] I'd like to add that D has: - operator overloading - user defined attributes - dll's (coming soon) - vector operations - SIMD operations - scope guard - compile time function execution - true

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread deadalnix
On Sunday, 17 March 2013 at 08:57:48 UTC, Walter Bright wrote: I'd like to add that D has: - operator overloading - user defined attributes - dll's (coming soon) So it doesn't. - vector operations - SIMD operations - scope guard - compile time function execution - true immutability and

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread 1100110
On 03/17/2013 07:09 AM, Paulo Pinto wrote: On 17.03.2013 11:01, Russel Winder wrote: On Sun, 2013-03-17 at 09:17 +0100, Paulo Pinto wrote: […] The first known one is that Go is the only strong typed language to eschew generics in the 21st century. On the other hand, perhaps generics is not a

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Walter Bright
On 3/17/2013 3:06 AM, Russel Winder wrote: On the other hand creeping featurism can be a bad thing. Isn't the mantra small language, large (properly indexed) library? It can be a bad thing, no doubt about it. On the other hand: When I was in London for the 2010 ACCU (when the volcano stranded

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Walter Bright
On 3/17/2013 3:01 AM, Russel Winder wrote: I guess this is because of the segmented stacks architecture behind the realization of Go. Segmented stacks have a significant performance cost to them, as well as making it hard to interface to other languages. I also think that the shift to 64 bits

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Paulo Pinto
Am 17.03.2013 21:56, schrieb Walter Bright: On 3/17/2013 3:01 AM, Russel Winder wrote: I guess this is because of the segmented stacks architecture behind the realization of Go. Segmented stacks have a significant performance cost to them, as well as making it hard to interface to other

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Paulo Pinto
Am 17.03.2013 20:28, schrieb 1100110: On 03/17/2013 07:09 AM, Paulo Pinto wrote: On 17.03.2013 11:01, Russel Winder wrote: On Sun, 2013-03-17 at 09:17 +0100, Paulo Pinto wrote: […] The first known one is that Go is the only strong typed language to eschew generics in the 21st century. On

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Peter Sommerfeld
Walter Bright wrote: [snip] I prefer to view D as a fully equipped machine shop with the right tools for the right job. Yes, it will take longer to master it than a simpler language. But we're professionals, we program all day. Not everyone is. With its scripting abilities (fast

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread 1100110
On 03/17/2013 03:44 PM, Walter Bright wrote: On 3/17/2013 3:06 AM, Russel Winder wrote: On the other hand creeping featurism can be a bad thing. Isn't the mantra small language, large (properly indexed) library? It can be a bad thing, no doubt about it. On the other hand: When I was in

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Jonathan M Davis
On Sunday, March 17, 2013 17:14:42 1100110 wrote: Soo... You're saying D is like Vim? =P LOL. D's learning curve is nowhere near as steep as that. Almost nothing has a learning curve as steep as vim... But on some level, the concept is the same. In order for something to be powerful enough

Re: Go vs. D [was Re: Rust vs Dlang]

2013-03-17 Thread Rory McGuire
The reason I use golang and not dlang for development at work is because debugging is straightforward no weird segfaults after you program has been running for a couple of days. Their debugging and benchmark tools are really good and the documentation is fantastic. I haven't used dlang for a