On 2011-03-26 21:16, Don wrote:
dsimcha wrote:
On 3/26/2011 12:16 PM, Don wrote:
I'm giving CTFE a *major* overhaul right now. I don't know if I'll be
finished in time for the next compiler release, but definitely by the
release after that. Most importantly, bug 1330, which is the root cause
of
Walter:
> You quoted a claim saying it was also an optimization.
If GCC devs say so, then I presume they are right. But the main purpose of a
warning is to warn the programmer, in this case to avoid some bugs.
> As I said, these kinds of error messages are very annoying when developing
> code
On 03/26/2011 09:57 PM, Don wrote:
The basic problem with the current implementation of CTFE is that it
uses copy-on-write. This means that references (including dynamic
arrays) don't work properly -- they just copy a snapshot of the thing
they are referencing. This is bug 1330. It also means it
On 3/27/2011 2:47 AM, Jason House wrote:
dsimcha Wrote:
I'm thinking about ways to make std.concurrency's model more flexible
without compromising safety. It's sometimes useful to cheaply _move_
(as opposed to share or copy) data between threads. I wonder if we
could co-opt sealed containers
Hello,
"import algorithm;" generates the error message:
test.d(35): Error: module algorithm is in file 'algorithm.d' which cannot be
read
Three notes:
* The message is wrong: the error is precisely due to the fact no file
'algorithm.d' was found.
* A nice tip for phobos modules would be to hin
== Quote from bearophile (bearophileh...@lycos.com)'s article
> Walter:
> > You quoted a claim saying it was also an optimization.
> If GCC devs say so, then I presume they are right. But the main purpose of a
warning is to warn the programmer, in this case to avoid some bugs.
Warnings have no eff
> test.d(4): Error: + has no effect in expression (x + y)
> But currently this gives no errors, despite it's the same situation, so I'd
> like
an error here too (this enhancement request is in Bugzilla already):
> pure int add(int a, int b) { return a + b; }
> void main() {
> int x = 10;
>
Iain Buclaw:
> I think it would be better if it were targeting memory/(re)allocation-related
> functions.
>
> ie:
> {
> new int[4096]; // allocation has no effect, other than leaking memory.
> }
(The memory does not leak, the GC will deallocate it later).
In Bugzilla I have proposed that if y
spir:
> * The message is wrong: the error is precisely due to the fact no file
> 'algorithm.d' was found.
The D compilers need to produce good error messages. So I suggest you to
perform a search in Bugzilla, if you don't find your problem there (I have a
related bug there), then add a new Bug
This first question is mostly for D.learn, but below I show a partially related
link too, so I put both of them here.
If you have library code, and the users of your library run one of your
functions at compile time, later if you change your function it may not run at
compile time any more. So
On Mar 27, 11 22:30, bearophile wrote:
In Bugzilla I have proposed that if you call a pure function and you don't
assign its return value, then you have a bug, like the similar present in D for
unassigned expressions.
This should be restricted to *strongly* pure functions. Weakly pure
functi
On Mar 27, 11 23:19, KennyTM~ wrote:
On Mar 27, 11 22:30, bearophile wrote:
In Bugzilla I have proposed that if you call a pure function and you
don't assign its return value, then you have a bug, like the similar
present in D for unassigned expressions.
This should be restricted to *strongly*
== Quote from bearophile (bearophileh...@lycos.com)'s article
> Iain Buclaw:
> > I think it would be better if it were targeting
> > memory/(re)allocation-related
> > functions.
> >
> > ie:
> > {
> > new int[4096]; // allocation has no effect, other than leaking memory.
> > }
> (The memory does
On Sun, 27 Mar 2011 08:36:39 -0400, spir wrote:
On 03/26/2011 09:57 PM, Don wrote:
The basic problem with the current implementation of CTFE is that it
uses copy-on-write. This means that references (including dynamic
arrays) don't work properly -- they just copy a snapshot of the thing
they a
On Sun, 27 Mar 2011 06:06:48 -0400, Jacob Carlborg wrote:
On 2011-03-26 21:16, Don wrote:
dsimcha wrote:
On 3/26/2011 12:16 PM, Don wrote:
I'm giving CTFE a *major* overhaul right now. I don't know if I'll be
finished in time for the next compiler release, but definitely by the
release after
KennyTM~:
> This should be restricted to *strongly* pure functions.
Right, I have added the note. I have written the enhancement request 3882
before the introduction of the weakly pure ones.
Bye,
bearophile
bearophile wrote:
> This first question is mostly for D.learn, but below I show a partially
> related link too, so I put both of them here.
>
> If you have library code, and the users of your library run one of your
> functions at compile time, later if you change your function it may not
> run a
As to my understanding algorithms are seperated from the containers so that the
code is maintainable. But in std.container I can see that all the algorithms are
in the container method definitions. Why is this? Have I got the things
incorrectly?
On 03/26/2011 05:26 PM, dsimcha wrote:
I'm thinking about ways to make std.concurrency's model more flexible
without compromising safety. It's sometimes useful to cheaply _move_ (as
opposed to share or copy) data between threads. I wonder if we could
co-opt sealed containers here:
1. Define basi
On 03/27/2011 12:25 AM, Don wrote:
Andrei Alexandrescu wrote:
On 3/26/11 3:01 PM, Don wrote:
David Nadlinger wrote:
On 3/26/11 5:16 PM, Don wrote:
I'm giving CTFE a *major* overhaul right now. I don't know if I'll be
finished in time for the next compiler release, but definitely by the
releas
Ishan Thilina wrote:
> As to my understanding algorithms are seperated from the containers so
> that the code is maintainable. But in std.container I can see that all the
> algorithms are in the container method definitions. Why is this? Have I
> got the things incorrectly?
Slightly, D ranges use
Bruno Medeiros from Google has been accepted as a mentor for the Google
Summer of Code 2011 program for Digital Mars.
Please join me in congratulating and wishing the best to Bruno.
We have three mentors and two pending applications. We are always
looking for mentor and student applications. P
Discuss and upvote!
http://www.reddit.com/r/programming/comments/gcmj1/digital_mars_aka_the_d_programming_language/
Andrei
Robert Jacques wrote:
On Sun, 27 Mar 2011 08:36:39 -0400, spir wrote:
On 03/26/2011 09:57 PM, Don wrote:
The basic problem with the current implementation of CTFE is that it
uses copy-on-write. This means that references (including dynamic
arrays) don't work properly -- they just copy a snaps
On 3/27/2011 7:30 AM, bearophile wrote:
In Bugzilla I have proposed that if you call a pure function and you don't
assign its return value, then you have a bug, like the similar present in D
for unassigned expressions.
I think that's a reasonable proposal.
Hello everyone,
I've succesfully compiled the win32.lib file from the bindings project.
For a fun little project I need to call the windows function
"writeprocessmemory/readprocessmemory" in winbase.d .
I loved to use the eclipse ide to use with it but I kept getting the same
error over and over ag
Hello everyone,
I'm new to D and to this list (although I've had a look onto D a few years
ago). I hope you guys can help me with my questions.
At the moment I'm trying to implement some expression template stuff. My first
goal is to encode an expression into a type representing that expression
I remember a few months ago I've tried using CTFE and import
expressions to load a .def file and generate at compile-time a runtime
DLL loading mechanism in a class which would load a DLL file and
create wrapper functions for DLL functions. It would also add
try{}catch{} blocks based on a naming sc
win32.lib doesn't have any modules, it only has binary code.
You need to add an import switch and the location of the win32 project
folder. E.g. if you have:
C:\win32\win32\winbase.d
Then you would add "-IC:\win32\", and the compiler will look for
winbase inside the win32 subfolder. So your comp
Walter:
> On 3/27/2011 7:30 AM, bearophile wrote:
> > In Bugzilla I have proposed that if you call a pure function and you don't
> > assign its return value, then you have a bug, like the similar present in D
> > for unassigned expressions.
>
> I think that's a reasonable proposal.
:-) Thank you
On 3/27/2011 11:57 AM, Andrei Alexandrescu wrote:
Bruno Medeiros from Google has been accepted as a mentor for the Google Summer
of Code 2011 program for Digital Mars.
Please join me in congratulating and wishing the best to Bruno.
Yay Bruno!
On 2011-03-27 22:03, maarten van damme wrote:
Hello everyone,
I've succesfully compiled the win32.lib file from the bindings project.
For a fun little project I need to call the windows function
"writeprocessmemory/readprocessmemory" in winbase.d .
I loved to use the eclipse ide to use with it bu
On 25/03/11 10.54, Johannes Pfau wrote:
Jonas Drewsen wrote:
Hi,
So I've been working a bit on the etc.curl module. Currently most
of
the HTTP functionality is done and some very simple Ftp.
I would very much like to know if this has a chance of getting in
phobos if I finish it with the cur
On 25/03/11 12.07, Johannes Pfau wrote:
Johannes Pfau wrote:
Jonas Drewsen wrote:
Hi,
So I've been working a bit on the etc.curl module. Currently most
of
the HTTP functionality is done and some very simple Ftp.
I would very much like to know if this has a chance of getting in
phobos if I
On 2011-03-27 08:41, Robert Jacques wrote:
> On Sun, 27 Mar 2011 06:06:48 -0400, Jacob Carlborg wrote:
> > On 2011-03-26 21:16, Don wrote:
> >> dsimcha wrote:
> >>> On 3/26/2011 12:16 PM, Don wrote:
> I'm giving CTFE a *major* overhaul right now. I don't know if I'll be
> finished in tim
On 3/27/11 3:57 PM, Andrei Alexandrescu wrote:
Bruno Medeiros from Google has been accepted as a mentor for the Google
Summer of Code 2011 program for Digital Mars.
Please join me in congratulating and wishing the best to Bruno.
We have three mentors and two pending applications. We are always
Congratulations! :)
On 3/27/11, Ary Manzana wrote:
> On 3/27/11 3:57 PM, Andrei Alexandrescu wrote:
>> Bruno Medeiros from Google has been accepted as a mentor for the Google
>> Summer of Code 2011 program for Digital Mars.
>>
>> Please join me in congratulating and wishing the best to Bruno.
>>
Wow, thank you for the fast reply.
Winbase.d is compiled in win32.lib or am i really getting confused?
Op 27-mrt.-2011 om 22:25 heeft Jacob Carlborg het volgende
geschreven:
> On 2011-03-27 22:03, maarten van damme wrote:
>> Hello everyone,
>> I've succesfully compiled the win32.lib file fro
I sounds like we actually agree with each other on all the important
points - its just the different starting positions made our
near-identical ideas about testing to look different.
Thanks for the discussion.
--
Graham St Jack
Hello everyone,
I've been following with interest the three preliminary proposals made
so far: ANTLR grammar by Luca Boasso, containers by Ishan Thilina,
Thrift bindings by David Nadlinger aka klickverbot, and database API by
Christian Manning.
There are many issues to consider when looking
On 03/25/2011 09:02 AM, Christian Manning wrote:
On 24/03/2011 17:58, Trass3r wrote:
Has this idea/project been assigned a mentor? I'd like to ask them and
the list, what's the best thing for me to do right now to prepare for
this?
You could also have a look at http://dsource.org/projects/ddbi
On Sun, 27 Mar 2011 15:46:54 -0400, enuhtac wrote:
Hello everyone,
I'm new to D and to this list (although I've had a look onto D a few
years ago). I hope you guys can help me with my questions.
At the moment I'm trying to implement some expression template stuff. My
first goal is to enc
Sorry for my late draft proposal, I'm currently moving so I didn't
have enough time this days.
I would be glad to have your opinion.
Thank you
Rationale
-
There are different IDEs for the D programming language. The purpose of this
project proposal is to write a parser for the D progra
Hello again
I've stayed quiet for a long time because people started accusing me of
trolling. But now, I REALLY HATE THIS IDIOT IN REDDIT HE IS DRIVING ME
CRAZY. ASSHOLE ASSWIPE SHITHOLE LUNATIC. I HATE HIM. BASHING D JUST BECAUSE
HE'S SOME MENTALLY ILL PSYCHOPATE WANTING TO KILL ANDREI AN
On Sun, Mar 27, 2011 at 8:45 PM, Gary Whatmore wrote:
> Hello again
>
> I've stayed quiet for a long time because people started accusing me of
> trolling. But now, I REALLY HATE THIS IDIOT IN REDDIT HE IS DRIVING ME
> CRAZY. ASSHOLE ASSWIPE SHITHOLE LUNATIC. I HATE HIM. BASHING D JUST BECA
From observing the review processes for std.parallelism and
std.net.isemail, I think our review process needs some tweaking. There
are two key issues:
1. The pace of reviews is glacial unless there's a vote date near.
Only 4 people have reviewed std.net.isemail, and that's counting any
part
So what's the point of compiling all those files to a lib if you can't use
that lib anymore?
Is there some documentation on this?
On 3/23/2011 3:17 PM, Alvaro wrote:
D already has a long list of keywords, reserved words can't be used as
identifiers, which can be annoying. "body" in particular is a common noun that
programmers would gladly use as a variable name in physics simulation,
astronomy, mechanics, games, health, etc
On 2011-03-27 22:23, Walter Bright wrote:
> On 3/23/2011 3:17 PM, Alvaro wrote:
> > D already has a long list of keywords, reserved words can't be used as
> > identifiers, which can be annoying. "body" in particular is a common noun
> > that programmers would gladly use as a variable name in physic
On 2011-03-27 20:53, dsimcha wrote:
> From observing the review processes for std.parallelism and
> std.net.isemail, I think our review process needs some tweaking. There
> are two key issues:
>
> 1. The pace of reviews is glacial unless there's a vote date near.
> Only 4 people have reviewed s
On 3/22/2011 3:04 PM, Jacob Carlborg wrote:
I've now finished the port of Dominic Sayers' PHP is_email function
(http://www.dominicsayers.com/isemail) and sending it for review.
I think it looks nice. I'd add a note saying it is derived from Dominic's php
code, I'd add your name to the copyrig
51 matches
Mail list logo