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
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:
> >
> >
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
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
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
== 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 ,
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
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
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
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 ) )
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
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
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
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
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
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
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
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
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
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
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
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
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
"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
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)?
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
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
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
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
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
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
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
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
"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
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
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
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
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
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.
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
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
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
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
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
>
== 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
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
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
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
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
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
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
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
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
== 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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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=
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.
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
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
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
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
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
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
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."
>
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
77 matches
Mail list logo