References: ii592i$c09$1...@digitalmars.com
ii62n0$1r3i$1...@digitalmars.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
foobar f...@bar.com wrote:
I'd implement the following filters/parsers for text posts: 2. parse
BBCode.
Well, let's hope this works! I'm now
Well, it posted, but evidently still has a few bugs. As you can see,
the newlines got butchered with the real data and some headers
didn't come out right.
Newlines have been the hardest thing in all of this. They sometimes
matter in plain text, but sometimes are just an artifact of wrapping.
They
But, it looks like my code is just collapsing them a little too often.
LOL: the reason it worked in my tests but not for the live post?
\n\n != \r\n\r\n
Stupid line ending bullshit.
But with that fixed, I think all my woes are gone... I'll try the
headers again later, but that should be
On Saturday 05 February 2011 12:57:21 Jonathan M Davis wrote:
On Saturday 05 February 2011 07:16:45 Andrei Alexandrescu wrote:
On 2/5/11 5:09 AM, Jonathan M Davis wrote:
Hmm. I think that I'd have to have an actual implementation to mess
around with to say much. My general take on
On 02/06/2011 04:11 AM, Andrei Alexandrescu wrote:
On 2/5/11 5:22 PM, Nick Sabalausky wrote:
Heywood Floydsoul...@gmail.com wrote in message
news:mailman.1318.1296941395.4748.digitalmar...@puremagic.com...
As in, you've built some library that passes around ranges, but then some
part of it is
On 2011-02-04 20:03, spir wrote:
On 02/04/2011 04:33 PM, Jacob Carlborg wrote:
I recommend looking at Ruby, it has very good support for runtime
reflection.
ActiveRecord in Rails is hevaly based on runtime reflection. For
example, given
the following Ruby class:
class Post ActiveRecord::Base
On 2011-02-04 20:33, Walter Bright wrote:
so wrote:
It doesn't matter what signature you use for the function, compiler is
aware and will output an error when you do the opposite of the
signature. If this is the case, why do we need that signature?
Examine the API of a function in a library.
On 2011-02-04 21:44, Jeff Nowakowski wrote:
On 02/03/2011 10:07 PM, Walter Bright wrote:
The way to get a high performance string parser in D is to take
advantage of one of D's unique features - slices. Java, C++, C#, etc.,
all rely on copying strings. With D you can just use slices into the
On 2011-02-04 22:02, Tomek Sowiński wrote:
I am now intensely accumulating information on how to go about creating a
high-performance parser as it quickly became clear that my old one won't
deliver. And if anything is clear is that memory is the key.
One way is the slicing approach mentioned
Nick Sabalausky napisał:
discard and fetch?
I like that.
2011/2/4 Bruno Medeiros brunodomedeiros+spam@com.gmail:
language ecosystems are what matter, not just the language itself. At least
for most programmers, what you want is to develop software, software that is
useful or interesting, it's not about staring at the beauty of your code and
that's
On 2011-02-06 03:22:08 -0500, Jonathan M Davis jmdavisp...@gmx.com said:
So, maybe I'm still misunderstanding or missing something here, but what _I_
want to see for I/O streams is a _forward_ range which is buffered and which
reads in the file or whatever the data comes from in a lazy manner.
It overrides new and allocates class instances using malloc. The official
version
calls addRange from new, and removeRange/free from Release when the reference
count is 0, but i changed my local version to use add/remove(Root) instead of
range at some point.
I'm only currently trying to use
2011/2/4 Bruno Medeiros brunodomedeiros+spam@com.gmail:
Well, like I said, my concern about size is not so much disk space, but the
time to make local copies of the repository, or cloning it from the internet
(and the associated transfer times), both of which are not neglectable yet.
My
This is one of the most interesting CS ideas I've found in the past month, here
I have started to understand rationally why dynamic languages like Python may
generally be not significantly more bug prone than tightly statically typed
languages like ML or D:
While I'm circling the problem of parsing, I took a quick look at writing not
to get stuck in analysis-paralysis. Writing XML is pretty independent from
parsing and an order of magnitude easier to solve. It was perfect to get myself
coding.
These are the guidelines I followed:
* Memory
On 2/6/11 3:22 EST, Jonathan M Davis wrote:
Okay. I think that I've been misunderstanding some stuff here. I forgot that we
were dealing with input ranges rather than forward ranges, and many range
functions just don't work with input ranges, since they lack save(). Bleh.
Okay. Honestly, what
On 2/6/11 0:01 EST, Nick Sabalausky wrote:
Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message
news:iil64l$1f6s$1...@digitalmars.com...
On 2/5/11 7:28 PM, Don wrote:
Circular buffers don't seem like an 'optional' use case to me. Most real
I/O works that way.
I think if the
On 2/6/11 6:01 EST, Tomek Sowiński wrote:
Nick Sabalausky napisał:
discard and fetch?
I like that.
What's missing is the part that they refer to front. Maybe
discardFromFront() and fetchToFront()? But then I like
discardFromFront() and appendToFront() better - the latter is about as
On 2/5/11 17:54 EST, BLS wrote:
On 04/02/2011 04:20, Andrei Alexandrescu wrote:
Cool. Is Michael Rynn willing to make a submission?
He announced a while ago in d.announce. std.xml2 candidate.. A few weeks
earlier (if am not completely wrong) he offers his implementation for
phobos.
We need
Interesting idea, especially when you start considering how software
might survive errors in dependent systems, I.E. hardware, networking,
or software components outside the control of the compiler.
It sounds like the Erlang approach is far more likely to survive
spurious bitflips,
Is there any plan to add vectorisation intrinsics to DMD?
I know that DMD generates vectorised instructions for array operations,
but last time I checked, these were far from optimal for aligned
float[4] objects. In fact, it appears to generate a function call for
all vector operations,
I have always been pleased to see improvements in compile time code
execution possibilities, but today I hit what must be the weirdest DMD
error message I've ever seen:
/usr/local/bin/../include/d2/std/format.d(434): Error: can only
Applications Desktop Documents Downloads Library Movies
On 02/06/2011 05:43 AM, Jacob Carlborg wrote:
On 2011-02-04 21:44, Jeff Nowakowski wrote:
Java's substring() does not copy the text, at least in the official JDK
implementation. Unfortunately, it doesn't specify this behavior as part
of the String API.
But, I assume, it will allocate a new
On 2011-02-06 15:43, Tomek Sowiński wrote:
While I'm circling the problem of parsing, I took a quick look at writing not
to get stuck in analysis-paralysis. Writing XML is pretty independent from
parsing and an order of magnitude easier to solve. It was perfect to get myself
coding.
These
On 02/06/2011 04:25 PM, Andrei Alexandrescu wrote:
Say the buffer has 1000 elements of which the last 100 contain data (and the
other 900 are past data that's not used). Then say this request comes:
stream.appendToFront(150);
At this point the stream may go two ways:
1. Append to the internal
On 2/6/11 12:42 PM, spir wrote:
On 02/06/2011 04:25 PM, Andrei Alexandrescu wrote:
Say the buffer has 1000 elements of which the last 100 contain data
(and the
other 900 are past data that's not used). Then say this request comes:
stream.appendToFront(150);
At this point the stream may go two
On 2/6/11 10:48 AM, David Nadlinger wrote:
I have always been pleased to see improvements in compile time code
execution possibilities, but today I hit what must be the weirdest DMD
error message I've ever seen:
/usr/local/bin/../include/d2/std/format.d(434): Error: can only
Applications
On 2/6/11 9:43 AM, Tomek Sowiński wrote:
While I'm circling the problem of parsing, I took a quick look at writing not
to get stuck in analysis-paralysis.
That's great. I won't be able to add much because I haven't worked with
XML so I don't know what people need. The example looks nice and
== Quote from Peter Alexander (peter.alexander...@gmail.com)'s article
Is there any plan to add vectorisation intrinsics to DMD?
I know that DMD generates vectorised instructions for array operations,
but last time I checked, these were far from optimal for aligned
float[4] objects. In fact,
On 02/06/2011 05:01 PM, Peter Alexander wrote:
Is there any plan to add vectorisation intrinsics to DMD?
I know that DMD generates vectorised instructions for array operations, but
last time I checked, these were far from optimal for aligned float[4] objects.
In fact, it appears to generate a
On 6/02/11 6:31 PM, Iain Buclaw wrote:
== Quote from Peter Alexander (peter.alexander...@gmail.com)'s article
Is there any plan to add vectorisation intrinsics to DMD?
I know that DMD generates vectorised instructions for array operations,
but last time I checked, these were far from optimal
On Sun, Feb 6, 2011 at 9:48 AM, David Nadlinger s...@klickverbot.at wrote:
I have always been pleased to see improvements in compile time code
execution possibilities, but today I hit what must be the weirdest DMD error
message I've ever seen:
/usr/local/bin/../include/d2/std/format.d(434):
Peter Alexander wrote:
Is there any plan to add vectorisation intrinsics to DMD?
I know that DMD generates vectorised instructions for array operations,
but last time I checked, these were far from optimal for aligned
float[4] objects. In fact, it appears to generate a function call for
all
Andrei Alexandrescu napisał:
Also: could a (truely) circular buffer help solve the above copy
problem, concretely?
Not if you want infinite lookahead, which I think is what any modern
buffering system should offer.
Truely circular, probably not, but a wrap-around slice (circular view
Jacob Carlborg wrote:
On 2011-02-04 08:34, Jonathan M Davis wrote:
Slices: just one more reason why D's arrays kick the pants of other
languages'
arrays...
- Jonathan M Davis
Ruby has array slices as well. A slice of an array refers to the
original data just like in D. But on the other
On 2/6/11 8:13 PM, Andrew Wiley wrote:
On 64 bit linux (Arch, running dmd on a multilib installation), I get
/usr/include/d/std/format.d(428): Error: can only * a pointer, not a 'int'
It almost seems like something is expanding the * syntax in your shell?
This seems way more likely than
Jacob Carlborg wrote:
On 2011-02-04 20:33, Walter Bright wrote:
so wrote:
It doesn't matter what signature you use for the function, compiler is
aware and will output an error when you do the opposite of the
signature. If this is the case, why do we need that signature?
Examine the API of a
Jeff Nowakowski wrote:
On 02/06/2011 05:43 AM, Jacob Carlborg wrote:
On 2011-02-04 21:44, Jeff Nowakowski wrote:
Java's substring() does not copy the text, at least in the official JDK
implementation. Unfortunately, it doesn't specify this behavior as part
of the String API.
But, I assume,
Walter:
Can you use an array slice in ruby as an argument to any function that takes
a
string?
The NumPy library for Python uses light slices, that are seen as normal NumPy
arrays, like in D. NumPy arrays may contain numbers, chars, records, etc.
Bye,
bearophile
This may just have not been released yet, but the documentation at
http://www.d-programming-language.org/phobos/std_file.html says that isdir
is being deprecated and lists isDir as its replacement, but as of 2.51,
isDir doesn't exist. Is this coming in 2.52, or is something strange going
on?
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message
news:iimnm6$1m4a$2...@digitalmars.com...
On 2/6/11 12:42 PM, spir wrote:
Also: could a (truely) circular buffer help solve the above copy
problem, concretely?
Not if you want infinite lookahead, which I think is what any
On 2011-02-06 20:51, Walter Bright wrote:
Jacob Carlborg wrote:
On 2011-02-04 08:34, Jonathan M Davis wrote:
Slices: just one more reason why D's arrays kick the pants of other
languages'
arrays...
- Jonathan M Davis
Ruby has array slices as well. A slice of an array refers to the
original
On 2011-02-06 20:59, Walter Bright wrote:
Jacob Carlborg wrote:
On 2011-02-04 20:33, Walter Bright wrote:
so wrote:
It doesn't matter what signature you use for the function, compiler is
aware and will output an error when you do the opposite of the
signature. If this is the case, why do we
On 02/06/2011 08:49 PM, Tomek Sowiński wrote:
Andrei Alexandrescu napisał:
Also: could a (truely) circular buffer help solve the above copy
problem, concretely?
Not if you want infinite lookahead, which I think is what any modern
buffering system should offer.
Truely circular, probably
Tomek Sowiński wrote:
auto xml = xmlWriter(outputRange);
xml.comment(books.length, favorite books of mine.);
foreach (book; books) {
xml.book(year, book.year, {
foreach (author; book.authors) {
xml.tight.authorName({
xml.first(author.first);
Jonathan M Davis wrote:
Okay, the latest code and documentation is here: http://is.gd/HZQwNz
I've also made the changes in my github fork of Phobos here:
https://github.com/jmdavis/phobos . So, if this passes the vote, it's just a
pull request away from being in Phobos.
assertPred,
Just another thought:
dmd uses ld on linux, couldn't it use MinGW's ld on Windows?
On 2/6/2011 11:48 AM, Walter Bright wrote:
Peter Alexander wrote:
Is there any plan to add vectorisation intrinsics to DMD?
I know that DMD generates vectorised instructions for array operations, but
last time I checked, these were far from
optimal for aligned float[4] objects. In fact, it
On Sunday 06 February 2011 12:47:50 Andrew Wiley wrote:
This may just have not been released yet, but the documentation at
http://www.d-programming-language.org/phobos/std_file.html says that isdir
is being deprecated and lists isDir as its replacement, but as of 2.51,
isDir doesn't exist. Is
Brad Roberts:
Also hinted at in the above list.. I'd really like to explore how to get some
of the runtime library functions to be
inlineable. There's a lot of small functions that ought to be eligible, if
exposed to the compiler as a candidate.
Like the two (or more than two) needed to
On Sunday 06 February 2011 13:59:19 Rainer Schuetze wrote:
Tomek Sowiński wrote:
auto xml = xmlWriter(outputRange);
xml.comment(books.length, favorite books of mine.);
foreach (book; books) {
xml.book(year, book.year, {
foreach (author; book.authors) {
On 02/06/2011 10:28 PM, Jacob Carlborg wrote:
On 2011-02-06 20:51, Walter Bright wrote:
Jacob Carlborg wrote:
On 2011-02-04 08:34, Jonathan M Davis wrote:
Slices: just one more reason why D's arrays kick the pants of other
languages'
arrays...
- Jonathan M Davis
Ruby has array slices as
On 02/06/2011 10:59 PM, Rainer Schuetze wrote:
This looks nice and compact Using opDispatch to specify the tag (I guess that
is what you are using to create a tag book by calling xml.book()) feels like
misusing opDispatch, though. Does it add readability in contrast to passing the
tag as a
On Mon, Feb 07, 2011 at 12:23:45AM +0100, spir wrote:
How do you write a tag named tight? Or a tag calculated at runtime?
Call opDispatch directly ;-)
You can't call opDispatch with a runtime string; it needs to be a template
parameter.
The way I do it is:
string createNode(string name) {
On 02/06/2011 03:43 PM, Tomek Sowiński wrote:
While I'm circling the problem of parsing, I took a quick look at writing not
to get stuck in analysis-paralysis. Writing XML is pretty independent from
parsing and an order of magnitude easier to solve. It was perfect to get myself
coding.
These
On 2/6/11 2:48 PM, Walter Bright wrote:
Peter Alexander wrote:
Is there any plan to add vectorisation intrinsics to DMD?
I know that DMD generates vectorised instructions for array
operations, but last time I checked, these were far from optimal for
aligned float[4] objects. In fact, it
Andrei Alexandrescu wrote:
Are those swizzling ops part of the topic?
I'm keeping an open mind on that the moment!
An open mind is an empty mind -- Mark Stroberg
On 2/6/11 4:13 PM, Nick Sabalausky wrote:
Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message
news:iimnm6$1m4a$2...@digitalmars.com...
On 2/6/11 12:42 PM, spir wrote:
Also: could a (truely) circular buffer help solve the above copy
problem, concretely?
Not if you want
On 2/6/11 4:51 PM, spir wrote:
On 02/06/2011 08:49 PM, Tomek Sowiński wrote:
Andrei Alexandrescu napisał:
Also: could a (truely) circular buffer help solve the above copy
problem, concretely?
Not if you want infinite lookahead, which I think is what any modern
buffering system should offer.
Rainer Schuetze napisał:
This looks nice and compact Using opDispatch to specify the tag (I guess
that is what you are using to create a tag book by calling xml.book())
feels like misusing opDispatch, though. Does it add readability in
contrast to passing the tag as a string to some
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 6:01 EST, Tomek Sowiński wrote:
Nick Sabalausky napisał:
discard and fetch?
I like that.
What's missing is the part that they refer to front. Maybe
discardFromFront() and
On Sunday 06 February 2011 12:47:50 Andrew Wiley wrote:
This may just have not been released yet, but the documentation at
http://www.d-programming-language.org/phobos/std_file.html says that isdir
is being deprecated and lists isDir as its replacement, but as of 2.51,
isDir doesn't exist. Is
2011/2/7 Robert Jacques sandf...@jhu.edu:
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 6:01 EST, Tomek Sowiński wrote:
Nick Sabalausky napisał:
discard and fetch?
I like that.
What's missing is the part that they refer to front.
On 2/6/11 8:57 PM, Robert Jacques wrote:
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 6:01 EST, Tomek Sowiński wrote:
Nick Sabalausky napisał:
discard and fetch?
I like that.
What's missing is the part that they refer to front.
2011/2/7 Andrei Alexandrescu seewebsiteforem...@erdani.org:
On 2/6/11 9:47 PM, Torarin wrote:
2011/2/7 Robert Jacquessandf...@jhu.edu:
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 6:01 EST, Tomek Sowiński wrote:
Nick Sabalausky
On Sun, 06 Feb 2011 21:53:01 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 8:57 PM, Robert Jacques wrote:
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 6:01 EST, Tomek Sowiński wrote:
Nick Sabalausky
On 2/6/11 10:37 PM, Robert Jacques wrote:
On Sun, 06 Feb 2011 21:53:01 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 8:57 PM, Robert Jacques wrote:
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 6:01 EST,
On Sun, 06 Feb 2011 21:47:48 -0500, Torarin torar...@gmail.com wrote:
2011/2/7 Robert Jacques sandf...@jhu.edu:
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 6:01 EST, Tomek Sowiński wrote:
Nick Sabalausky napisał:
discard and
On 2/6/11 10:59 PM, Robert Jacques wrote:
On Sun, 06 Feb 2011 21:47:48 -0500, Torarin torar...@gmail.com wrote:
2011/2/7 Robert Jacques sandf...@jhu.edu:
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 6:01 EST, Tomek Sowiński wrote:
2011/2/7 Robert Jacques sandf...@jhu.edu:
On Sun, 06 Feb 2011 21:47:48 -0500, Torarin torar...@gmail.com wrote:
2011/2/7 Robert Jacques sandf...@jhu.edu:
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 6:01 EST, Tomek Sowiński wrote:
On Sun, 06 Feb 2011 23:01:12 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/6/11 10:59 PM, Robert Jacques wrote:
On Sun, 06 Feb 2011 21:47:48 -0500, Torarin torar...@gmail.com wrote:
2011/2/7 Robert Jacques sandf...@jhu.edu:
On Sun, 06 Feb 2011 10:43:47 -0500, Andrei
I'm on 64 bit linux (though with a self-built 32 bit DMD), and this testcase
is failing for me:
import std.stdio;
import core.sys.posix.sys.select;
int main(string[] args) {
fd_set fdset;
FD_SET(3, fdset);
assert(FD_ISSET(3, fdset));
return 0;
}
The same program works perfectly with
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message
news:mailman.1339.1297029778.4748.digitalmar...@puremagic.com...
Dunno, but it's not in 2.51.
I find using uniform function call syntax can be confusing to read in
the documentation. Or we all supposed to get used to it? :)
But why
On Sunday 06 February 2011 14:02:48 Andrej Mitrovic wrote:
Dunno, but it's not in 2.51.
I find using uniform function call syntax can be confusing to read in
the documentation. Or we all supposed to get used to it? :)
It's only in the documentation if it's a string, since we don't really
On 2/6/2011 9:30 PM, Andrew Wiley wrote:
I'm on 64 bit linux (though with a self-built 32 bit DMD), and this testcase
is failing for me:
import std.stdio;
import core.sys.posix.sys.select;
int main(string[] args) {
fd_set fdset;
FD_SET(3, fdset);
assert(FD_ISSET(3, fdset));
Hello D-istos,
I am currenty implementing a kind of lexing toolkit. First time I do that.
Below are design questions on the topic. Also, I would like to know whether you
think such a module would be useful for th community od D programmers. And for
which advantages, knowing that D directly
Hello,
Here are three little issues I faced while implemented a lexing toolkit (see
other post).
1. Regex match
Let us say there are three natures or modes of lexeme:
* SKIP: not even kept, just matched and dropped (eg optional spacing)
* MARK: kept, but slice is irrelevant data (eg all
Greetings
Is there a limit on the maximum number of threads that can be
spawned? Or does it just depend on the value in
/proc/sys/kernel/threads-max on a linux system?
Regards
- Cherry
spir:
2. reference escape
3. implicite deref
The situation is easy to understand once you know how generally what a stack
frame is and how C functions are called:
http://en.wikipedia.org/wiki/Stack_frame
The D call stack is a contiguous-allocated backwards-single-linked list of
scottrick Wrote:
T[] rawRead(T)(T[] buffer);
I understand that T is generic type, but I am not sure of the
meaning of the (T) after the method name.
That T is defining the symbol to represent the generic type. It can have more
than one and D provides other things like aliases... Another
On 02/06/2011 02:13 PM, bearophile wrote:
Before a D function starts, a stack frame is created. It will contain your
stack-allocated struct instance. When the function ends its stack frame is
destroyed virtually by moving a stack pointer, so the struct may be overwritten
by other things, like
spir:
But this does not explain why the compiler refuses:
// 1
auto s = S(data);
return s;
and accepts:
// 2
return (S(data));
or does it?
Accepting the second is a bug in the escape analysis done by the front-end, I
think.
But see also what Walter has
Are debug symbols compiled with -gc stored in a separate file? Visual Studio
refuses to debug my things, and windbg seems to be remarkably unhelpful.
Thanks, your post was very helpful. Two more questions (probably
related):
Where is the function 'format' defined? Also, what is that 'unittest'
block? It compiles fine as is, but if I refer to format outside of
unittest, it will not compile. Also, if I compile and run your
example, it
scottrick:
Where is the function 'format' defined?
You need to add at the top of the module:
import std.conv: format;
Or:
import std.conv;
Also, what is that 'unittest' block? It compiles fine as is, but if I refer
to format outside of
unittest, it will not compile. Also, if I compile
... doesn't work.
class C {}
thisTid.send(new immutable(C)());
receive((immutable C) { writeln(got it!); });
This throws:
core.exception.AssertError@/usr/include/d/dmd/phobos/std/variant.d(285):
immutable(C)
And when I go for Rebindable, I get Aliases to mutable thread-local data not
Are debug symbols compiled with -gc stored in a separate file? Visual
Studio refuses to debug my things
Nope.
Plus you need to use cv2pdb to debug with Visual
Am 06.02.2011 19:38, schrieb Jesse Phillips:
scottrick Wrote:
T[] rawRead(T)(T[] buffer);
I understand that T is generic type, but I am not sure of the
meaning of the (T) after the method name.
That T is defining the symbol to represent the generic type. It can have more
than one and D
On 06/02/11 20:29, Sean Eskapp wrote:
Are debug symbols compiled with -gc stored in a separate file? Visual Studio
refuses to debug my things, and windbg seems to be remarkably unhelpful.
I suggest you take a look at VisualD if you're using visual studio, it
will handle converting debug info
== Quote from Robert Clipsham (rob...@octarineparrot.com)'s article
On 06/02/11 20:29, Sean Eskapp wrote:
Are debug symbols compiled with -gc stored in a separate file? Visual Studio
refuses to debug my things, and windbg seems to be remarkably unhelpful.
I suggest you take a look at VisualD
On Sunday 06 February 2011 05:05:24 d coder wrote:
Greetings
Is there a limit on the maximum number of threads that can be
spawned? Or does it just depend on the value in
/proc/sys/kernel/threads-max on a linux system?
Barring any bugs which manage to keep threads alive too long, it's
On Sunday 06 February 2011 13:55:36 Tomek Sowiński wrote:
... doesn't work.
class C {}
thisTid.send(new immutable(C)());
receive((immutable C) { writeln(got it!); });
This throws:
core.exception.AssertError@/usr/include/d/dmd/phobos/std/variant.d(285):
immutable(C)
And when I go for
Hi there,
i'm all new to D but not new to programming in general.
I'd like to try D but i didn't find a nice tutorial yet.
I don't want to read a whole book, I just want to get the basics so I can start.
Can you help me find something like that?
Best regards, Julius
On Sun, Feb 6, 2011 at 5:35 PM, Julius n0r3...@web.de wrote:
Hi there,
i'm all new to D but not new to programming in general.
I'd like to try D but i didn't find a nice tutorial yet.
I don't want to read a whole book, I just want to get the basics so I can
start.
Can you help me find
On 2011-02-06 16:55:36 -0500, Tomek Sowiński j...@ask.me said:
... doesn't work.
class C {}
thisTid.send(new immutable(C)());
receive((immutable C) { writeln(got it!); });
This throws:
core.exception.AssertError@/usr/include/d/dmd/phobos/std/variant.d(285):
immutable(C)
And when I go for
On 2011-02-06 20:09:56 -0500, Michel Fortin michel.for...@michelf.com said:
I just made this pull request today:
https://github.com/D-Programming-Language/dmd/pull/
That should have been:
https://github.com/D-Programming-Language/dmd/pull/3
--
Michel Fortin
michel.for...@michelf.com
Hi,
I was wondering, why are we allowed to omit parentheses when calling functions
with no arguments, when they are not @properties? Is there a good reason for
relaxing the language rules like this?
Thanks!
On Sunday 06 February 2011 20:38:29 %u wrote:
Hi,
I was wondering, why are we allowed to omit parentheses when calling
functions with no arguments, when they are not @properties? Is there a
good reason for relaxing the language rules like this?
Because the compiler is not in line with TDPL
%u wfunct...@hotmail.com wrote:
Hi,
I was wondering, why are we allowed to omit parentheses when calling
functions
with no arguments, when they are not @properties? Is there a good reason
for
relaxing the language rules like this?
This behavior is deprecated, but other features have had
1 - 100 of 162 matches
Mail list logo