Re: Server is not active?

2013-09-27 Thread wagtail
On Saturday, 28 September 2013 at 05:28:05 UTC, ollie wrote: On Fri, 27 Sep 2013 03:22:32 +0200, wagtail wrote: A part of code shown below. /++ Server main() / ushort port = 9876; auto inet = new InternetAddress("0.0.0.0

Re: Server is not active?

2013-09-27 Thread ollie
On Fri, 27 Sep 2013 03:22:32 +0200, wagtail wrote: > A part of code shown below. > > /++ Server main() > / > ushort port = 9876; > > auto inet = new InternetAddress("0.0.0.0",port); > Socket server = new TcpSocket(inet.

ieeeFlags are not getting set.

2013-09-27 Thread Damien
Hi everyone, I am new to the D programming language and decided to use it for simple assignment. The idea is to compute the product of an arbitrary number of numbers and print the result in a specific way. The program needs to handle underflow/overflow, thus I decided to use ieeeFlags. The pr

Re: Regex matching cause lots of _d_arrayliteralTX calls

2013-09-27 Thread monarch_dodra
On Friday, 27 September 2013 at 15:22:14 UTC, H. S. Teoh wrote: On Fri, Sep 27, 2013 at 04:52:20PM +0200, JR wrote: On Friday, 27 September 2013 at 14:37:05 UTC, Dmitry Olshansky wrote: >27-Sep-2013 02:00, JR пишет: >And the answer is - don't use ENUM with ctRegex. The problem >is that >ctReg

Re: Visual Studio - formatting

2013-09-27 Thread Namespace
3. I have no symbol view. Or better: I see nothing there. And that is the most painfull thing. That was my fault. I've deactivated the JSON output for some reason. On Friday, 27 September 2013 at 19:37:55 UTC, Namespace wrote: On Friday, 27 September 2013 at 13:47:21 UTC, Rainer Schuetze wrot

Re: fedora libcurl-gnutls issue

2013-09-27 Thread Joshua Niehus
On Friday, 27 September 2013 at 16:52:49 UTC, Dicebot wrote: Simply building dmd/phobos from git tag should result in proper linkage. Nothing is ever simple with me :) Thanks Dejan and Dicebot

Re: Visual Studio - formatting

2013-09-27 Thread Namespace
On Friday, 27 September 2013 at 13:47:21 UTC, Rainer Schuetze wrote: Could you give an example where it does not meet your expectation? Sure. 1. I cannot format the whole file 2. I have no setting to format automatically. 3. I have no symbol view. Or better: I see nothing there. And that is th

Re: core/sys/windows/windows.d is executable

2013-09-27 Thread Jonathan M Davis
On Friday, September 27, 2013 14:45:37 Joseph Rushton Wakeling wrote: > Hello all, > > While updating my DMD/druntime/phobos install from git HEAD, I noticed that > the druntime file core/sys/windows/windows.d has executable permissions. > > Am I right to assume this is a mistake which probably s

Re: fedora libcurl-gnutls issue

2013-09-27 Thread Dicebot
On Friday, 27 September 2013 at 16:41:42 UTC, Joshua Niehus wrote: http://d.puremagic.com/issues/show_bug.cgi?id=10710 Does anyone know if there is there a workaround for this issue? Unfortunately Im stuck with fedora and cant jump to another OS... Thanks Simply building dmd/phobos from git

Re: fedora libcurl-gnutls issue

2013-09-27 Thread Dejan Lekic
On Friday, 27 September 2013 at 16:41:42 UTC, Joshua Niehus wrote: http://d.puremagic.com/issues/show_bug.cgi?id=10710 Does anyone know if there is there a workaround for this issue? Unfortunately Im stuck with fedora and cant jump to another OS... Thanks Option 1: Rebuild curl RPM with Gnu

fedora libcurl-gnutls issue

2013-09-27 Thread Joshua Niehus
http://d.puremagic.com/issues/show_bug.cgi?id=10710 Does anyone know if there is there a workaround for this issue? Unfortunately Im stuck with fedora and cant jump to another OS... Thanks

Re: Regex matching cause lots of _d_arrayliteralTX calls

2013-09-27 Thread Dmitry Olshansky
27-Sep-2013 18:52, JR пишет: (I was of the notion that that enum merely translate to compile-time-evaluated constants.) I've recently investigated similar problem w.r.t. performance of std.regex on particular use-case/pattern. In fact it dig up an interesting bug with inlining in the compile

Re: Regex matching cause lots of _d_arrayliteralTX calls

2013-09-27 Thread H. S. Teoh
On Fri, Sep 27, 2013 at 04:52:20PM +0200, JR wrote: > On Friday, 27 September 2013 at 14:37:05 UTC, Dmitry Olshansky > wrote: > >27-Sep-2013 02:00, JR пишет: > > >And the answer is - don't use ENUM with ctRegex. The problem is that > >ctRegex returns you a pack of datastructures (=arrays). Using

Re: Regex matching cause lots of _d_arrayliteralTX calls

2013-09-27 Thread JR
On Friday, 27 September 2013 at 14:37:05 UTC, Dmitry Olshansky wrote: 27-Sep-2013 02:00, JR пишет: And the answer is - don't use ENUM with ctRegex. The problem is that ctRegex returns you a pack of datastructures (=arrays). Using them with enum makes it behave as if you pasted them as array

Re: Regex matching cause lots of _d_arrayliteralTX calls

2013-09-27 Thread Dmitry Olshansky
27-Sep-2013 02:00, JR пишет: I'm working on a toy IRC bot. Much of the logic involved is translating the incoming raw IRC string into something that makes sense (so now I have two problems, etc). But I managed to cook up a regex that so far seems to work well. Time for callgrind! Grouped by sour

dmd -D == ouch!!

2013-09-27 Thread Joseph Rushton Wakeling
Hi all, While trying out David Simcha's std.rational (see: http://forum.dlang.org/post/mailman.1774.1380289646.1719.digitalmar...@puremagic.com and please offer feedback if this is of interest to you...), I tried building the docs and ran into the following amusing error message: $ dmd -D ra

Re: Visual Studio - formatting

2013-09-27 Thread Rainer Schuetze
On 27.09.2013 13:16, Namespace wrote: On Friday, 27 September 2013 at 10:06:31 UTC, Dicebot wrote: On Friday, 27 September 2013 at 10:00:04 UTC, Namespace wrote: I've installed the last version (12.11) but I see nothing inside the symbol view. What wrong? If I press "Ctrl + Alt + G" I get oft

Re: drone.io for D

2013-09-27 Thread Dicebot
P.S. all the github integration you are speaking about is pretty common among all CI software I am aware of, so it should be mostly hosting/environment issue for you.

Re: drone.io for D

2013-09-27 Thread Dicebot
On Friday, 27 September 2013 at 12:47:19 UTC, Daniel Davidson wrote: To be clear it is not important to me that it be drone.io - again that is my first exposure to CI. But for Dart I have a github repository containing a package with a bunch of tests that succeed. I go to drone and create a pro

Re: drone.io for D

2013-09-27 Thread Daniel Davidson
On Friday, 27 September 2013 at 11:52:46 UTC, Dicebot wrote: That is weird. I have used some common CI platforms like Jenkins for D projects with no issues. Those are simply irrelevant to actual language used. There must be something I am missing. Can you give quick summary what drone.io is a

core/sys/windows/windows.d is executable

2013-09-27 Thread Joseph Rushton Wakeling
Hello all, While updating my DMD/druntime/phobos install from git HEAD, I noticed that the druntime file core/sys/windows/windows.d has executable permissions. Am I right to assume this is a mistake which probably stems from someone editing it _on Windows_, from whence all files seem to arriv

Re: drone.io for D

2013-09-27 Thread Dicebot
That is weird. I have used some common CI platforms like Jenkins for D projects with no issues. Those are simply irrelevant to actual language used. There must be something I am missing. Can you give quick summary what drone.io is actually about? It is not clear from their web site and I don'

Re: drone.io for D

2013-09-27 Thread Daniel Davidson
On Friday, 27 September 2013 at 11:22:43 UTC, Dicebot wrote: On Thursday, 26 September 2013 at 21:08:31 UTC, Daniel Davidson wrote: Is there an equivalent? Judging by link it looks like yet another continuous integration suite, is there anything more about it you are interested in? CI is usu

Re: drone.io for D

2013-09-27 Thread Dicebot
On Thursday, 26 September 2013 at 21:08:31 UTC, Daniel Davidson wrote: Is there an equivalent? Judging by link it looks like yet another continuous integration suite, is there anything more about it you are interested in? CI is usually not language-specific. If you are looking for one _writ

Visual Studio - formatting

2013-09-27 Thread Namespace
On Friday, 27 September 2013 at 10:06:31 UTC, Dicebot wrote: On Friday, 27 September 2013 at 10:00:04 UTC, Namespace wrote: I've installed the last version (12.11) but I see nothing inside the symbol view. What wrong? If I press "Ctrl + Alt + G" I get often the message that no functions could b

Re: Visual Studio - formatting

2013-09-27 Thread Dicebot
On Friday, 27 September 2013 at 11:16:51 UTC, Namespace wrote: You're right, I've switched to VS. But there I cannot set K&R for style bracketing. Am I forced to use the default style? No further answers, I am using vim :)

Re: Code::Blocks - Symbol View

2013-09-27 Thread Dicebot
On Friday, 27 September 2013 at 10:00:04 UTC, Namespace wrote: I've installed the last version (12.11) but I see nothing inside the symbol view. What wrong? If I press "Ctrl + Alt + G" I get often the message that no functions could be parsed, or in some other files I see only a few of them. Ca

Code::Blocks - Symbol View

2013-09-27 Thread Namespace
I've installed the last version (12.11) but I see nothing inside the symbol view. What wrong? If I press "Ctrl + Alt + G" I get often the message that no functions could be parsed, or in some other files I see only a few of them. Can I improve this?