Visual D 0.3.43 released - better support for VS 2015

2015-11-28 Thread Rainer Schuetze via Digitalmars-d-announce
Hi, there is a new release of Visual D available at http://rainers.github.io/visuald/visuald/StartPage.html This time there is no major new feature to announce, but quite a few improvements to * VS 2015 support * building with LDC * configuration dialogs * C++ to D conversion wizard See

[Issue 15107] Win32-COFF library paths are blank

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15107 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12021] VS2012-2013 .vcxproj files don't show in the solution explorer

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12021 Rainer Schuetze changed: What|Removed |Added Status|REOPENED|RESOLVED

Re: Collections question

2015-11-28 Thread Andrei Alexandrescu via Digitalmars-d
On 11/28/15 2:26 AM, Jakob Ovrum wrote: Another thing: wouldn't providing a custom allocator require a separate primitive? All collections will work with IAllocator. -- Andrei

[Issue 12128] C++ conversion error: not parsed until the end of the file

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12128 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED

Re: Visual D 0.3.43 released - better support for VS 2015

2015-11-28 Thread Daniel N via Digitalmars-d-announce
On Saturday, 28 November 2015 at 09:14:03 UTC, Rainer Schuetze wrote: Hi, there is a new release of Visual D available at http://rainers.github.io/visuald/visuald/StartPage.html This time there is no major new feature to announce, but quite a few improvements to * VS 2015 support *

Getting GtkD to work on OSX

2015-11-28 Thread Mike McKee via Digitalmars-d-learn
I have GtkD working just fine on Ubuntu Linux. Now I'm trying to get it to work on my Mac with the same hello.d codebase and hello.glade file. (Demo here: http://stackoverflow.com/a/32535987/105539) What's the procedure to getting GtkD installed on OSX?

Re: Multithreaded HTTP Download

2015-11-28 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Saturday, 28 November 2015 at 10:46:11 UTC, tcak wrote: The only case that would make sense is if the server limits the upload speed of each TCP socket. Unless you are in this position, I do not expect to see any difference by opening multiple sockets and requesting different parts of same

[VisualD] Crashing after several build processes

2015-11-28 Thread Jack via Digitalmars-d-learn
Greetings. I've been using VS2010 with VisualD for my project and have encountered an unusual problem with it. So every once in a while, when I try to fix bugs in whatever it is I'm doing, VS2010 would freeze at "Build Started" and will go unresponsive for a couple of minutes and crash soon

Re: [VisualD] Crashing after several build processes

2015-11-28 Thread Jack via Digitalmars-d-learn
On Saturday, 28 November 2015 at 13:03:23 UTC, Jack wrote: Greetings. I've been using VS2010 with VisualD for my project and have encountered an unusual problem with it. So every once in a while, when I try to fix bugs in whatever it is I'm doing, VS2010 would freeze at "Build Started" and

Re: Getting GtkD to work on OSX

2015-11-28 Thread Gerald via Digitalmars-d-learn
On Saturday, 28 November 2015 at 10:26:58 UTC, Mike McKee wrote: I have GtkD working just fine on Ubuntu Linux. Now I'm trying to get it to work on my Mac with the same hello.d codebase and hello.glade file. (Demo here: http://stackoverflow.com/a/32535987/105539) What's the procedure to

Re: Drawing Native OSX Windows with D

2015-11-28 Thread Jacob Carlborg via Digitalmars-d-learn
On 2015-11-28 11:40, Mike McKee wrote: Does anyone have a demo that shows how I can call the native OSX API to draw a basic window that's minimizable and can be closed? I was thinking of making an installer for the Mac, you see. So for instance, people would download a very thin .app file and

Drawing Native OSX Windows with D

2015-11-28 Thread Mike McKee via Digitalmars-d-learn
Does anyone have a demo that shows how I can call the native OSX API to draw a basic window that's minimizable and can be closed? I was thinking of making an installer for the Mac, you see. So for instance, people would download a very thin .app file and run that. Because it only uses native

Re: [Dtiled] Unfamiliar terms and trouble using it for Dgame

2015-11-28 Thread Namespace via Digitalmars-d-learn
Well to start, I just copied the code for loading the map and tried to build it, substituting the variables like Rect and others. Then it went crazy all of a sudden: http://dpaste.com/2D59A2B The whole thing went mad, and I was sure I had my imports correct: import dtiled.data; import

Re: Collections question

2015-11-28 Thread Tobias Pankrath via Digitalmars-d
On Friday, 27 November 2015 at 20:14:21 UTC, Andrei Alexandrescu wrote: There's this oddity of built-in hash tables: a reference to a non-empty hash table can be copied and then both references refer to the same hash table object. However, if the hash table is null, copying the reference won't

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-11-27 17:52, Guillaume Piolat wrote: Not sure what do you mean. Personally I would only support 10.7+. Past 10.7, you can use any (provided you avoid TLS). Currently I use LDC for 64-bit, DMD for 32-bit, also because LDC used to have a bug in 32-bit codegen (fixed since then). Ok.

Re: Here's looking at you, kid

2015-11-28 Thread Timon Gehr via Digitalmars-d
On 11/23/2015 11:03 PM, Chris wrote: ... Do not watch this, if you identify with any of the following languages: C, C++, Perl, Java, Scala, JavaScript, Go, Rust, bash, Python (2 and 3), Ruby, PHP, Mathematica, C#, Prolog, Lisp http://bjorn.tipling.com/if-programming-languages-were-weapons

Re: Collections question

2015-11-28 Thread Andrei Alexandrescu via Digitalmars-d
On 11/28/15 1:59 AM, bitwise wrote: Classes/real-ref-types dont act as you're describing, so why should these fake struct wrapper ref things act this way? This will likely achieve the exact opposite of what you're aiming for, by making something that's supposed to act like a reference type have

Re: I hate new DUB config format

2015-11-28 Thread krzaq via Digitalmars-d
On Wednesday, 25 November 2015 at 10:17:02 UTC, Suliman wrote: I think that using SDL format was big mistake. Not only I do not want to spend time in learning yet another dead config format that now use only one project -- DUB. In time when DUB used json it was not perfect, but at last it was

Re: Collections question

2015-11-28 Thread default0 via Digitalmars-d
On Friday, 27 November 2015 at 20:14:21 UTC, Andrei Alexandrescu wrote: There's this oddity of built-in hash tables: a reference to a non-empty hash table can be copied and then both references refer to the same hash table object. However, if the hash table is null, copying the reference won't

Re: Multithreaded HTTP Download

2015-11-28 Thread tcak via Digitalmars-d-learn
On Saturday, 28 November 2015 at 07:05:55 UTC, Mike McKee wrote: Hey guys, as it turns out, someone on stackoverflow.com pointed out in a Perl version of this question that the Bash example that was given is really buggy and doesn't make sense. They say that trying to download a single file

Re: [Dtiled] Unfamiliar terms and trouble using it for Dgame

2015-11-28 Thread Jack via Digitalmars-d-learn
On Saturday, 28 November 2015 at 11:03:37 UTC, Namespace wrote: Well to start, I just copied the code for loading the map and tried to build it, substituting the variables like Rect and others. Then it went crazy all of a sudden: http://dpaste.com/2D59A2B The whole thing went mad, and I was

Re: Drawing Native OSX Windows with D

2015-11-28 Thread Guillaume Piolat via Digitalmars-d-learn
On Saturday, 28 November 2015 at 10:40:19 UTC, Mike McKee wrote: Does anyone have a demo that shows how I can call the native OSX API to draw a basic window that's minimizable and can be closed? I was thinking of making an installer for the Mac, you see. So for instance, people would

[Issue 14873] Build fails with message 'cannot create PDB file'

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14873 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15024] Wrong keyword color for Visual Studio Dark theme

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15024 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15345] Assembler highlighting done wrong

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15345 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread Guillaume Piolat via Digitalmars-d-announce
On Saturday, 28 November 2015 at 02:37:40 UTC, Marco Leise wrote: We can probably agree that we don't know about the impact on a large multimedia application written in D. What you can communicate is: Create a @nogc thread routine and don't register it with the GC to write real-time VSTs.

Re: Collections question

2015-11-28 Thread Timon Gehr via Digitalmars-d
On 11/27/2015 09:14 PM, Andrei Alexandrescu wrote: There's this oddity of built-in hash tables: a reference to a non-empty hash table can be copied and then both references refer to the same hash table object. However, if the hash table is null, copying the reference won't track the same object

Re: Collections question

2015-11-28 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 27 November 2015 at 20:14:21 UTC, Andrei Alexandrescu wrote: 1. Factory function: 2. The opCall trick: 1. Factory Shouldn't opCall be used when you want something to (only) behave as a function? E.g. functors.

Re: Collections question

2015-11-28 Thread Dicebot via Digitalmars-d
Factory please. Static opCall has always been nothing but trouble in my experience.

[Issue 14524] Right clicking in solution explorer to add folders does not work as expected

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14524 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED

Re: Is D ready for quants?

2015-11-28 Thread Saurabh Das via Digitalmars-d
On Friday, 27 November 2015 at 23:26:27 UTC, karabuta wrote: This question came into mind when I read this http://www.makeuseof.com/answers/which-programming-language-is-used-to-build-a-financial-trading-platform/ D is awesome for HFT. I work in a small Quant + HFT firm (6 people) and we

[Issue 14866] Unable to find universal runtime static libraries on windows 10 and VS 2015

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14866 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED

Re: Multithreaded HTTP Download

2015-11-28 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Saturday, 28 November 2015 at 06:40:49 UTC, Mike McKee wrote: How could I achieve something like that in D? (Note, I'm using OSX.) I did it with vibe.d and http byte ranges. In general I'm trying to see if I can make a command line zip file downloader that downloads faster than Curl for

[Issue 14956] C++ Mangling incompatible with C++11

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14956 --- Comment #7 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/574542fe2cf83dc32ce59fd82631184de91ef2a5 Merge pull request #5262

[Issue 11595] __traits(allMembers, packageName) behaves oddly.

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11595 blm...@gmail.com changed: What|Removed |Added CC||blm...@gmail.com --- Comment #2 from

[Issue 15369] [REG master] id.d(369): Error: Outside Unicode code space

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15369 --- Comment #4 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/f13d425262073764f5389cc3717b4faf20c18058 fix Issue 15369 -

Re: Retrieving call expression of a function

2015-11-28 Thread Quentin Ladeveze via Digitalmars-d-learn
On Saturday, 28 November 2015 at 15:22:51 UTC, tcak wrote: On Saturday, 28 November 2015 at 15:02:32 UTC, Quentin Ladeveze wrote: Hi, Is it possible to retrieve the calling expression of a function ? Something like that --- import std.stdio; void funcTest(int x, float y) {

Re: Retrieving call expression of a function

2015-11-28 Thread tcak via Digitalmars-d-learn
On Saturday, 28 November 2015 at 15:41:59 UTC, Quentin Ladeveze wrote: On Saturday, 28 November 2015 at 15:22:51 UTC, tcak wrote: On Saturday, 28 November 2015 at 15:02:32 UTC, Quentin Ladeveze wrote: Hi, Is it possible to retrieve the calling expression of a function ? Something like that

Re: I hate new DUB config format

2015-11-28 Thread BLM768 via Digitalmars-d
On Friday, 27 November 2015 at 19:29:48 UTC, Jacob Carlborg wrote: Just throwing it out there: CSON [1]. "CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects". It's used by the Atom editor. [1] https://github.com/bevry/cson Hmm. Pretty, standardized, similar to JSON. I

Re: Can't understand how to do server response with vibed

2015-11-28 Thread Suliman via Digitalmars-d-learn
And the second question. Why I am getting next error after attempt to write to console JSON request: Error: cannot resolve type for res.writeJsonBody(T)(T data int status = HTTPStatus.OK, string content_type = "application/json; charset=UF-8", bool allow_chunked = false) void

Re: Multidimensional AA question

2015-11-28 Thread André via Digitalmars-d-learn
On Friday, 27 November 2015 at 08:53:18 UTC, Jack Applegame wrote: On Thursday, 26 November 2015 at 17:27:34 UTC, André wrote: My question now is: is there some more elegant solution to achieve this? Something like in C++ when you have std::map's of std::map's and just access the elements and

Beta D 2.069.2-b1

2015-11-28 Thread Martin Nowak via Digitalmars-d-announce
First beta for the 2.069.2 point release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.2.html Please report any bugs at https://issues.dlang.org -Martin

Re: I hate new DUB config format

2015-11-28 Thread Kagamin via Digitalmars-d
On Friday, 27 November 2015 at 19:42:43 UTC, Chris wrote: I'm sure that we would have a similar discussion, if we had YAML, XML, TOML or whatever. It doesn't really matter. But what does matter is that we use a well known standardized format. Then XML is clear winner, its support, spread,

Formatting dates

2015-11-28 Thread Chris Wright via Digitalmars-d-learn
Is there a way to format a DateTime struct similar to strftime(3)? None is documented, and none is immediately obvious in the source code. Or is the recommended way to convert a DateTime to a Unix timestamp and then use strftime?

Re: Collections question

2015-11-28 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 28 November 2015 at 18:38:37 UTC, Kagamin wrote: Well... doesn't work: http://dpaste.dzfl.pl/2c69cc3584b8 I don't understand... of course you can't call what is returned by makeEmpty.

Can't understand how to do server response with vibed

2015-11-28 Thread Suliman via Digitalmars-d-learn
Could anybody help me to understand how to complete HTTP response with vibed. I am sending POST request from AngularJS: $.post("http://127.0.0.1:8080/my;, total_result); where total_result is JSON string: [{"QID":3,"AID":3}, {"SubAID":[4]}, {"MinArea":"10","MaxArea":"90"}] Handler is look

Re: Collections question

2015-11-28 Thread Kagamin via Digitalmars-d
On Saturday, 28 November 2015 at 06:26:03 UTC, Jakob Ovrum wrote: On Friday, 27 November 2015 at 20:25:12 UTC, Adam D. Ruppe wrote: That syntax is the same as constructors... if that's what you want it to look like, we ought to actually use a constructor for all but the zero-argument ones

Re: New __traits

2015-11-28 Thread BLM768 via Digitalmars-d
On Thursday, 26 November 2015 at 23:16:59 UTC, BLM768 wrote: [snip] It lists a bunch of symbols that most certainly _aren't_ direct ancestors of the "std" package: "object", "core", "std", "KeepTerminator", "GCC_IO", "HAS_GETDELIM", "FSChar", and a bunch of others. That's a bug, right?

Re: Retrieving call expression of a function

2015-11-28 Thread tcak via Digitalmars-d-learn
On Saturday, 28 November 2015 at 15:02:32 UTC, Quentin Ladeveze wrote: Hi, Is it possible to retrieve the calling expression of a function ? Something like that --- import std.stdio; void funcTest(int x, float y) { writefln(get_call()); } void main() { float x = 0.2; funcTest(1+2,

Re: Collections question

2015-11-28 Thread Jonathan M Davis via Digitalmars-d
On Saturday, 28 November 2015 at 12:20:36 UTC, Timon Gehr wrote: 3. (Non-internal) factory function: auto c1 = myCollection(1,2,3); auto c2 = myCollection!int(); auto c3 = c2; // refers to the same collection as c2 Yeah. In general, I prefer that approach. It's what we currently do with

Re: Beta D 2.069.2-b1

2015-11-28 Thread Martin Nowak via Digitalmars-d-announce
On Saturday, 28 November 2015 at 21:37:35 UTC IMO, this should not be released until https://issues.dlang.org/show_bug.cgi?id=15281 is fixed. It's a very obvious and embarrassing bug. Yes, but someone has to do it. It's really trivial to extend the Windows makefiles accordingly, but I never

Re: Can't understand how to do server response with vibed

2015-11-28 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Saturday, 28 November 2015 at 19:05:59 UTC, Suliman wrote: And also I can't understand difference between HTTPClientRequest and HTTPServerRequest If the application (vibe.d) makes a request, it is the client. If the request is made to your application, it is the server. In your case your

Re: Can't understand how to do server response with vibed

2015-11-28 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Saturday, 28 November 2015 at 19:10:17 UTC, Suliman wrote: void action(HTTPServerRequest req, HTTPServerResponse res) { } Here is function what have two call-backs. When it's get request it's work as server, when it's send response it's work like client or I have wrong logic? Wrong

Re: Can't understand how to do server response with vibed

2015-11-28 Thread Suliman via Digitalmars-d-learn
On Saturday, 28 November 2015 at 18:46:05 UTC, Suliman wrote: And the second question. Why I am getting next error after attempt to write to console JSON request: Error: cannot resolve type for res.writeJsonBody(T)(T data int status = HTTPStatus.OK, string content_type = "application/json;

Re: Multidimensional AA question

2015-11-28 Thread André via Digitalmars-d-learn
On Friday, 27 November 2015 at 04:21:41 UTC, Nicholas Wilson wrote: AA are weird in that AFAIK you need to "initialise" them before you try to look suff up in them else they crash. i.e. int[string] foo; // auto e = "1" in foo; // crash AA not initialised foo[ "blah"] = 0; foo.remove("blah");

Re: Retrieving call expression of a function

2015-11-28 Thread Quentin Ladeveze via Digitalmars-d-learn
On Saturday, 28 November 2015 at 17:19:40 UTC, tcak wrote: On Saturday, 28 November 2015 at 15:41:59 UTC, Quentin Ladeveze wrote: [...] mixin template could solve this problem as well I guess. It would, instead of calling a function, directly inject the code into where you call it. So,

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread Warwick via Digitalmars-d-announce
On Saturday, 28 November 2015 at 11:35:56 UTC, Guillaume Piolat wrote: On Saturday, 28 November 2015 at 02:37:40 UTC, Marco Leise wrote: We can probably agree that we don't know about the impact on a large multimedia application written in D. What you can communicate is: Create a @nogc thread

[Issue 15352] template arguments matching error with delegates

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15352 --- 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/d8eb30c8da082cb7533a95c3930be46f818edadf fix Issue 15352 - template

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread deadalnix via Digitalmars-d-announce
On Friday, 27 November 2015 at 18:09:08 UTC, Adam D. Ruppe wrote: On Friday, 27 November 2015 at 17:12:05 UTC, Jonny wrote: On Thursday, 26 November 2015 at 15:48:48 UTC, Guillaume Piolat I don't really have a point to prove, but I'm really tired with people arguing that a language with GC

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 28 November 2015 at 21:30:38 UTC, Ola Fosheim Grøstad wrote: What is the better tool to bring to the top of a mountain? Only maniacs go down mountains. The fun part is the ascent... the descent is an exceedingly painful journey through the ultimate experience in grueling terror,

Re: Beta D 2.069.2-b1

2015-11-28 Thread Jack Stouffer via Digitalmars-d-announce
On Saturday, 28 November 2015 at 17:17:59 UTC, Martin Nowak wrote: First beta for the 2.069.2 point release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.2.html Please report any bugs at https://issues.dlang.org -Martin IMO, this should not be released until

Re: Can't understand how to do server response with vibed

2015-11-28 Thread Suliman via Digitalmars-d-learn
And also I can't understand difference between HTTPClientRequest and HTTPServerRequest For example if I am getting request from web-browser what I should use? And why?

Re: Can't understand how to do server response with vibed

2015-11-28 Thread Suliman via Digitalmars-d-learn
void action(HTTPServerRequest req, HTTPServerResponse res) { } Here is function what have two call-backs. When it's get request it's work as server, when it's send response it's work like client or I have wrong logic?

Re: Formatting dates

2015-11-28 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, November 28, 2015 18:10:49 Chris Wright via Digitalmars-d-learn wrote: > Is there a way to format a DateTime struct similar to strftime(3)? None > is documented, and none is immediately obvious in the source code. > > Or is the recommended way to convert a DateTime to a Unix

Re: Can't understand how to do server response with vibed

2015-11-28 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Saturday, 28 November 2015 at 18:51:57 UTC, Suliman wrote: Eghm, sorry. Not req, but res, but again errr: void action(HTTPServerRequest req, HTTPServerResponse res) { writeln(req.writeJsonBody); } What you want is `req.json`. Make sure that the call from angular sets the Content-Type

Re: Collections question

2015-11-28 Thread Kagamin via Digitalmars-d
On Saturday, 28 November 2015 at 18:43:33 UTC, Adam D. Ruppe wrote: On Saturday, 28 November 2015 at 18:38:37 UTC, Kagamin wrote: Well... doesn't work: http://dpaste.dzfl.pl/2c69cc3584b8 I don't understand... of course you can't call what is returned by makeEmpty. Recently someone

Re: Can't understand how to do server response with vibed

2015-11-28 Thread Suliman via Digitalmars-d-learn
On Saturday, 28 November 2015 at 18:57:53 UTC, anonymous wrote: On 28.11.2015 19:51, Suliman wrote: Eghm, sorry. Not req, but res, but again errr: void action(HTTPServerRequest req, HTTPServerResponse res) { writeln(req.writeJsonBody); } Error: no property 'writeJsonBody' for type

Re: Can't understand how to do server response with vibed

2015-11-28 Thread anonymous via Digitalmars-d-learn
On 28.11.2015 19:51, Suliman wrote: Eghm, sorry. Not req, but res, but again errr: void action(HTTPServerRequest req, HTTPServerResponse res) { writeln(req.writeJsonBody); } Error: no property 'writeJsonBody' for type 'vibe.http.server.HTTPServerRequest' But this method are present in

Re: Can't understand how to do server response with vibed

2015-11-28 Thread anonymous via Digitalmars-d-learn
On 28.11.2015 19:46, Suliman wrote: And the second question. Why I am getting next error after attempt to write to console JSON request: Error: cannot resolve type for res.writeJsonBody(T)(T data int status = HTTPStatus.OK, string content_type = "application/json; charset=UF-8", bool

[Issue 15385] New: Apply Andersson91 idea to SortedRange.contains

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15385 Issue ID: 15385 Summary: Apply Andersson91 idea to SortedRange.contains Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread deadalnix via Digitalmars-d-announce
On Saturday, 28 November 2015 at 20:27:02 UTC, Warwick wrote: Just to play devils advocate... you haven't proved GC can do real time if you achieve it by quarantining the real time code from the GC. Well I think it is a fair thing to do. GC is a tradeoff, and while not usable in all

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 28 November 2015 at 20:27:02 UTC, Warwick wrote: It's kind of like saying you can climb a mountain on a bycicle if you get of an carry it on the bits that are too steep. *snip* The real story is how easy D makes it to achieve that. Indeed... the beauty of a bike is you can get

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Saturday, 28 November 2015 at 21:05:24 UTC, Adam D. Ruppe wrote: On Saturday, 28 November 2015 at 20:27:02 UTC, Warwick wrote: It's kind of like saying you can climb a mountain on a bycicle if you get of an carry it on the bits that are too steep. *snip* The real story is how easy D makes

Re: I hate new DUB config format

2015-11-28 Thread BLM768 via Digitalmars-d
On Saturday, 28 November 2015 at 18:13:51 UTC, Kagamin wrote: Then XML is clear winner, its support, spread, availability and tooling is unmatched. So is its complexity. ;) Do we even have a good standard XML parser? std.xml has been languishing for years...

Re: I hate new DUB config format

2015-11-28 Thread Poyeyo via Digitalmars-d
On Wednesday, 25 November 2015 at 19:05:15 UTC, Walter Bright wrote: The main problem with SDL is it's name. It's not an overly popular project - it doesn't even have an article in Wikipedia. That alone is not a problem - if we had something against non-mainstream project we wouldn't be using

Efficient binary search using two-way comparisons

2015-11-28 Thread Andrei Alexandrescu via Digitalmars-d
While reading Okasaki's bool on persistent data structures, I found (page 14) a reference to a nice idea applicable to binary search using D's two-way "less than" comparisons. https://issues.dlang.org/show_bug.cgi?id=15385 Any takers? Andrei

Re: I hate new DUB config format

2015-11-28 Thread Kagamin via Digitalmars-d
On Saturday, 28 November 2015 at 21:49:07 UTC, BLM768 wrote: Do we even have a good standard XML parser? std.xml has been languishing for years... AFAIK, good json parser is still in a review queue together with std.xml2 :)

taskPool.reduce() help

2015-11-28 Thread Ish via Digitalmars-d-learn
The following code does not compile (with gdc) but if the line containing taskPool.reduce is reduce it does compile. Any pointers will be appreciated. import std.stdio; import std.math; import std.algorithm; import std.parallelism; // does not work!! import core.thread; double

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Saturday, 28 November 2015 at 21:39:06 UTC, Adam D. Ruppe wrote: On Saturday, 28 November 2015 at 21:30:38 UTC, Ola Fosheim Grøstad wrote: What is the better tool to bring to the top of a mountain? Only maniacs go down mountains. The fun part is the ascent... the descent is an exceedingly

Re: taskPool.reduce() help

2015-11-28 Thread Ali Çehreli via Digitalmars-d-learn
On 11/28/2015 01:57 PM, Ish wrote: The following code does not compile (with gdc) but if the line containing taskPool.reduce is reduce it does compile. Any pointers will be appreciated. import std.stdio; import std.math; import std.algorithm; import std.parallelism; // does not work!! import

[Issue 13533] std.datetime should support custom parsing and formatting functions

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13533 Chris Wright changed: What|Removed |Added CC||dhase...@gmail.com --

Re: I hate new DUB config format

2015-11-28 Thread UserAbcabc123 via Digitalmars-d
On Saturday, 28 November 2015 at 22:00:32 UTC, Poyeyo wrote: Dubconf seems to me a good replacement name for the format. Hilarous, I guess you didn't read the topic at all...

Re: I hate new DUB config format

2015-11-28 Thread rsw0x via Digitalmars-d
On Saturday, 28 November 2015 at 23:38:35 UTC, UserAbcabc123 wrote: On Saturday, 28 November 2015 at 22:00:32 UTC, Poyeyo wrote: Dubconf seems to me a good replacement name for the format. Hilarous, I guess you didn't read the topic at all... To be fair, it's 20 pages long.

Re: I hate new DUB config format

2015-11-28 Thread Gordon via Digitalmars-d
On Saturday, 28 November 2015 at 05:09:48 UTC, ChangLong wrote: On Wednesday, 25 November 2015 at 10:17:02 UTC, Suliman wrote: If SDL will stay by default I will prefer to move to any other build system or will downgrade to old version of DUB. JSON +1 JSON +1 Douchebot -∞

Re: I hate new DUB config format

2015-11-28 Thread Walter Bright via Digitalmars-d
We don't do name calling here. Please stop it.

Re: I hate new DUB config format

2015-11-28 Thread lobo via Digitalmars-d
On Wednesday, 25 November 2015 at 10:17:02 UTC, Suliman wrote: I think that using SDL format was big mistake. Not only I do not want to spend time in learning yet another dead config format that now use only one project -- DUB. In time when DUB used json it was not perfect, but at last it was

Re: I hate new DUB config format

2015-11-28 Thread lobo via Digitalmars-d
On Sunday, 29 November 2015 at 01:20:41 UTC, lobo wrote: On Wednesday, 25 November 2015 at 10:17:02 UTC, Suliman wrote: [...] A 20-page bikeshedding bonanza! Atypical D forums...and a pity that the priorities of core D devs is diverted to this spittle of a forum post when D has much bigger

Freeing ENetPacket

2015-11-28 Thread Kyle via Digitalmars-d-learn
Hi, I have a function using the derelict-enet library: void sendUbytes(ENetPeer* dest, ref ubyte[] data) { //create packet ENetPacket* packet = enet_packet_create(cast(ubyte*)data, data.length * ubyte.sizeof, ENET_PACKET_FLAG_RELIABLE); //send packet to peer over channel id 0

Locale package?

2015-11-28 Thread Chris Wright via Digitalmars-d-learn
Is there a package for locale data? I'm looking for things like month names and days of the week and default date and time formats, specifically.

Is there anyone willing to do the videos 18sex website?

2015-11-28 Thread mcss via Digitalmars-d-announce
Is there anyone willing to do the videos 18sex website? Like Playboy. I want to find a partner to do the world's largest 18sex video site.

Re: Multithreaded HTTP Download

2015-11-28 Thread Mike McKee via Digitalmars-d-learn
After weighing options, I'll use a CDN to get the faster download, and stick with curl rather than recoding it in D.

extern(C++, NS)

2015-11-28 Thread Manu via Digitalmars-d
I'm having a lot of trouble with C++ namespaces. The problem is, the namespace is not just attributed to the symbol in D, but it's emulated as a named scope. The trouble mostly appears in this situation: file1.d extern(C++, NS) struct X; file2.d extern(C++, NS) struct Y; file3.d import

Re: Collections question

2015-11-28 Thread Jakob Ovrum via Digitalmars-d
On Saturday, 28 November 2015 at 13:41:10 UTC, Andrei Alexandrescu wrote: On 11/28/15 2:26 AM, Jakob Ovrum wrote: Another thing: wouldn't providing a custom allocator require a separate primitive? All collections will work with IAllocator. -- Andrei Yes, I assumed as much. So how would

Re: extern(C++, NS)

2015-11-28 Thread Manu via Digitalmars-d
On 29 November 2015 at 14:57, Walter Bright via Digitalmars-d wrote: > > D does not support C++ semantics. You cannot split namespaces into multiple > files in D, nor can you add symbols to an existing namespace. For namespace > NS, all the declarations in NS have to

[Issue 15386] New: std.format.formatValue usage hangs

2015-11-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15386 Issue ID: 15386 Summary: std.format.formatValue usage hangs Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority: P1

Re: Freeing ENetPacket

2015-11-28 Thread Kyle via Digitalmars-d-learn
On Sunday, 29 November 2015 at 01:57:25 UTC, Adam D. Ruppe wrote: .. Are you compiling it as a 64 bit or a 32 bit program? 64 bit. You're probably right, I will take out the explicit destroy and look for a memory leak elsewhere, and adjust for your other suggestions. Thanks for the advice!

Re: extern(C++, NS)

2015-11-28 Thread Walter Bright via Digitalmars-d
On 11/28/2015 8:40 PM, Manu via Digitalmars-d wrote: I'm having a lot of trouble with C++ namespaces. The problem is, the namespace is not just attributed to the symbol in D, but it's emulated as a named scope. It is not "emulated" in D, it is an actual named scope in D. The trouble mostly

Re: I hate new DUB config format

2015-11-28 Thread Poyeyo via Digitalmars-d
On Saturday, 28 November 2015 at 23:38:35 UTC, UserAbcabc123 wrote: On Saturday, 28 November 2015 at 22:00:32 UTC, Poyeyo wrote: Dubconf seems to me a good replacement name for the format. Hilarous, I guess you didn't read the topic at all... I've read it all. But I'm not joining the group

Re: Drawing Native OSX Windows with D

2015-11-28 Thread Mike McKee via Digitalmars-d-learn
On Saturday, 28 November 2015 at 14:05:37 UTC, Jacob Carlborg wrote: If you can't/don't want to go with the App Store then why not the second option? I'm coding an antivirus application for the Mac, using a third-party antivirus engine, in Qt/C++. It needs some things to run under high

  1   2   >