Re: Potential GSoC project - GC improvements

2016-03-14 Thread Adam Wilson via Digitalmars-d
Jeremy DeHaan wrote: I haven't had power for a couple of days, but it looks like the discussion has gone along pretty ok. After reading everything, I think I'm inclined to agree with Adam and the main focus of my proposal will be a precise GC (or as precise as we can get). I'll definitely need

Re: [Request] A way to extract all instance of X from a range

2016-03-14 Thread Meta via Digitalmars-d
On Monday, 14 March 2016 at 23:34:37 UTC, Stefan Koch wrote: On Monday, 14 March 2016 at 08:04:18 UTC, deadalnix wrote: Right now, I'm repeating the following pattern many times : range.map!(x => cast(Foo) x).filter!(x => x !is null) Which is kind of annoying. Could we get something in phobos

Re: Walter, I need a __trait please.

2016-03-14 Thread Nicholas Wilson via Digitalmars-d
On Tuesday, 15 March 2016 at 00:29:17 UTC, Stefan Koch wrote: Hi, I found myself in need of __trait that might be useful to include. something that would give me the parameters of a the body of the lambda as string and the parmeters of a lambda as AliasSequence. e.g foreach

Re: Potential GSoC project - GC improvements

2016-03-14 Thread jmh530 via Digitalmars-d
On Tuesday, 15 March 2016 at 01:34:07 UTC, Jeremy DeHaan wrote: I haven't had power for a couple of days, but it looks like the discussion has gone along pretty ok. I would characterize it as very interesting, although I know very little about how GCs are implemented. I have a question, for

Re: the most D-ish GUI library

2016-03-14 Thread thedeemon via Digitalmars-d
On Monday, 14 March 2016 at 18:54:31 UTC, Chris Wright wrote: I'm guessing dlangui will be best here, but GtkD is pretty good. What might be some 'pro' of dlangui? dlangui is written entirely in D, which makes it a little easier to make it more D-ish. That certainly doesn't mean it's

Re: Can DUB --combined builds be faster?

2016-03-14 Thread Chris Wright via Digitalmars-d-learn
On Tue, 15 Mar 2016 01:54:51 +, thedeemon wrote: > On Monday, 14 March 2016 at 11:50:38 UTC, Rene Zwanenburg wrote: > >> When building in release mode the call to foo() gets inlined just fine >> without --combined. > > How does it work? Is it because the source of foo() is visible to the >

IDE - Coedit 2, update 2 released

2016-03-14 Thread Basile B. via Digitalmars-d-announce
see https://github.com/BBasile/Coedit/releases/tag/2_update_2

Re: Can DUB --combined builds be faster?

2016-03-14 Thread thedeemon via Digitalmars-d-learn
On Monday, 14 March 2016 at 11:50:38 UTC, Rene Zwanenburg wrote: When building in release mode the call to foo() gets inlined just fine without --combined. How does it work? Is it because the source of foo() is visible to the compiler when producing the result?

Re: Potential GSoC project - GC improvements

2016-03-14 Thread Jeremy DeHaan via Digitalmars-d
I haven't had power for a couple of days, but it looks like the discussion has gone along pretty ok. After reading everything, I think I'm inclined to agree with Adam and the main focus of my proposal will be a precise GC (or as precise as we can get). I'll definitely need some guidance, but

[Issue 15799] New: Misleading error message against the contract followed by semicolon in interface

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15799 Issue ID: 15799 Summary: Misleading error message against the contract followed by semicolon in interface Product: D Version: D2 Hardware: All OS: All

Walter, I need a __trait please.

2016-03-14 Thread Stefan Koch via Digitalmars-d
Hi, I found myself in need of __trait that might be useful to include. something that would give me the parameters of a the body of the lambda as string and the parmeters of a lambda as AliasSequence. e.g foreach (p;__traits(lambda, (x,y) => x < y)) { writeln(p); } would output x y x < y I

Re: [Request] A way to extract all instance of X from a range

2016-03-14 Thread Stefan Koch via Digitalmars-d
On Monday, 14 March 2016 at 23:34:37 UTC, Stefan Koch wrote: On Monday, 14 March 2016 at 08:04:18 UTC, deadalnix wrote: Right now, I'm repeating the following pattern many times : range.map!(x => cast(Foo) x).filter!(x => x !is null) Which is kind of annoying. Could we get something in phobos

[Issue 15798] New: std.algorithm.mutation.copy takes target by value

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15798 Issue ID: 15798 Summary: std.algorithm.mutation.copy takes target by value Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

Re: D vs Rust

2016-03-14 Thread bearophile via Digitalmars-d
gour: For quite some time I was looking at Ada as potential language to write multi-platform desktop application, but, being the big language which requires lot of time and energy to invest into learning/mastering it, I, somehow, feel reluctant seeing that there is practically no open-source

Re: [Request] A way to extract all instance of X from a range

2016-03-14 Thread Stefan Koch via Digitalmars-d
On Monday, 14 March 2016 at 08:04:18 UTC, deadalnix wrote: Right now, I'm repeating the following pattern many times : range.map!(x => cast(Foo) x).filter!(x => x !is null) Which is kind of annoying. Could we get something in phobos to do this ? There you go ;) alias castRange(T) = map!(x

Re: [Request] A way to extract all instance of X from a range

2016-03-14 Thread Stefan Koch via Digitalmars-d
On Monday, 14 March 2016 at 08:04:18 UTC, deadalnix wrote: Right now, I'm repeating the following pattern many times : range.map!(x => cast(Foo) x).filter!(x => x !is null) Which is kind of annoying. Could we get something in phobos to do this ? you could use an alias. alias NullFliter =

Re: Not sure how to translate this C++ variable to D.

2016-03-14 Thread Ali Çehreli via Digitalmars-d-learn
On 03/14/2016 03:14 PM, WhatMeWorry wrote: > > sprite_renderer.h -- > > class SpriteRenderer > { > ... > }; Same thing in D without the semicolon. :) > game.cpp > > #include "sprite_renderer.h" > > SpriteRenderer

Re: Can DUB --combined builds be faster?

2016-03-14 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 14 March 2016 at 11:50:38 UTC, Rene Zwanenburg wrote: It shouldn't make a difference for the resulting executable, but compilation itself may be faster. I did a little test just to be sure. Two DUB packages, one with: module m; string foo() { return "asdf"; } And the other:

Not sure how to translate this C++ variable to D.

2016-03-14 Thread WhatMeWorry via Digitalmars-d-learn
sprite_renderer.h -- class SpriteRenderer { ... }; game.cpp #include "sprite_renderer.h" SpriteRenderer *Renderer; Game::Game(GLuint width, GLuint height) : State(GAME_ACTIVE), Keys(), Width(width),

Re: the most D-ish GUI library

2016-03-14 Thread Jordi Sayol via Digitalmars-d
El 14/03/16 a les 17:13, Luis via Digitalmars-d ha escrit: > If I remember correctly tkd just works on Windows installing tk/tcl. TkD works on Linux. there are available deb packages at d-apt

Re: the most D-ish GUI library

2016-03-14 Thread Saša Janiška via Digitalmars-d
Luis writes: > A bit offtopic, but I think that we need is our D-ish wxWidgets > equivalent. In other words, a GUI that uses native widgets across > plataforms and all the power of D. Well, I see that wxWidgets is mature product and is heavily struggling with manpower

Re: the most D-ish GUI library

2016-03-14 Thread Saša Janiška via Digitalmars-d
Jacob Carlborg writes: > Well, currently there is no support for OS X so if that's a > requirement then DWT will obviously not work. Well, OS X and Windows are 'nice to have'. > Personally I would not create an application for OS X at all if it did > not have a native GUI. It

[Issue 15797] Add Option to Not Drop Matches in std.regex.splitter

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15797 Jack Stouffer changed: What|Removed |Added Priority|P1 |P3 --

[Issue 15797] New: Add Option to Not Drop Matches in std.regex.splitter

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15797 Issue ID: 15797 Summary: Add Option to Not Drop Matches in std.regex.splitter Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 15784] Overload set constructor call should be supported from inside a constructor

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15784 --- 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/c52dc4733fd2cba284d8b8ff35bcf4e39ba7ebcd fix Issue 15784 - Overload

[Issue 15784] Overload set constructor call should be supported from inside a constructor

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

Re: the most D-ish GUI library

2016-03-14 Thread Jacob Carlborg via Digitalmars-d
On 14/03/16 10:20, Saša Janiška wrote: Jaocb Carlborg writes: There's DWT [1] as well. Wrong URL. ;) How embarrassing :). Here is the correct URL [1] for reference. I must admit I'm totally ignorant about Java and I neither use like the language nor do I use any Java app.

Re: year to date pull statistics

2016-03-14 Thread Brad Roberts via Digitalmars-d
Updating last week's email, the pull statistics for the D-P-L dmd, runtime, and phobos repositories: total open: 263 created since 2016-01-01 and still open: 82 created closed delta 2016-03-13 - today 8 10 +2 2016-03-06 - 2016-13-12 41 46

[Issue 15796] REF_ALTTEXT doesn't work yet

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15796 Jakob Ovrum changed: What|Removed |Added CC||jakobov...@gmail.com

Re: Sort using Uniform call syntax

2016-03-14 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, March 14, 2016 11:27:30 Ali Çehreli via Digitalmars-d-learn wrote: > On 03/14/2016 06:56 AM, Jonathan M Davis via Digitalmars-d-learn wrote: > > On Monday, March 14, 2016 04:14:26 Ali Çehreli via Digitalmars-d-learn wrote: > >> On 03/14/2016 04:01 AM, Jerry wrote: > >> > I have a

Re: RFC: Units of measurement for D (Phobos?)

2016-03-14 Thread Robert burner Schadek via Digitalmars-d
have a look at this! https://github.com/biozic/quantities

[Issue 15796] REF_ALTTEXT doesn't work yet

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15796 greenify changed: What|Removed |Added CC||greeen...@gmail.com --

[Issue 15796] New: REF_ALTTEXT doesn't work yet

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15796 Issue ID: 15796 Summary: REF_ALTTEXT doesn't work yet Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority:

Re: the most D-ish GUI library

2016-03-14 Thread Chris Wright via Digitalmars-d
On Mon, 14 Mar 2016 08:52:37 +0100, Saša Janiška wrote: > Chris Wright writes: > >> I'm guessing dlangui will be best here, but GtkD is pretty good. > > What might be some 'pro' of dlangui? dlangui is written entirely in D, which makes it a little easier to make it more

Re: RFC: Units of measurement for D (Phobos?)

2016-03-14 Thread Chris Wright via Digitalmars-d
On Mon, 14 Mar 2016 09:04:28 +, Nordlöw wrote: > I've gained time and energy to take up this task again. It seems like > David Nadlinger's solution is very complete: > > https://github.com/klickverbot/phobos/tree/undefined > > http://klickverbot.at/code/units/std_si.html Ohm my, that's

Re: Sort using Uniform call syntax

2016-03-14 Thread Ali Çehreli via Digitalmars-d-learn
On 03/14/2016 06:56 AM, Jonathan M Davis via Digitalmars-d-learn wrote: On Monday, March 14, 2016 04:14:26 Ali Çehreli via Digitalmars-d-learn wrote: On 03/14/2016 04:01 AM, Jerry wrote: > I have a small problem with using UCS when sorting arrays. This pops a > warning telling me to use the

Re: dlang.org Re-Design Dark Theme

2016-03-14 Thread jmh530 via Digitalmars-d-announce
On Monday, 14 March 2016 at 17:39:43 UTC, Russel Winder wrote: Your choice, which is why the site should have both, so as not to piss off the people who disagree. Fair enough.

Re: Gdmd compiling error

2016-03-14 Thread Ali Çehreli via Digitalmars-d-learn
On 03/14/2016 10:08 AM, Marc Schütz wrote: > What does `which gdc` print? If it says something like "which: no gdc in > ...", there is a problem with the installation of GDC. Otherwise, you > can use the following as a quick workaround: > > sudo ln -s `which gdc` /usr/local/bin/gdc > > The

Re: std.range.chunks with only an InputRange

2016-03-14 Thread Seb via Digitalmars-d
On Monday, 14 March 2016 at 17:38:45 UTC, Tamas wrote: I just run into this. Would be nice to have this! There's no reason why chunks should only work on ForwardRanges. I opened a PR for this: https://github.com/D-Programming-Language/phobos/pull/4060 However I guess a proper library solution

Re: std.range.chunks with only an InputRange

2016-03-14 Thread Tamas via Digitalmars-d
I just run into this. Would be nice to have this! There's no reason why chunks should only work on ForwardRanges.

Re: dlang.org Re-Design Dark Theme

2016-03-14 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2016-03-14 at 17:14 +, jmh530 via Digitalmars-d-announce wrote: > On Monday, 14 March 2016 at 16:42:27 UTC, Russel Winder wrote: > > > > Light writing on dark background is so much nicer that the  > > reverse. > I disagree. Your choice, which is why the site should have both, so as

Re: dlang.org Re-Design Dark Theme

2016-03-14 Thread Jakob Ovrum via Digitalmars-d-announce
On Monday, 14 March 2016 at 16:42:27 UTC, Russel Winder wrote: Is this intended as a Stylist style option for the site? Yeah, I just don't want to bother with authenticating on their site right now. Feel free to submit it if you'd like to see it there. I don't know how maintenance/updating

Re: Pitching D to a gang of Gophers

2016-03-14 Thread sanjayss via Digitalmars-d
On Wednesday, 9 March 2016 at 13:23:55 UTC, Andrei Alexandrescu wrote: On 03/07/2016 02:17 PM, landaire wrote: I'd like to add that one of the things that I love about Go is that it is crazy easy to cross-compile. `GOOS=freebsd go build` and I have a FreeBSD binary sitting in my working

Re: dlang.org Re-Design Dark Theme

2016-03-14 Thread jmh530 via Digitalmars-d-announce
On Monday, 14 March 2016 at 16:42:27 UTC, Russel Winder wrote: Light writing on dark background is so much nicer that the reverse. I disagree.

Re: dlang.org Re-Design Dark Theme

2016-03-14 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2016-03-14 at 12:00 +, Jakob Ovrum via Digitalmars-d- announce wrote: > Hello, > > Here's a light-on-dark theme userstyle for the recent dlang.org  > re-design: Is this intended as a Stylist style option for the site? Light writing on dark background is so much nicer that the

Re: Gdmd compiling error

2016-03-14 Thread Marc Schütz via Digitalmars-d-learn
On Monday, 14 March 2016 at 14:46:06 UTC, Orkhan wrote: On Monday, 14 March 2016 at 11:11:28 UTC, Ali Çehreli wrote: On 03/14/2016 02:56 AM, Orkhan wrote: > THe output like that : > root@ubuntu:/opt/xcomm# gdmd > Can't exec "/usr/local/bin/gdc": No such file or directory at Ok, now you need

Re: Pitching D to a gang of Gophers

2016-03-14 Thread Dmitry Olshansky via Digitalmars-d
On 14-Mar-2016 00:32, cym13 wrote: On Sunday, 13 March 2016 at 21:16:45 UTC, Dmitry Olshansky wrote: On 13-Mar-2016 22:13, kdmult wrote: On Saturday, 12 March 2016 at 08:09:41 UTC, Dmitry Olshansky wrote: On 05-Mar-2016 14:05, Dmitry Olshansky wrote: Obligatory slides:

[Issue 15793] Change !is error to warning

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15793 --- Comment #4 from Jonathan M Davis --- At this point, comparing null objects will work just fine, since the free function opEquals that calls the member function opEquals for classes checks for null first, but if you

Re: the most D-ish GUI library

2016-03-14 Thread Luis via Digitalmars-d
On Monday, 14 March 2016 at 09:20:08 UTC, Saša Janiška wrote: Jaocb Carlborg writes: and there's no support for OS X. If you say that "anything that is non-native or doesn't look native is not acceptable on OS X" what is the advantage of DWT in comparison with GtkD for

Re: D could catch this wave: web assembly

2016-03-14 Thread CraigDillabaugh via Digitalmars-d
On Monday, 14 March 2016 at 15:53:39 UTC, Joakim wrote: On Monday, 14 March 2016 at 15:14:17 UTC, CraigDillabaugh wrote: On Monday, 14 March 2016 at 07:46:28 UTC, Joakim wrote: On Saturday, 27 June 2015 at 15:01:53 UTC, Ola Fosheim Grøstad wrote: [...] You got your wish, they just exposed

Re: the most D-ish GUI library

2016-03-14 Thread Luis via Digitalmars-d
On Sunday, 13 March 2016 at 22:26:48 UTC, Saša Janiška wrote: I've selected three different libraries: a) dlangui (https://github.com/buggins/dlangui b) GtkD (https://github.com/gtkd-developers/GtkD and c) tkd (https://github.com/nomad-software/tkd) Debian Linux (Sid, x86_64) is my native

Re: Where do I learn to use GtkD

2016-03-14 Thread Gerald via Digitalmars-d-learn
On Monday, 14 March 2016 at 07:38:43 UTC, Russel Winder wrote: What we need here is a collection of people reviewing each others GtkD code and having a listing board somewhere on the GtkD site of all the codes available and what they show. It is the annotations as much as the code itself that

Re: D could catch this wave: web assembly

2016-03-14 Thread Joakim via Digitalmars-d
On Monday, 14 March 2016 at 15:14:17 UTC, CraigDillabaugh wrote: On Monday, 14 March 2016 at 07:46:28 UTC, Joakim wrote: On Saturday, 27 June 2015 at 15:01:53 UTC, Ola Fosheim Grøstad wrote: [...] You got your wish, they just exposed webasm through v8 a couple days ago: [...] I am still

[Issue 15784] Overload set constructor call should be supported from inside a constructor

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15784 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #2 from

Re: D could catch this wave: web assembly

2016-03-14 Thread CraigDillabaugh via Digitalmars-d
On Monday, 14 March 2016 at 07:46:28 UTC, Joakim wrote: On Saturday, 27 June 2015 at 15:01:53 UTC, Ola Fosheim Grøstad wrote: [...] You got your wish, they just exposed webasm through v8 a couple days ago: [...] I am still getting student interest in new proposals ... are you interested

[Issue 15778] [REG2.064] polysemous string type doesn't work in array operation

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15778 --- Comment #8 from Sobirari Muhomori --- (In reply to ag0aep6g from comment #1) > The 'regression' severity level indicates that the code works with a > previous version of dmd. What version does it work with? I upgraded

Re: D could catch this wave: web assembly

2016-03-14 Thread Ola Fosheim Grøstad via Digitalmars-d
On Monday, 14 March 2016 at 07:46:28 UTC, Joakim wrote: On Saturday, 27 June 2015 at 15:01:53 UTC, Ola Fosheim Grøstad wrote: On Friday, 26 June 2015 at 02:29:40 UTC, deadalnix wrote: By this time we'd have a PR and we could play with it to decide using first hand experience. For which

Re: Gdmd compiling error

2016-03-14 Thread Orkhan via Digitalmars-d-learn
On Monday, 14 March 2016 at 11:11:28 UTC, Ali Çehreli wrote: On 03/14/2016 02:56 AM, Orkhan wrote: > THe output like that : > root@ubuntu:/opt/xcomm# gdmd > Can't exec "/usr/local/bin/gdc": No such file or directory at Ok, now you need to install gdc: http://gdcproject.org/downloads In

[Issue 15793] Change !is error to warning

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15793 --- Comment #3 from Sobirari Muhomori --- In reality I'm comparing COM interfaces. I removed the check, it was defensive anyway. That's my concern actually: such checks should be a no-brainer or it will cause very nasty

[Issue 15744] [REG2.067] (SIGABRT) Error: overloadset t.Bar.__ctor is aliased to a function

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15744 --- Comment #7 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/1b4eefa55a3933ee214576612d1cbc81b5426d04 fix Issue 15744 - (SIGABRT)

[Issue 15665] Templated scope class with constructor don't compile

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15665 --- 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/e8c4f5ed9124a3e18081699789ad5cd6efc7aa94 Fix issue #15665: Templated

[Issue 15778] [REG2.064] polysemous string type doesn't work in array operation

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15778 --- Comment #7 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/f3849978badaf2e07966c2f6c5c8af50486a1b0a fix Issue 15778 -

Re: std.stdio.File.seek error

2016-03-14 Thread Mike Parker via Digitalmars-d-learn
On Monday, 14 March 2016 at 14:19:27 UTC, stunaep wrote: I'm on my phone but I think It said something like Deprecation: module std.stdio not accessible from here. Try import static std.stdio Deprecation: module std.stdio is not accessible here, perhaps add 'static import std.stdio;' The

Re: the most D-ish GUI library

2016-03-14 Thread Martin Tschierschke via Digitalmars-d
On Sunday, 13 March 2016 at 22:26:48 UTC, Saša Janiška wrote: b) GtkD (https://github.com/gtkd-developers/GtkD and There may be more or better, but I found this tutorial useful: http://www.britseyeview.com/software/articles/ : Getting Started with Gtkd:

Re: std.stdio.File.seek error

2016-03-14 Thread Kagamin via Digitalmars-d-learn
On Monday, 14 March 2016 at 14:19:27 UTC, stunaep wrote: I'm on my phone but I think It said something like Deprecation: module std.stdio not accessible from here. Try import static std.stdio That's fix for bug https://issues.dlang.org/show_bug.cgi?id=313 See the code where std.stdio is not

[Issue 15793] Change !is error to warning

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15793 Jonathan M Davis changed: What|Removed |Added CC|

Re: std.stdio.File.seek error

2016-03-14 Thread stunaep via Digitalmars-d-learn
On Monday, 14 March 2016 at 13:33:36 UTC, Mike Parker wrote: On Monday, 14 March 2016 at 09:57:19 UTC, stunaep wrote: It looks like _fseeki64 is in the nightly build but not dmd 2.070.2; However, the nightly build says std.stdio and std.conv are deprecated and I cant use them. I think you

[Issue 15794] Lambda cannot get a chance to run its codegen

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15794 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #3 from

Re: Sort using Uniform call syntax

2016-03-14 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, March 14, 2016 04:14:26 Ali Çehreli via Digitalmars-d-learn wrote: > On 03/14/2016 04:01 AM, Jerry wrote: > > I have a small problem with using UCS when sorting arrays. This pops a > > warning telling me to use the algorithm sort instead of the property > > sort. Which I understand

Re: dlang.org Re-Design Dark Theme

2016-03-14 Thread Jakob Ovrum via Digitalmars-d-announce
On Monday, 14 March 2016 at 13:25:02 UTC, Nordlöw wrote: On Monday, 14 March 2016 at 12:00:24 UTC, Jakob Ovrum wrote: Suggestions, forks, uploads to Stylish and so forth are all welcome. The important part is that we have an alternative that is nice on the eyes for us who use dark-coloured

Re: Specialized template in different module

2016-03-14 Thread Mike Parker via Digitalmars-d-learn
On Monday, 14 March 2016 at 08:42:58 UTC, John wrote: If I define a template in one module, and specialize it in a second module, the compiler doesn't like it when I try to call a function using the template. If I put everything in the same module it works. So are template specializations

Re: std.stdio.File.seek error

2016-03-14 Thread Mike Parker via Digitalmars-d-learn
On Monday, 14 March 2016 at 09:57:19 UTC, stunaep wrote: It looks like _fseeki64 is in the nightly build but not dmd 2.070.2; However, the nightly build says std.stdio and std.conv are deprecated and I cant use them. I think you may be misinterpreting the error message. There was a change

[Issue 15772] emplace works with abstract classes but it shouldn't

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15772 --- Comment #1 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/f8bde7f8904b3bb47a93e23c48c98da3f407dd67 fixed issue 15772

Re: dlang.org Re-Design Dark Theme

2016-03-14 Thread Nordlöw via Digitalmars-d-announce
On Monday, 14 March 2016 at 12:00:24 UTC, Jakob Ovrum wrote: Suggestions, forks, uploads to Stylish and so forth are all welcome. The important part is that we have an alternative that is nice on the eyes for us who use dark-coloured UIs. Looks great, apart from the red-flags on the

[Issue 15794] Lambda cannot get a chance to run its codegen

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15794 Kenji Hara changed: What|Removed |Added Keywords||link-failure

dlang.org Re-Design Dark Theme

2016-03-14 Thread Jakob Ovrum via Digitalmars-d-announce
Hello, Here's a light-on-dark theme userstyle for the recent dlang.org re-design: https://gist.github.com/JakobOvrum/e00f97f30bba4b24b6bc The front page looks like this: https://i.imgur.com/zuwVu7r.png The theme supports the front page, articles, language specification, Phobos

Re: Can DUB --combined builds be faster?

2016-03-14 Thread Rene Zwanenburg via Digitalmars-d-learn
On Monday, 14 March 2016 at 11:03:41 UTC, Guillaume Piolat wrote: I'm cargo-culting the use of --combined with DUB because I somehow think inlining will be better in this way. (For thos who don't use DUB, what it does is compiling the whole program with a single compiler invokation instead of

Re: Using tango or other static lib in static lib

2016-03-14 Thread Voitech via Digitalmars-d-learn
On Sunday, 13 March 2016 at 01:08:29 UTC, Mike Parker wrote: On Sunday, 13 March 2016 at 01:06:33 UTC, Mike Parker wrote: it. Assuming both files live in the same directory, they can be compiled with this command: Somehow I deleted that line: dmd main.d something.d Wow. Thank You very

Re: [Request] A way to extract all instance of X from a range

2016-03-14 Thread thedeemon via Digitalmars-d
On Monday, 14 March 2016 at 08:04:18 UTC, deadalnix wrote: Right now, I'm repeating the following pattern many times : range.map!(x => cast(Foo) x).filter!(x => x !is null) This reminds me of a function in OCaml extended stdlib that I've used quite often and really miss in D: filter_map :

Re: Sort using Uniform call syntax

2016-03-14 Thread Ali Çehreli via Digitalmars-d-learn
On 03/14/2016 04:01 AM, Jerry wrote: > I have a small problem with using UCS when sorting arrays. This pops a > warning telling me to use the algorithm sort instead of the property > sort. Which I understand why it works that way. However that means I can > not have syntactic sugar. So is there

Re: Gdmd compiling error

2016-03-14 Thread Ali Çehreli via Digitalmars-d-learn
On 03/14/2016 02:56 AM, Orkhan wrote: > THe output like that : > root@ubuntu:/opt/xcomm# gdmd > Can't exec "/usr/local/bin/gdc": No such file or directory at Ok, now you need to install gdc: http://gdcproject.org/downloads In short, the project that you are trying to build depends on gdmd,

Can DUB --combined builds be faster?

2016-03-14 Thread Guillaume Piolat via Digitalmars-d-learn
I'm cargo-culting the use of --combined with DUB because I somehow think inlining will be better in this way. (For thos who don't use DUB, what it does is compiling the whole program with a single compiler invokation instead of making one static library by package.) But I've never measured

Sort using Uniform call syntax

2016-03-14 Thread Jerry via Digitalmars-d-learn
I have a small problem with using UCS when sorting arrays. This pops a warning telling me to use the algorithm sort instead of the property sort. Which I understand why it works that way. However that means I can not have syntactic sugar. So is there any way around this or do I just have to

Re: Specialized template in different module

2016-03-14 Thread ag0aep6g via Digitalmars-d-learn
On 14.03.2016 09:42, John wrote: module one; struct Test(T) {} void testing(T)(Test!T t) {} module two; struct Test(T : int) {} void main() { Test!int i; testing!int(i); } Output: error : testing (Test!int t) is not callable using argument types (Test!int)

[Issue 15795] New: bogus "conflicts with" error depending on order of declaration

2016-03-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15795 Issue ID: 15795 Summary: bogus "conflicts with" error depending on order of declaration Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: Gdmd compiling error

2016-03-14 Thread Ali Çehreli via Digitalmars-d-learn
On 03/14/2016 02:29 AM, Orkhan wrote: > root@ubuntu:/home/alikoza/Downloads/GDMD-master# sudo make install > rm -f /usr/local/bin/gdmd > install dmd-script /usr/local/bin/gdmd Good: gdmd seems to be installed. Please type 'gdmd' to confirm. Note: You may see errors like 'Can't exec

Re: std.stdio.File.seek error

2016-03-14 Thread stunaep via Digitalmars-d-learn
On Monday, 14 March 2016 at 07:15:01 UTC, Nicholas Wilson wrote: On Monday, 14 March 2016 at 05:24:48 UTC, stunaep wrote: On Monday, 14 March 2016 at 03:07:05 UTC, Nicholas Wilson wrote: [...] I'm currently on windows 7. The code you gave me prints 022. It's weird because it always tries to

Re: Gdmd compiling error

2016-03-14 Thread Orkhan via Digitalmars-d-learn
On Monday, 14 March 2016 at 09:48:00 UTC, Ali Çehreli wrote: On 03/14/2016 02:29 AM, Orkhan wrote: > root@ubuntu:/home/alikoza/Downloads/GDMD-master# sudo make install > rm -f /usr/local/bin/gdmd > install dmd-script /usr/local/bin/gdmd Good: gdmd seems to be installed. Please type 'gdmd' to

Re: [Request] A way to extract all instance of X from a range

2016-03-14 Thread ZombineDev via Digitalmars-d
On Monday, 14 March 2016 at 08:04:18 UTC, deadalnix wrote: Right now, I'm repeating the following pattern many times : range.map!(x => cast(Foo) x).filter!(x => x !is null) Which is kind of annoying. Could we get something in phobos to do this ? BTW, .NET has an extension method called

Re: Gdmd compiling error

2016-03-14 Thread Ali Çehreli via Digitalmars-d-learn
On 03/14/2016 02:15 AM, Orkhan wrote: >> I think you need to install gdmd: >> >> https://github.com/D-Programming-GDC/GDMD Yes I have seen that page. But I don't know how to make that . I think I need to upload all files then unzip then just type make ? could you please let me know.

Re: RFC: Units of measurement for D (Phobos?)

2016-03-14 Thread Nordlöw via Digitalmars-d
On Monday, 14 March 2016 at 09:37:10 UTC, Nordlöw wrote: One more thing: Angular units: I suggest non-SI-derived units for `Radian` and `Steradian` instead. Then, degrees and other derived angular units shall be expressed as scaled versions of these. Oops, already defined here:

Re: RFC: Units of measurement for D (Phobos?)

2016-03-14 Thread Nordlöw via Digitalmars-d
On Monday, 14 March 2016 at 09:10:21 UTC, Nordlöw wrote: http://klickverbot.at/code/units/std_si.html One more thing: Angular units: I suggest non-SI-derived units for `Radian` and `Steradian` instead. Then, degrees and other derived angular units shall be expressed as scaled versions of

Re: Gdmd compiling error

2016-03-14 Thread Orkhan via Digitalmars-d-learn
On Monday, 14 March 2016 at 09:24:19 UTC, Ali Çehreli wrote: On 03/14/2016 02:15 AM, Orkhan wrote: >> I think you need to install gdmd: >> >> https://github.com/D-Programming-GDC/GDMD Yes I have seen that page. But I don't know how to make that . I think I need to upload all files then

Re: the most D-ish GUI library

2016-03-14 Thread Saša Janiška via Digitalmars-d
Jaocb Carlborg writes: > There's DWT [1] as well. Wrong URL. ;) I know about DWT, but when I was considering D in the past, DWT was not actively developed and was, iirc, in kind of maint. mode only. > Which uses native drawing operations and are completely written in D. That's

Re: Gdmd compiling error

2016-03-14 Thread Orkhan via Digitalmars-d-learn
On Monday, 14 March 2016 at 09:06:30 UTC, Ali Çehreli wrote: On 03/14/2016 02:01 AM, Orkhan wrote: > I changed all gdmd to dmd and still not getting result . the outputs > after changing dmd is : > > Error: unrecognized switch '-q,-rdynamic' Sorry to have misled you. Apparently, those are gcc

Re: RFC: Units of measurement for D (Phobos?)

2016-03-14 Thread Nordlöw via Digitalmars-d
On Monday, 14 March 2016 at 09:04:28 UTC, Nordlöw wrote: http://klickverbot.at/code/units/std_units.html#PrefixSystem Should be: http://klickverbot.at/code/units/std_si.html

Re: Gdmd compiling error

2016-03-14 Thread Ali Çehreli via Digitalmars-d-learn
On 03/14/2016 02:01 AM, Orkhan wrote: > I changed all gdmd to dmd and still not getting result . the outputs > after changing dmd is : > > Error: unrecognized switch '-q,-rdynamic' Sorry to have misled you. Apparently, those are gcc compiler switches that are not supported by dmd. > On

Re: the most D-ish GUI library

2016-03-14 Thread Jaocb Carlborg via Digitalmars-d
On Sunday, 13 March 2016 at 22:26:48 UTC, Saša Janiška wrote: Hello, After long pause and trying some other languages, I've decided to try (again) with D for writing open-source multi-platform desktop (GUI) application. I've selected three different libraries: a) dlangui

Re: Gdmd compiling error

2016-03-14 Thread Orkhan via Digitalmars-d-learn
On Monday, 14 March 2016 at 07:52:18 UTC, Ali Çehreli wrote: On 03/13/2016 06:07 AM, Orkhan wrote: > It is in linux system , and when I type make command it returns error like: > /bin/sh: 1: gdmd: not found I think you need to install gdmd: https://github.com/D-Programming-GDC/GDMD

Re: RFC: Units of measurement for D (Phobos?)

2016-03-14 Thread Nordlöw via Digitalmars-d
On Thursday, 10 September 2015 at 07:01:19 UTC, David Nadlinger wrote: You must be confusing the library with something else (or me with another David). I'm pretty sure that my original proof-of-concept is the most flexible of all of them, coming with support for composing arbitrary runtime

  1   2   >