On Sun, 23 Feb 2014 22:10:50 -0600, Walter Bright newshou...@digitalmars.com
wrote:
On 2/23/2014 7:15 PM, Mike wrote:
The How-tos-Tech Tips on dlang.org link to
http://digitalmars.com/techtips/index.html. I would like to move these to the
wiki in an effort to elicit more community
On Fri, 10 May 2013 05:08:09 -0700, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Enjoy!
https://www.youtube.com/watch?v=mPr2UspS0fE
Andrei
Thanks. I noticed a subtle error in the response to the question on
logical const (at 32:11). Specifically, overloading the function on
On Tue, 29 Jan 2013 09:38:57 -0600, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 1/29/13 6:33 AM, eles wrote:
On Tuesday, 29 January 2013 at 11:13:19 UTC, jerro wrote:
need to adopt the inferior C# approach.
And there is another problem with the superior D approach: a typing
On Thu, 24 Jan 2013 02:34:42 -0600, Walter Bright
newshou...@digitalmars.com wrote:
This has turned into a monster. We've taken 2 or 3 wrong turns somewhere.
Perhaps we should revert to a simple set of rules.
1. Empty parens are optional. If there is an ambiguity with the return
value
On Wed, 19 Dec 2012 09:35:39 -0600, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 12/19/12 2:30 AM, Walter Bright wrote:
https://github.com/D-Programming-Language/phobos/pull/1018/files
Shouldn't it be part of std.numeric?
Related, we should have a decision point this must
On Wed, 19 Dec 2012 13:48:29 -0600, Walter Bright
newshou...@digitalmars.com wrote:
On 12/19/2012 2:22 AM, ponce wrote:
On Wednesday, 19 December 2012 at 07:30:54 UTC, Walter Bright
wrote:
https://github.com/D-Programming-Language/phobos/pull/1018/files
If that ever helps, I implemented
On Wed, 19 Dec 2012 05:47:38 -0600, Iain Buclaw ibuc...@ubuntu.com wrote:
On 19 December 2012 11:30, tn n...@email.com wrote:
On Wednesday, 19 December 2012 at 10:13:56 UTC, Iain Buclaw wrote:
On 19 December 2012 08:55, Walter Bright newshou...@digitalmars.com
wrote:
On 12/19/2012 12:47 AM,
On Wed, 19 Dec 2012 04:49:59 -0600, d coder dlang.co...@gmail.com wrote:
On Wed, Dec 19, 2012 at 3:43 PM, Iain Buclaw ibuc...@ubuntu.com wrote:
How difficult would you think it would be to scale down (or up) this
library type so it can be an emulated IEEE type of any size? (The whole
shebang
On Wed, 19 Dec 2012 16:58:59 -0600, bearophile bearophileh...@lycos.com
wrote:
Benjamin Thaut:
http://sebastiansylvan.wordpress.com/2012/12/01/garbage-collection-thoughts/
It seems a nice blog post. I don't remember what D does regarding
per-thread heaps.
It's been proposed and
On Thu, 20 Dec 2012 00:06:04 -0600, Rob T r...@ucora.com wrote:
On Wednesday, 19 December 2012 at 20:44:19 UTC, Robert Jacques wrote:
See std.numeric.CustomFloat. It supports quarter, half, single, double
and 80-bit. The wikipedia article on the floating point (IEEE 754)
includes a Quad
On Tue, 11 Dec 2012 11:25:44 -0600, Alex Rønne Petersen a...@lycus.org
wrote:
On 11-12-2012 08:29, Rainer Schuetze wrote:
On 11.12.2012 01:04, Alex Rønne Petersen wrote:
http://xtzgzorex.wordpress.com/2012/12/11/array-slices-and-interior-pointers/
Destroy.
Done.
[snip]
From what I could
On Thu, 22 Nov 2012 06:10:04 -0600, John Colvin
john.loughran.col...@gmail.com wrote:
On Wednesday, 21 November 2012 at 19:40:25 UTC, Mike Wey wrote:
If you want to use this syntax with images, DMagick's ImageView might
be interesting:
http://dmagick.mikewey.eu/docs/ImageView.html
I like
On Thu, 22 Nov 2012 20:06:44 -0600, John Colvin
john.loughran.col...@gmail.com wrote:
On Thursday, 22 November 2012 at 21:37:19 UTC, Dmitry Olshansky wrote:
Array ops supposed to be overhead-free loops transparently leveraging
SIMD parallelism of modern CPUs. No more and no less. It's like
On Sun, 18 Nov 2012 05:21:27 -0600, Manu turkey...@gmail.com wrote:
I've often wondered about having an official 'half' type.
It's very common in rendering/image processing, supported by most video
cards (so compression routines interacting with this type are common), and
it's also supported in
On Sun, 18 Nov 2012 05:21:27 -0600, Manu turkey...@gmail.com wrote:
I've often wondered about having an official 'half' type.
It's very common in rendering/image processing, supported by most video
cards (so compression routines interacting with this type are common), and
it's also supported in
On Fri, 09 Nov 2012 07:53:27 -0600, Sönke Ludwig slud...@outerproduct.org
wrote:
Just stumbled over this, which is describing a type system extension for
C# for race-free parallelism:
http://research.microsoft.com/pubs/170528/msr-tr-2012-79.pdf
Independent of this article I think D is
On Monday, 5 November 2012 at 14:13:41 UTC, evansl wrote:
On 11/05/12 00:33, Robert Jacques wrote:
On Sunday, 4 November 2012 at 22:33:46 UTC, Alex Rønne
Petersen
wrote:
On 05-11-2012 00:31, evansl wrote:
[snip]
If std.Algebraic is like Boost.Variant, then duplicate
bounded types
On Sunday, 4 November 2012 at 22:33:46 UTC, Alex Rønne Petersen
wrote:
On 05-11-2012 00:31, evansl wrote:
http://dlang.org/phobos/std_variant.html
says:
This module implements a discriminated union type (a.k.a.
tagged union,
algebraic type).
Yet, the wiki page:
On Mon, 14 May 2012 15:45:54 -0500, Gor Gyolchanyan
gor.f.gyolchan...@gmail.com wrote:
That's why CUDA is completely pointless: you're gonna wrap it anyway.
Instead of wrapping a past-age vendor-locked pre-OpenCL technology, you
could wrap modern portable technology.
The richness of the
On Thu, 19 Apr 2012 13:43:44 -0500, Jacob Carlborg d...@me.com wrote:
On 2012-04-19 15:06, Robert Jacques wrote:
O(N^2) vs O(N logN) is a performance issue :)
I don't have any memory of you mentioning that back then :)
:) I probably didn't. Its one of those things that I consider fairly
On Wed, 18 Apr 2012 23:49:23 -0500, Masahiro Nakagawa repeate...@gmail.com
wrote:
On Thursday, 19 April 2012 at 00:00:32 UTC, Robert Jacques wrote:
On Wed, 18 Apr 2012 10:05:57 -0500, Andrej Mitrovic
andrej.mitrov...@gmail.com wrote:
On 4/18/12, Robert Jacques sandf...@jhu.edu wrote:
here
On Thu, 19 Apr 2012 02:25:54 -0500, Jacob Carlborg d...@me.com wrote:
On 2012-04-19 01:53, Robert Jacques wrote:
On Wed, 18 Apr 2012 11:36:11 -0500, Jacob Carlborg d...@me.com wrote:
On 2012-04-18 14:49, Robert Jacques wrote:
Just to clarify, is
When orange was first posted, I noticed
On Tue, 17 Apr 2012 22:32:33 -0500, Andrej Mitrovic
andrej.mitrov...@gmail.com wrote:
On 4/18/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
On 4/17/12, Jacob Carlborg d...@me.com wrote:
Feel free to use my serialization library and see what it can handle:
On Tue, 17 Apr 2012 22:32:33 -0500, Andrej Mitrovic
andrej.mitrov...@gmail.com wrote:
On 4/18/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
On 4/17/12, Jacob Carlborg d...@me.com wrote:
Feel free to use my serialization library and see what it can handle:
On Wed, 18 Apr 2012 11:36:11 -0500, Jacob Carlborg d...@me.com wrote:
On 2012-04-18 14:49, Robert Jacques wrote:
Just to clarify, is
When orange was first posted, I noticed and reported some performance
issues. I don't know if they've been fixed.
I can't see any issue reported about
On Wed, 18 Apr 2012 10:05:57 -0500, Andrej Mitrovic
andrej.mitrov...@gmail.com wrote:
On 4/18/12, Robert Jacques sandf...@jhu.edu wrote:
here are some results for your benchmark on
my own serializers:
JSON serialize: 0.331831 s
JSON deserialize: 0.243893 s
Hey Robert, I was trying out your
On Sat, 14 Apr 2012 05:21:08 -0500, Manu turkey...@gmail.com wrote:
On 13 April 2012 17:25, Kagamin s...@here.lot wrote:
once you prefetched the function, it will remain in the icache and be
reused from there the next time.
All depends how much you love object orientation. If you follow
On Sun, 08 Apr 2012 21:49:48 -0500, Josh Klontz josh.klo...@gmail.com wrote:
On Saturday, 7 April 2012 at 18:47:21 UTC, Robert Jacques wrote:
On Sat, 07 Apr 2012 11:38:15 -0500, Josh Klontz
josh.klo...@gmail.com wrote:
Greetings! As someone with a research interest in software
abstractions
On Sat, 07 Apr 2012 11:38:15 -0500, Josh Klontz josh.klo...@gmail.com wrote:
Greetings! As someone with a research interest in software
abstractions for image processing, the D programming language
appears to offer unsurpassed language features for constructing
beautiful and efficient programs.
On Mon, 02 Apr 2012 08:05:09 -0500, Dmitry Olshansky dmitry.o...@gmail.com
wrote:
On 02.04.2012 16:04, Adam D. Ruppe wrote:
On Monday, 2 April 2012 at 09:26:07 UTC, Dmitry Olshansky wrote:
It's all nice and well, but I believe part of the reason of say
private protection is that user is
On Tue, 03 Apr 2012 08:30:25 -0500, Adam D. Ruppe destructiona...@gmail.com
wrote:
On Tuesday, 3 April 2012 at 13:14:00 UTC, Robert Jacques wrote:
As someone who has implemented a runtime reflection library in
D, it is entirely possible to detect whether a function is
marked private/protected
On Fri, 16 Mar 2012 16:45:05 -0500, Manu turkey...@gmail.com wrote:
On 16 March 2012 22:39, Robert Jacques sandf...@jhu.edu wrote:
On Fri, 16 Mar 2012 08:24:58 -0500, David Nadlinger s...@klickverbot.at
wrote:
On Thursday, 15 March 2012 at 23:32:29 UTC, Robert Jacques wrote:
[snip
On Fri, 16 Mar 2012 08:24:58 -0500, David Nadlinger s...@klickverbot.at
wrote:
On Thursday, 15 March 2012 at 23:32:29 UTC, Robert Jacques wrote:
Then you should to leave namespace room for that higher level library.
What makes you thing that there would be only one such high-level
On Thu, 15 Mar 2012 12:09:58 -0500, Manu turkey...@gmail.com wrote:
Hey chaps (and possibly lasses?)
I've been slowly working a std.simd library, the aim of which is to
provide
a lowest-level hardware-independent SIMD interface. core.simd implements
SSE currently for x86, other architectures
On Thu, 15 Mar 2012 14:02:15 -0500, Manu turkey...@gmail.com wrote:
On 15 March 2012 20:35, Robert Jacques sandf...@jhu.edu wrote:
On Thu, 15 Mar 2012 12:09:58 -0500, Manu turkey...@gmail.com wrote:
[snip]
This sounds reasonable. However, please realize that if you wish to use
the short
On Wed, 14 Mar 2012 03:52:55 -0500, Manu turkey...@gmail.com wrote:
I'm encouraged to see that every person in this thread so far seems to feel
the same way as me regarding the syntax.
On 14 March 2012 05:25, Derek Parnell ddparn...@bigpond.com wrote:
On Wed, 14 Mar 2012 13:33:18 +1100,
On Mon, 12 Mar 2012 02:15:55 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 03/12/2012 05:01 AM, Robert Jacques wrote:
On Sun, 11 Mar 2012 21:49:52 -0500, Mantis mail.mantis...@gmail.com
wrote:
12.03.2012 4:00, Robert Jacques пишет:
On Sun, 11 Mar 2012 18:15:31 -0500, Timon Gehr timon.g
On Mon, 12 Mar 2012 04:46:45 -0500, Mantis mail.mantis...@gmail.com wrote:
12.03.2012 6:01, Robert Jacques пишет:
On Sun, 11 Mar 2012 21:49:52 -0500, Mantis mail.mantis...@gmail.com
wrote:
[...]
That's the point of discussion. Fields of structure may not be optimized
away, because
On Mon, 12 Mar 2012 04:25:54 -0500, Manu turkey...@gmail.com wrote:
On 12 March 2012 04:00, Robert Jacques sandf...@jhu.edu wrote:
On Sun, 11 Mar 2012 18:15:31 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 03/11/2012 11:58 PM, Robert Jacques wrote:
Manu was arguing that MRV were somehow
On Sun, 11 Mar 2012 05:57:05 -0500, Manu turkey...@gmail.com wrote:
On 11 March 2012 04:35, Sean Cavanaugh worksonmymach...@gmail.com wrote:
On 3/10/2012 8:08 PM, Mantis wrote:
Tuple!(float, float) callee() {
do something to achieve result in st0,st1
fst st0, st1 into stack
load stack
On Sun, 11 Mar 2012 12:39:56 -0500, Manu turkey...@gmail.com wrote:
On 11 March 2012 18:50, Robert Jacques sandf...@jhu.edu wrote:
On Sun, 11 Mar 2012 05:57:05 -0500, Manu turkey...@gmail.com wrote:
On 11 March 2012 04:35, Sean Cavanaugh worksonmymach...@gmail.com
wrote:
On 3/10/2012 8:08 PM
On Sun, 11 Mar 2012 17:48:53 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 03/11/2012 10:57 PM, Robert Jacques wrote:
On Sun, 11 Mar 2012 15:38:21 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 03/11/2012 09:30 PM, Robert Jacques wrote:
Manu, why are you assuming that the struct is returned
On Sun, 11 Mar 2012 18:15:31 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 03/11/2012 11:58 PM, Robert Jacques wrote:
Manu was arguing that MRV were somehow special and had mystical
optimization potential. That's simply not true.
Not exactly mystical, but it is certainly there.
void main
On Sun, 11 Mar 2012 19:44:32 -0500, Manu turkey...@gmail.com wrote:
On 12 March 2012 00:58, Robert Jacques sandf...@jhu.edu wrote:
That's an argument for using the right register for the job. And we can /
will be doing this on x86-64, as other compilers have already done. Manu
was arguing
On Sun, 11 Mar 2012 18:30:33 -0500, Manu turkey...@gmail.com wrote:
On 12 March 2012 00:50, Robert Jacques sandf...@jhu.edu wrote:
On Sun, 11 Mar 2012 05:56:03 -0500, Manu turkey...@gmail.com wrote:
On 11 March 2012 03:45, Robert Jacques sandf...@jhu.edu wrote:
On Sat, 10 Mar 2012 19:27:05
On Sun, 11 Mar 2012 21:49:52 -0500, Mantis mail.mantis...@gmail.com wrote:
12.03.2012 4:00, Robert Jacques пишет:
On Sun, 11 Mar 2012 18:15:31 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 03/11/2012 11:58 PM, Robert Jacques wrote:
Manu was arguing that MRV were somehow special and had
On Sun, 11 Mar 2012 17:14:37 -0500, David Nadlinger s...@klickverbot.at wrote:
On Sunday, 11 March 2012 at 22:09:54 UTC, Robert Jacques wrote:
Has Jose updated anything?
Not sure what you mean – the latest state of the code is at
https://github.com/D-Programming-Language/phobos/pull/432. I
On Sat, 10 Mar 2012 00:30:05 -0600, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 3/9/12 9:35 PM, Robert Jacques wrote:
On Fri, 09 Mar 2012 22:16:44 -0600, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 3/9/12 3:59 PM, Timon Gehr wrote:
Notably
On Sat, 10 Mar 2012 09:58:30 -0600, bearophile bearophileh...@lycos.com wrote:
Robert Jacques:
The proposed unpacking syntax, IIRC, was:
(double a, int b) = fun();
which lowered to:
auto __tup = fun();
double x = __tup[0]; // __tup[0] has a type that is implicitly convertible to
double
On Sat, 10 Mar 2012 19:27:05 -0600, Manu turkey...@gmail.com wrote:
On 11 March 2012 00:25, Sean Cavanaugh worksonmymach...@gmail.com wrote:
On 3/10/2012 4:37 AM, Manu wrote:
If I pass a structure TO a function by value, I know what happens, a
copy is written to the stack which the function
On Sat, 10 Mar 2012 20:35:02 -0600, Sean Cavanaugh worksonmymach...@gmail.com
wrote:
On 3/10/2012 8:08 PM, Mantis wrote:
Tuple!(float, float) callee() {
do something to achieve result in st0,st1
fst st0, st1 into stack
load stack values into EAX, EDX
ret
}
void caller() {
call callee()
push
On Fri, 09 Mar 2012 22:16:44 -0600, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 3/9/12 3:59 PM, Timon Gehr wrote:
Notably, there is no convenient unpacking syntax. Walter does not merge
the patches of Kenji Hara that would fix this because presumably he
fears it could get in
On Tue, 06 Mar 2012 21:22:21 -0600, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 3/6/12 6:05 PM, Geoffrey Biggs wrote:
That approach means that if I actually do have a fatal error, I can't
mark it as such.
Use log.fatal for those.
Andrei
But fatal Logs a fatal severity
On Tue, 06 Mar 2012 11:01:19 -0600, Jose Armando Garcia
jsan...@gmail.com wrote:
On Wed, Feb 29, 2012 at 4:13 PM, Richard van Scheijen dl...@mesadu.net
wrote:
When logging the severity level should convey a certain insight that the
developer has about the code. This can be done with a 3 bit
On Tue, 06 Mar 2012 11:44:13 -0600, Jose Armando Garcia
jsan...@gmail.com wrote:
On Tue, Mar 6, 2012 at 9:32 AM, Robert Jacques sandf...@jhu.edu wrote:
On Tue, 06 Mar 2012 11:01:19 -0600, Jose Armando Garcia
jsan...@gmail.com
wrote:
On Wed, Feb 29, 2012 at 4:13 PM, Richard van Scheijen
dl
On Tue, 06 Mar 2012 11:34:21 -0600, Jose Armando Garcia
jsan...@gmail.com wrote:
On Thu, Mar 1, 2012 at 6:24 PM, Robert Jacques sandf...@jhu.edu wrote:
On Wed, 29 Feb 2012 18:13:30 -0600, Richard van Scheijen
dl...@mesadu.net
wrote:
When logging the severity level should convey a certain
On Tue, 06 Mar 2012 13:41:32 -0600, Jose Armando Garcia
jsan...@gmail.com wrote:
On Tue, Mar 6, 2012 at 10:11 AM, Robert Jacques sandf...@jhu.edu wrote:
On Tue, 06 Mar 2012 11:44:13 -0600, Jose Armando Garcia
jsan...@gmail.com
wrote:
On Tue, Mar 6, 2012 at 9:32 AM, Robert Jacques sandf
On Tue, 06 Mar 2012 13:32:37 -0600, Jose Armando Garcia
jsan...@gmail.com wrote:
On Mon, Mar 5, 2012 at 5:30 PM, Steven Schveighoffer
schvei...@yahoo.com wrote:
On Mon, 05 Mar 2012 20:22:05 -0500, so s...@so.so wrote:
On Monday, 5 March 2012 at 23:51:29 UTC, Steven Schveighoffer wrote:
On Tue, 06 Mar 2012 17:20:29 -0600, Jose Armando Garcia jsan...@gmail.com
wrote:
On Tue, Mar 6, 2012 at 2:03 PM, Robert Jacques sandf...@jhu.edu wrote:
On Tue, 06 Mar 2012 13:41:32 -0600, Jose Armando Garcia jsan...@gmail.com
wrote:
On Tue, Mar 6, 2012 at 10:11 AM, Robert Jacques sandf
On Mon, 05 Mar 2012 19:22:05 -0600, so s...@so.so wrote:
On Monday, 5 March 2012 at 23:51:29 UTC, Steven Schveighoffer
wrote:
On Mon, 05 Mar 2012 18:30:03 -0500, David Nadlinger
s...@klickverbot.at wrote:
On Monday, 5 March 2012 at 21:55:08 UTC, Steven Schveighoffer
wrote:
The log aliases
On Sun, 04 Mar 2012 04:27:25 -0600, Mehrdad wfunct...@hotmail.com wrote:
Are there any plans to fix the GC so that it actually _works_ (with
nontrivial buffer sizes)?
http://d.puremagic.com/issues/show_bug.cgi?id=7251
The GC actually works fairly well with normal buffer sizes for your
On Fri, 02 Mar 2012 08:13:00 -0600, Denis Shelomovskij
verylonglogin@gmail.com wrote:
Even `memcpy` is claimed dangerous at http://dlang.org/garbage.html
(because of possibility of moving GC, I suppose) but it just creates
false positives for GC. `memmove` can even temporary destroy
On Wed, 29 Feb 2012 18:13:30 -0600, Richard van Scheijen dl...@mesadu.net
wrote:
When logging the severity level should convey a certain insight
that the developer has about the code. This can be done with a 3
bit field. These are: known-cause, known-effect and breaks-flow.
This creates the
On Mon, 27 Feb 2012 12:21:21 -0600, tjb broug...@gmail.com wrote:
All,
I am just starting to learn D. I am an economist - not a programmer, so
I appreciate your patience with lack of knowledge.
I have some financial data in a binary file that I would like to
process. In C++ I have the
On Wed, 22 Feb 2012 15:32:37 -0600, H. S. Teoh hst...@quickfur.ath.cx wrote:
On Wed, Feb 22, 2012 at 07:56:15PM +0100, Benjamin Thaut wrote:
[...]
2) Tracking references on the stack:
The D compiler always needs to emit a full stack frame so that the
GC can walk up the stack at any time in the
On Tue, 21 Feb 2012 21:51:34 -0600, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 2/21/12 6:11 PM, Robert Jacques wrote:
On Tue, 21 Feb 2012 09:12:57 -0600, Adam D. Ruppe
destructiona...@gmail.com wrote:
On Tuesday, 21 February 2012 at 02:33:15 UTC, Robert Jacques
wrote:
Nope
On Wed, 22 Feb 2012 11:33:57 -0600, Jonathan M Davis jmdavisp...@gmx.com
wrote:
On Wednesday, February 22, 2012 08:19:38 Robert Jacques wrote:
To Variant? Yes, definitely. To Appender? I don't think so. There is an
slight change in API behavior necessitated by performance
considerations
On Wed, 22 Feb 2012 13:12:07 -0600, Jonathan M Davis jmdavisp...@gmx.com
wrote:
On Wednesday, February 22, 2012 12:16:43 Robert Jacques wrote:
There's a big difference between sealed and not accessible. .data's API
requires exposing an array, and there's no way to do this without
leaking
On Wed, 22 Feb 2012 14:17:09 -0600, Jonathan M Davis jmdavisp...@gmx.com
wrote:
On Wednesday, February 22, 2012 14:12:07 Jonathan M Davis wrote:
On Wednesday, February 22, 2012 12:16:43 Robert Jacques wrote:
There's a big difference between sealed and not accessible. .data's
API
requires
On Wed, 22 Feb 2012 18:51:27 -0600, Jonathan M Davis jmdavisp...@gmx.com
wrote:
On Thursday, February 23, 2012 01:38:05 Juan Manuel Cabo wrote:
(And not talking about some cheesy insertion sort!!)
If you build an array once and for all, and all you want
is to do binary search on it later, it
On Wed, 22 Feb 2012 19:57:37 -0600, Jonathan M Davis jmdavisp...@gmx.com
wrote:
On Thursday, February 23, 2012 02:36:31 Juan Manuel Cabo wrote:
Yeah, but I don't care about the underlying array. I care
about multiple places referencing the same Appender. If I
from any place that references
On Mon, 20 Feb 2012 21:08:07 -0600, H. S. Teoh hst...@quickfur.ath.cx wrote:
On Mon, Feb 20, 2012 at 08:41:47PM -0600, Andrei Alexandrescu wrote:
On 2/20/12 8:33 PM, Robert Jacques wrote:
Variant e = new MyException();
writeln( e.filename, e.line, e.column);
Aren't __traits and opDispatch fun
On Tue, 21 Feb 2012 09:12:57 -0600, Adam D. Ruppe destructiona...@gmail.com
wrote:
On Tuesday, 21 February 2012 at 02:33:15 UTC, Robert Jacques
wrote:
Nope. See
(https://jshare.johnshopkins.edu/rjacque2/public_html/ )
Any luck in getting the required patches into phobos?
I'd love to see
On Mon, 20 Feb 2012 15:21:56 -0600, H. S. Teoh hst...@quickfur.ath.cx wrote:
On Mon, Feb 20, 2012 at 02:57:08PM -0600, Andrei Alexandrescu wrote:
On 2/20/12 1:45 PM, Jonathan M Davis wrote:
On Monday, February 20, 2012 20:42:28 deadalnix wrote:
Le 20/02/2012 20:27, Jonathan M Davis a écrit :
On
On Sun, 19 Feb 2012 01:07:44 -0600, Jonathan M Davis jmdavisp...@gmx.com
wrote:
On Sunday, February 19, 2012 00:21:38 Robert Jacques wrote:
Not to jump on you in particular :) but bad user parameters should never be
treated as exceptional. Even bad 'internal' parameters that are passed via
On Sat, 18 Feb 2012 18:33:01 -0600, Xinok xi...@live.com wrote:
While reading The Right Approach to Exceptions, it gave me this
idea. The user would declare a list of variables of different
types as case statements, and the variable with matches the type
of the switch expression is used.
I
On Sat, 18 Feb 2012 18:40:50 -0600, H. S. Teoh hst...@quickfur.ath.cx wrote:
On Sat, Feb 18, 2012 at 06:09:30PM -0600, Andrei Alexandrescu wrote:
On 2/18/12 6:03 PM, Jonathan M Davis wrote:
[...]
If we have GetOptException, it should have a variable for which flag failed.
Exception doesn't
On Sat, 18 Feb 2012 19:13:02 -0600, Jonathan M Davis jmdavisp...@gmx.com
wrote:
On Saturday, February 18, 2012 19:01:31 Robert Jacques wrote:
That an argument of an internationalization module as part of the standard
library, not for or against a particular exception module. I don't know
what
On Sat, 18 Feb 2012 20:21:46 -0600, Jonathan M Davis jmdavisp...@gmx.com
wrote:
On Saturday, February 18, 2012 19:59:52 Robert Jacques wrote:
But you _always_ know what went wrong:
No you don't. Take getopt for instance. If I want to appropriately handle what
went wrong that caused getopt
On Sat, 18 Feb 2012 23:09:17 -0600, Jim Hewes jimhe...@gmail.com wrote:
On 2/18/2012 5:59 PM, Robert Jacques wrote:
But you _always_ know what went wrong: An unexpected error occurred
while trying to do X, where X is whatever is inside the try-catch block.
Exceptions are for exceptional
On Sat, 18 Feb 2012 20:03:51 -0600, Xinok xi...@live.com wrote:
On Sunday, 19 February 2012 at 00:49:56 UTC, Robert Jacques wrote:
On Sat, 18 Feb 2012 18:33:01 -0600, Xinok xi...@live.com
wrote:
While reading The Right Approach to Exceptions, it gave me
this
idea. The user would declare
On Sat, 18 Feb 2012 23:08:21 -0600, Sean Cavanaugh worksonmymach...@gmail.com
wrote:
On 2/18/2012 11:07 PM, Walter Bright wrote:
On 2/18/2012 8:08 PM, bearophile wrote:
To improve this discussion a small benchmark is useful to see how much
bloat this actually causes.
It'll increase with
On Fri, 17 Feb 2012 19:44:04 -0600, bearophile bearophileh...@lycos.com wrote:
A tiny little file lines reading benchmark I've just found on Reddit:
http://www.reddit.com/r/programming/comments/pub98/a_benchmark_for_reading_flat_files_into_memory/
On Thu, 16 Feb 2012 20:38:37 -0600, Jonathan Stephens slashrsla...@gmail.com
wrote:
I would like to get some feedback on a language feature I think would benefit D.
Does std.parallelism fit your needs?
On Thu, 16 Feb 2012 14:50:22 -0600, Robik szad...@gmail.com wrote:
Greetings.
[snip]
// write foo.name1 value
writeln(ini.getSection(foo)[name1].value);
I'd recommend using opDispatch to enable the following syntax:
writeln( ini.foo.name1 );
Skimming the code, I see a lot
On Fri, 17 Feb 2012 21:25:05 -0600, bearophile bearophileh...@lycos.com wrote:
[snip]
Bearophile, when comparing a deque to a classic vector, of course the deque is
going to win. This has nothing to do with D, and everything to do with writing a
good algorithm.
In this specific case you are
On Sun, 12 Feb 2012 12:36:47 -0600, Benjamin Thaut c...@benjamin-thaut.de
wrote:
I'm currently trying to use D without a gc and didn't have major
problems so far. A minor issues is that struct.toString() returns a
string and this will almost allways leak memory when this is called.
The question
On Fri, 10 Feb 2012 02:56:36 -0600, Jacob Carlborg d...@me.com wrote:
On 2012-02-10 06:48, Robert Jacques wrote:
On Thu, 09 Feb 2012 03:57:21 -0600, Johannes Pfau nos...@example.com
wrote:
Thanks for your feedback! Comments below:
Am Wed, 08 Feb 2012 23:40:14 -0600
schrieb Robert Jacques sandf
On Thu, 09 Feb 2012 03:57:21 -0600, Johannes Pfau nos...@example.com wrote:
Thanks for your feedback! Comments below:
Am Wed, 08 Feb 2012 23:40:14 -0600
schrieb Robert Jacques sandf...@jhu.edu:
[snip]
All the generators have the function name [name]UUID. Instead, make
these function static
On Wed, 08 Feb 2012 02:12:57 -0600, Johannes Pfau nos...@example.com wrote:
Am Tue, 07 Feb 2012 20:44:08 -0500
schrieb Jonathan M Davis jmdavisp...@gmx.com:
On Tuesday, February 07, 2012 00:56:40 Adam D. Ruppe wrote:
On Monday, 6 February 2012 at 23:47:08 UTC, Jonathan M Davis
[snip]
Using
On Thu, 02 Feb 2012 15:26:48 -0600, Johannes Pfau nos...@example.com wrote:
Hi,
std.uuid is ready to be reviewed. As far as I know there's nothing
being reviewed right now, so we could start the review as soon as
a review manager has been found.
About std.uuid (copied from the module
On Thu, 02 Feb 2012 19:31:50 -0600, H. S. Teoh hst...@quickfur.ath.cx wrote:
Speaking of GC improvements, I googled around a bit and found this
thread from 2 years ago:
http://www.digitalmars.com/d/archives/digitalmars/D/Is_there_a_modern_GC_for_D_105967.html
Especially interesting
On Wed, 01 Feb 2012 18:40:20 -0600, dsimcha dsim...@yahoo.com wrote:
On Wednesday, 1 February 2012 at 23:43:24 UTC, H. S. Teoh wrote:
Out of curiosity, is there a way to optimize for the many small
allocations case? E.g., if a function allocates, as temporary
storage,
a tree with a large number
On Fri, 27 Jan 2012 16:45:41 -0600, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 1/27/12 5:35 PM, Christof Schardt wrote:
The brute force approach would essentially compute the two ranks and
then sort by their sum. That's three sorts and at least one temporary
I think, you are
On Wed, 25 Jan 2012 05:58:52 -0600, Marco Leise marco.le...@gmx.de wrote:
If you want to, you can take a look at the link in this forum post:
http://encode.ru/threads/1461-New-Fast-Fourier-Transform-Algorithm?highlight=FFT
It looks like MIT has a new FFT algorithm.
For those who want the short
On Fri, 20 Jan 2012 13:13:42 -0600, Walter Bright newshou...@digitalmars.com
wrote:
On 1/20/2012 2:12 AM, Robert Caravani wrote:
First of all thanks for this fast answer!
On 1/19/2012 12:48 PM, Roberto Caravani wrote:
I think this would be a real neat and very important feature, when it
On Sun, 15 Jan 2012 07:36:53 -0600, Alex Rønne Petersen xtzgzo...@gmail.com
wrote:
Hi,
I don't know how many times I've made the mistake of passing a local
variable to a function which takes a 'ref' parameter. Suddenly, local
variables/fields are just mutating out of nowhere, because it's not
On Sun, 15 Jan 2012 12:27:46 -0600, Peter Alexander
peter.alexander...@gmail.com wrote:
On 15/01/12 5:57 PM, Robert Jacques wrote:
On Sun, 15 Jan 2012 07:36:53 -0600, Alex Rønne Petersen
Thoughts?
In no particular order:
1) Adding ref to the call site is lexically similar to Hungarian
On Fri, 13 Jan 2012 13:06:28 -0600, Peter Alexander
peter.alexander...@gmail.com wrote:
On 13/01/12 8:39 AM, Walter Bright wrote:
[snip]
Also, slight bikeshedding issue: I'm not so sure on using names like
int4 for vectors. You see things like int32 a lot to mean a 32-bit
integer, or int8 to
On Wed, 11 Jan 2012 16:49:35 -0600, Nick Sabalausky a@a.a wrote:
Ben Davis ent...@cantab.net wrote in message
news:jejkdm$16un$1...@digitalmars.com...
Note that this is already supported (apologies if I've got the syntax
slightly wrong):
foreach (i, ref tile; map) { ... }
That's a local
1 - 100 of 858 matches
Mail list logo