Re: Lets talk about fibers

2015-06-04 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 4 June 2015 at 13:16:48 UTC, Steven Schveighoffer wrote: On 6/3/15 9:51 PM, Joakim wrote: Your entire argument seems based on fibers moving between threads breaking your reactor IO model. If there was an option to disable fibers moving or if you had to explicitly ask for a

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 5 June 2015 at 00:41:37 UTC, Etienne wrote: Well that's probably why it should inherit Throwable then. Why? There's no good reason to care more about the experimental program than about the mental health of the programmer writing it. Maybe one day we'll start including a debug

Re: Use SIMD to accelerate comment lexing

2015-06-04 Thread deadalnix via Digitalmars-d
On Friday, 5 June 2015 at 00:30:44 UTC, Walter Bright wrote: It's an interesting approach. I generally shoot for making the debug builds the fastest, because that's when people are in the edit-compile-debug loop. And the debug output needs line numbers :-) In C++, you would not need line

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread Etienne via Digitalmars-d
On Friday, 5 June 2015 at 00:22:25 UTC, Vladimir Panteleev wrote: Invalid state == unusable. We need to be extremely careful in memory corruption conditions. For example, if the application has a memory-mapped file, we can corrupt data on disk if we're careless. Well that's probably why it

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 6/4/15 5:08 PM, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 00:06:04 UTC, Charles wrote: Any change of making the D Logo redirect to dlang.org rather than the forum itself? No, I'm very used to clicking the logo to back to the forum index, and I suspect so are many others. You can

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Andrei Alexandrescu via Digitalmars-d-announce
When one clicks create thread, focus should go on the post title, not the post body. -- Andrei

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 6/4/15 5:49 PM, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 00:46:11 UTC, Mike wrote: On Friday, 5 June 2015 at 00:37:20 UTC, Vladimir Panteleev wrote: It appears the horizontal split puts the latest thread at the bottom of the list instead of the top. I think that should be

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread Etienne via Digitalmars-d
On Friday, 5 June 2015 at 00:45:01 UTC, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 00:41:37 UTC, Etienne wrote: Well that's probably why it should inherit Throwable then. Why? There's no good reason to care more about the experimental program than about the mental health of the

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Manu via Digitalmars-d-announce
On 5 June 2015 at 01:04, Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: http://beta.forum.dlang.org/ Many major and minor improvements. Some major ones: - dlang.org theme, fully responsive and mobile-friendly - keyboard navigation in all views -

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 01:05:32 UTC, Andrei Alexandrescu wrote: On 6/4/15 5:08 PM, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 00:06:04 UTC, Charles wrote: Any change of making the D Logo redirect to dlang.org rather than the forum itself? No, I'm very used to clicking the logo

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 01:48:20 UTC, Meta wrote: How feasible is it to add code formatting for the web interface? Not sure what you mean. Do you mean syntax highlighting for D code? If you mean the rewrapping issues with forum.dlang.org, those should be fixed now. Code (and other text

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 01:49:31 UTC, Manu wrote: On 5 June 2015 at 11:42, Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Friday, 5 June 2015 at 01:39:48 UTC, Manu wrote: [...] How do I reproduce this? What browser, view mode, etc.? I don't

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Meta via Digitalmars-d-announce
On Friday, 5 June 2015 at 01:52:07 UTC, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 01:48:20 UTC, Meta wrote: How feasible is it to add code formatting for the web interface? Not sure what you mean. Do you mean syntax highlighting for D code? If you mean the rewrapping issues with

Re: Code behaves incorrectly if it is compiled in std.functional

2015-06-04 Thread krzaq via Digitalmars-d
I reproduced this bug on my arch linux with DMD 2.067 and git phobos (4cea8f1e4dd839568cc9e581bc15ee84f02e7135)

typesafe variadic with default args

2015-06-04 Thread Steven Schveighoffer via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=14651 This doesn't make a whole lot of sense: void foo(int arg1 = 0, int[] arg2...) { } Error: default argument expected for arg2 The default argument is nothing, like normal, no? I'll note that non-typesafe variadic works. In any case, there is

Re: Code behaves incorrectly if it is compiled in std.functional

2015-06-04 Thread anonymous via Digitalmars-d
On Friday, 5 June 2015 at 02:38:39 UTC, ketmar wrote: here's dustmited source: Further reduced: void unaryFun()(auto int a) pure nothrow @safe @nogc {} alias Identity(F) = F; void main() { unaryFun!()(41); static void fun(int n) pure nothrow @safe @nogc {} alias F = typeof(fun);

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 5 June 2015 at 04:03:48 UTC, Manu wrote: Yeah I've had the same experience. I reckon there's room for a libOAuth... I would hella-make-use-of-that! https://github.com/adamdruppe/arsd/blob/master/oauth.d my implementation is a bit bizarre and tied to my cgi.d but it supports the

[Issue 14598] range primitives for popFront+return front

2015-06-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14598 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Component|DMD |Phobos

Code behaves incorrectly if it is compiled in std.functional

2015-06-04 Thread Meta via Digitalmars-d
This is so completely bizarre that I thought I was going crazy at first, but the same behaviour is exhibited whether I'm using my own copy of std.functional or a copy cloned straight from phobos master. The following code snippet exhibits different behaviour when it is put in a standalone file

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Manu via Digitalmars-d-announce
On 5 June 2015 at 11:45, Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Friday, 5 June 2015 at 01:42:20 UTC, Manu wrote: Also, oauth? There is no way I would register an account to make a post unless I was *really* motivated. What gave you the

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Walter Bright via Digitalmars-d-announce
On 6/4/2015 8:04 AM, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ Many major and minor improvements. Some major ones: - dlang.org theme, fully responsive and mobile-friendly - keyboard navigation in all views - automatically saved post drafts - get notified of new posts and replies

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 6/4/15 6:37 PM, Vladimir Panteleev wrote: Except for the bold part, believe it or not, it's exactly the same font as we use on dlang.org, size and all (Verdana 14px). And as for the bold part, it doesn't look so bad on Windows, so what does that say about the famed OS X font rendering? :D

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Mike via Digitalmars-d-announce
On Friday, 5 June 2015 at 00:49:48 UTC, Vladimir Panteleev wrote: Consider the space bar's current functionality: it jumps to the next unread post. How would it work in this scheme? Would it go down within a thread and then jump up to the next thread? Or would it keep going down, going

Re: Arch Linux D package update

2015-06-04 Thread rcorre via Digitalmars-d-announce
Awesome, thanks for all your work here! The DCD package is a nice addition.

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 01:10:02 UTC, Andrei Alexandrescu wrote: When one clicks create thread, focus should go on the post title, not the post body. -- Andrei Fixed. (You have an eye for details!)

Re: As discussed in DConf2015: Python-like keyword arguments

2015-06-04 Thread ketmar via Digitalmars-d
here's the patch if someone want to play with it: http://ketmar.no-ip.org/dmd/namedargs000.patch git am -3 should apply it to HEAD without troubles. please note that this patch is in no way production ready, it's more a working PoC, with leftovers from earlier experiments. so code quality is

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Mike via Digitalmars-d-announce
On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ This is really nice. It appears the horizontal split puts the latest thread at the bottom of the list instead of the top. I think that should be reversed. Mike

Re: Use SIMD to accelerate comment lexing

2015-06-04 Thread Walter Bright via Digitalmars-d
On 6/4/2015 2:44 PM, deadalnix wrote: On Thursday, 4 June 2015 at 18:39:02 UTC, Walter Bright wrote: On 6/3/2015 7:05 PM, deadalnix wrote: On Wednesday, 3 June 2015 at 22:50:52 UTC, Walter Bright wrote: On 6/2/2015 5:45 PM, deadalnix wrote: You go though character and look for a '/'. When

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread rsw0x via Digitalmars-d
On Thursday, 4 June 2015 at 23:56:28 UTC, Etienne wrote: Why D? Why fail with a one line message and no debug tools? Why?? this has been making my research project hilariously difficult... something goes wrong? too bad, enjoy your crash with no stack trace.

[Issue 14647] std.random line 3015 heisenbug with FreeBSD_32

2015-06-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14647 Brad Roberts bra...@puremagic.com changed: What|Removed |Added CC||bra...@puremagic.com ---

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Manu via Digitalmars-d-announce
On 5 June 2015 at 11:39, Manu turkey...@gmail.com wrote: On 5 June 2015 at 01:04, Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: http://beta.forum.dlang.org/ Many major and minor improvements. Some major ones: - dlang.org theme, fully responsive

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 01:39:48 UTC, Manu wrote: If I click to select some text, the page bounces downwards on the mouse-up event. If I click again to select some other text, the page bounces back upwards again to it's original position (again, on the mouse-up). How do I reproduce this?

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread Etienne Cimon via Digitalmars-d
On 2015-06-04 21:12, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 01:07:28 UTC, Etienne wrote: I mean come on here, I made a fatal error and my application is overdue for crashing every thread and D is so broken that it adds a deadlock on top of that, and you're telling me you'll feel

Re: What's the deal with http://dconf.org/2015/talks/zvibel.pdf?

2015-06-04 Thread Joakim via Digitalmars-d
On Friday, 5 June 2015 at 04:10:41 UTC, Walter Bright wrote: On 6/4/2015 6:12 PM, Andrei Alexandrescu wrote: So this is the sixth time or so I change permissions for http://dconf.org/2015/talks/zvibel.pdf manually. I make it world-readable, someone within a matter of hours it becomes

6-weeks release cycle

2015-06-04 Thread Andrei Alexandrescu via Digitalmars-d
Rust will do it: http://opensource.com/business/15/6/rust-6-week-release-cycle Would be so nice if we had the resources to do that. There have been a couple of initiatives in the past, but the folks who wanted to do the release just got busy with other things. BTW does anyone know where

[Issue 14651] New: Typesafe variadic functions don't work after optional arguments

2015-06-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14651 Issue ID: 14651 Summary: Typesafe variadic functions don't work after optional arguments Product: D Version: D2 Hardware: x86_64 OS: Windows Status:

Re: DevDocs.io: voting for D

2015-06-04 Thread John Colvin via Digitalmars-d-announce
On Thursday, 4 June 2015 at 15:43:03 UTC, Quentin Ladeveze wrote: On Thursday, 4 June 2015 at 15:26:55 UTC, Quentin Ladeveze wrote: On Thursday, 4 June 2015 at 14:41:01 UTC, Kagamin wrote: https://github.com/Kapeli/Dash-User-Contributions/tree/master/docsets/D ? I just tried to generate the

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Mike via Digitalmars-d-announce
On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ In threaded view, when viewing any post except the original post, and then clicking the leaf breadcrumb at the top, the following appears: Post #0 of thread mkpqgo$41n$1...@digitalmars.com not

Re: As discussed in DConf2015: Python-like keyword arguments

2015-06-04 Thread ketmar via Digitalmars-d
On Sun, 31 May 2015 09:43:50 -0400, Michel Fortin wrote: For that to be really useful the argument names should be part of the A type so you can forward them to another function and it still works. For instance: void test(string a, string b=wow, string c=heh) {} void

Re: Code behaves incorrectly if it is compiled in std.functional

2015-06-04 Thread ketmar via Digitalmars-d
On Fri, 05 Jun 2015 03:15:45 +, anonymous wrote: On Friday, 5 June 2015 at 02:38:39 UTC, ketmar wrote: here's dustmited source: Further reduced: void unaryFun()(auto int a) pure nothrow @safe @nogc {} alias Identity(F) = F; void main() { unaryFun!()(41); static void fun(int

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Jonathan M Davis via Digitalmars-d-announce
On Thursday, June 04, 2015 18:05:32 Andrei Alexandrescu via Digitalmars-d-announce wrote: Also, after thinking today about the universe and everything, I concluded that that's without a doubt the ugliest bold font created by the human civilization. That's a bold statement. :) - Jonathan M

Re: Attempt to get rid of phobos Makefiles, using reggae

2015-06-04 Thread Joakim via Digitalmars-d
On Thursday, 4 June 2015 at 21:50:41 UTC, Atila Neves wrote: http://dpaste.dzfl.pl/562f1ddc1aad This can build the static and dynamic libraries on Linux. I then linked to the static version to make sure my programs still worked. They did. For other OSs there'd be some logic to select

Re: What's the deal with http://dconf.org/2015/talks/zvibel.pdf?

2015-06-04 Thread Walter Bright via Digitalmars-d
On 6/4/2015 6:12 PM, Andrei Alexandrescu wrote: So this is the sixth time or so I change permissions for http://dconf.org/2015/talks/zvibel.pdf manually. I make it world-readable, someone within a matter of hours it becomes world-unreadable. Attributes and owner are fine on my github dir. We

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Nick Sabalausky via Digitalmars-d-announce
On 06/04/2015 10:59 PM, IgorStepanov wrote: On Friday, 5 June 2015 at 02:14:08 UTC, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 02:11:17 UTC, IgorStepanov wrote: Ok, why we use email/NNTP server instead of simple database/file storage? Do we use some free mail server, or we must

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 00:46:11 UTC, Mike wrote: On Friday, 5 June 2015 at 00:37:20 UTC, Vladimir Panteleev wrote: It appears the horizontal split puts the latest thread at the bottom of the list instead of the top. I think that should be reversed. I think not, as that would mean that

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Mike via Digitalmars-d-announce
On Friday, 5 June 2015 at 00:37:20 UTC, Vladimir Panteleev wrote: It appears the horizontal split puts the latest thread at the bottom of the list instead of the top. I think that should be reversed. I think not, as that would mean that threads are sorted in one direction, but posts within

[Issue 14652] New: Ddoc generates wrong documentation for parameterized alias definition

2015-06-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14652 Issue ID: 14652 Summary: Ddoc generates wrong documentation for parameterized alias definition Product: D Version: D2 Hardware: All OS: All Status:

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 00:50:17 UTC, Mike wrote: On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ In threaded view, when viewing any post except the original post, and then clicking the leaf breadcrumb at the top, the following appears:

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Manu via Digitalmars-d-announce
On 5 June 2015 at 11:42, Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Friday, 5 June 2015 at 01:39:48 UTC, Manu wrote: If I click to select some text, the page bounces downwards on the mouse-up event. If I click again to select some other text,

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 01:42:20 UTC, Manu wrote: Also, oauth? There is no way I would register an account to make a post unless I was *really* motivated. What gave you the impression that you have to register an account in order to post? The front page now explicitly says that you don't

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Meta via Digitalmars-d-announce
On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ Many major and minor improvements. Some major ones: - dlang.org theme, fully responsive and mobile-friendly - keyboard navigation in all views - automatically saved post drafts - get notified of

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread IgorStepanov via Digitalmars-d-announce
On Friday, 5 June 2015 at 01:52:07 UTC, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 01:48:20 UTC, Meta wrote: How feasible is it to add code formatting for the web interface? Not sure what you mean. Do you mean syntax highlighting for D code? If you mean the rewrapping issues with

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 02:02:11 UTC, IgorStepanov wrote: Sorry if this question has been raised but is the reason for the inability to edit posts? Posts are not editable because once sent, they are relayed to the NNTP server, mailing lists, and users' email inboxes. Will be this feature

Re: Code behaves incorrectly if it is compiled in std.functional

2015-06-04 Thread ketmar via Digitalmars-d
here's dustmited source: template unaryFun(alias fun, string parmName=a) { static if (is(typeof(fun))) auto unaryFun(ElementType) (auto ElementType __a) { mixin(alias ~ parmName ~ = __a ;); return mixin(fun); } else static if (needOpCallAlias) { unaryFun fun; }

Scoped in a foreach loop.

2015-06-04 Thread Yuxuan Shui via Digitalmars-d
I tried something like this: foreach(e; scoped!SomeRangeType(args)) { } And my program segment faults. But this works: { auto x = scoped!SomeRangeType(args); foreach(e; x) { } } Shouldn't the range be alive until the end of the loop?

Re: Code behaves incorrectly if it is compiled in std.functional

2015-06-04 Thread anonymous via Digitalmars-d
On Friday, 5 June 2015 at 03:45:18 UTC, ketmar wrote: `auto int a`?! it shouldn't be accepted at all! Yeah, but it's the same with auto ref.

Re: Code behaves incorrectly if it is compiled in std.functional

2015-06-04 Thread ketmar via Digitalmars-d
On Fri, 05 Jun 2015 03:56:05 +, anonymous wrote: On Friday, 5 June 2015 at 03:45:18 UTC, ketmar wrote: `auto int a`?! it shouldn't be accepted at all! Yeah, but it's the same with auto ref. `auto ref` has a well-defined meaning. yet `auto int` is nonsence. it's definitely a compiler

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 5 June 2015 at 00:04:00 UTC, Etienne wrote: On Thursday, 4 June 2015 at 23:59:11 UTC, Vladimir Panteleev wrote: On Thursday, 4 June 2015 at 23:56:28 UTC, Etienne wrote: [...] I don't understand what you're grieving about, but: 1. We can't show a stack trace in an

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 00:34:27 UTC, Mike wrote: On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ This is really nice. It appears the horizontal split puts the latest thread at the bottom of the list instead of the top. I think that

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 5 June 2015 at 01:07:28 UTC, Etienne wrote: I mean come on here, I made a fatal error and my application is overdue for crashing every thread and D is so broken that it adds a deadlock on top of that, and you're telling me you'll feel guilty for allocating the stack trace on the GC

What's the deal with http://dconf.org/2015/talks/zvibel.pdf?

2015-06-04 Thread Andrei Alexandrescu via Digitalmars-d
So this is the sixth time or so I change permissions for http://dconf.org/2015/talks/zvibel.pdf manually. I make it world-readable, someone within a matter of hours it becomes world-unreadable. Attributes and owner are fine on my github dir. We use rsync. Does any other contributor update

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 02:11:17 UTC, IgorStepanov wrote: On Friday, 5 June 2015 at 02:03:48 UTC, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 02:02:11 UTC, IgorStepanov wrote: Sorry if this question has been raised but is the reason for the inability to edit posts? Posts are not

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread IgorStepanov via Digitalmars-d-announce
On Friday, 5 June 2015 at 02:03:48 UTC, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 02:02:11 UTC, IgorStepanov wrote: Sorry if this question has been raised but is the reason for the inability to edit posts? Posts are not editable because once sent, they are relayed to the NNTP

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread rsw0x via Digitalmars-d
On Friday, 5 June 2015 at 01:12:56 UTC, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 01:07:28 UTC, Etienne wrote: I mean come on here, I made a fatal error and my application is overdue for crashing every thread and D is so broken that it adds a deadlock on top of that, and you're

[Issue 14651] Typesafe variadic functions don't work after optional arguments

2015-06-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14651 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC|

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread IgorStepanov via Digitalmars-d-announce
On Friday, 5 June 2015 at 02:14:08 UTC, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 02:11:17 UTC, IgorStepanov wrote: On Friday, 5 June 2015 at 02:03:48 UTC, Vladimir Panteleev wrote: On Friday, 5 June 2015 at 02:02:11 UTC, IgorStepanov wrote: Sorry if this question has been raised but

Re: Code behaves incorrectly if it is compiled in std.functional

2015-06-04 Thread ketmar via Digitalmars-d
On Fri, 05 Jun 2015 04:39:28 +, ketmar wrote: On Fri, 05 Jun 2015 03:56:05 +, anonymous wrote: On Friday, 5 June 2015 at 03:45:18 UTC, ketmar wrote: `auto int a`?! it shouldn't be accepted at all! Yeah, but it's the same with auto ref. `auto ref` has a well-defined meaning. yet

Re: Use SIMD to accelerate comment lexing

2015-06-04 Thread Brian Schott via Digitalmars-d
On Thursday, 4 June 2015 at 18:39:02 UTC, Walter Bright wrote: Hmm. There's no way to get the line number without counting LFs, and that means searching for them. It would be nice if it was that simple. EndOfLine: \u000D \u000A \u000D \u000A \u2028 \u2029 EndOfFile

[Issue 10282] Refused assignment of vector op result to const array

2015-06-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10282 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a7ec2c069d9ba6a7b611eba1ce22574647a240f5 fix Issue 10282 - Refused

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Thursday, 4 June 2015 at 21:23:19 UTC, sigod wrote: Also, I just noticed: when you open direct link linked post appears on the bottom of the page instead of the top. For example: http://beta.forum.dlang.org/post/gbzgmtrjpnsexfasx...@beta.forum.dlang.org Chrome weirdness. Push fixed.

Re: DIP66 1.2 (Multiple) alias this. Continuation of work.

2015-06-04 Thread IgorStepanov via Digitalmars-d
Hello, comrades. Lets put into the schedule reviewing of this PR (https://github.com/D-Programming-Language/dmd/pull/3998). It contains a very much changes and it is hard to maintain its performance: each foreign PR may break it.

I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread Etienne via Digitalmars-d
Since the application will probably have to stop, might as well use the GC: in GC: if (gcx.running) { gcx.running = false; onInvalidMemoryOperationError(); } in core.exception: throw new InvalidMemoryOperationError(); And there you go, a beautiful stack trace. I now have a pinpoint

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 4 June 2015 at 23:56:28 UTC, Etienne wrote: Since the application will probably have to stop, might as well use the GC: in GC: if (gcx.running) { gcx.running = false; onInvalidMemoryOperationError(); } in core.exception: throw new InvalidMemoryOperationError(); And

Re: Use SIMD to accelerate comment lexing

2015-06-04 Thread deadalnix via Digitalmars-d
On Thursday, 4 June 2015 at 18:39:02 UTC, Walter Bright wrote: On 6/3/2015 7:05 PM, deadalnix wrote: On Wednesday, 3 June 2015 at 22:50:52 UTC, Walter Bright wrote: On 6/2/2015 5:45 PM, deadalnix wrote: You go though character and look for a '/'. When you hit one, you check if the character

Re: Use SIMD to accelerate comment lexing

2015-06-04 Thread Walter Bright via Digitalmars-d
On 6/4/2015 1:44 PM, Brian Schott wrote: It would be nice if it was that simple. EndOfLine: \u000D \u000A \u000D \u000A \u2028 \u2029 EndOfFile Yeah, you're right

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Thursday, 4 June 2015 at 20:56:33 UTC, sigod wrote: On Thursday, 4 June 2015 at 20:25:02 UTC, sigod wrote: Few issues with help dialog (opened with Shift+H): - Centers on full page instead of only visible part of it. - Scrolls with page. `fixed` instead of [`absolute`][0] and it should be

Re: Lets talk about fibers

2015-06-04 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, 3 June 2015 at 18:34:34 UTC, Liran Zvibel wrote: As we see, there is nothing to gain and lots to lose by moving fibers between threads. Given that it sounds like LLVM _can't_ implement moving fibers (or if it can, it'll really hurt performance), I think that we need a really

Re: I finally got a stack trace on my InvalidMemoryOperationError

2015-06-04 Thread Etienne via Digitalmars-d
On Thursday, 4 June 2015 at 23:59:11 UTC, Vladimir Panteleev wrote: On Thursday, 4 June 2015 at 23:56:28 UTC, Etienne wrote: Since the application will probably have to stop, might as well use the GC: in GC: if (gcx.running) { gcx.running = false; onInvalidMemoryOperationError(); } in

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Thursday, 4 June 2015 at 21:10:13 UTC, Sönke Ludwig wrote: I don't know how things are now, but when I tried to move to Vibe.d (which was several years ago), you had to do some strange acrobatics in order to read the same connection in one fiber but write to it from another. In ae.net, reads

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread sigod via Digitalmars-d-announce
On Thursday, 4 June 2015 at 20:25:02 UTC, sigod wrote: Few issues with help dialog (opened with Shift+H): - Centers on full page instead of only visible part of it. - Scrolls with page. `fixed` instead of [`absolute`][0] and it should be fixed. (Heh, funny.) Also, I believe closing popup on

Re: Attempt to get rid of phobos Makefiles, using reggae

2015-06-04 Thread Mike via Digitalmars-d
On Thursday, 4 June 2015 at 21:50:41 UTC, Atila Neves wrote: Is this horrible or is this the kind of direction we might want to go? This is a nice work, but I think I would prefer a library over a tool. I envision a single package with much of what you've already built (Target struct,

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Charles via Digitalmars-d-announce
Any change of making the D Logo redirect to dlang.org rather than the forum itself?

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Friday, 5 June 2015 at 00:06:04 UTC, Charles wrote: Any change of making the D Logo redirect to dlang.org rather than the forum itself? No, I'm very used to clicking the logo to back to the forum index, and I suspect so are many others. You can use the D Home links to go to dlang.org.

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Sönke Ludwig via Digitalmars-d-announce
Am 04.06.2015 um 17:43 schrieb Vladimir Panteleev: On Thursday, 4 June 2015 at 15:35:58 UTC, Nick Sabalausky wrote: On 06/04/2015 11:14 AM, Vladimir Panteleev wrote: I thought of migrating to Vibe eventually, but it would be non-trivial. Some things the forum does are also difficult to

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread sigod via Digitalmars-d-announce
On Thursday, 4 June 2015 at 21:32:36 UTC, Vladimir Panteleev wrote: Chrome weirdness. Push fixed. Thanks. It was fast. :)

Re: Attempt to get rid of phobos Makefiles, using reggae

2015-06-04 Thread Steven Schveighoffer via Digitalmars-d
On 6/4/15 5:50 PM, Atila Neves wrote: http://dpaste.dzfl.pl/562f1ddc1aad This can build the static and dynamic libraries on Linux. I then linked to the static version to make sure my programs still worked. They did. For other OSs there'd be some logic to select different files. It was a pain

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Thursday, 4 June 2015 at 20:33:29 UTC, sigod wrote: On Thursday, 4 June 2015 at 20:30:38 UTC, sigod wrote: Hm. Actually 63 key code will appear on `keypress` event. And 191 on `keydown`. (But you use `keydown` for webkit.) Take a look here: http://stackoverflow.com/a/29494190/944911

[Issue 10282] Refused assignment of vector op result to const array

2015-06-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10282 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Attempt to get rid of phobos Makefiles, using reggae

2015-06-04 Thread Atila Neves via Digitalmars-d
http://dpaste.dzfl.pl/562f1ddc1aad This can build the static and dynamic libraries on Linux. I then linked to the static version to make sure my programs still worked. They did. For other OSs there'd be some logic to select different files. It was a pain figuring out exactly what posix.mak

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread sigod via Digitalmars-d-announce
On Thursday, 4 June 2015 at 21:08:04 UTC, Vladimir Panteleev wrote: On Thursday, 4 June 2015 at 20:56:33 UTC, sigod wrote: On Thursday, 4 June 2015 at 20:25:02 UTC, sigod wrote: Few issues with help dialog (opened with Shift+H): - Centers on full page instead of only visible part of it. -

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Nick Sabalausky via Digitalmars-d-announce
On 06/04/2015 03:41 PM, Mattcoder wrote: PS: I think you could increase the font size a bit on the top links( Index » Announce / Log in · Settings · Help) and the page numbers on the bottom, at least for mobile. Yea, they are hard to hit accurately on mobile (but then, I'm usually in the

Re: As discussed in DConf2015: Python-like keyword arguments

2015-06-04 Thread Atila Neves via Digitalmars-d
Compile-time version for when crazy people like me pass in values as template parameters: import std.stdio; import std.array; import std.typetuple; import std.traits; struct Foo { int i; } struct Bar { int i; } struct Baz { int i; } void func(Foo foo = Foo(11), Bar bar = Bar(22), Baz baz =

Re: Assoc array typesafe variadic functions

2015-06-04 Thread Mint via Digitalmars-d
On Wednesday, 3 June 2015 at 22:16:03 UTC, extrawurst wrote: defining a assoc array parameter would make me expect exactly that: that it takes a assoc array as a paramter. Sure then, but the variadic declaration should hold significance too, no? I would expect a function declared as

Re: Throwing InvalidMemoryOperationError

2015-06-04 Thread Etienne Cimon via Digitalmars-d
On Thursday, 4 June 2015 at 17:43:35 UTC, Adam D. Ruppe wrote: If int 3 doesn't work for some reason btw, you could always just deliberately write to a null pointer and trigger a segfault in the overridden function, would have the same result in the debugger. I feel like this onError thing

Re: Make dub part of the standard dmd distribution

2015-06-04 Thread Dicebot via Digitalmars-d
On Thursday, 4 June 2015 at 15:39:02 UTC, Sönke Ludwig wrote: Am 04.06.2015 um 17:08 schrieb Nick Sabalausky: On 06/04/2015 04:43 AM, Sönke Ludwig wrote: (...) except for making the API stable and supporting the improved build description language. Is there anything you need from me on the

Re: Throwing InvalidMemoryOperationError

2015-06-04 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 4 June 2015 at 17:51:31 UTC, Etienne Cimon wrote: I'm trying to rebuild gdb because this error is what I got: wow that's messed up. Did you try it with dmd -gc too? Or a non-debug version of the program entirely? Maybe your version of gdb has a bug in reading D debugging info.

Re: pure format

2015-06-04 Thread Meta via Digitalmars-d
On Thursday, 4 June 2015 at 18:08:09 UTC, Ali Çehreli wrote: http://www.digitalmars.com/d/archives/digitalmars/D/learn/std.conv.to_purity_68957.html and if it try it's not a bug... Floating point operations share global state (flags or attributes) for rounding mode, exception and trap

Re: Use SIMD to accelerate comment lexing

2015-06-04 Thread Walter Bright via Digitalmars-d
On 6/3/2015 7:05 PM, deadalnix wrote: On Wednesday, 3 June 2015 at 22:50:52 UTC, Walter Bright wrote: On 6/2/2015 5:45 PM, deadalnix wrote: You go though character and look for a '/'. When you hit one, you check if the character before it is a *, and if so, you have the end of the comment.

Re: Make dub part of the standard dmd distribution

2015-06-04 Thread Steven Schveighoffer via Digitalmars-d
On 6/4/15 11:07 AM, Sönke Ludwig wrote: Am 04.06.2015 um 15:07 schrieb Steven Schveighoffer: On 6/4/15 4:58 AM, Sönke Ludwig wrote: As of recently, you can also directly specify dependencies to the dub init command, for example dub init myproject tango derelict-gl. That's nice. But it still

Re: Throwing InvalidMemoryOperationError

2015-06-04 Thread Adam D. Ruppe via Digitalmars-d
If int 3 doesn't work for some reason btw, you could always just deliberately write to a null pointer and trigger a segfault in the overridden function, would have the same result in the debugger. I feel like this onError thing is meant to be overridable by importing core.exception too, but

  1   2   3   >