On Mon, 06 Sep 2010 16:52:57 -0400, BLS windev...@hotmail.de wrote:
On 24/08/2010 17:45, Steven Schveighoffer wrote:
dcollections second beta version 2.0b is up.
This fixes a few bugs, and adds some features such as passing in
elements on construction. See the full changelog here:
Mike James wrote:
For those of us on different continents - will it be available on
youtube :-)
I don't know.
Would love to see it :)
However for at student in europe, its quite far.
Hoping for availablity of it, on youtube :)
On 7 September 2010 20:16, Walter Bright newshou...@digitalmars.com wrote:
Mike James wrote:
For those of us on different continents - will it be available on youtube
:-)
I
On Sun, 05 Sep 2010 03:22:08 -0700, Walter Bright
newshou...@digitalmars.com wrote:
I'll be giving a presentation on The Many Faces of D at the Northwest
C++ Users' Group meeting on Sept. 15.
http://nwcpp.org/
3 copies of The D Programming Language book autographed by Andrei will
be
BCS n...@anon.com wrote in message
news:a6268ff1b9ca8cd1c2c66c86...@news.digitalmars.com...
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com...
Hello Nick,
Ugh, don't even get me started on MicroSD. Ordinary SD is already
too small if
I agree with Andrei here, building hypercubes makes more sense, and feels like
it has more structure. It
also has the nice property that, once you've seen a (n+1)th element of any
range then you have already
explored the entire product of the first n elements of every range, kind of
like how
The SVN version of std.stdio supports large files on Linux and OSX. The
next release will be a nice one, I think. :)
-Lars
This will throw exception on trying to create socket in derived thread. Socket
created in main thread is ok. Is it some shared issue or... ? I have been
trying to find something info in docs and mailing list but no result.
import std.stdio;
import core.thread;
import std.socket;
class MyThread
On 2010-09-07 04:16, Michel Fortin wrote:
On 2010-09-06 20:55:16 -0400, dsimcha dsim...@yahoo.com said:
== Quote from Michel Fortin (michel.for...@michelf.com)'s article
I'm under the impression that a too permissive generic implementation
of cloning is going to break things in various
This is what I get:
std.socket.SocketException: Unable to create socket
I triple checked it. 2.0.48 has problems with this, 2.040, 2.045 2.047 don't.
This will throw exception on trying to create socket in derived thread.
Socket created in main thread is ok. Is it some shared issue or... ? I have
been trying to find something info in docs and mailing list but
Errr... sorry guys.
Joke is on me.
Main threads exits before socket is created in new thread. Simple call to
sleep() fix this.
On Tue, 07 Sep 2010 18:48:22 +0900, Bane
branimir.milosavlje...@gmail.com wrote:
Please show your environment. Windows?
WinXP sp2, phenom quad core.
Current std.socket uses static ~this for WSACleanup.
In this case, main thread calls static ~this before MyThread executes
new TcpSocket.
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff1b9ca8cd1c2c66c86...@news.digitalmars.com...
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com...
Hello Nick,
Ugh, don't even get me started on MicroSD. Ordinary SD is already
On 09/07/2010 02:43 AM, Peter Alexander wrote:
I agree with Andrei here, building hypercubes makes more sense, and feels like
it has more structure. It
also has the nice property that, once you've seen a (n+1)th element of any
range then you have already
explored the entire product of the
Tue, 07 Sep 2010 05:45:55 +, BCS wrote:
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com...
Hello Nick,
Ugh, don't even get me started on MicroSD. Ordinary SD is already too
small if you ask me, although I still put up with it
On Tue, Sep 7, 2010 at 1:08 AM, Lars T. Kyllingstad
pub...@kyllingen.nospamnet wrote:
The SVN version of std.stdio supports large files on Linux and OSX. The
next release will be a nice one, I think. :)
-Lars
Thanks Lars,
For the hint to the svn versions. Things seem to work there. What
On 9/7/10 11:05 CDT, Lars Holowko wrote:
On Tue, Sep 7, 2010 at 1:08 AM, Lars T. Kyllingstad
pub...@kyllingen.nospamnet wrote:
The SVN version of std.stdio supports large files on Linux and OSX. The
next release will be a nice one, I think. :)
-Lars
Thanks Lars,
For the hint to the svn
On Tue, Sep 7, 2010 at 9:34 AM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I did not realize that 1024 * 1024 * 1024 * 6 turns negative and then
gets converted to a negative long (without even a warning). Overseeing
that had killed my own efforts to hack 64-bit support into phobos
BCS Wrote:
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff1b9ca8cd1c2c66c86...@news.digitalmars.com...
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com...
Hello Nick,
Ugh, don't even get me started on
the retarded superretard script kid Wrote:
Tue, 07 Sep 2010 05:45:55 +, BCS wrote:
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com...
Hello Nick,
Ugh, don't even get me started on MicroSD. Ordinary SD is already too
BCS wrote:
People want a phone that has a key board from the get go. How many
people actually want to /add/ one to the phone they have?
I like being able now and then to attach a full size keyboard.
domino wrote:
Ordinary man cannot have 5 TB of data because ALL standard movie/audio
CD/DVD/Bluray/HD-DVD discs have DRM copy protection.
CDs are not copy protected.
I'm running around .5 TB these days, and none of it is DRM'd material. (Family
movies eat up space like you wouldn't believe,
Dnia 04-09-2010 o 08:03:12 John Demme j...@cs.columbia.edu napisał(a):
As for the graphs, I essentially take two input graphs, represented in
adjacency matrix form (two 2-d matrices of size n^2 each, assuming equal
sized graphs). Then, I compute the Kronecker Tensor Graph Product[2],
which
Walter Bright Wrote:
domino wrote:
Ordinary man cannot have 5 TB of data because ALL standard movie/audio
CD/DVD/Bluray/HD-DVD discs have DRM copy protection.
CDs are not copy protected.
False.
I have 10--20 discs with cactus data protection. Two with sony bmg rootkit
protection
domino eff...@sitemine.org wrote in message
news:i666vt$158...@digitalmars.com...
Walter Bright Wrote:
domino wrote:
Ordinary man cannot have 5 TB of data because ALL standard movie/audio
CD/DVD/Bluray/HD-DVD discs have DRM copy protection.
CDs are not copy protected.
False.
I have
Hello all,
as some of you might know, I have started working on a D module for SWIG
quite some time ago. In the meantime, the project is almost ready for
inclusion in SWIG trunk as a full-fledged language module supporting
D1/Tango and D2/Phobos.
However, there is one major blocker left: I
Am 07.09.2010 23:00, schrieb klickverbot:
Hello all,
as some of you might know, I have started working on a D module for SWIG
quite some time ago. In the meantime, the project is almost ready for
inclusion in SWIG trunk as a full-fledged language module supporting
D1/Tango and D2/Phobos.
On 9/7/10 11:12 PM, dsimcha wrote:
One way to test for overriding at runtime is to compare the function pointer of
a
delegate obtained at runtime to the function pointer obtained from the compile
time type.
That's basically the same idea I were already using, but have you tried
implementing
One way to test for overriding at runtime is to compare the function pointer of
a
delegate obtained at runtime to the function pointer obtained from the compile
time type.
Here's a simplified example:
import std.stdio;
class A {
void fun() {}
}
class B : A {
override void fun() {}
}
On 9/7/10 11:07 PM, Mafi wrote:
I'm not sure if the right isn't an shortcut for the left […]
Unfortunately, the right indeed is a shortcut for the left – the lookup
is performed using the vtbl. Furthermore, this would not solve my
problem with overloaded functions.
== Quote from klickverbot (s...@klickverbot.at)'s article
On 9/7/10 11:12 PM, dsimcha wrote:
One way to test for overriding at runtime is to compare the function
pointer of a
delegate obtained at runtime to the function pointer obtained from the
compile
time type.
That's basically
klickverbot:
class A {
void foo( float a ) {}
void foo( int a ) {}
final void bar() {
// Determine whether this.foo( 1 ) and this.foo( 1f ) really refer
// to A.foo( float ) and A.foo( int ) or if they point to a subclass
// implementation how?
}
}
class
Nick Sabalausky wrote:
The vast majority of CDs don't have that. I have approx 250 commercial audio
CDs, and not a single one of them has any DRM. And if I did want something
that only came on a DRMed CD, I'd just say Fuck you Sony and pirate it.
I have around 400 CDs, and also exactly zero
On 9/7/10 11:31 PM, bearophile wrote:
Have you tried to compile that code with -w?
See also:
http://d.puremagic.com/issues/show_bug.cgi?id=4216
Bye,
bearophile
Well, I guess I should have wrote the following instead:
---
class A {
void foo( float a ) {}
void foo( int a ) {}
final
s/have wrote/have written/
Putting the overloading issue aside for a moment, how would you
implement it inside a member function of a (which is required for
various reasons?
The following does *not* work, because A.foo also performs a vtbl
lookup when put inside A…
---
class A {
void foo() {}
void bar() {
That looks like something that should go into bugzilla.
klickverbot Wrote:
Putting the overloading issue aside for a moment, how would you
implement it inside a member function of a (which is required for
various reasons?
The following does *not* work, because A.foo also performs a vtbl
On Friday (Sept. 10), Google/The University of Waterloo is going to open up
registration for the next Google AI Challenge. Right now they are accepting
starter packages for any language with a free compiler that can run on
Ubuntu 8.04 (what their server runs), which means dmd is a candidate. I
Hello domino,
Walter Bright Wrote:
domino wrote:
Ordinary man cannot have 5 TB of data because ALL standard
movie/audio CD/DVD/Bluray/HD-DVD discs have DRM copy protection.
CDs are not copy protected.
False.
I have 10--20 discs with cactus data protection. Two with sony bmg
rootkit
Hello Nick,
domino eff...@sitemine.org wrote in message
news:i666vt$158...@digitalmars.com...
Walter Bright Wrote:
domino wrote:
Ordinary man cannot have 5 TB of data because ALL standard
movie/audio CD/DVD/Bluray/HD-DVD discs have DRM copy protection.
CDs are not copy protected.
Hello retard,
Tue, 07 Sep 2010 05:45:55 +, BCS wrote:
I wouldn't. I'd put it in a package about 4-5 times as big and mount
it on the PC board. Besides, what the heck do you need more than
about 32GB for on a phone? If you need to shoot that much video, get
a real camera!
I have 32 GB
On Mon, 06 Sep 2010 05:32:28 +0900, Nick Sabalausky a...@a.a wrote:
This may be a stupid question:
Does std.socket encorporate or replace pipe usage? Ie, if I'm going to do
something along the lines of (psuedo-code):
auto parentToChild = pipe();
auto childToParent = pipe();
if(fork())
{
On 2010-09-07 14:49, Steven Schveighoffer wrote:
On Sun, 05 Sep 2010 09:40:59 -0400, BLS windev...@hotmail.de wrote:
On 05/09/2010 02:16, Jonathan M Davis wrote:
void foo(T)(T[] collection, T elem)
{
// Blah, whatever
}
I am curious, how this will look and feel once inout is working ?
On Sun, 05 Sep 2010 22:41:50 -0400, bearophile bearophileh...@lycos.com
wrote:
Tom Kazimiers:
How can I have a (temporary) dynamic array on stack and make references
to it (no copying)? I successively put integers in an array (but don't
know how much there will be in advance) with an
I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof
where it says:
typeof(this) will generate the type of what this would be in a
non-static member function, even if not in a member function.
From that I got the impression that the code below would print the same
result,
On Tue, 07 Sep 2010 08:56:15 -0400, Jacob Carlborg d...@me.com wrote:
On 2010-09-07 14:49, Steven Schveighoffer wrote:
On Sun, 05 Sep 2010 09:40:59 -0400, BLS windev...@hotmail.de wrote:
On 05/09/2010 02:16, Jonathan M Davis wrote:
void foo(T)(T[] collection, T elem)
{
// Blah, whatever
}
On 09/07/2010 03:15 PM, Steven Schveighoffer wrote:
On Tue, 07 Sep 2010 08:56:15 -0400, Jacob Carlborg d...@me.com wrote:
On 2010-09-07 14:49, Steven Schveighoffer wrote:
On Sun, 05 Sep 2010 09:40:59 -0400, BLS windev...@hotmail.de wrote:
On 05/09/2010 02:16, Jonathan M Davis wrote:
void
Hi all,
What's the best way to find an element into an array, drop it and shrink the
array inplace, in D2?
Thanks in advance, Paolo
On Tue, 07 Sep 2010 09:28:18 -0400, Pelle pelle.mans...@gmail.com wrote:
On 09/07/2010 03:15 PM, Steven Schveighoffer wrote:
On Tue, 07 Sep 2010 08:56:15 -0400, Jacob Carlborg d...@me.com wrote:
On 2010-09-07 14:49, Steven Schveighoffer wrote:
On Sun, 05 Sep 2010 09:40:59 -0400, BLS
Jacob Carlborg wrote:
I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof
where it says:
typeof(this) will generate the type of what this would be in a
non-static member function, even if not in a member function.
From that I got the impression that the code below would
07.09.2010 17:00, Jacob Carlborg пишет:
I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof
where it says:
typeof(this) will generate the type of what this would be in a
non-static member function, even if not in a member function.
From that I got the impression that the
On 09/07/2010 04:33 PM, Steven Schveighoffer wrote:
Yes, a valid return. Your function should be:
void foo(void delegate(const(C) f) const
It helps to understand that inout/const/immutable has NOTHING to do with
code generation, it only has to do with limiting what compiles. For this
reason,
Hi,
thanks for your tests.
On 09/06/2010 04:59 AM, bearophile wrote:
My first test shows that it may work. But I have to grow the array
backwards, and push back the array start, because that's how my stack
grows (using alloca to allocate geometrically bigger chunks). So
unless you want to
Steven Schveighoffer:
Note that the new appender uses heap data to store its implementation, so
it's not as quick as it could be. This is per Andrei's requirement that
it be a reference type.
Thank you for your answers. But I don't fully understand your answer. Do you
mean it uses the
Paolo Invernizzi:
What's the best way to find an element into an array, drop it and shrink
the array inplace, in D2?
Inside the module std.array there is a commented out function that allows to
remove items. I don't know why it is commented out, maybe there is some bug.
You can find the
Hi all, I have what is I suspect a silly question, but I am having a
total brainfart over this for some reason. I want to read an
arbitrary amount of floats from user input and then perform some
statistics work on them. For some reason, I can't figure out how to
get it to recognise when the user
I get the following strange message when linking:
==
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 23: No Stack
first.obj(first)
Error 42: Symbol Undefined _D3std5stdio6stdoutS3std5stdio4File
first.obj(first)
Error 42: Symbol
On Tue, 07 Sep 2010 11:37:20 -0400, Pelle pelle.mans...@gmail.com wrote:
On 09/07/2010 04:33 PM, Steven Schveighoffer wrote:
Yes, a valid return. Your function should be:
void foo(void delegate(const(C) f) const
It helps to understand that inout/const/immutable has NOTHING to do with
code
To answer my own post :
the problems vanish when I add a main() method.
question : how do I automagically add a standard main method ?
regards, Oliver
On Tue, 07 Sep 2010 12:54:52 -0400, bearophile bearophileh...@lycos.com
wrote:
Steven Schveighoffer:
Note that the new appender uses heap data to store its implementation,
so
it's not as quick as it could be. This is per Andrei's requirement that
it be a reference type.
Thank you for
Hello again,
I know the extern(C) mechanism, but how do I actually load a C-dll
such that my D-program has access to the functions of the C/C++ dll.
regards,
Oliver
On 2010-09-07 17:29, Don wrote:
Jacob Carlborg wrote:
I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof
where it says:
typeof(this) will generate the type of what this would be in a
non-static member function, even if not in a member function.
From that I got the
On 2010-09-07 17:34, Stanislav Blinov wrote:
07.09.2010 17:00, Jacob Carlborg пишет:
I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof
where it says:
typeof(this) will generate the type of what this would be in a
non-static member function, even if not in a member function.
OK Wrote:
I know the extern(C) mechanism, but how do I actually load a C-dll
such that my D-program has access to the functions of the C/C++ dll.
You just link to it, system loader will do actual loading for you automatically.
On 2010-09-07 17:37, Pelle wrote:
On 09/07/2010 04:33 PM, Steven Schveighoffer wrote:
Yes, a valid return. Your function should be:
void foo(void delegate(const(C) f) const
It helps to understand that inout/const/immutable has NOTHING to do with
code generation, it only has to do with
Kagamin s...@here.lot wrote in message
news:i660qi$nu...@digitalmars.com...
Nick Sabalausky Wrote:
Does anyone who's done this sort of thing in D before, on Win or Lin,
know
of anything else in particular to be aware of?
There's no fork on windows. If you want a multithreaded server, it's
If you are trying to compile a library, add -lib to make it not require a
main method.
On Tue, Sep 7, 2010 at 2:12 PM, OK herrsauro...@lavabit.com wrote:
To answer my own post :
the problems vanish when I add a main() method.
question : how do I automagically add a standard main method ?
hello,
now I have written some code in first.d and added some extern(C) functions in
externs.d. How do I compile and link everything with
extern.lib ?
regards, Oliver
Steven Schveighoffer:
An appender is an ouput range, so passing it into a function so the
function can output to it is a requirement.
I see, that's useful. I will write a Pimp-less version of it, then (when I
don't need a range, but just a local accumulator).
Thank you for your always
OK wrote:
hello,
now I have written some code in first.d and added some extern(C) functions in
externs.d. How do I compile and link everything with
extern.lib ?
regards, Oliver
Recently there was a pretty thorough discussion about this:
On Tue, 07 Sep 2010 14:54:46 -0400, Nick Sabalausky a...@a.a wrote:
Kagamin s...@here.lot wrote in message
news:i660qi$nu...@digitalmars.com...
Nick Sabalausky Wrote:
Does anyone who's done this sort of thing in D before, on Win or Lin,
know
of anything else in particular to be aware of?
Tom Kazimiers:
But good to know that it would work with backward growing of the
array - do have you an example of that?
Just created:
import std.stdio: writeln;
import std.c.stdlib: alloca;
void main() {
int n = 30;
alias int T;
enum int initialCapacity = 4;
static
Jacob Carlborg wrote:
On 2010-09-07 17:29, Don wrote:
Jacob Carlborg wrote:
I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof
where it says:
typeof(this) will generate the type of what this would be in a
non-static member function, even if not in a member function.
From
On Tuesday 07 September 2010 09:55:29 Max Mayrhofer wrote:
Hi all, I have what is I suspect a silly question, but I am having a
total brainfart over this for some reason. I want to read an
arbitrary amount of floats from user input and then perform some
statistics work on them. For some
Nick Sabalausky a...@a.a wrote in message
news:i66oia$25s...@digitalmars.com...
I've tried all sorts of stuff and looked all over, but I'm completely at a
loss. How do I link in a static lib on the command line?
And I don't mean with C or anything like that, just ordinary D.
type main.d
On Tuesday 07 September 2010 18:23:59 Nick Sabalausky wrote:
I've tried all sorts of stuff and looked all over, but I'm completely at a
loss. How do I link in a static lib on the command line?
Don't you just include it as one of the arguments, like all of the .d files? I
don't know. I haven't
This is interesting, if you compile it with:
dmd test.d
It works. If you compile it with:
dmd -inline test.d
It doesn't compile and dmd returns:
test.d(5): Error: function D main is a nested function and cannot be accessed
from array
import std.algorithm: map;
import std.array: array;
void
Yea of course that does make sense, there ya go :)
http://d.puremagic.com/issues/show_bug.cgi?id=4826
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Keywords||diagnostic
--- Comment #3
http://d.puremagic.com/issues/show_bug.cgi?id=4826
--- Comment #4 from Don clugd...@yahoo.com.au 2010-09-07 00:04:26 PDT ---
Actually even with the patch for bug 3996, I found a test case which still
segfaults:
struct Struct4826 { }
void bug4826b(T)(int[int] value) {}
void
http://d.puremagic.com/issues/show_bug.cgi?id=4835
Summary: DMD should warn about integer overflow in computed
constant
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity:
http://d.puremagic.com/issues/show_bug.cgi?id=4835
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
---
http://d.puremagic.com/issues/show_bug.cgi?id=4836
Summary: duplicated union initialization without a union
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=4837
Summary: Assertion failure: '0' on line 608(614) in file
'constfold.c' during CTFE
Product: D
Version: D2
Platform: x86_64
OS/Version: Windows
Status: NEW
http://d.puremagic.com/issues/show_bug.cgi?id=4826
--- Comment #5 from Don clugd...@yahoo.com.au 2010-09-07 13:47:50 PDT ---
The segfault should be turned into an ICE by adding an extra assert into
TypeAArray::getImpl(), in mtype.c 3967.
+assert(ti-inst || sc);
ti-semantic(sc);
http://d.puremagic.com/issues/show_bug.cgi?id=4838
Summary: Cannot declare a delegate variable for const member
functions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
http://d.puremagic.com/issues/show_bug.cgi?id=4834
David Simcha dsim...@yahoo.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=4814
Nick Sabalausky cbkbbej...@mailinator.com changed:
What|Removed |Added
Summary|rdmd: Doesn't rebuild when |rdmd:
http://d.puremagic.com/issues/show_bug.cgi?id=4838
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
---
http://d.puremagic.com/issues/show_bug.cgi?id=3564
Nick Sabalausky cbkbbej...@mailinator.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=3564
Nick Sabalausky cbkbbej...@mailinator.com changed:
What|Removed |Added
Status|RESOLVED|REOPENED
93 matches
Mail list logo