[Issue 15382] std.uri has an incorrect set of reserved characters

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15382 Eugene Wissner changed: What|Removed |Added CC||be...@caraus.de ---

Re: How about use Gc as a big memory pool?

2016-04-07 Thread Olivier Pisano via Digitalmars-d-learn
On Friday, 8 April 2016 at 03:27:04 UTC, Dsby wrote: when the soft start, call GC.disable(). use "new " create a class , struct or a array. and use destory(T/void *) to call the ~this(), then GC.free to free the memory, and use RAII in class or Struct. And user the Timer, or in some where to

Re: Any usable SIMD implementation?

2016-04-07 Thread Walter Bright via Digitalmars-d
On 4/7/2016 3:15 AM, Johannes Pfau wrote: The problem is that march=x can set more than one feature flag. So instead of gdc -march=armv7-a you have to do gdc -march=armv7-a -fversion=ARM_FEATURE_CRC32 -fversion=ARM_FEATURE_UNALIGNED ... Sou have to know exactly which features are supported for

Re: Any usable SIMD implementation?

2016-04-07 Thread Walter Bright via Digitalmars-d
On 4/7/2016 5:27 PM, Manu via Digitalmars-d wrote: You'll have noticed that C++ interaction is my recent focus, since that's directly related to my current day-job, and the path that I need to solve now to get D into my work. We recognize C++ interoperability to be a key feature of D. I hope

What is the state of Microcontroller support in d?

2016-04-07 Thread Taylor Hillegeist via Digitalmars-d
So, for me one of the greatest things about d is that it is compiled to machine language. But It makes me sad that this strength doesn't seem to be available in one of the most obvious places. There are some projects: minilibd: https://bitbucket.org/timosi/minlibd The example code is still

How about use Gc as a big memory pool?

2016-04-07 Thread Dsby via Digitalmars-d-learn
when the soft start, call GC.disable(). use "new " create a class , struct or a array. and use destory(T/void *) to call the ~this(), then GC.free to free the memory, and use RAII in class or Struct. And user the Timer, or in some where to call : GC.enable(), GC.collect(), GC.disable(); In

Re: is std.algorithm.joiner lazy?

2016-04-07 Thread Puming via Digitalmars-d-learn
On Friday, 8 April 2016 at 02:49:01 UTC, Jonathan M Davis wrote: [...] Thanks. I'll adopt this idiom. Hopefully it gets used often enough to warrent a phobos function :-)

Re: @nogc inconsistent for array comparison depending on mutability of elements

2016-04-07 Thread Xinok via Digitalmars-d-learn
On Friday, 8 April 2016 at 01:36:18 UTC, rcorre wrote: @nogc unittest { int[2] a = [1, 2]; assert(a == [1, 2]); // OK immutable(int)[2] b = [1, 2]; assert(b == [1, 2]); // fail: array literal may cause allocation } Is there any logic behind allowing the comparison with `a`

Re: Unexpected Crash

2016-04-07 Thread default0 via Digitalmars-d-learn
On Thursday, 7 April 2016 at 21:22:19 UTC, Ali Çehreli wrote: On 04/07/2016 01:49 PM, default0 wrote: On Thursday, 7 April 2016 at 20:47:35 UTC, Adam D. Ruppe wrote: On Thursday, 7 April 2016 at 20:42:17 UTC, default0 wrote: If I enter "5,5,5" on the commandline, hit enter, then enter "5,5,5"

Re: is std.algorithm.joiner lazy?

2016-04-07 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, April 08, 2016 02:01:07 Puming via Digitalmars-d-learn wrote: > So what you mean is to read the front in constructor, and read > further parts in the popFront()? that way multiple access to the > front won't hurt anything. I think it might work, I'll change my > code. > > So the

Re: how to parse a string into a phobos datatype with additional logic

2016-04-07 Thread Puming via Digitalmars-d-learn
On Thursday, 7 April 2016 at 11:07:35 UTC, Marc Schütz wrote: On Thursday, 7 April 2016 at 08:06:03 UTC, Puming wrote: On Thursday, 7 April 2016 at 07:45:06 UTC, yawniek wrote: what is the way one is supposed to parse e.g. a double of unixtime (as delived by nginx logs) into a SysTime?

Re: Building DWT

2016-04-07 Thread chrisalex via Digitalmars-d-dwt
The same thing happens with GtkD

Re: is std.algorithm.joiner lazy?

2016-04-07 Thread Puming via Digitalmars-d-learn
On Friday, 8 April 2016 at 01:14:11 UTC, Jonathan M Davis wrote: [...] Well, given your example, I would strongly argue that you should write a range that calls read in its constructor and in popFront rather (so that calling front multiple times doesn't matter) rather than using map. While

Re: is std.algorithm.joiner lazy?

2016-04-07 Thread Puming via Digitalmars-d-learn
On Friday, 8 April 2016 at 01:14:11 UTC, Jonathan M Davis wrote: [...] Lazy means that it's not going to consume the entire range when you call the function. Rather, it's going to return a range that you can iterate over. It may or may not process the first element before returning,

@nogc inconsistent for array comparison depending on mutability of elements

2016-04-07 Thread rcorre via Digitalmars-d-learn
@nogc unittest { int[2] a = [1, 2]; assert(a == [1, 2]); // OK immutable(int)[2] b = [1, 2]; assert(b == [1, 2]); // fail: array literal may cause allocation } Is there any logic behind allowing the comparison with `a` but not `b`, or is this a compiler bug?

[Issue 15890] IFTI for static array argument length when element type supplied

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15890 r...@rcorre.net changed: What|Removed |Added CC||r...@rcorre.net --

[Issue 15894] Allow setting of rt_trapExceptions from module c'tors

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15894 Marenz changed: What|Removed |Added See Also|

Re: is std.algorithm.joiner lazy?

2016-04-07 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, April 08, 2016 00:30:05 Puming via Digitalmars-d-learn wrote: > On Thursday, 7 April 2016 at 18:15:07 UTC, Jonathan M Davis wrote: > > On Thursday, April 07, 2016 08:47:15 Puming via > > > > Digitalmars-d-learn wrote: > >> On Thursday, 7 April 2016 at 08:27:23 UTC, Edwin van Leeuwen >

Re: The day before DConf 2016

2016-04-07 Thread Mike Parker via Digitalmars-d
Alrighty, then. Plenty of people around so I'm confident I won't be lonely. I suppose I'll get a little bit of sightseeing in during the a.m. and early afternoon then make for the lobby after. I at least want to get to Potsdamer Platz and visit some of the touristy spots around there. On

Re: is std.algorithm.joiner lazy?

2016-04-07 Thread Puming via Digitalmars-d-learn
On Thursday, 7 April 2016 at 18:15:07 UTC, Jonathan M Davis wrote: On Thursday, April 07, 2016 08:47:15 Puming via Digitalmars-d-learn wrote: On Thursday, 7 April 2016 at 08:27:23 UTC, Edwin van Leeuwen wrote: > On Thursday, 7 April 2016 at 08:17:38 UTC, Puming wrote: >> On Thursday, 7 April

Re: Any usable SIMD implementation?

2016-04-07 Thread Walter Bright via Digitalmars-d
On 4/7/2016 3:52 AM, Kai Nacke wrote: On Thursday, 7 April 2016 at 03:27:31 UTC, Walter Bright wrote: Then, void app(int simd)() { ... my fabulous app ... } int main() { auto fpu = core.cpuid.getfpu(); switch (fpu) { case SIMD: app!(SIMD)(); break; case

Re: Any usable SIMD implementation?

2016-04-07 Thread Manu via Digitalmars-d
On 7 April 2016 at 13:27, Walter Bright via Digitalmars-d wrote: > On 4/6/2016 7:43 PM, Manu via Digitalmars-d wrote: >>> >>> 1. This has been characterized as a blocker, it is not, as it does not >>> impede writing code that takes advantage of various SIMD code

Re: __traits(compiles) and template instantiation

2016-04-07 Thread jkpl via Digitalmars-d-learn
On Thursday, 7 April 2016 at 21:36:37 UTC, Alex Parrill wrote: On Thursday, 7 April 2016 at 20:31:12 UTC, jmh530 wrote: I've been playing around with __traits and I find myself confused on one aspect. In the code below, I was testing whether some templates would compile given types. For the

Re: DConf 2016 registrations have now hit 128!

2016-04-07 Thread Walter Bright via Digitalmars-d-announce
132 today!

Re: The day before DConf 2016

2016-04-07 Thread Walter Bright via Digitalmars-d
On 4/7/2016 11:13 AM, Mike Parker wrote: I'm flying in to Berlin late on May 2nd. I'll be staying at the Hotel Ibis, slated to be the "unofficial hangout place" according to the DConf site. I'm curious who else will be in the area on the 3rd. I'm usually an explorer when I visit a city for the

Re: __traits(compiles) and template instantiation

2016-04-07 Thread Alex Parrill via Digitalmars-d-learn
On Thursday, 7 April 2016 at 20:31:12 UTC, jmh530 wrote: I've been playing around with __traits and I find myself confused on one aspect. In the code below, I was testing whether some templates would compile given types. For the most part it works as I would expect. I think I get why the

Re: Unexpected Crash

2016-04-07 Thread Ali Çehreli via Digitalmars-d-learn
On 04/07/2016 01:49 PM, default0 wrote: On Thursday, 7 April 2016 at 20:47:35 UTC, Adam D. Ruppe wrote: On Thursday, 7 April 2016 at 20:42:17 UTC, default0 wrote: If I enter "5,5,5" on the commandline, hit enter, then enter "5,5,5" When you hit enter, that puts a \n character in the buffer.

Re: The day before DConf 2016

2016-04-07 Thread Timon Gehr via Digitalmars-d
On 07.04.2016 22:17, Nordlöw wrote: On Thursday, 7 April 2016 at 18:13:16 UTC, Mike Parker wrote: I'm flying in to Berlin late on May 2nd. I'll be staying at the Hotel Ibis, slated to be the "unofficial hangout place" according to the DConf site. I'm curious who else will be in the area on the

Re: The day before DConf 2016

2016-04-07 Thread Mathias Lang via Digitalmars-d
2016-04-07 22:17 GMT+02:00 Nordlöw via Digitalmars-d < digitalmars-d@puremagic.com>: > Is > > Paul-Lincke-Ufer 39-40, 10999 Berlin, Tyskland > > the correct adress? > Nope. The conference will be held on Karl-Marx Str. 141 ( http://dconf.org/2016/venue.html).

Re: Unexpected Crash

2016-04-07 Thread default0 via Digitalmars-d-learn
On Thursday, 7 April 2016 at 20:47:35 UTC, Adam D. Ruppe wrote: On Thursday, 7 April 2016 at 20:42:17 UTC, default0 wrote: If I enter "5,5,5" on the commandline, hit enter, then enter "5,5,5" When you hit enter, that puts a \n character in the buffer. readf doesn't skip that automatically,

Re: Get VTable pointer as a constant

2016-04-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 7 April 2016 at 20:43:04 UTC, Johan Engelen wrote: Does anybody know how to get the class's vtable pointer without doing a memory read? I don't think you can... why do you want it though?

Re: Unexpected Crash

2016-04-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 7 April 2016 at 20:42:17 UTC, default0 wrote: If I enter "5,5,5" on the commandline, hit enter, then enter "5,5,5" When you hit enter, that puts a \n character in the buffer. readf doesn't skip that automatically, so it complains upon hitting that newline (the error message

Get VTable pointer as a constant

2016-04-07 Thread Johan Engelen via Digitalmars-d-learn
I am trying to get the vtable pointer as a constant (!). I've found auto vptr = typeid(A).vtbl.ptr gets me the pointer, but because TypeInfo is not immutable (another forum thread), this will read the pointer from memory instead of loading a direct value. Does anybody know how to get the

Unexpected Crash

2016-04-07 Thread default0 via Digitalmars-d-learn
Consider the following program: import std.stdio; void main(string[] args) { int a, b, c; while(true) { readf("%d,%d,%d", , , ); writeln(a, b, c); } } If I enter "5,5,5" on the commandline, hit enter, then enter "5,5,5" a second time, hit enter again, the second

__traits(compiles) and template instantiation

2016-04-07 Thread jmh530 via Digitalmars-d-learn
I've been playing around with __traits and I find myself confused on one aspect. In the code below, I was testing whether some templates would compile given types. For the most part it works as I would expect. I think I get why the third one works with foo!(int). My guess is that it assumed

Re: I want this so badly, please implement

2016-04-07 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 7 April 2016 at 19:25:57 UTC, Steven Schveighoffer wrote: I hear you. I'm actually fervently on the side of having a seg fault printout of some kind (an exception may not be the best choice because with a seg fault, you can't trust the stack). Aye. I'm personally a bit lukewarm

Re: I want this so badly, please implement

2016-04-07 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 7 April 2016 at 16:22:17 UTC, Daniel Murphy wrote: you'll need to copy elems to temps when they're used multiple times to avoid the multiple-references asserts/ICEs. Well, I copied the elemns using el_same and it all compiles, but I realize this calls module.__array, which is a

Re: The day before DConf 2016

2016-04-07 Thread Nordlöw via Digitalmars-d
On Thursday, 7 April 2016 at 18:13:16 UTC, Mike Parker wrote: I'm flying in to Berlin late on May 2nd. I'll be staying at the Hotel Ibis, slated to be the "unofficial hangout place" according to the DConf site. I'm curious who else will be in the area on the 3rd. I'm usually an explorer when I

[Issue 15886] Add an uncaught exception handler

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15886 --- Comment #5 from Vladimir Panteleev --- Well, yes, exception objects often contain information about the error which otherwise can be difficult to obtain directly from the debugger, such as the error message (obviously),

[Issue 15886] Add an uncaught exception handler

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15886 --- Comment #4 from Marenz --- >It's very difficult to print the exception object from within abort()'s stack >frame, because the exception object may be optimized out and not easily >available from the debugger. Hm

[Issue 15886] Add an uncaught exception handler

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15886 --- Comment #3 from Vladimir Panteleev --- (In reply to Marenz from comment #1) > > Currently, rt.dwarfeh calls terminate(__LINE__) which calls abort() > > If abort() is called that will — outside of a debugger — create a

[Issue 15895] New: Make rt_trapExceptions apply to fibers as well

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15895 Issue ID: 15895 Summary: Make rt_trapExceptions apply to fibers as well Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity: enhancement

[Issue 15894] New: Allow setting of rt_trapExceptions from module c'tors

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15894 Issue ID: 15894 Summary: Allow setting of rt_trapExceptions from module c'tors Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity:

Re: I want this so badly, please implement

2016-04-07 Thread Steven Schveighoffer via Digitalmars-d
On 4/7/16 2:14 PM, Adam D. Ruppe wrote: On Thursday, 7 April 2016 at 17:55:20 UTC, Steven Schveighoffer wrote: Can't you throw a segfault in the handler? The information is still there on the stack, no? Yes, of course, I can also printf the indexes myself. But the error could also carry a bit

[Issue 15886] Add an uncaught exception handler

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15886 --- Comment #2 from Marenz --- The bigger problems I found are that you can't set rt_trapExceptions to 0 from inside your program or through environment variables / command line parameters. So you never actually have a

[Issue 15886] Add an uncaught exception handler

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15886 Marenz changed: What|Removed |Added CC|

Re: The day before DConf 2016

2016-04-07 Thread Steven Schveighoffer via Digitalmars-d
On 4/7/16 2:13 PM, Mike Parker wrote: I'm flying in to Berlin late on May 2nd. I'll be staying at the Hotel Ibis, slated to be the "unofficial hangout place" according to the DConf site. I'm curious who else will be in the area on the 3rd. I'm usually an explorer when I visit a city for the

Re: the most D-ish GUI library

2016-04-07 Thread Jacob Carlborg via Digitalmars-d
On 2016-04-07 00:18, Nick Sabalausky wrote: Last I used OSX even Apple's own programs were fairly inconsistent with each other. I guess that's changed? Not sure what you're referring to. In what ways does Qt stuff not look native on OSX? I don't have a really good example that is Qt and

Re: The day before DConf 2016

2016-04-07 Thread Jacob Carlborg via Digitalmars-d
On 2016-04-07 20:13, Mike Parker wrote: I'm flying in to Berlin late on May 2nd. I'll be staying at the Hotel Ibis, slated to be the "unofficial hangout place" according to the DConf site. I'm curious who else will be in the area on the 3rd. I'm usually an explorer when I visit a city for the

Re: how to parse a string into a phobos datatype with additional logic

2016-04-07 Thread Ali Çehreli via Digitalmars-d-learn
On 04/07/2016 11:35 AM, Ali Çehreli wrote: On 04/07/2016 11:29 AM, Jonathan M Davis via Digitalmars-d-learn wrote: On Thursday, April 07, 2016 07:45:06 yawniek via Digitalmars-d-learn wrote: what is the way one is supposed to parse e.g. a double of unixtime (as delived by nginx logs) into a

Re: how to parse a string into a phobos datatype with additional logic

2016-04-07 Thread yawniek via Digitalmars-d-learn
On Thursday, 7 April 2016 at 18:29:19 UTC, Jonathan M Davis wrote: On Thursday, April 07, 2016 07:45:06 yawniek via Digitalmars-d-learn wrote: So, while I understand your frustration, I just don't see any other sane way to approach this problem than what you've done. Putting it all in a

Re: The day before DConf 2016

2016-04-07 Thread Jonathan M Davis via Digitalmars-d
On Thursday, April 07, 2016 18:13:16 Mike Parker via Digitalmars-d wrote: > I'm flying in to Berlin late on May 2nd. I'll be staying at the > Hotel Ibis, slated to be the "unofficial hangout place" according > to the DConf site. I'm curious who else will be in the area on > the 3rd. I'm usually an

Re: how to parse a string into a phobos datatype with additional logic

2016-04-07 Thread Ali Çehreli via Digitalmars-d-learn
On 04/07/2016 11:29 AM, Jonathan M Davis via Digitalmars-d-learn wrote: On Thursday, April 07, 2016 07:45:06 yawniek via Digitalmars-d-learn wrote: what is the way one is supposed to parse e.g. a double of unixtime (as delived by nginx logs) into a SysTime? currently i'm creating a wrapper

Re: The day before DConf 2016

2016-04-07 Thread Ali Çehreli via Digitalmars-d
On 04/07/2016 11:13 AM, Mike Parker wrote: I'm flying in to Berlin late on May 2nd. I'll be staying at the Hotel Ibis, slated to be the "unofficial hangout place" according to the DConf site. I'm curious who else will be in the area on the 3rd. I'm usually an explorer when I visit a city for the

Re: how to parse a string into a phobos datatype with additional logic

2016-04-07 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, April 07, 2016 07:45:06 yawniek via Digitalmars-d-learn wrote: > what is the way one is supposed to parse e.g. a > double of unixtime (as delived by nginx logs) into a SysTime? > > currently i'm creating a wrapper struct around SysTime with alias > this as: > >

Re: Another algo for faster sorting

2016-04-07 Thread tsbockman via Digitalmars-d
On Thursday, 7 April 2016 at 13:32:43 UTC, Andrea Fontana wrote: Anyway my topic about sort optimization seems not to have a good luck if not for benchmark inaccuracy :) I was planning to respond to your original question, I just didn't have time last night... I don't think that the simple

Re: is std.algorithm.joiner lazy?

2016-04-07 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, April 07, 2016 08:47:15 Puming via Digitalmars-d-learn wrote: > On Thursday, 7 April 2016 at 08:27:23 UTC, Edwin van Leeuwen > > wrote: > > On Thursday, 7 April 2016 at 08:17:38 UTC, Puming wrote: > >> On Thursday, 7 April 2016 at 08:07:12 UTC, Edwin van Leeuwen > >> wrote: > >> > >>

Re: I want this so badly, please implement

2016-04-07 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 7 April 2016 at 17:55:20 UTC, Steven Schveighoffer wrote: Can't you throw a segfault in the handler? The information is still there on the stack, no? Yes, of course, I can also printf the indexes myself. But the error could also carry a bit more useful information by default -

The day before DConf 2016

2016-04-07 Thread Mike Parker via Digitalmars-d
I'm flying in to Berlin late on May 2nd. I'll be staying at the Hotel Ibis, slated to be the "unofficial hangout place" according to the DConf site. I'm curious who else will be in the area on the 3rd. I'm usually an explorer when I visit a city for the first time, but on this trip I'd be more

Re: I want this so badly, please implement

2016-04-07 Thread Steven Schveighoffer via Digitalmars-d
On 4/7/16 1:16 PM, Adam D. Ruppe wrote: On Thursday, 7 April 2016 at 17:03:31 UTC, Kagamin wrote: The length of data will tell you which data it is? It tells me more than ABSOLUTELY NOTHING. Between the length and the index, I can at least get an idea of if there's a broken record or broken

Re: Another algo for faster sorting

2016-04-07 Thread tsbockman via Digitalmars-d
On Thursday, 7 April 2016 at 16:23:31 UTC, Jonathan Villa wrote: ...then searching for other sorting algorithms I found SHELL-SORT, it's not recursive and it ended being even faster than Quicksort (what the heck? xd, well probably the JIT compiler). It would be cool to have a shell sort

Re: How to set padding for base64 encoding

2016-04-07 Thread ag0aep6g via Digitalmars-d-learn
On 07.04.2016 14:57, rikki cattermole wrote: Ugh, 2.070.2 definitely has it still. I have no idea when that changed I don't think """...""" ever was a thing. You could definitely put newlines in normal "..." literals since basically forever. And concatenation of adjacent "..." literals

Re: I want this so badly, please implement

2016-04-07 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 7 April 2016 at 16:22:17 UTC, Daniel Murphy wrote: If you have a patch I can probably point out the error. You're right that it should be fairly straightforward, although you'll need to copy elems to temps when they're used multiple times to avoid the multiple-references

Re: I want this so badly, please implement

2016-04-07 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 7 April 2016 at 17:03:31 UTC, Kagamin wrote: The length of data will tell you which data it is? It tells me more than ABSOLUTELY NOTHING. Between the length and the index, I can at least get an idea of if there's a broken record or broken code. Sounds like code bloat for

Re: I want this so badly, please implement

2016-04-07 Thread Kagamin via Digitalmars-d
Maybe set up onRangeError handler to create the process dump? Then you will get everything.

Re: I want this so badly, please implement

2016-04-07 Thread Kagamin via Digitalmars-d
On Thursday, 7 April 2016 at 15:35:31 UTC, Adam D. Ruppe wrote: A program dies with a RangeError. I don't know why because it doesn't tell me any useful information about the failing data. The length of data will tell you which data it is? This is quite frustrating because that information is

[Issue 14615] std.regex.replaceFirstInto throws exception when no match is found

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14615 Dmitry Olshansky changed: What|Removed |Added Severity|enhancement |major --

Re: Another algo for faster sorting

2016-04-07 Thread Jonathan Villa via Digitalmars-d
On Thursday, 7 April 2016 at 10:58:21 UTC, Dmitry Olshansky wrote: Coincidentally with another NG thread I'm curious if we can special-case our sort for strings to Three-Way Radix QuickSort which is more efficient:

Re: I want this so badly, please implement

2016-04-07 Thread Daniel Murphy via Digitalmars-d
On 8/04/2016 1:59 AM, Adam D. Ruppe wrote: (I thought this would be easy but I keep hitting dmd assert failures. However, that's probably because I'm a n00b, it probably is easy if you know the e2ir style.) If you have a patch I can probably point out the error. You're right that it should

Re: Best properly way to destroy a 2 dimensional array?

2016-04-07 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/6/16 3:54 PM, Jonathan Villa wrote: I wrote a little program that given some number it generates a list of different combinations (represented by a ubyte array), so in the end my function with name GenerateCombinations(int x) returns a ubyte[][] (list of arrays of ubytes). Now the problem

Re: Best properly way to destroy a 2 dimensional array?

2016-04-07 Thread Jonathan Villa via Digitalmars-d-learn
On Thursday, 7 April 2016 at 10:05:02 UTC, Andrea Fontana wrote: On Thursday, 7 April 2016 at 10:02:05 UTC, Andrea Fontana wrote: On Wednesday, 6 April 2016 at 20:30:33 UTC, Jonathan Villa wrote: Anything change if you wrap your code like: while ... { ... { ubyte[][] ... ...

Re: Fixed-Length Array Sorting

2016-04-07 Thread Andrei Alexandrescu via Digitalmars-d
On 04/07/2016 09:28 AM, Nordlöw wrote: On Thursday, 7 April 2016 at 13:09:22 UTC, Andrei Alexandrescu wrote: This is a good start but we'd need a more principled attack on the problem. There are optimal sorting networks for a number of small sizes; a good start is Knuth's TAoCP Volume 3 but

Re: Issue with 2.071: Regression or valid error?

2016-04-07 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/6/16 11:10 AM, Andre wrote: Hi, With 2.071 following coding does not compile anymore and somehow I feel it should compile. The issue is with line "cat.create();". Cat is a sub type of Animal. Animal "owns" method create and I want to call the method create within the class Animal for cat.

Re: I want this so badly, please implement

2016-04-07 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 7 April 2016 at 07:07:32 UTC, Nordlöw wrote: Could you please add a test-program with current and wanted behaviour? int[] a = new int[](1); a[2]; // currently throws RangeError, telling file and line of code I'd like it to throw a RangeError telling file and line of code, and

[Issue 15893] New: std.algorithm.each returns a misleading compile error

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15893 Issue ID: 15893 Summary: std.algorithm.each returns a misleading compile error Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity:

Re: Get third part of front-end version number

2016-04-07 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/5/16 2:11 PM, Johan Engelen wrote: On Tuesday, 5 April 2016 at 18:01:05 UTC, Nick Sabalausky wrote: These days, DMD/DMDFE version numbers are three parts, ex: 2.070.1. I can get the first two via std.compiler.version_major and std.compiler.version_minor. Is there a way to get the third

[Issue 14615] std.regex.replaceFirstInto throws exception when no match is found

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14615 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/add07e7ea6815bdfa6f89b12e78f76d0ecaff6fd Fix issue 14615 -

Re: I want this so badly, please implement

2016-04-07 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 7 April 2016 at 09:31:15 UTC, Kagamin wrote: How do you spend time on it? A program dies with a RangeError. I don't know why because it doesn't tell me any useful information about the failing data. This is quite frustrating because that information is available and trivial to

Re: Any usable SIMD implementation?

2016-04-07 Thread Johan Engelen via Digitalmars-d
On Thursday, 7 April 2016 at 14:46:06 UTC, Johannes Pfau wrote: Am Thu, 07 Apr 2016 13:27:05 + schrieb Johan Engelen : On Thursday, 7 April 2016 at 11:25:47 UTC, Johannes Pfau wrote: > Am Thu, 07 Apr 2016 10:52:42 + > schrieb Kai Nacke : > >> glibc has a

Re: So... let's document dmd

2016-04-07 Thread Nick Sabalausky via Digitalmars-d
On 04/05/2016 05:40 PM, Walter Bright wrote: I don't really understand why IDE makers don't use an actual programming language for plugins Programmer's Notepad 2 uses Python for plugins. Although the syntax highlighting is done through Scintilla which has it's own separate

[Issue 12625] implicit slicing of RValue static array should be illegal

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12625 --- Comment #6 from Sobirari Muhomori --- Allow sliced temporary to be passed straight to function parameter (sounds like rvalue reference though), disallow everything else? --

Re: Any usable SIMD implementation?

2016-04-07 Thread Johannes Pfau via Digitalmars-d
Am Thu, 07 Apr 2016 13:27:05 + schrieb Johan Engelen : > On Thursday, 7 April 2016 at 11:25:47 UTC, Johannes Pfau wrote: > > Am Thu, 07 Apr 2016 10:52:42 + > > schrieb Kai Nacke : > > > >> glibc has a special mechanism for resolving the called > >> function

[Issue 15892] New: Can't use alias this with struct static member

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15892 Issue ID: 15892 Summary: Can't use alias this with struct static member Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: minor

Re: New deb packages on d-apt

2016-04-07 Thread Ilya Korobitsyn via Digitalmars-d-announce
On Wednesday, 6 April 2016 at 13:06:54 UTC, Jordi Sayol wrote: d-apt has three new deb packages for Dfix, Dfmt and Dscanner. $ sudo apt-get install dfix dfmt dscanner d-apt Thank you for this!

[Issue 12625] implicit slicing of RValue static array should be illegal

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12625 Nick Treleaven changed: What|Removed |Added CC|

[Issue 15891] New: Compiler error when std.algorithm.cache and std.algorithm.joiner and map composed

2016-04-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15891 Issue ID: 15891 Summary: Compiler error when std.algorithm.cache and std.algorithm.joiner and map composed Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: VibeCustomMain not working

2016-04-07 Thread yawniek via Digitalmars-d-learn
On Thursday, 7 April 2016 at 13:40:17 UTC, Rene Zwanenburg wrote: On Thursday, 7 April 2016 at 13:25:29 UTC, Jerry wrote: I generated a visuald project and tried that. Now suddenly it is working as expected. So I guess it's a bug in dub. That's possible of course, but I'd expect something so

Re: VibeCustomMain not working

2016-04-07 Thread Rene Zwanenburg via Digitalmars-d-learn
On Thursday, 7 April 2016 at 13:40:17 UTC, Rene Zwanenburg wrote: That's possible of course, but I'd expect something so fundamental breaking to be noticed sooner. Just to make sure, could you run dub with --force to rule out that it's picking up some stale object files from somewhere? And

Re: VibeCustomMain not working

2016-04-07 Thread Rene Zwanenburg via Digitalmars-d-learn
On Thursday, 7 April 2016 at 13:25:29 UTC, Jerry wrote: I generated a visuald project and tried that. Now suddenly it is working as expected. So I guess it's a bug in dub. That's possible of course, but I'd expect something so fundamental breaking to be noticed sooner. Just to make sure,

Re: Another algo for faster sorting

2016-04-07 Thread Andrea Fontana via Digitalmars-d
On Thursday, 7 April 2016 at 10:58:21 UTC, Dmitry Olshansky wrote: Coincidentally with another NG thread I'm curious if we can special-case our sort for strings to Three-Way Radix QuickSort which is more efficient:

Re: VibeCustomMain not working

2016-04-07 Thread Jerry via Digitalmars-d-learn
On Thursday, 7 April 2016 at 13:17:32 UTC, Jerry wrote: On Thursday, 7 April 2016 at 13:13:14 UTC, Suliman wrote: dup upgdare dub upgdare Tried that. I have to say this is odd. I generated a visuald project and tried that. Now suddenly it is working as expected. So I guess it's a bug in

Re: Fixed-Length Array Sorting

2016-04-07 Thread Nordlöw via Digitalmars-d
On Thursday, 7 April 2016 at 13:09:22 UTC, Andrei Alexandrescu wrote: This is a good start but we'd need a more principled attack on the problem. There are optimal sorting networks for a number of small sizes; a good start is Knuth's TAoCP Volume 3 but there's newer research as well, which

Re: Any usable SIMD implementation?

2016-04-07 Thread Johan Engelen via Digitalmars-d
On Thursday, 7 April 2016 at 11:25:47 UTC, Johannes Pfau wrote: Am Thu, 07 Apr 2016 10:52:42 + schrieb Kai Nacke : glibc has a special mechanism for resolving the called function during loading. See the section on the GNU Indirect Function Mechanism here:

Re: VibeCustomMain not working

2016-04-07 Thread Suliman via Digitalmars-d-learn
dup upgdare dub upgdare

Re: VibeCustomMain not working

2016-04-07 Thread Jerry via Digitalmars-d-learn
On Thursday, 7 April 2016 at 13:13:14 UTC, Suliman wrote: dup upgdare dub upgdare Tried that. I have to say this is odd.

Re: Any usable SIMD implementation?

2016-04-07 Thread 9il via Digitalmars-d
On Thursday, 7 April 2016 at 12:35:51 UTC, jmh530 wrote: On Thursday, 7 April 2016 at 10:03:50 UTC, 9il wrote: This is not true for BLAS based on D. Perhaps if you provide him a simplified example he might see what you're talking about? He know what I am talking about. This is about

Re: VibeCustomMain not working

2016-04-07 Thread Suliman via Digitalmars-d-learn
On Thursday, 7 April 2016 at 12:01:59 UTC, Jerry wrote: Hello, I am trying to use vibe with DMD 2.67, dub and windows. But in some way the default main function is sneaking in my build system even when I'm using VibeCustomMain version. Main file: import vibe.vibe; void main() {

Re: Fixed-Length Array Sorting

2016-04-07 Thread Andrei Alexandrescu via Digitalmars-d
On 04/04/2016 05:36 AM, Nordlöw wrote: I have some C++ that does optimal sorting of 3 and 4 elements at https://github.com/nordlow/justcxx/blob/master/sortn.hpp Would anybody be interesting in getting this integrated into std.algorithm.sorting ? This is a good start but we'd need a more

Re: How to set padding for base64 encoding

2016-04-07 Thread Suliman via Digitalmars-d-learn
On Thursday, 7 April 2016 at 12:43:54 UTC, rikki cattermole wrote: On 08/04/2016 12:39 AM, Suliman wrote: On Thursday, 7 April 2016 at 12:30:59 UTC, rikki cattermole wrote: On 08/04/2016 12:19 AM, Kagamin wrote: Create a range that would remove the newline characters from string, then decode

Re: How to set padding for base64 encoding

2016-04-07 Thread rikki cattermole via Digitalmars-d-learn
On 08/04/2016 12:52 AM, ag0aep6g wrote: On 07.04.2016 13:59, rikki cattermole wrote: "abc" strings are not multiline. Use """abc""" for that purpose. Wat. We're talking about, aren't we? In D, "abc" strings are multiline, and """abc""" is not a thing. `"""abc"""` is the same as `"" "abc" ""`

  1   2   >