Re: Invoking writeln() from a lot of threads running concurrently --> crash

2017-12-09 Thread Messenger via Digitalmars-d
On Saturday, 9 December 2017 at 09:38:05 UTC, IM wrote: For purposes of debugging, I'm using writeln() to print stuff out from tasks running concurrently on many threads. At some point it crashes with the following stack trace: Thread 4 received signal SIGUSR1, User defined signal 1. [...] B

Re: Regex benchmarks in Rust, Scala, D and F#

2016-01-05 Thread Messenger via Digitalmars-d
On Tuesday, 5 January 2016 at 20:04:35 UTC, rsw0x wrote: [...] Anyone on linux who could imgur a callgraph please? Premature optimisation and all that.

Re: How about appender.put() with var args?

2015-04-16 Thread Messenger via Digitalmars-d
On Thursday, 16 April 2015 at 03:53:56 UTC, Andrei Alexandrescu wrote: Sidetracking a bit, but when I started using Appender I was surprised to see that put didn't return a reference to the Appender itself. Had it done so, you could have chained your put calls very nicely. app.put("foo") .p

Re: How about appender.put() with var args?

2015-04-15 Thread Messenger via Digitalmars-d
On Wednesday, 15 April 2015 at 20:59:25 UTC, Steven Schveighoffer wrote: with(app) { put(var); put("bar"); put(more); put("stuff"); } -Steve Awesome.

Re: How about appender.put() with var args?

2015-04-15 Thread Messenger via Digitalmars-d
On Wednesday, 15 April 2015 at 19:09:42 UTC, Márcio Martins wrote: Hi! I use Appender a lot, and find it ugly to write this all the time to efficiently construct strings: app.put("foo"); app.put(var); app.put("bar"); Sidetracking a bit, but when I started using Appender I was surprised to

Re: D vs nim

2015-04-14 Thread Messenger via Digitalmars-d
On Friday, 10 April 2015 at 21:26:35 UTC, bachmeier wrote: On Friday, 10 April 2015 at 18:52:24 UTC, weaselcat wrote: The only things I've read about nim have been on the D forums - it seems the wikipedia article is even being considered for deletion due to not being noteworthy. So I think you

Re: problem with size_t and an easy solution

2014-12-09 Thread Messenger via Digitalmars-d
On Monday, 8 December 2014 at 14:31:50 UTC, ketmar via Digitalmars-d wrote: Personally, when I face the need for a size_t, I usually can (and do) use auto instead. And even if I have to spell it, I don't care too much how it's called, only whether it can be easily recognized. i bet that "woo

Re: [OT] Microsoft filled patent applications for scoped and immutable types

2014-08-27 Thread Messenger via Digitalmars-d
On Tuesday, 26 August 2014 at 21:26:36 UTC, H. S. Teoh via Digitalmars-d wrote: D has had immutable for years! Surely that counts as prior art?? If the patent passes for whatever reason, this becomes a valid point if and only if you have the resources to contest its validity. The patent holde

Re: What does the compiler really require from the runtime?

2014-08-24 Thread Messenger via Digitalmars-d
On Tuesday, 19 August 2014 at 16:55:49 UTC, Jacob Carlborg wrote: On 2014-08-19 18:31, Alex wrote: Hi Everyone, Is there a list of functions and data structures, the D-Compiler would expect from a custom runtime? Here's a list [1]. It's probably not complete but it's a start. It's best to

Re: scope guards

2014-08-08 Thread Messenger via Digitalmars-d
On Friday, 8 August 2014 at 00:27:21 UTC, Jonathan M Davis wrote: On Thursday, 7 August 2014 at 20:59:45 UTC, Messenger wrote: On Thursday, 7 August 2014 at 20:54:02 UTC, Jonathan M Davis wrote: I'd say that if you're trying to use scope in any situation where you'd try and handle an exception,

Re: scope guards

2014-08-07 Thread Messenger via Digitalmars-d
On Thursday, 7 August 2014 at 20:54:02 UTC, Jonathan M Davis wrote: I'd say that if you're trying to use scope in any situation where you'd try and handle an exception, then you're using it wrong. But it's super convenient.

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-02 Thread Messenger via Digitalmars-d
On Monday, 2 June 2014 at 23:01:56 UTC, deadalnix wrote: On Monday, 2 June 2014 at 22:53:10 UTC, ponce wrote: - no exceptions (!) How do they do error handling ? segfault

Re: Parallel execution of unittests

2014-05-05 Thread Messenger via Digitalmars-d
On Monday, 5 May 2014 at 00:40:41 UTC, Walter Bright wrote: D has so many language features, we need a higher bar for adding new ones, especially ones that can be done straightforwardly with existing features. Sure, but you'll have to agree that there comes a point where library solutions end

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Messenger via Digitalmars-d
On Thursday, 24 April 2014 at 17:33:08 UTC, Kagamin wrote: Another issue is that in 64-bit address space precise GC gives no advantage as false pointers have low probability, so precise GC seems to be not worth the effort. Except a precise gc is type-aware, no? And you could basically ask it

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-23 Thread Messenger via Digitalmars-d
On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: After all of that, I intend to include a base draft of the design of the GC, along with opening the PRs and committing the starting API. So, is there something I’m missing? Am I overlooking the obvious? Is there a more practical way

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Messenger via Digitalmars-d
On Wednesday, 23 April 2014 at 15:46:00 UTC, Steven Schveighoffer wrote: The time it takes to compile a program where the compiler consumes 2G of ram on a 2G machine is infinite ;) (nitpick: not necessarily given good swap behaviour!)