[Issue 15861] [REG 2.069] Wrong double-to-string conversion with -O

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15861 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/241f18c260618fe9b7083d29d8d975391a8a2561 Merge pull request #5650

Re: Getting the current module as a symbol

2016-04-12 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 13:44:07 UTC, Mithun Hunsur wrote: Hi all, I'm looking for the equivalent of `typeof(this)` in module scope (so that it gets the current module). My use-case is iterating over the members of the module - right now I'm doing

[Issue 15919] New: Undetected spell miss in ndslice.selection.reshape()

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15919 Issue ID: 15919 Summary: Undetected spell miss in ndslice.selection.reshape() Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

Re: Getting the current module as a symbol

2016-04-12 Thread Mithun Hunsur via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 14:22:22 UTC, Adam D. Ruppe wrote: On Tuesday, 12 April 2016 at 13:44:07 UTC, Mithun Hunsur wrote: I'm looking for the equivalent of `typeof(this)` in module scope (so that it gets the current module). The trick I use is `mixin(__MODULE__)`. I also mentioned this

Re: Command line utilities for tab-separated value files

2016-04-12 Thread Puming via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 07:17:05 UTC, Jon D wrote: On Tuesday, 12 April 2016 at 06:22:55 UTC, Puming wrote: On Tuesday, 12 April 2016 at 00:50:24 UTC, Jon D wrote: Hi all, I've open sourced a set of command line utilities for manipulating tab-separated value files. They are

Re: Any usable SIMD implementation?

2016-04-12 Thread Iain Buclaw via Digitalmars-d
On 12 April 2016 at 22:22, Walter Bright via Digitalmars-d wrote: > On 4/12/2016 9:53 AM, Marco Leise wrote: >> Your look on GCC (and LLVM) may be a bit biased. First of all >> you don't need to tell it exactly which registers to use. A >> rough classification is

Re: Any usable SIMD implementation?

2016-04-12 Thread Marco Leise via Digitalmars-d
Am Tue, 12 Apr 2016 13:22:12 -0700 schrieb Walter Bright : > On 4/12/2016 9:53 AM, Marco Leise wrote: > > LDC implements InlineAsm_X86_Any (DMD style asm), so > > core.cpuid works. GDC is the only compiler that does not > > implement it. We agree that core.cpuid should

Re: Females in the community.

2016-04-12 Thread deadalnix via Digitalmars-d
On Tuesday, 12 April 2016 at 14:57:33 UTC, Karabuta wrote: On Monday, 11 April 2016 at 17:12:03 UTC, Ola Fosheim Grøstad wrote: On Saturday, 26 March 2016 at 19:52:18 UTC, QAston wrote: A person who advocates for a more welcoming community and wishes for objective moderation introduces a

Re: Command line utilities for tab-separated value files

2016-04-12 Thread Ali Çehreli via Digitalmars-d-announce
On 04/11/2016 05:50 PM, Jon D wrote: > The tools are here: https://github.com/eBay/tsv-utils-dlang > --Jon Congratulations Jon. Really cool stuff! :) Ali

Re: Need help with bytea data type from PostgreSQL.

2016-04-12 Thread Garrick via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 13:01:12 UTC, Suliman wrote: With: x = row[0].as!(ubyte[]); I am getting error: core.exception.AssertError@C:\D\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(1920): Called `get' on null Nullable!ubyte[]. I'm the author of the specific dpq library you're

[Issue 15861] [REG 2.069] Wrong double-to-string conversion with -O

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15861 --- Comment #6 from Walter Bright --- Vladimir's reduced test case: void main() { double val = 4286853117.; (){ assert(val == 4286853117.); }(); } --

[Issue 15861] [REG 2.069] Wrong double-to-string conversion with -O

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15861 --- Comment #5 from Walter Bright --- (In reply to Vladimir Panteleev from comment #3) > Thanks. In the future, you can let me know if you'd like a completely > reduced test case. I'd always prefer a completely reduced

Re: The day before DConf 2016

2016-04-12 Thread Andrej Mitrovic via Digitalmars-d
On 4/12/16, Joseph Rushton Wakeling via Digitalmars-d wrote: > On Tuesday, 12 April 2016 at 09:05:27 UTC, Andrej Mitrovic wrote: >> I remember my first day in town, I was traveling on the u-bahn >> without a ticket. For some unsuspecting reason I never thought >> of

Re: TECO - Inspiration for the D programming language

2016-04-12 Thread Walter Bright via Digitalmars-d-announce
On 4/12/2016 6:47 AM, Dan Olson wrote: Walter Bright writes: https://www.reddit.com/r/programming/comments/4e07lo/last_night_in_a_fit_of_boredom_far_away_from_my/d1x5rl7 I am tempted to try it on my TOPS-10 (PDP-10) account at LCM. I believe TECO is installed.

Re: Any usable SIMD implementation?

2016-04-12 Thread Walter Bright via Digitalmars-d
On 4/12/2016 9:53 AM, Marco Leise wrote: LDC implements InlineAsm_X86_Any (DMD style asm), so core.cpuid works. GDC is the only compiler that does not implement it. We agree that core.cpuid should provide this information, but what we have now - core.cpuid in a mix with GDC's lack of DMD style

Re: Release D 2.071.0

2016-04-12 Thread Paolo Invernizzi via Digitalmars-d-announce
On Saturday, 9 April 2016 at 16:56:50 UTC, Vladimir Panteleev wrote: since I can run the Windows version via Wine. But if no one else needs this then it's fine. Me too /P

Re: Beta of D language online tour

2016-04-12 Thread Andrei Alexandrescu via Digitalmars-d
On 4/12/16 1:41 PM, André wrote: On Tuesday, 12 April 2016 at 15:07:20 UTC, Andrei Alexandrescu wrote: On 04/10/2016 12:43 PM, André wrote: Oh that would be awesome. The current limit is 10 compilations in parallel, that means for the Docker sandboxes a total ram of 2.5GB is needed. So for a

Re: DConf 2016 registrations have now hit 128!

2016-04-12 Thread WhatMeWorry via Digitalmars-d-announce
On Friday, 8 April 2016 at 22:45:38 UTC, Walter Bright wrote: On 4/8/2016 2:07 PM, Andrei Alexandrescu wrote: On 4/7/16 7:45 PM, Walter Bright wrote: 132 today! There's been quite a surge of interest recently in two items: Tesla Model 3 and DConf 2016 :o). -- Andrei Maybe next year

[Issue 15918] New: [2.070] Results from findSplit can no longer be assigned to each other

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15918 Issue ID: 15918 Summary: [2.070] Results from findSplit can no longer be assigned to each other Product: D Version: D2 Hardware: All OS: All Status:

[Issue 15917] New: std.concurrency module destructor causes useless creation of new MessageBox

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15917 Issue ID: 15917 Summary: std.concurrency module destructor causes useless creation of new MessageBox Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: RC woes

2016-04-12 Thread Dicebot via Digitalmars-d
On 04/12/2016 04:44 PM, Andrei Alexandrescu wrote: > Found these a while ago, meant to share them here for discussion: > > http://cglab.ca/~abeinges/blah/everyone-poops/ > http://www.cocoawithlove.com/blog/2016/03/27/on-delete.html First link (Swift one) felt somewhat obvious and boring to be

Re: Dynamic library

2016-04-12 Thread Chris via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 10:11:27 UTC, Russel Winder wrote: On Mon, 2016-04-11 at 14:15 +, Chris via Digitalmars-d-learn wrote: I wanted to test, if I could use D with JNA (Java Native Access). I get this error message: # A fatal error has been detected by the Java Runtime

Re: Why is Linux the only OS in version identifier list that has a lowercase name?

2016-04-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, April 12, 2016 19:15:33 Joseph Rushton Wakeling via Digitalmars-d- learn wrote: > On Tuesday, 12 April 2016 at 18:23:25 UTC, Jonathan M Davis wrote: > > Well, work has been done to make it so that different runtimes > > will work - e.g. there's a CRuntime_Glibc and a CRuntime_Bionic. >

Re: DWT Cloning / Build fails

2016-04-12 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-04-12 17:32, Chris wrote: This doesn't work: $ git clone --recursive git://github.com/d-widget-toolkit/dwt.git $ git clone --recursive https://github.com/d-widget-toolkit/dwt.git (cf. https://github.com/d-widget-toolkit/dwt) What errors to you get? This should work unless you have a

Re: Any usable SIMD implementation?

2016-04-12 Thread Etienne via Digitalmars-d
On Thursday, 31 March 2016 at 08:23:45 UTC, Martin Nowak wrote: I'm currently working on a templated arrayop implementation (using RPN to encode ASTs). So far things worked out great, but now I got stuck b/c apparently none of the D compilers has a working SIMD implementation (maybe GDC has

Re: Why is Linux the only OS in version identifier list that has a lowercase name?

2016-04-12 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 18:23:25 UTC, Jonathan M Davis wrote: Well, work has been done to make it so that different runtimes will work - e.g. there's a CRuntime_Glibc and a CRuntime_Bionic. That's pretty cool. Was that a result of the recent Android porting work, or was it a

gelfd v1.3.0 - A native library to generate logs in the Graylog Extended Log Format (GELF).

2016-04-12 Thread Adil via Digitalmars-d-announce
GELF (https://www.graylog.org/resources/gelf/) is an "open standard" logging format based on JSON. It is primarily used to pipe messages to Graylog (graylog.org), an open source log management and analysis platform. This small release contains a rewrite of the way chunking was done. It is

Re: Mir v0.13.0: mir.combinatorics & mir.ndslice allocators/constructors/converters

2016-04-12 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Monday, 11 April 2016 at 18:20:29 UTC, 9il wrote: Mir v0.13.0 was released. http://mir.dlang.io Interesting choice of project name there -- for a second I thought you were providing display server bindings ;-)

Re: Why is Linux the only OS in version identifier list that has a lowercase name?

2016-04-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, April 12, 2016 17:22:05 Joseph Rushton Wakeling via Digitalmars-d- learn wrote: > On Tuesday, 12 April 2016 at 01:32:02 UTC, Brian Schott wrote: > > On Monday, 11 April 2016 at 23:01:08 UTC, marcpmichel wrote: > >> Is it because Linux is not an OS ? :p > > > > I gnu somebody would

Re: djvm fails to build

2016-04-12 Thread Chris via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 15:54:10 UTC, rikki cattermole wrote: I'll look into it tomorrow, but I suspect I'm gonna need to do some serious work to get it work with the new import rules. Also maybe best to take this to gitter[0] or github issue so that I get an alert. [0]

[Issue 15916] void makes a function impure + system

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15916 Mathias Lang changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15861] [REG 2.069] Wrong double-to-string conversion with -O

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

[Issue 15861] [REG 2.069] Wrong double-to-string conversion with -O

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15861 --- 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/2d9a5bc18268a6c81e8cc69c2a036c5bc9c3875d fix Issue 15861 - [REG

[Issue 15916] New: void makes a function impure + system

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15916 Issue ID: 15916 Summary: void makes a function impure + system Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: TTS Synthesis: D and vibe.d in Action

2016-04-12 Thread Chris via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 14:37:52 UTC, jamonahn wrote: On Tuesday, 12 April 2016 at 10:22:03 UTC, Chris wrote: ... http://www.ahg.gov.ie/ga/ [2] Just some confusion on my part -- this is the link to try it out. Congrats! What a wonderful inspiration! Thanks. I hope that more people

Re: TTS Synthesis: D and vibe.d in Action

2016-04-12 Thread Chris via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 17:41:32 UTC, wobbles wrote: On Tuesday, 12 April 2016 at 10:22:03 UTC, Chris wrote: Hi, Just to inform you that we successfully use D and vibe.d for two things: [...] Great to see some fellow Irish D users! Good to know I'm not the only one! I was already

Re: Any usable SIMD implementation?

2016-04-12 Thread Marco Leise via Digitalmars-d
The system seems to call CPUID at startup and for every multiversioned function, patch an offset in its dispatcher function. The dispatcher function is then nothing more than a jump realtive to RIP, e.g.: jmpQWORD PTR [rip+0x200bf2] This is as efficient as it gets short of using

Re: Beta of D language online tour

2016-04-12 Thread André via Digitalmars-d
On Tuesday, 12 April 2016 at 15:07:20 UTC, Andrei Alexandrescu wrote: On 04/10/2016 12:43 PM, André wrote: Oh that would be awesome. The current limit is 10 compilations in parallel, that means for the Docker sandboxes a total ram of 2.5GB is needed. So for a start a server box of 4GB should

Re: TTS Synthesis: D and vibe.d in Action

2016-04-12 Thread wobbles via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 10:22:03 UTC, Chris wrote: Hi, Just to inform you that we successfully use D and vibe.d for two things: [...] Great to see some fellow Irish D users!

Re: On the origins of github.com/D-Programming-Language

2016-04-12 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 12 April 2016 at 11:46:07 UTC, Steven Schveighoffer wrote: A couple things though -- we have a lot of automation surrounding github. We should make sure the major players have their input before attempting this. I'm thinking Brad and Vladimir? Also, I think an owner of the github

Re: Why is Linux the only OS in version identifier list that has a lowercase name?

2016-04-12 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 01:32:02 UTC, Brian Schott wrote: On Monday, 11 April 2016 at 23:01:08 UTC, marcpmichel wrote: Is it because Linux is not an OS ? :p I gnu somebody would bring that up. There's actually a serious point here, though -- as D is ported to other platforms and

Re: Any usable SIMD implementation?

2016-04-12 Thread Marco Leise via Digitalmars-d
Am Tue, 12 Apr 2016 10:55:18 + schrieb xenon325 : > Have you seen how GCC's function multiversioning [1] ? > > This whole thread is far too low-level for me and I'm not sure if > GCC's dispatcher overhead is OK, but the syntax looks really nice > and it seems to

Re: Official dub packages for Debian and Ubuntu

2016-04-12 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 01:58:13 UTC, Matthias Klumpp wrote: On Monday, 11 April 2016 at 21:58:55 UTC, Joseph Rushton Wakeling wrote: Related note: I see the lcd version in xenial is 0.17.0~beta2 -- I don't suppose there's any chance of upgrading that to the stable 0.17.1 release ... ?

Re: Any usable SIMD implementation?

2016-04-12 Thread Marco Leise via Digitalmars-d
Am Mon, 11 Apr 2016 14:29:11 -0700 schrieb Walter Bright : > On 4/11/2016 7:24 AM, Marco Leise wrote: > > Am Mon, 4 Apr 2016 11:43:58 -0700 > > schrieb Walter Bright : > > > >> On 4/4/2016 9:21 AM, Marco Leise wrote: > >>> To put

Re: The day before DConf 2016

2016-04-12 Thread Joseph Rushton Wakeling via Digitalmars-d
On Tuesday, 12 April 2016 at 09:05:27 UTC, Andrej Mitrovic wrote: I remember my first day in town, I was traveling on the u-bahn without a ticket. For some unsuspecting reason I never thought of buying a ticket, thought the ride was free - "otherwise why would they let everyone in without

Re: djvm fails to build

2016-04-12 Thread rikki cattermole via Digitalmars-d-learn
I'll look into it tomorrow, but I suspect I'm gonna need to do some serious work to get it work with the new import rules. Also maybe best to take this to gitter[0] or github issue so that I get an alert. [0] https://gitter.im/rikkimax/chatWithMe

DWT Cloning / Build fails

2016-04-12 Thread Chris via Digitalmars-d-learn
This doesn't work: $ git clone --recursive git://github.com/d-widget-toolkit/dwt.git $ git clone --recursive https://github.com/d-widget-toolkit/dwt.git (cf. https://github.com/d-widget-toolkit/dwt) If I just download the master or clone without `--recursive`, files are missing and I

[Issue 15856] Confusing error message with -transition=checkimports

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15856 Kenji Hara changed: What|Removed |Added Keywords||diagnostic, pull ---

Re: Beta of D language online tour

2016-04-12 Thread Andrei Alexandrescu via Digitalmars-d
On 04/10/2016 12:43 PM, André wrote: On Saturday, 9 April 2016 at 20:19:05 UTC, Vladimir Panteleev wrote: On Saturday, 9 April 2016 at 17:12:44 UTC, André wrote: How do you do the sandboxing? The sandboxing is done using Docker containers: https://github.com/stonemaster/dlang-tour-rdmd. It's

Re: Females in the community.

2016-04-12 Thread Karabuta via Digitalmars-d
On Monday, 11 April 2016 at 17:12:03 UTC, Ola Fosheim Grøstad wrote: On Saturday, 26 March 2016 at 19:52:18 UTC, QAston wrote: A person who advocates for a more welcoming community and wishes for objective moderation introduces a divisive topic You need to relax. The topic wasn't divisive. I

Re: Fixed-Length Array Sorting

2016-04-12 Thread Andrei Alexandrescu via Digitalmars-d
On 04/12/2016 10:53 AM, Andrei Alexandrescu wrote: There is a nice peephole optimization Should be fine to leave that to 2.0. -- Andrei

Re: Fixed-Length Array Sorting

2016-04-12 Thread Andrei Alexandrescu via Digitalmars-d
Also to avoid cache line thrashing, sort parallel swaps by leftmost index. E.g. this line: 18,19, 20,21, 2,4, 1,3, 0,5, 6,8, 7,9, 10,12, 11,13, becomes: 0,5, 1,3, 2,4, 6,8, 7,9, 10,12, 11,13, 18,19, 20,21, Andrei

Re: Fixed-Length Array Sorting

2016-04-12 Thread Andrei Alexandrescu via Digitalmars-d
On 04/12/2016 06:49 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. Ok, Andrei! Here's a start. https://github.com/nordlow/phobos-next/blob/master/src/sortn.d Currently uses

Re: I want this so badly, please implement

2016-04-12 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 12 April 2016 at 08:37:40 UTC, Kagamin wrote: What's the reason to not log POST request on error? It's a plain string, should be trivial to log. It is possible (and sometimes I do it, especially on an exception catcher) but it isn't customary because of things like sensitive

Re: TTS Synthesis: D and vibe.d in Action

2016-04-12 Thread jamonahn via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 10:22:03 UTC, Chris wrote: ... http://www.ahg.gov.ie/ga/ [2] Just some confusion on my part -- this is the link to try it out. Congrats! What a wonderful inspiration!

Re: Passing _arguments into another variadic function

2016-04-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 09:08:06 UTC, Satoshi wrote: Is it possible to pass varargs to another function or must I do it by asm? In C, you would make a version of the function that takes the va_list type (see, for example, vprintf). I believe in D, you'd want to do the same thing. Make

Re: Getting the current module as a symbol

2016-04-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 13:44:07 UTC, Mithun Hunsur wrote: I'm looking for the equivalent of `typeof(this)` in module scope (so that it gets the current module). The trick I use is `mixin(__MODULE__)`. I also mentioned this in my book

cast double to long for value greater than long.max

2016-04-12 Thread Dan Olson via Digitalmars-d
This revolves around a dmd test which fails on ARM: https://github.com/D-Programming-Language/dmd/blob/master/test/runnable/constfold.d#L321 int bug7(int x) { return x; } static assert(!is(typeof(bug7(cast(long)3.256679e30; Is it a valid test? Or specifically, is a cast from double to

RC woes

2016-04-12 Thread Andrei Alexandrescu via Digitalmars-d
Found these a while ago, meant to share them here for discussion: http://cglab.ca/~abeinges/blah/everyone-poops/ http://www.cocoawithlove.com/blog/2016/03/27/on-delete.html Andrei

djvm fails to build

2016-04-12 Thread Chris via Digitalmars-d-learn
@Rikki I can't get djvm to build (dmd 2.069.1 and higher) https://github.com/rikkimax/djvm [Error Message] Performing "debug" build using dmd for x86_64. djvm ~master: building configuration "library"... String (Constructor!string, Constructor!(), Method!(char, "charAt", int),

Re: On the origins of github.com/D-Programming-Language

2016-04-12 Thread Seb via Digitalmars-d
On Saturday, 9 April 2016 at 21:44:11 UTC, Walter Bright wrote: I'm willing to go forward with that if there's a swell of support for it. But for consistency's sake it should be dlang, not d-lang. Before we start this discussion, we should make sure we actually can do it. dlang is used by

Re: TECO - Inspiration for the D programming language

2016-04-12 Thread Dan Olson via Digitalmars-d-announce
Walter Bright writes: > > https://www.reddit.com/r/programming/comments/4e07lo/last_night_in_a_fit_of_boredom_far_away_from_my/d1x5rl7 I am tempted to try it on my TOPS-10 (PDP-10) account at LCM. I believe TECO is installed. -- Dan

Getting the current module as a symbol

2016-04-12 Thread Mithun Hunsur via Digitalmars-d-learn
Hi all, I'm looking for the equivalent of `typeof(this)` in module scope (so that it gets the current module). My use-case is iterating over the members of the module - right now I'm doing `mixin(iterateOverModule!(module.name.here));` but in the interests of keeping the code simple to

Re: Official dub packages for Debian and Ubuntu

2016-04-12 Thread Jordi Sayol via Digitalmars-d-announce
El 12/04/16 a les 14:26, Matthias Klumpp via Digitalmars-d-announce ha escrit: >> I assume that the DMD package from dlang, or better d-apt, sets the d- >> compiler property. Should dmd be prefered if it is present? > > I think so, since when installing it from non-free 3rd-party sources, the >

[Issue 15915] std.process.execute throws an exception when using workDir and a relative path

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15915 --- Comment #4 from Steven Schveighoffer --- (In reply to Atila Neves from comment #3) > However, I don't think the current implementation makes sense. There's > already an if to check if the path has directory separators in it

Re: Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-12 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 09:19:14 UTC, Pedro Lopes wrote: I changed the dub.sdl dependency to version 0.0.5, but dub cant recognize that version: "Root package allegrotest contains reference to invalid package derelict-allegro5 0.0.5" My fault. I forgot to 'git push --tags'. Once the

Re: Need help with bytea data type from PostgreSQL.

2016-04-12 Thread Suliman via Digitalmars-d-learn
With: x = row[0].as!(ubyte[]); I am getting error: core.exception.AssertError@C:\D\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(1920): Called `get' on null Nullable!ubyte[].

[Issue 15915] std.process.execute throws an exception when using workDir and a relative path

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15915 --- Comment #3 from Atila Neves --- Then my understanding is correct; that's what I thought workDir was, the directory where the process is started in. However, I don't think the current implementation makes sense. There's

Re: Ddb needs a maintainer

2016-04-12 Thread Etienne via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 09:58:22 UTC, Suliman wrote: On Tuesday, 12 April 2016 at 09:52:53 UTC, Rory McGuire wrote: On Tue, Apr 12, 2016 at 11:30 AM, Suliman via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: [...] Would need to see the full exception stack

Re: Official dub packages for Debian and Ubuntu

2016-04-12 Thread Matthias Klumpp via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 07:03:44 UTC, Russel Winder wrote: [...] If the Debian ldc2 compiler is crashing on the same source that gdc compiles that sounds like a packaging problem. Or use of outdated D? ldc is generally much more up to date that gdc so shouldn't the order be ldc | gdc |

Re: Passing _arguments into another variadic function

2016-04-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/12/16 5:08 AM, Satoshi wrote: Hello, I have a little problem with Variadic functions. I have function like: void perform(string method, ...) { // here I want to call method findMethod with _argptr and _arguments } MethodDesc findMethod(string method, ...) { // some lookup through the

Re: Why is Linux the only OS in version identifier list that has a lowercase name?

2016-04-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/10/16 9:19 PM, Zekereth wrote: On Monday, 11 April 2016 at 01:15:27 UTC, Ali Çehreli wrote: As a workaround, you can set version to Linux yourself: version (linux) { version = Linux; } void main() { version (Linux) { import std.stdio; writeln("Linux worked!");

Re: Correct way to spawn many and stoping when one finishes ?

2016-04-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/10/16 4:59 AM, klimp wrote: On Sunday, 10 April 2016 at 07:48:51 UTC, klimp wrote: Is this corrrect ? Each task searches for the same thing so when once has found the others don't need to run anymore. It looks a bit strange not to stop those who havent find the thing: Actually I have to

Re: Need help with bytea data type from PostgreSQL.

2016-04-12 Thread rikki cattermole via Digitalmars-d-learn
On 12/04/2016 11:48 PM, Suliman wrote: I am still trying to get work any of PostgreSQL drivers. For last few day I had test all of drivers. All of them are _very_ buggy! Just few of them have support of `bytea` data type, that use for binary blobs. But support does not mean that it's work. Now

Re: Official dub packages for Debian and Ubuntu

2016-04-12 Thread Matthias Klumpp via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 02:42:09 UTC, jmh530 wrote: On Monday, 11 April 2016 at 14:21:46 UTC, Matthias Klumpp wrote: On the roadmap are adding debhelper sequences to simplify packaging dub-based D code in Debian based distros, auto-test support in Debian's CI, and of course the usual

Re: foreach of classes

2016-04-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/9/16 6:10 AM, Lucien wrote: Hello. When I do: - class MyClass{..} class YourClass{..} class OurClass{..} YourClass yc = new YourClass(); foreach (auto id; [ typeid(MyClass), typeid(YourClass), typeid(OurClass) ]) { if (typeid(yc) == id) { writeln("It works

Integer overflow checking

2016-04-12 Thread Andrei Alexandrescu via Digitalmars-d
Interesting: http://blog.regehr.org/archives/1384 -- Andrei

Re: Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-12 Thread Pedro Lopes via Digitalmars-d-learn
Never mind, I used version 0.0.3, now works. Thank you.

[Issue 15915] std.process.execute throws an exception when using workDir and a relative path

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15915 Steven Schveighoffer changed: What|Removed |Added Status|NEW |RESOLVED

Re: Error or a new behaviour with 2.071.0

2016-04-12 Thread ZombineDev via Digitalmars-d
On Tuesday, 12 April 2016 at 11:42:08 UTC, Steven Schveighoffer wrote: On 4/8/16 2:03 PM, ZombineDev wrote: On Friday, 8 April 2016 at 13:44:17 UTC, Steven Schveighoffer wrote: [...] [...] Even so, you shouldn't be able to make a local alias to private symbol from a different module.

Need help with bytea data type from PostgreSQL.

2016-04-12 Thread Suliman via Digitalmars-d-learn
I am still trying to get work any of PostgreSQL drivers. For last few day I had test all of drivers. All of them are _very_ buggy! Just few of them have support of `bytea` data type, that use for binary blobs. But support does not mean that it's work. Now I am trying to get

Re: On the origins of github.com/D-Programming-Language

2016-04-12 Thread Steven Schveighoffer via Digitalmars-d
On 4/9/16 5:44 PM, Walter Bright wrote: On 4/9/2016 12:04 PM, Seb wrote: On Saturday, 9 April 2016 at 03:48:27 UTC, Walter Bright wrote: On 4/8/2016 5:06 PM, Brad Anderson wrote: By "back then" I mean in 2011[1]. The original domain was d-programming-language.org and having the github

Re: Error or a new behaviour with 2.071.0

2016-04-12 Thread Steven Schveighoffer via Digitalmars-d
On 4/8/16 2:03 PM, ZombineDev wrote: On Friday, 8 April 2016 at 13:44:17 UTC, Steven Schveighoffer wrote: On 4/8/16 9:31 AM, Daniel Kozak wrote: Or even worse import a : Foo; import b; Foo f1; // works OK use a.Foo Note, import rules here say a.Foo is now a LOCAL symbol. It's like you

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

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15892 --- Comment #1 from Nick Treleaven --- Note: A normal alias for `get` also works (as a workaround) instead of the property line above: alias get = Static.payload; --

Re: Any usable SIMD implementation?

2016-04-12 Thread xenon325 via Digitalmars-d
On Thursday, 7 April 2016 at 00:42:30 UTC, Walter Bright wrote: [...] especially if one is writing applications that dynamically adjusts based on the CPU the user is running on. The main trouble comes about when different modules are compiled with different settings. What happens with template

Re: Fixed-Length Array Sorting

2016-04-12 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. Ok, Andrei! Here's a start. https://github.com/nordlow/phobos-next/blob/master/src/sortn.d Currently uses Phobos' permutations for complete

[Issue 15915] std.process.execute throws an exception when using workDir and a relative path

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15915 --- Comment #1 from Atila Neves --- It works if a file named foo/app is executed like so: import std.process; execute(["foo/app", ...]; But not if like this: execute(["./app", ...], env, config, maxOutput, "foo");

[Issue 15915] New: std.process.execute throws an exception when using workDir and a relative path

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15915 Issue ID: 15915 Summary: std.process.execute throws an exception when using workDir and a relative path Product: D Version: D2 Hardware: x86_64 OS: Linux

TTS Synthesis: D and vibe.d in Action

2016-04-12 Thread Chris via Digitalmars-d-announce
Hi, Just to inform you that we successfully use D and vibe.d for two things: 1. an NVDA[1] screen reader plugin: http://www.abair.ie/nvda/ It is still version 0.6 beta but it is already being used by visually impaired people. 2. a web version of the text-to-speech synthesizer that is now

Re: vibe.d kafka driver & probabilistic linear counting

2016-04-12 Thread Yawniek via Digitalmars-d-announce
On Monday, 11 April 2016 at 09:08:34 UTC, André wrote: On Sunday, 10 April 2016 at 10:51:38 UTC, yawniek wrote: we pushed 2 new projects: a native kafka driver to work with the vibe.d eventloop http://code.dlang.org/packages/kafka-d it's not full featured yet (no zookeeper) but the basic use

Re: Dynamic library

2016-04-12 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2016-04-11 at 14:15 +, Chris via Digitalmars-d-learn wrote: > I wanted to test, if I could use D with JNA (Java Native Access).  > I get this error message: > > # A fatal error has been detected by the Java Runtime Environment: > # > #  SIGSEGV (0xb) at pc=0x7fd24ab66074,

Re: Ddb needs a maintainer

2016-04-12 Thread Suliman via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 09:52:53 UTC, Rory McGuire wrote: On Tue, Apr 12, 2016 at 11:30 AM, Suliman via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: This code compile and run: try { auto result = cmd.executeQuery; foreach (row; result)

Re: Ddb needs a maintainer

2016-04-12 Thread Rory McGuire via Digitalmars-d-announce
On Tue, Apr 12, 2016 at 11:30 AM, Suliman via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > This code compile and run: > > try { >auto result = cmd.executeQuery; > >foreach (row; result) >{ > writeln(row[0]); >

Re: Ddb needs a maintainer

2016-04-12 Thread Suliman via Digitalmars-d-announce
This code compile and run: try { auto result = cmd.executeQuery; foreach (row; result) { writeln(row[0]); x = row[1].get!(ubyte[]); } } catch (ServerErrorException e) { // Probably table

Re: Ddb needs a maintainer

2016-04-12 Thread Suliman via Digitalmars-d-announce
On Tuesday, 12 April 2016 at 08:47:43 UTC, Rory McGuire wrote: On Tue, Apr 12, 2016 at 10:31 AM, Suliman via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: On Monday, 15 February 2016 at 22:50:56 UTC, Piotr Szturmaj wrote: On 2016-02-14 20:48, Eugene Wissner wrote:

[Issue 15913] cannot initialize immutable fixed size array without similar const-code

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15913 Kenji Hara changed: What|Removed |Added Keywords||pull

Re: Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-12 Thread Pedro Lopes via Digitalmars-d-learn
On Monday, 11 April 2016 at 15:51:51 UTC, Mike Parker wrote: On Monday, 11 April 2016 at 10:34:58 UTC, Pedro Lopes wrote: it is definitely derelict-allegro5's fault. Yes. As I said in my second post, change your dependency to 0.0.5 and you should be good to go. I changed the dub.sdl

Passing _arguments into another variadic function

2016-04-12 Thread Satoshi via Digitalmars-d-learn
Hello, I have a little problem with Variadic functions. I have function like: void perform(string method, ...) { // here I want to call method findMethod with _argptr and _arguments } MethodDesc findMethod(string method, ...) { // some lookup through the tables... } I know there are

Re: The day before DConf 2016

2016-04-12 Thread Andrej Mitrovic via Digitalmars-d
On 4/12/16, Iain Buclaw via Digitalmars-d wrote: > Tickets bought on buses don't need stamping either as I understand it. > Also make sure your ticket is still valid - once it took my girlfriend two > weeks to realise her monthly ticket had expired. Lucky to have no

[Issue 15914] [REG 2.071] getopt doesn't accept anymore a character for a bool option

2016-04-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15914 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #10 from

  1   2   >