Re: One year of Go

2010-11-13 Thread dennis luehring
Am 13.11.2010 08:53, schrieb Russel Winder: On Fri, 2010-11-12 at 15:07 -0500, Jeff Nowakowski wrote: [ . . . ] The lack of generics and dangerous concurrency are much bigger issues. If D can actually be shown to be a useful concurrent language, instead of the buggy and incomplete mess it is

Re: Function, signatures and tuples

2010-11-13 Thread Russel Winder
On Fri, 2010-11-12 at 11:15 -0800, Andrei Alexandrescu wrote: > On 11/12/10 11:13 AM, Russel Winder wrote: > > Is there an easy explanation of why I cannot do: > > > > real partialSum ( immutable Tuple ! ( long , long , real ) > > data ) > > > > but instead have to do: > > > >

Re: Question about std.bind

2010-11-13 Thread Russel Winder
On Fri, 2010-11-12 at 23:14 +0300, Dmitry Olshansky wrote: [ . . . ] > > I have a thread creation loop: > > > > foreach ( i ; 0 .. numberOfThreads ) { threads[i] = new Thread ( > > bind (& partialSum , 1 + i * sliceSize , ( i + 1 ) * sliceSize , delta ) ) > > ; } > > > I'd try to replac

Re: One year of Go

2010-11-13 Thread retard
Fri, 12 Nov 2010 11:54:35 -0500, Jeff Nowakowski wrote: > On 11/12/2010 11:29 AM, Sean Kelly wrote: >> To me, what they're saying is that their syntax is broken and so it >> forces a convention upon the users to deal with the issue. I know this >> is just a bike shed issue, but seeing something l

Re: One year of Go

2010-11-13 Thread Russel Winder
On Sat, 2010-11-13 at 09:07 +0800, Boris Wang wrote: > Just about generic, I think, C no generic, so Go no generic, it's a > good enough reason. That may be the mindset, I do not know, we would have to ask Rob Pike and Russ Cox. However, if that is the argument then they have definitely got it wr

Re: Function, signatures and tuples

2010-11-13 Thread Iain Buclaw
== Quote from Russel Winder (rus...@russel.org.uk)'s article > On Fri, 2010-11-12 at 11:15 -0800, Andrei Alexandrescu wrote: > > On 11/12/10 11:13 AM, Russel Winder wrote: > > > Is there an easy explanation of why I cannot do: > > > > > > real partialSum ( immutable Tuple ! ( long , long ,

Re: The D Scripting Language

2010-11-13 Thread retard
Fri, 12 Nov 2010 23:01:24 +0600, Alexander Malakhov wrote: > Gary Whatmore писал(а) в своём письме Thu, 11 Nov 2010 > 20:07:35 +0600: > >> Alexander Malakhov Wrote: >>> ... >>> Maybe it would be better to just make rdmd to surround source code >>> with: >>> >>> //- rdmd generated text BEGIN

Re: One year of Go

2010-11-13 Thread retard
Fri, 12 Nov 2010 12:44:37 -0500, bearophile wrote: > Russel Winder: > >> I have to say I quite like not having to have semicolon statement >> terminators. > > I too don't like to add the semicolon at the end of lines, I like to > write Python code that doesn't need them, **but in some languages

Re: One year of Go

2010-11-13 Thread retard
Sat, 13 Nov 2010 07:53:14 +, Russel Winder wrote: > On Fri, 2010-11-12 at 15:07 -0500, Jeff Nowakowski wrote: [ . . . ] >> The lack of generics and dangerous concurrency are much bigger issues. >> If D can actually be shown to be a useful concurrent language, instead >> of the buggy and incomp

Re: Question about std.bind

2010-11-13 Thread Dmitry Olshansky
On 13.11.2010 11:12, Russel Winder wrote: On Fri, 2010-11-12 at 23:14 +0300, Dmitry Olshansky wrote: [ . . . ] I have a thread creation loop: foreach ( i ; 0 .. numberOfThreads ) { threads[i] = new Thread ( bind (& partialSum , 1 + i * sliceSize , ( i + 1 ) * sliceSize , delta ) )

Re: The D Scripting Language -- std imports

2010-11-13 Thread spir
On Fri, 12 Nov 2010 23:21:55 +0600 "Alexander Malakhov" wrote: > btw, does --eval make "import std.all" or some set of modules ? Btw, I just had an idea about std imports -- not only for scripting, but for general use of D as well: What if D automagically imported a std set of modules, _provid

Re: The D Scripting Language

2010-11-13 Thread spir
On Fri, 12 Nov 2010 14:42:38 -0500 sybrandy wrote: > > 2. Make Windows to open .d files with rdmd by default, so I could run them > > with simple double-click > > > > You should be able to do this yourself quite easily by right-clicking on > the D file and associating it with rdmd. I'd give be

Re: Function, signatures and tuples

2010-11-13 Thread Russel Winder
On Sat, 2010-11-13 at 08:18 +, Iain Buclaw wrote: [ . . . ] > import std.typecons; ? Hummm... I thought I had put that in but clearly I had not :-(( OK so that explains the bulk of the problems on this code, I knew it was something stupid on my part, thanks for spotting it. However, now we m

Re: One year of Go

2010-11-13 Thread Russel Winder
On Sat, 2010-11-13 at 08:51 +, retard wrote: [ . . . ] > There's also the software transactional memory technology. I am ambivalent about STM. Haskell has it, Clojure has it, Intel have a variant for C and C++ but are trying to quietly ignore it. Sun even tried to put hardware support for tr

Re: One year of Go

2010-11-13 Thread retard
Sat, 13 Nov 2010 10:48:00 +, Russel Winder wrote: > On Sat, 2010-11-13 at 08:51 +, retard wrote: [ . . . ] >> There's also the software transactional memory technology. > > I am ambivalent about STM. Haskell has it, Clojure has it, Intel have a > variant for C and C++ but are trying to q

Re: One year of Go

2010-11-13 Thread Kagamin
bearophile Wrote: > > I have to say I quite like not having to have semicolon > > statement terminators. > > I too don't like to add the semicolon at the end of lines, I like to write > Python code that doesn't need them How do you look at necessary curly braces in Go? Shouldn't they adopt pyth

Re: Basic standard graphics

2010-11-13 Thread spir
On Fri, 12 Nov 2010 16:39:54 -0500 bearophile wrote: > The "Image Noise" task asks: > Generate a random black and white 320x240 image continuously, showing FPS > (frames per second). > > This is the PureBasic implementation, it's far from being nice, but it's > short and it's doesn't contain l

Re: Help for .h to D pain?

2010-11-13 Thread Matthias Pleh
Am 12.11.2010 05:01, schrieb jfd: I was trying to translate Apache module include files to D, but it soon leads to a labyrinth of tangled nested #includes and #define and typedef's. The tools, `dmc -c -e -l', htod, etc. immediately choked. It is getting really, really,... time consuming, and th

Re: Question about std.bind

2010-11-13 Thread Russel Winder
On Sat, 2010-11-13 at 12:49 +0300, Dmitry Olshansky wrote: [ . . . ] > Well at least the Thread starts ) Indeed :-) > I'd search for the clues by replacing all complicated logic with > writeln("Func x executed"); where x identifies functions. > If it prints all successfully, then it's bug in you

Re: Basic standard graphics

2010-11-13 Thread Matthias Pleh
Am 13.11.2010 11:56, schrieb spir: On Fri, 12 Nov 2010 16:39:54 -0500 bearophile wrote: The "Image Noise" task asks: Generate a random black and white 320x240 image continuously, showing FPS (frames per second). This is the PureBasic implementation, it's far from being nice, but it's short

Re: Thoughts on parallel programming?

2010-11-13 Thread sybrandy
Distributed programming is essentially a bunch of little sequential program that interact, which is basically how people cooperate in the real world. I think that is by far the most intuitive of any concurrent programming model, though it's still a significant conceptual shift from the traditional

Re: The D Scripting Language

2010-11-13 Thread sybrandy
On 11/13/2010 05:15 AM, spir wrote: On Fri, 12 Nov 2010 14:42:38 -0500 sybrandy wrote: 2. Make Windows to open .d files with rdmd by default, so I could run them with simple double-click You should be able to do this yourself quite easily by right-clicking on the D file and associating it w

Re: LC_SEGMENT command 0 filesize field greater than vmsize field

2010-11-13 Thread Jacob Carlborg
On 2010-11-12 14:41, Michel Fortin wrote: On 2010-11-12 04:08:56 -0500, Jacob Carlborg said: Now this really starts to annoy me. I don't know if it's a bug in Mac OS X or in DMD but I'm getting this error when building some libraries (Tango, for example): /usr/bin/ranlib: object: libtango.a(t

Re: The D Scripting Language -- std imports

2010-11-13 Thread Nick Sabalausky
"spir" wrote in message news:mailman.322.1289642939.21107.digitalmar...@puremagic.com... >On Fri, 12 Nov 2010 23:21:55 +0600 >"Alexander Malakhov" wrote: > >> btw, does --eval make "import std.all" or some set of modules ? > >Btw, I just had an idea about std imports -- not only for scripting, b

Re: Basic standard graphics

2010-11-13 Thread Peter Alexander
On 13/11/10 11:14 AM, Matthias Pleh wrote: I'm working on some basic graphic-routines in d inspired by http://www.antigrain.com/ Maybe this will be helpfull! Are you building it on top of an existing window/video layer (e.g. SDL)?

Re: One year of Go

2010-11-13 Thread Jeff Nowakowski
On 11/13/2010 02:53 AM, Russel Winder wrote: What do you see as wrong with the Go model for concurrency? Andrei explained it to you in the "GO Vs D" thread: http://groups.google.com/group/golang-nuts/browse_thread/thread/f24e7d46091e27ab/e30994ff3d3b32ca#e30994ff3d3b32ca The short answer is

Re: Multichar literals

2010-11-13 Thread bearophile
Rainer Deyke: > I seem to recall that this is feature is also present in C/C++, although > I can't say that I've ever used it. I see. The stream of C/C++ features that I discover never ends... Bye, bearophile

Re: Hacking on DMD

2010-11-13 Thread div0
On 13/11/2010 07:46, Matthias Pleh wrote: Am 13.11.2010 05:18, schrieb Nick Sabalausky: "div0" wrote in message news:ibjef2$60...@digitalmars.com... On 12/11/2010 05:05, Nick Sabalausky wrote: "div0" wrote in message news:ibi2n1$7j...@digitalmars.com... Is there an official guide to DMD sourc

Re: One year of Go

2010-11-13 Thread bearophile
Kagamin: > How do you look at necessary curly braces in Go? Shouldn't they adopt python > syntax while keeping Go design? I like Python syntax, but the features of a language must be all adapted to each other, they form something like an ecology. In general what I look for is a language syntax

Re: One year of Go

2010-11-13 Thread bearophile
retard: > Any links to relevant research? If your JavaScript function ends with this, what kind of errors or return value does it generate? return 2 + 2; Found in this thread: http://stackoverflow.com/questions/1995113/strangest-language-feature Bye, bearophile

Re: LC_SEGMENT command 0 filesize field greater than vmsize field

2010-11-13 Thread Michel Fortin
On 2010-11-13 07:16:27 -0500, Jacob Carlborg said: On 2010-11-12 14:41, Michel Fortin wrote: On 2010-11-12 04:08:56 -0500, Jacob Carlborg said: Now this really starts to annoy me. I don't know if it's a bug in Mac OS X or in DMD but I'm getting this error when building some libraries (Tango

Re: Basic standard graphics

2010-11-13 Thread Matthias Pleh
Am 13.11.2010 14:03, schrieb Peter Alexander: On 13/11/10 11:14 AM, Matthias Pleh wrote: I'm working on some basic graphic-routines in d inspired by http://www.antigrain.com/ Maybe this will be helpfull! Are you building it on top of an existing window/video layer (e.g. SDL)? I try to make

Re: One year of Go

2010-11-13 Thread retard
Sat, 13 Nov 2010 08:27:04 -0500, bearophile wrote: > retard: > >> Any links to relevant research? > > If your JavaScript function ends with this, what kind of errors or > return value does it generate? > > return > 2 + 2; > > Found in this thread: > http://stackoverflow.com/questions/19951

Re: One year of Go

2010-11-13 Thread Nick Sabalausky
"bearophile" wrote in message news:ibm3n8$b2...@digitalmars.com... > retard: > >> Any links to relevant research? > > If your JavaScript function ends with this, what kind of errors or return > value does it generate? > > return >2 + 2; > > Found in this thread: > http://stackoverflow.com/qu

Re: Hacking on DMD

2010-11-13 Thread Matthias Pleh
Am 13.11.2010 14:17, schrieb div0: On 13/11/2010 07:46, Matthias Pleh wrote: Am 13.11.2010 05:18, schrieb Nick Sabalausky: "div0" wrote in message news:ibjef2$60...@digitalmars.com... On 12/11/2010 05:05, Nick Sabalausky wrote: "div0" wrote in message news:ibi2n1$7j...@digitalmars.com... Is

Re: One year of Go

2010-11-13 Thread Simen kjaeraas
Nick Sabalausky wrote: try { return true; } finally { return false; } try { throw new AssertionError(); } finally { return false; } I wonder how D handles those Error: return statements cannot be in finally, scope(exit) or scope(success) bodies -- Simen

Re: One year of Go

2010-11-13 Thread Jeff Nowakowski
On 11/13/2010 03:17 AM, Russel Winder wrote: On Sat, 2010-11-13 at 09:07 +0800, Boris Wang wrote: Just about generic, I think, C no generic, so Go no generic, it's a good enough reason. That may be the mindset, I do not know, we would have to ask Rob Pike and Russ Cox. However, if that is the

Re: The D Scripting Language

2010-11-13 Thread Andrew Wiley
On Sat, Nov 13, 2010 at 4:15 AM, spir wrote: > On Fri, 12 Nov 2010 14:42:38 -0500 > sybrandy wrote: > > > > 2. Make Windows to open .d files with rdmd by default, so I could run > them > > > with simple double-click > > > > > > > You should be able to do this yourself quite easily by right-click

Re: Thoughts on parallel programming?

2010-11-13 Thread Sean Kelly
Don Wrote: > Sean Kelly wrote: > > Walter Bright Wrote: > > > >> Russel Winder wrote: > >>> At the heart of all this is that programmers are taught that algorithm > >>> is a sequence of actions to achieve a goal. Programmers are trained to > >>> think sequentially and this affects their coding.

Re: The D Scripting Language

2010-11-13 Thread Leandro Lucarella
retard, el 13 de noviembre a las 08:24 me escribiste: > > void main(string[] args){ > > > > import std.stdio; // 1. will not compile void main(string[] args){ > > writeln("hello"); > > } > > > > main(args); // 2. this should be appended, hence anyway rdmd > should > > ana

Re: Hacking on DMD

2010-11-13 Thread Leandro Lucarella
Nick Sabalausky, el 12 de noviembre a las 23:18 me escribiste: > "div0" wrote in message > news:ibjef2$60...@digitalmars.com... > > On 12/11/2010 05:05, Nick Sabalausky wrote: > >> "div0" wrote in message > >> news:ibi2n1$7j...@digitalmars.com... > >>> Is there an official guide to DMD source wi

Re: Basic standard graphics

2010-11-13 Thread Adam D. Ruppe
spir wrote: > It's not what I have in mind for my use cases. Rather, > I would be in favor of a simple graphic frame that could > be used like in good old times we used to draw > directly on the video -- when this was easy to do, > just using x,y pixel coordinates. Absolutely, my craving for the

Standard third party imports

2010-11-13 Thread Adam D. Ruppe
I'm wondering, would be be a good idea to add some .di files to the standard distribution, or easily accessible next to it, for some common third party C libraries? For example, I used import sdl.SDL in another thread yesterday to quickly port a C toy, but most people probably can't do that since

Re: One year of Go

2010-11-13 Thread Sean Kelly
retard Wrote: > Sat, 13 Nov 2010 07:53:14 +, Russel Winder wrote: > > > On Fri, 2010-11-12 at 15:07 -0500, Jeff Nowakowski wrote: [ . . . ] > >> The lack of generics and dangerous concurrency are much bigger issues. > >> If D can actually be shown to be a useful concurrent language, instead >

Re: Standard third party imports

2010-11-13 Thread dsimcha
== Quote from Adam D. Ruppe (destructiona...@gmail.com)'s article > I'm wondering, would be be a good idea to add some .di files to the standard > distribution, or easily accessible next to it, for some common third party C > libraries? > For example, I used import sdl.SDL in another thread yesterd

Re: One year of Go

2010-11-13 Thread Kagamin
bearophile Wrote: > Kagamin: > > > How do you look at necessary curly braces in Go? Shouldn't they adopt > > python syntax while keeping Go design? > > I like Python syntax, but the features of a language must be all adapted to > each other, they form something like an ecology. > > In general

Re: RFC, ensureHeaped

2010-11-13 Thread bearophile
Steven Schveighoffer: > Then you just wasted time duping that argument. Instead of a defensive > dup, what if we had a function ensureHeaped (better name suggestions?) I have created a bug report to avoid this whole pair of threads to be lost in the dusts of time: http://d.puremagic.com/iss

Re: One year of Go

2010-11-13 Thread bearophile
Kagamin: > Aren't curly braces the same redundancy as semicolons, serving the same > purpose? The information represented by the curly braces is represented by the indentation levels. The semicolons are not necessary to represent logical nesting, and indeed some Python-style languages avoid th

Re: One year of Go

2010-11-13 Thread Kagamin
bearophile Wrote: > retard: > > > Any links to relevant research? > > If your JavaScript function ends with this, what kind of errors or return > value does it generate? > > return > 2 + 2; Holy shit! Hmm... I knew, js is soft in this regard, I had not a single thought to use this bug, i

Re: Standard third party imports

2010-11-13 Thread Adam D. Ruppe
Worst case with the copyright is to just include a copy of the license with the zip. The problem with BSD/GPL code in the main Phobos is any D program will link with it, and thus the license goes viral to all D programs. But since this is just interface files, separate from the stdlib aside from

Re: One year of Go

2010-11-13 Thread Kagamin
bearophile Wrote: > Kagamin: > > > Aren't curly braces the same redundancy as semicolons, serving the same > > purpose? > > The information represented by the curly braces is represented by the > indentation levels. http://docs.python.org/py3k/reference/lexical_analysis.html#explicit-line-joi

Re: One year of Go

2010-11-13 Thread bearophile
Kagamin: > http://docs.python.org/py3k/reference/lexical_analysis.html#explicit-line-joining > If understood it correctly, physical lines don't obey the indentation rules > and can have any indentation, e.g. the same indentation as the return > statement in the example. Right. There are two exc

D and multicore

2010-11-13 Thread parallel noob
Hello Intro: people with pseudonyms are often considered trolls here, but this is a really honest question by a sw engineer now writing mostly sequential web applications. (I write "parallel" web apps, but the logic goes that you write sequential applications for each http query, the frontend

Re: Standard third party imports

2010-11-13 Thread jfd
== Quote from Adam D. Ruppe (destructiona...@gmail.com)'s article > The problem with BSD/GPL code in the main Phobos is any D program will link > with > it, and thus the license goes viral to all D programs. > But since this is just interface files, separate from the stdlib aside from > sharing a

Re: Question about std.bind

2010-11-13 Thread Dmitry Olshansky
On 13.11.2010 14:11, Russel Winder wrote: On Sat, 2010-11-13 at 12:49 +0300, Dmitry Olshansky wrote: [ . . . ] Well at least the Thread starts ) Indeed :-) I'd search for the clues by replacing all complicated logic with writeln("Func x executed"); where x identifies functions. If it prints a

Re: RFC, ensureHeaped

2010-11-13 Thread spir
On Sat, 13 Nov 2010 13:19:25 -0500 bearophile wrote: > Steven Schveighoffer: > > > Then you just wasted time duping that argument. Instead of a defensive > > dup, what if we had a function ensureHeaped (better name suggestions?) > > I have created a bug report to avoid this whole pair of t

Re: linker wrapper

2010-11-13 Thread bearophile
Walter: > Top 3 linker questions: > > 1. What does it mean when it says "foo is referenced but not defined" ? > > 2. What does it mean when it says that "foo is defined in more than one > module" ? > > 3. Why is my executable file so large? > > > While it's nice to demangle the names, and op

Re: D and multicore

2010-11-13 Thread Gary Whatmore
parallel noob Wrote: > Hello > > Intro: people with pseudonyms are often considered trolls here, but this is a > really honest question by a sw engineer now writing mostly sequential web > applications. (I write "parallel" web apps, but the logic goes that you > write sequential applications

Re: D and multicore

2010-11-13 Thread Peter Alexander
On 13/11/10 7:04 PM, parallel noob wrote: The situation is different with GPUs. My Radeon 5970 has 3200 cores. When the core count doubles, the FPS rating in games almost doubles. They definitely are not running Erlang style processes (one for GUI, one for sounds, one for physics, one for netw

Re: Standard third party imports

2010-11-13 Thread Adam Ruppe
jdf wrote: > Question 1. Nearly-Verbatim Translation: > Does that fall under the .h license? Yes, since it is a derivative work. Same for questions 2 and 3 - they are all based on the original .h, so they all inherit its license too. The only file currently in the etc.c package is zlib.d, a direc

Re: D and multicore

2010-11-13 Thread Gary Whatmore
Peter Alexander Wrote: > On 13/11/10 7:04 PM, parallel noob wrote: > > The situation is different with GPUs. My Radeon 5970 has 3200 cores. When > > the core count doubles, the FPS rating in games almost doubles. They > > definitely are not running Erlang style processes (one for GUI, one for >

Re: linker wrapper

2010-11-13 Thread Walter Bright
bearophile wrote: A new fresh trouble, I think I have already seen about 10-15 persons ask this question in D.learn: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=22772 http://www.digitalmars.com/ctg/OptlinkErrorMessages.html#symbol_undefined

Re: linker wrapper

2010-11-13 Thread bearophile
Walter Bright: > bearophile wrote: > > A new fresh trouble, I think I have already seen about 10-15 persons ask > > this question in D.learn: > > http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=22772 > > http://www.digitalmars.com/ctg/OptlinkErrorMessag

Re: Question about std.bind

2010-11-13 Thread Dmitry Olshansky
On 13.11.2010 14:11, Russel Winder wrote: On Sat, 2010-11-13 at 12:49 +0300, Dmitry Olshansky wrote: [ . . . ] Well at least the Thread starts ) Indeed :-) I'd search for the clues by replacing all complicated logic with writeln("Func x executed"); where x identifies functions. If it prints a

Re: Thoughts on parallel programming?

2010-11-13 Thread sybrandy
True enough. But it's certainly more natural to think about than mutex-based concurrency, automatic parallelization, etc. In the long term there may turn out to be better models, but I don't know of one today. Also, there are other goals for such a design than increasing computation speed: d

Re: D and multicore

2010-11-13 Thread sybrandy
Sean, sybrandy, don, fawzi, tobias, gary, dsimcha, bearophile, russel, trass3r, dennis, and simen clearly have ideas how to work with parallel problems. Ideas: Yes. Expert: No. I haven't exercised it much as I haven't been able to do it at work. Others here have shown that they have more kno

Re: Standard third party imports

2010-11-13 Thread Stanislav Blinov
dsimcha wrote: == Quote from Adam D. Ruppe (destructiona...@gmail.com)'s article I'm wondering, would be be a good idea to add some .di files to the standard distribution, or easily accessible next to it, for some common third party C libraries? For example, I used import sdl.SDL in another thre

Re: linker wrapper

2010-11-13 Thread Andrew Wiley
On Sat, Nov 13, 2010 at 5:02 PM, bearophile wrote: > Walter Bright: > > > bearophile wrote: > > > A new fresh trouble, I think I have already seen about 10-15 persons > ask this question in D.learn: > > > > http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=

Re: D and multicore

2010-11-13 Thread retard
Not really an answer to your questions, but according to my google reader this appeared very few minutes ago http://lambda-the-ultimate.org/node/4134 I don't think we've heard the last word on this domain of programming.

Re: D and multicore

2010-11-13 Thread Fawzi Mohamed
On 13-nov-10, at 22:23, Gary Whatmore wrote: parallel noob Wrote: Hello Intro: people with pseudonyms are often considered trolls here, but this is a really honest question by a sw engineer now writing mostly sequential web applications. (I write "parallel" web apps, but the logic goe

Re: Kill implicit joining of adjacent strings

2010-11-13 Thread Stewart Gordon
On 12/11/2010 09:53, Andrei Alexandrescu wrote: Well put me on board then. Walter, please don't forget to tweak the associativity rules: var ~ " literal " ~ " literal " concatenates literals first. You mean make ~ right-associative? I think this'll break more code than it fixes. But implem

Re: Kill implicit joining of adjacent strings

2010-11-13 Thread bearophile
Stewart Gordon: > You mean make ~ right-associative? I think this'll break more code than > it fixes. > > But implementing a compiler optimisation so that var ~ ctc ~ ctc is > processed as var ~ (ctc ~ ctc), _in those cases where they're > equivalent_, would be sensible. > > ctc = compile-ti

Re: linker wrapper

2010-11-13 Thread bearophile
Andrew Wiley: > Learning to > operate a compiler and linker is a fundamental part of programming pretty > much any compiled language, and taking it away encourages the user to not > care how their code becomes an executable. To me, this seems like a large > disservice. Many new programmers don't

Re: datetime review part 2 [Update 4]

2010-11-13 Thread Jonathan M Davis
On Thursday 11 November 2010 13:42:37 Dmitry Olshansky wrote: > > I'm afraid that I don't really get what you're trying to do here. A range > > needs to be created from an interval. It really wouldn't make sense to > > do it otherwise. And when you create a range, it needs a delegate which > > gene

Re: linker wrapper

2010-11-13 Thread Andrew Wiley
On Sat, Nov 13, 2010 at 9:14 PM, bearophile wrote: > > > If you don't even see the usefulness of more readable linker errors then... > why are where here? Aren't we trying to improve older languages? I said that improved error messages would be helpful. I may have misinterpreted you when you said

Re: D and multicore

2010-11-13 Thread Sean Kelly
parallel noob Wrote: > > I fail to map these concepts discussed here with the things listed on those > pages. I found MPI, POSIX Threads, TBB, Erlang, OpenMP, and OpenCL there. > > Sean mentioned: > > "In the long term there may turn out to be better models, but I don't know of > one today." >

Re: linker wrapper

2010-11-13 Thread Walter Bright
Andrew Wiley wrote: I interpreted this as the compiler adding modules that were unspecified on the command line when calling the linker. If you meant that the compiler should search for additional required modules for more useful error messages, I agree with that sentiment. As written, it seems