Re: skinny delegates

2018-08-02 Thread Mathias Lang via Digitalmars-d
On Monday, 30 July 2018 at 21:02:56 UTC, Steven Schveighoffer wrote: Would it be a valid optimization to have D remove the requirement for allocation when it can determine that the entire data structure of the item in question is an rvalue, and would fit into the data pointer part of the delega

Re: Is there any good reason why C++ namespaces are "closed" in D?

2018-07-31 Thread Mathias Lang via Digitalmars-d
On Tuesday, 31 July 2018 at 08:33:52 UTC, Daniel N wrote: On Monday, 30 July 2018 at 13:48:46 UTC, Atila Neves wrote: On Sunday, 29 July 2018 at 03:20:29 UTC, Walter Bright wrote: On 7/28/2018 11:18 AM, Manu wrote: Make a PR that implements namespace as a string... I will use that fork of D fo

Re: Is there any good reason why C++ namespaces are "closed" in D?

2018-07-31 Thread Mathias Lang via Digitalmars-d
On Tuesday, 31 July 2018 at 06:12:40 UTC, Walter Bright wrote: Thirdly, C and C++ are loaded to the gills with seemed-like-a-good-idea-at-the-time solutions that turned out to have bad unintended consequences that bork up the language for everyone down the line. D has some of those, too. An

Re: DIP 1006 - Preliminary Review Round 1

2017-04-12 Thread Mathias Lang via Digitalmars-d
On Wednesday, 12 April 2017 at 16:22:00 UTC, Lewis wrote: I have to ask the newbie question, just to make sure we're not missing anything obvious. Why can't we fix invariants so that they're pay-for-what-you-use? In other words, is there a way we can make sure _d_invariant is never called (or

Re: DIP 1006 - Preliminary Review Round 1

2017-04-12 Thread Mathias Lang via Digitalmars-d
On Wednesday, 12 April 2017 at 13:45:08 UTC, Andrea Fontana wrote: On Wednesday, 12 April 2017 at 11:25:09 UTC, Mike Parker wrote: DIP 1006 is titled "Providing more selective control over contracts". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1006.md All review-related feedback on and

Re: DIP 1006 - Preliminary Review Round 1

2017-04-12 Thread Mathias Lang via Digitalmars-d
On Wednesday, 12 April 2017 at 12:52:42 UTC, Timon Gehr wrote: On 12.04.2017 13:25, Mike Parker wrote: DIP 1006 is titled "Providing more selective control over contracts". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1006.md All review-related feedback on and discussion of the DIP shou

Re: DIP 1006 - Preliminary Review Round 1

2017-04-12 Thread Mathias Lang via Digitalmars-d
On Wednesday, 12 April 2017 at 11:32:37 UTC, rikki cattermole wrote: On 12/04/2017 12:25 PM, Mike Parker wrote: DIP 1006 is titled "Providing more selective control over contracts". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1006.md All review-related feedback on and discussion of the

Re: memcpy() comparison: C, Rust, and D

2017-01-31 Thread Mathias Lang via Digitalmars-d
On Tuesday, 31 January 2017 at 01:30:48 UTC, Walter Bright wrote: By this information being knowable from the declaration, the compiler knows it too and can make use of it. *Can* make use of it... But won't. Any code calling memcpy has to be in a @trusted wrapper, in which `return scope` is

Re: DIP10005: Dependency-Carrying Declarations is now available for community feedback

2016-12-14 Thread Mathias Lang via Digitalmars-d
On Wednesday, 14 December 2016 at 09:01:30 UTC, Joseph Rushton Wakeling wrote: On Wednesday, 14 December 2016 at 07:17:57 UTC, Jacob Carlborg wrote: On 2016-12-14 03:23, Andrei Alexandrescu wrote: On 12/13/16 9:22 PM, Hatem Oraby wrote: with(import std.range) bool equal(R1, R2) if (isInputRa

Re: So these two compile and, in non-debug builds, run just fine

2016-11-25 Thread Mathias Lang via Digitalmars-d
2016-11-25 16:30 GMT+01:00 Steven Schveighoffer via Digitalmars-d < digitalmars-d@puremagic.com>: > > But I think Walter's scope changes (DIP 1001 I think?) will make it so the > compiler rejects this even in non-safe mode. > > -Steve > You are correct that DIP1000 will fix that. However it will

Re: Idea for a new tool

2016-10-14 Thread Mathias Lang via Digitalmars-d
On Friday, 14 October 2016 at 13:21:18 UTC, Andrei Alexandrescu wrote: On 10/14/2016 09:20 AM, rikki cattermole wrote: On 15/10/2016 2:17 AM, Andrei Alexandrescu wrote: On 10/14/2016 09:15 AM, rikki cattermole wrote: On 15/10/2016 2:13 AM, Andrei Alexandrescu wrote: https://issues.dlang.org/s

Re: Old bugs

2016-10-14 Thread Mathias Lang via Digitalmars-d
I've been doing a bit of triaging when I got time, trying to get rid of old bugs / duplicated. It's usually easy to confirm a bug if there's a minimal code example, in which case you can just close it. The enhancement requests, however, nobody but a bunch of people in the core team can get rid of

Re: Default Template Instantiation

2016-09-19 Thread Mathias Lang via Digitalmars-d
2016-09-19 23:18 GMT+02:00 Jonathan Marler via Digitalmars-d < digitalmars-d@puremagic.com>: > On Monday, 19 September 2016 at 21:14:38 UTC, Stefan Koch wrote: > >> On Monday, 19 September 2016 at 21:09:37 UTC, Jonathan Marler wrote: >> >>> >>> I don't know if I would call this a "destabalizing" l

Re: DMD front-end can be used as a library with Dub

2016-09-19 Thread Mathias Lang via Digitalmars-d
On Monday, 29 August 2016 at 10:42:23 UTC, Alexander Breckel wrote: Please note: This is "only" the dmd frontend (lexer, parser, semantic passes, CTFE). Code generation will be more complicated. Interesting. Did you have inline ASM in your code ? From my experience it required the backend t

Re: refRange and @disable this(this);

2016-09-14 Thread Mathias Lang via Digitalmars-d
You should be able to work around this by using `for` loop instead of `foreach`. IMO that's a design bug in `foreach`: https://issues.dlang.org/show_bug.cgi?id=15413 2016-09-14 14:39 GMT+02:00 Jerry via Digitalmars-d < digitalmars-d@puremagic.com>: > I got a range which disables copy construction

Re: Vision for the D language - stabilizing complexity?

2016-07-18 Thread Mathias Lang via Digitalmars-d
2016-07-18 15:48 GMT+02:00 Andrew Godfrey via Digitalmars-d < digitalmars-d@puremagic.com>: > > We risk scaring away potential community members, and alienating existing > ones, by the way we say "no" to proposals for breaking changes. We could > improve how we say "no", by having a place to point

Re: Trivial Pull Requests

2016-07-03 Thread Mathias Lang via Digitalmars-d
Labels can only be applied by contributors, in other words people with merge access. So this is only useful for P.R. made by contributors. I doubt a contributor seeing a trivial P.R. (made by a non-contributor) will label it, instead of just pulling the auto-merge trigger. So I'll stick with `[Triv

Re: front stability

2016-06-30 Thread Mathias Lang via Digitalmars-d
2016-06-02 14:51 GMT+02:00 Steven Schveighoffer via Digitalmars-d < digitalmars-d@puremagic.com>: > I have always treated ranges with this expectation: > > I think the case is pretty clear here, and I'm in agreement with you. I just want to add a note on the following point: 2016-06-02 14:51 GMT+

Re: DMD 2.071.1 and Issue 15925 - [REG 2.071] Import declaration from mixin templates are ignored

2016-06-30 Thread Mathias Lang via Digitalmars-d
2016-06-30 14:20 GMT+02:00 captaindet via Digitalmars-d < digitalmars-d@puremagic.com>: > > does this mean mixin templates now have no way of adding imports to the > scope they are mixed in? > That's exactly what it means. Likewise a base class cannot add an import that will be visible by it's sub

Re: DMD 2.071.1 and Issue 15925 - [REG 2.071] Import declaration from mixin templates are ignored

2016-06-30 Thread Mathias Lang via Digitalmars-d
2016-06-30 11:09 GMT+02:00 qznc via Digitalmars-d < digitalmars-d@puremagic.com>: > > I don't see this properly documented [0]. > > It seems that imports in mixins are not visible even if declared public? > This means mixin imports are special? > > The issue also features a "protected imported". I

Re: DMD 2.071.1 and Issue 15925 - [REG 2.071] Import declaration from mixin templates are ignored

2016-06-30 Thread Mathias Lang via Digitalmars-d
Author here. I originally thought the issue was that an 'imported' scope imports are not considered anymore. As Walter explained in this issue and in https://issues.dlang.org/show_bug.cgi?id=15966 this behaviour changed to prevent hijacking and is intended. So the only issue left with 15925 was tha

Re: static if enhancement

2016-06-24 Thread Mathias Lang via Digitalmars-d
On Friday, 24 June 2016 at 15:29:18 UTC, Steven Schveighoffer wrote: On 6/24/16 11:24 AM, Andrei Alexandrescu wrote: Does anyone else find this annoying? https://issues.dlang.org/show_bug.cgi?id=16201 -- Andrei Maybe. That bug report does not identify any problems. What happens that's current

Re: Non movable structs

2016-06-19 Thread Mathias Lang via Digitalmars-d
Normally, you would need to disable both identity opAssign and postblit and it should work. At the moment, it works for the struct itself, however it breaks when the struct is nested in another one. There are a couple of issues I am currently looking into fixing (after an IRC discussion with Eyal).

Re: Killing the comma operator

2016-06-10 Thread Mathias Lang via Digitalmars-d
On Thursday, 12 May 2016 at 10:29:36 UTC, Andrei Alexandrescu wrote: Before we get lost in the discussions, let's act on this by disallowing taking the result of the comma operator. Yes there is potential breakage (via typeof as Timon noted) but it's likely to be minimal. Once we have that in p

Re: I implemented delegates in D

2016-06-09 Thread Mathias Lang via Digitalmars-d
2016-06-10 1:20 GMT+02:00 maik klein via Digitalmars-d < digitalmars-d@puremagic.com>: > But that means that the closure will be allocated on the stack right? What > happens when I send it with > http://dpldocs.info/experimental-docs/std.concurrency.send.html > > Will it copy the function or will

Re: I implemented delegates in D

2016-06-09 Thread Mathias Lang via Digitalmars-d
talmars-d < digitalmars-d@puremagic.com>: > On 6/9/16 6:06 PM, Mathias Lang via Digitalmars-d wrote: > >> To avoid the delegate being GC allocated, use `scope foo = (int i) { ... >> }` at call site. >> > > Is that true? At one point in D's past, this ONLY worked i

Re: I implemented delegates in D

2016-06-09 Thread Mathias Lang via Digitalmars-d
To avoid the delegate being GC allocated, use `scope foo = (int i) { ... }` at call site. You can also make your function signature as `void func(scope void delegate() dg)` in which case it won't allocate if you pass a literal directly. 2016-06-09 23:57 GMT+02:00 maik klein via Digitalmars-d < dig

Re: Why does DMD on Debian need xdg-utils

2016-06-02 Thread Mathias Lang via Digitalmars-d
It shouldn't be necessary. I believe that is because of `dmd -man`, which open a web browser. That's an apt-d issue (in hopefully Jordi Sayol will read this) which prevents using this repository if your machine has no X (I guess you discovered that on a server, as I did). 2016-06-02 20:17 GMT+02:

Re: Killing the comma operator

2016-05-11 Thread Mathias Lang via Digitalmars-d
2016-05-12 0:32 GMT+02:00 deadalnix via Digitalmars-d < digitalmars-d@puremagic.com>: > On Wednesday, 11 May 2016 at 18:36:11 UTC, H. S. Teoh wrote: > >> On Wed, May 11, 2016 at 05:55:27PM +, deadalnix via Digitalmars-d >> wrote: >> >>> On Wednesday, 11 May 2016 at 16:44:43 UTC, H. S. Teoh wro

Re: Is synchronized(...){...} doomed to never be nothrow/@nogc?

2016-05-10 Thread Mathias Lang via Digitalmars-d
On Tuesday, 10 May 2016 at 17:46:17 UTC, Vladimir Panteleev wrote: Here is the situation, AIUI: 1. We allow users to provide their own Monitors, which hook into the synchronized(obj) statement. 2. These monitors' methods are unadorned (no nothrow/@nogc). 3. As a result, synchronized(obj) sta

Killing the comma operator

2016-05-10 Thread Mathias Lang via Digitalmars-d
If you were attending DConf2016, or watched Ali (excellent) talk [1] at some point, you probably remember this piece of code: `synchronized (lockA, lockB)` As documented in TDPL (thanks @schveiguy) [2]. Unfortunately, as someone pointed out, this isn't implemented, but still compile "thanks" t

Re: [OT] Re: How are you enjoying DConf? And where to go next?

2016-05-07 Thread Mathias Lang via Digitalmars-d
2016-05-07 17:15 GMT+02:00 Adam D. Ruppe via Digitalmars-d < digitalmars-d@puremagic.com>: > On Saturday, 7 May 2016 at 13:10:37 UTC, Andrei Alexandrescu wrote: > >> Please curb off-topic discussions and mark them with [OT], yadda yadda >> yadda. Thanks! -- Andrei >> > > When people complain about

Re: Inheritance of mixin

2016-04-29 Thread Mathias Lang via Digitalmars-d
2016-04-29 21:11 GMT+02:00 tsbockman via Digitalmars-d < digitalmars-d@puremagic.com>: > On Friday, 29 April 2016 at 10:59:20 UTC, Timon Gehr wrote: > >> On 29.04.2016 07:35, tsbockman wrote: >> >>> in the name of saving one line of code per class for a rare use case. >>> >> >> The use case isn't

Re: The day before DConf 2016

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

Re: Attribute inference for non-templated functions

2016-03-30 Thread Mathias Lang via Digitalmars-d
On Wednesday, 30 March 2016 at 12:42:42 UTC, Seb wrote: Hey while I was writing the contribution guide I stumbled over the issue that dmd will automatically infer attributes like @safe or pure in templated functions, but not in non-templated ones. Consider this example: ``` size_t inc(size_t

Re: Categorization of warnings

2016-03-28 Thread Mathias Lang via Digitalmars-d
On Monday, 28 March 2016 at 16:21:15 UTC, Johan Engelen wrote: I just submitted a PR [1] that catagorizes warnings, such that you can do something like this: dmd -w -Wno-not-reachable which would error on any warning except the "statement not reachable" warnings (it completely disables that war

Re: Why is this not a warning?

2016-03-20 Thread Mathias Lang via Digitalmars-d
On Wednesday, 16 March 2016 at 16:40:49 UTC, Shachar Shemesh wrote: Please consider the following program, which is a reduced version of a problem I've spent the entire of today trying to debug: import std.stdio; void main() { enum ulong MAX_VAL = 256; long value = -500; if( valu

Re: Compile fails, don't know why

2016-03-19 Thread Mathias Lang via Digitalmars-d
On Friday, 18 March 2016 at 10:38:00 UTC, Nafees wrote: On Friday, 18 March 2016 at 10:25:06 UTC, Mathias Lang wrote: On Friday, 18 March 2016 at 10:11:50 UTC, Nafees wrote: On Friday, 18 March 2016 at 10:07:18 UTC, Nafees wrote: I tried to create a separate module for storing classes in, this

Re: Compile fails, don't know why

2016-03-19 Thread Mathias Lang via Digitalmars-d
On Friday, 18 March 2016 at 10:11:50 UTC, Nafees wrote: On Friday, 18 March 2016 at 10:07:18 UTC, Nafees wrote: I tried to create a separate module for storing classes in, this is the new module module qlib.classes; [...] Plus, the code works if the class is in the same module, and I did a

Re: State of the Compiler

2016-03-02 Thread Mathias Lang via Digitalmars-d
2016-03-01 12:22 GMT+01:00 Ola Fosheim Grøstad via Digitalmars-d < digitalmars-d@puremagic.com>: > On Tuesday, 1 March 2016 at 10:11:03 UTC, Kagamin wrote: > >> On Tuesday, 1 March 2016 at 07:00:43 UTC, Ola Fosheim Grøstad wrote: >> >>> If phobos isn't stable enough for the compiler, then it isn't

Re: State of the Compiler

2016-02-29 Thread Mathias Lang via Digitalmars-d
2016-02-29 1:10 GMT+01:00 Walter Bright via Digitalmars-d < digitalmars-d@puremagic.com>: > I'm pretty unhappy with the state of dmd. I think the best that can be > said for it at the moment is that it works. > [...] Any plan for modularization ? Currently we have massive modules living in src,

Re: An important pull request: accessing shared affix for immutable data

2016-02-13 Thread Mathias Lang via Digitalmars-d
2016-02-12 20:12 GMT+01:00 Andrei Alexandrescu via Digitalmars-d < digitalmars-d@puremagic.com>: > https://github.com/D-Programming-Language/phobos/pull/3991 > The only difference between an approach based on an associative array and > AffixAllocator is that the latter is faster (the association

Re: C++17

2016-01-27 Thread Mathias Lang via Digitalmars-d
2016-01-27 9:56 GMT+01:00 rsw0x via Digitalmars-d < digitalmars-d@puremagic.com>: > This is not applicable in a scenario where I want to actually copy the > parameters by value. > It still captures the context, it just allows it to move down the stack. > Then a library solution to do so is trivia

Re: C++17

2016-01-27 Thread Mathias Lang via Digitalmars-d
2016-01-27 8:10 GMT+01:00 rsw0x via Digitalmars-d < digitalmars-d@puremagic.com>: > I have to manually create my own functors to be able to capture variables > by value in lambdas so that they're usable in @nogc. How C++98. > Alias template parameters are again massive hidden abusers of the GC.

Re: C++17

2016-01-26 Thread Mathias Lang via Digitalmars-d
2016-01-26 22:15 GMT+01:00 rsw0x via Digitalmars-d < digitalmars-d@puremagic.com>: > In any case where you attempt to write code in D that is equal in > performance to C++, you must avoid the GC. > No. There are many places when performances could be optimized. The GC surely can be improved, but

Re: dub and debian packaging

2016-01-25 Thread Mathias Lang via Digitalmars-d
2016-01-25 18:08 GMT+01:00 ikod via Digitalmars-d < digitalmars-d@puremagic.com>: > Hello > > I'd like to hear any opinions and best practices on coexistence of dub and > debian .deb packaging and deployment. > > Here is my problem: I wrote some small library that use Pegged to parse > and process

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Mathias Lang via Digitalmars-d
2016-01-23 15:19 GMT+01:00 Jacob Carlborg via Digitalmars-d < digitalmars-d@puremagic.com>: > This is mostly to prevent ugly hacks like Flag [1]. > > http://wiki.dlang.org/DIP88 > > [1] https://dlang.org/phobos/std_typecons.html#.Flag > > -- > /Jacob Carlborg > About the rationale: > Supporting

Re: "Good PR" mechanical check

2016-01-12 Thread Mathias Lang via Digitalmars-d
On Tuesday, 12 January 2016 at 13:34:25 UTC, Andrei Alexandrescu wrote: Related to https://github.com/D-Programming-Language/dlang.org/pull/1191: A friend who is in the GNU community told me a while ago they have a mechanical style checker that people can run against their proposed patches to

Re: GDC includes from LDC

2016-01-10 Thread Mathias Lang via Digitalmars-d
Looks like a packaging issue. In Archlinux there is one extra directory level for the compiler (e.g. `/usr/include/dlang//`) to prevent such things. Looking at the file list for both libraries: - GDC: https://packages.debian.org/sid/amd64/libphobos-4.9-dev/filelist - LDC: https://packages.debian.o

Dconf.org is (kinda) down

2015-12-04 Thread Mathias Lang via Digitalmars-d
It is not directly accessible through http://dconf.org/index.php Works using http://dconf.org/2016/index.html so it seems to be a PHP problem. Side note: It would be useful to have a mailing list to report urgent issues like this which would forward to the right people. This issue is present

Re: Dub use

2015-12-02 Thread Mathias Lang via Digitalmars-d
2015-12-02 10:53 GMT+01:00 Russel Winder via Digitalmars-d < digitalmars-d@puremagic.com>: > On Tue, 2015-12-01 at 20:38 +0100, Sönke Ludwig via Digitalmars-d > wrote: > > > > What is also possible is to add a "defaultCompiler" field to > > ~/.dub/settings.json to change the default compiler user-

Re: Dub use

2015-12-01 Thread Mathias Lang via Digitalmars-d
2015-12-01 20:21 GMT+01:00 Russel Winder via Digitalmars-d < digitalmars-d@puremagic.com>: > On Tue, 2015-12-01 at 18:45 +, Brad Anderson via Digitalmars-d > wrote: > > […] > > > > dub --compiler=ldc2 > > Is there an in dub.sdl version of this? > > -- > Russel. > >

Re: I hate new DUB config format

2015-11-27 Thread Mathias Lang 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 s

Re: DConf keynote speaker ideas

2015-11-22 Thread Mathias Lang via Digitalmars-d
2015-11-17 19:48 GMT+01:00 Andrei Alexandrescu via Digitalmars-d < digitalmars-d@puremagic.com>: > I'm thinking of inviting a notable industry luminary to deliver a > conference keynote. Please reply to this with ideas! -- Andrei > Over the proposed speakers so far, Carmack would be my favorite.

Re: DConf 2014 T-shirt design

2015-11-04 Thread Mathias Lang via Digitalmars-d
On Wednesday, 4 November 2015 at 15:50:43 UTC, Andrei Alexandrescu wrote: The folks at Sociomantic wanted to take a look at the 2014 T-shirt design. Unfortunately that went with my corporate email archive. Does anyone here have it? Some photos of the actual T-shirt would help as well! -- Andrei

Re: why to (not) support "older" compiler versions

2015-11-04 Thread Mathias Lang via Digitalmars-d
On Tuesday, 3 November 2015 at 08:08:28 UTC, yawniek wrote: i have seen many PR's and also Forum entries that deal with the problem of newer features of the compiler not being able and then patching or working around that to support older compiler versions. since it is really easy to keep up

Re: Will code for master title

2015-10-19 Thread Mathias Lang via Digitalmars-d
2015-10-19 21:20 GMT+02:00 ParticlePeter via Digitalmars-d < digitalmars-d@puremagic.com>: > Hello Community, > > If supervising such a thesis is an interesting, feasible and legal > (university vise) option, please step up. > If you're in Magdeburg, and my German geography is not way off, you're

Re: std.data.json formal review

2015-07-28 Thread Mathias Lang via Digitalmars-d
2015-07-28 17:55 GMT+02:00 Brad Anderson via Digitalmars-d < digitalmars-d@puremagic.com>: > > Unless there is some sort of proof that it will work with allocators. >> >> I have used the code from vibe.d days so its not an issue of how well it >> works nor nit picky. Just can I pass it an allocat

Re: DUB RC 0.9.24-rc.1 ready for testing

2015-07-21 Thread Mathias Lang via Digitalmars-d
2015-07-21 15:17 GMT+02:00 Andrei Alexandrescu via Digitalmars-d < digitalmars-d@puremagic.com>: > > Probably I need to better explain why I think we should try that. > > It all starts with a high level thought. We want to accelerate D adoption > rate way beyond what it is now. Radically, like 10x

Re: dmd 2.068, 2.069, 2.0xx Evil Plan going forward

2015-07-20 Thread Mathias Lang via Digitalmars-d
2015-07-20 22:28 GMT+02:00 Gary Willoughby via Digitalmars-d < digitalmars-d@puremagic.com>: > On Monday, 20 July 2015 at 19:30:36 UTC, Walter Bright wrote: > >> I'm sad that this discussion on Evil Plans has so quickly turned into a >> deluge of posts bikeshedding a version number. >> > > Hardly

Re: Support for 2.064.2

2015-07-12 Thread Mathias Lang via Digitalmars-d
2015-07-12 15:50 GMT+02:00 Iain Buclaw via Digitalmars-d < digitalmars-d@puremagic.com>: > Hi, > > Out of curiosity, how many projects are still supporting D 2.064.2 > compiler/runtime? Granted that this is the version shipped in the current > Debian Stable and Ubuntu LTS (which will be supporte

Re: DUB 0.9.24 beta 2

2015-07-03 Thread Mathias Lang via Digitalmars-d
2015-07-03 7:06 GMT+02:00 Sönke Ludwig : > > It was a close decision, but the implementation is pretty simple and > relatively well covered with tests, it shouldn't be an issue. So the only > remaining issues would be possible compatibility issues for people not > running the latest version (not *

Re: DUB 0.9.24 beta 2

2015-07-02 Thread Mathias Lang via Digitalmars-d
Congrats on the work done ! 2015-07-02 22:39 GMT+02:00 Sönke Ludwig : > > The second beta is out now. "dub init" now creates an SDL package > description by default (use --format=json to get a dub.json instead). > Honestly, I am really not fan of implementing a feature AND making it a default in

Re: New names - 2.068 roundup

2015-06-25 Thread Mathias Lang via Digitalmars-d
2015-06-25 21:28 GMT+02:00 Steven Schveighoffer via Digitalmars-d < digitalmars-d@puremagic.com>: > On 6/24/15 11:12 PM, Steven Schveighoffer wrote: > >> So I actually implemented this. I made it a std.internal type so it can >> be used wherever you need to port string concatenation to a chain. >>

Range code and inference errors

2015-06-25 Thread Mathias Lang via Digitalmars-d
Hi everyone, I've been doing quite a lot of range-based code lately and I've been bugged with an UX problem that's IMHO a real bummer for range usage to new users. Take the example code: ``` import std.algorithm; void main() { auto foo = [ "foo": "foo", "bar": "bar", "foobar": "foobar" ];

Re: What have you done with UDAs?

2015-06-23 Thread Mathias Lang via Digitalmars-d
I use them all the time in vibe.web.rest. It allows to override the defaults (e.g. by default `getfoo` maps to `GET /foo`): https://github.com/Geod24/vibe.d/blob/ea061223ab96d5acdc004e9369f904c5e25ec8d0/source/vibe/web/rest.d#L60-L66 I actually really, really miss attributed parameters. Obviously i

Re: Make dub part of the standard dmd distribution

2015-06-02 Thread Mathias Lang via Digitalmars-d
2015-06-01 20:03 GMT+02:00 Johannes Pfau via Digitalmars-d < digitalmars-d@puremagic.com>: > > The main problem is we don't have ABI compatibility. This means we can't > share the libraries between compilers. So we could make 'import foo' > work but linking with -lfoo without manually adjusting li

Vote for D - Devdocs.io

2015-06-02 Thread Mathias Lang via Digitalmars-d
Some of you know devdocs.io, an aggregator for docs for developer documentations, as the name suggest. It has support for a lot of popular languages and tools : C, C++, git, Go, PHP, HTML, Ruby, React.js, you name it. I'll let you guess which awesome language isn't supported by devdocs. So,

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread Mathias Lang via Digitalmars-d
2015-04-13 7:57 GMT+02:00 Dicebot via Digitalmars-d < digitalmars-d@puremagic.com>: > On Sunday, 12 April 2015 at 19:03:33 UTC, Laeeth Isharc wrote: > >> BTW - since we have linux on ARM, the following may be useful if you wish >> to run a D application on your Android mobile device. No ADB or ro

Re: Travis CI based tests based on 2.066.1 start failing

2015-04-01 Thread Mathias Lang via Digitalmars-d
2015-03-31 14:57 GMT+02:00 Baz via Digitalmars-d < digitalmars-d@puremagic.com>: > On Tuesday, 31 March 2015 at 12:31:14 UTC, Mathias Lang wrote: > >> Importing std.algorithm.searching won't work before. >> A static if (__VERSION__ >= 2067) / else would solve it. >> >> 2015-03-31 13:20 GMT+02:00 B

Re: Travis CI based tests based on 2.066.1 start failing

2015-03-31 Thread Mathias Lang via Digitalmars-d
Importing std.algorithm.searching won't work before. A static if (__VERSION__ >= 2067) / else would solve it. 2015-03-31 13:20 GMT+02:00 Baz via Digitalmars-d < digitalmars-d@puremagic.com>: > On Tuesday, 31 March 2015 at 09:52:34 UTC, Baz wrote: > >> @MartinNowak, @klickverbot and @ibuclaw >> >>

Re: unittests are really part of the build, not a special run

2015-03-30 Thread Mathias Lang via Digitalmars-d
2015-03-31 2:46 GMT+02:00 Andrei Alexandrescu via Digitalmars-d < digitalmars-d@puremagic.com>: > On 3/30/15 4:15 PM, Mathias Lang via Digitalmars-d wrote: > >> I'd rather see DMD automatically pass the expression that triggered the >> error (as it is done in C) to r

Re: DMD compilation speed

2015-03-30 Thread Mathias Lang via Digitalmars-d
2015-03-31 0:53 GMT+02:00 H. S. Teoh via Digitalmars-d < digitalmars-d@puremagic.com>: > > Yeah, dmd memory consumption is way off the charts, because under the > pretext of compile speed it never frees allocated memory. Unfortunately, > the assumption that not managing memory == faster quickly be

Re: unittests are really part of the build, not a special run

2015-03-30 Thread Mathias Lang via Digitalmars-d
I'd rather see DMD automatically pass the expression that triggered the error (as it is done in C) to replace this useless "Unittest failure" that forces me to look through the code. D has the advantage that it catches most errors at CT. You can write a lot of code and just compile it to ensure it

Re: Named unittests

2015-03-30 Thread Mathias Lang via Digitalmars-d
We do have an `@name` as UDA in Vibe.d, so that'll be a breaking change (But `@NamedUnittest("name")` will do). I also think it should be a library solution. 2015-03-31 0:21 GMT+02:00 Kapps via Digitalmars-d < digitalmars-d@puremagic.com>: > On Monday, 30 March 2015 at 21:52:35 UTC, Andrei Alexan

Re: D as System Language

2015-03-30 Thread Mathias Lang via Digitalmars-d
2015-03-30 18:01 GMT+02:00 Columbus via Digitalmars-d < digitalmars-d@puremagic.com>: > On Monday, 30 March 2015 at 15:39:07 UTC, Adam D. Ruppe wrote: > >> Basically you can start with an empty runtime and then add back missing >> functions as needed to get it to compile. >> > > What do you mean b

Re: DMD compilation speed

2015-03-30 Thread Mathias Lang via Digitalmars-d
Is it only DMD compile time or DMD + ld ? ld can be very slow sometimes. 2015-03-30 1:14 GMT+02:00 Martin Krejcirik via Digitalmars-d < digitalmars-d@puremagic.com>: > It seems like every DMD release makes compilation slower. This time I see > 10.8s vs 7.8s on my little project. I know this is ge

Re: From the cycle "Topic of the day" - .gitignore: how big is too big?

2015-03-22 Thread Mathias Lang via Digitalmars-d
I was wondering how this could be done this afternoon. Thanks Mengu. https://github.com/github/gitignore/pull/1444 2015-03-22 22:08 GMT+01:00 Andrei Alexandrescu via Digitalmars-d < digitalmars-d@puremagic.com>: > On 3/22/15 1:37 PM, Mengu wrote: > >> while we're at it, let's add D to this list:

Re: dfmt options

2015-03-15 Thread Mathias Lang via Digitalmars-d
2015-03-15 13:56 GMT+01:00 ketmar via Digitalmars-d < digitalmars-d@puremagic.com>: > > maybe it's time to fix the compiler, so it will simply reject the UnTrue > Sources? why relay to external tool for such fundamental task? That would be terrible. They are thing the compiler should enforce (IM

Re: dfmt options

2015-03-14 Thread Mathias Lang via Digitalmars-d
2015-03-15 0:15 GMT+01:00 Brian Schott via Digitalmars-d < digitalmars-d@puremagic.com>: > > What am I missing? > I suggest you fire a recent version of Visual Studio and go to tools / Options / Tet editor / C# (or C/C++) / Formatting. There you got a bunch of formatting options. Maybe not all of

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Mathias Lang via Digitalmars-d
2015-02-21 15:02 GMT+01:00 Daniel Murphy via Digitalmars-d < digitalmars-d@puremagic.com>: > https://auto-tester.puremagic.com/?projectid=10 > > This is a pretty big milestone for the project. For the first time, an > unpatched dmd can build ddmd, and that ddmd can build druntime and phobos > and

Re: Botan Crypto and TLS for D

2015-02-18 Thread Mathias Lang via Digitalmars-d
That's awesome ! Thanks for all the work you put in it, and more generally, in Vibe.d. 2015-02-17 22:00 GMT+01:00 Etienne via Digitalmars-d < digitalmars-d@puremagic.com>: > I'd like to announce the first release of Botan, which implements all > features of v1.11.10 in the C++ library. > > I gav

Re: Any ddox experts n da house?

2015-02-15 Thread Mathias Lang via Digitalmars-d
2015-02-15 0:38 GMT+01:00 Vladimir Panteleev via Digitalmars-d < digitalmars-d@puremagic.com>: > On Saturday, 14 February 2015 at 23:06:20 UTC, Mathias Lang wrote: > >> We'll get the best of both >> world, keeping the possibility to output any target out of the specs, but >> writting website-speci

Re: Any ddox experts n da house?

2015-02-14 Thread Mathias Lang via Digitalmars-d
2015-02-14 10:46 GMT+01:00 Vladimir Panteleev via Digitalmars-d < digitalmars-d@puremagic.com>: > On Saturday, 14 February 2015 at 09:17:57 UTC, Andrei Alexandrescu wrote: > >> Counting on your help! >> > > Here are some things that would help: > > 1. Most urgently, update the .dt template to matc

Re: Proposal : aggregated dlang git repository

2015-02-09 Thread Mathias LANG via Digitalmars-d
On Tuesday, 10 February 2015 at 06:22:51 UTC, Andrei Alexandrescu wrote: Well I have to say something. This proposal is a good example of a cultural lore we should unlearn: high-churn, low-impact changes. https://github.com/D-Programming-Language/dlang.org/pull/896 is another example. Meanin

Re: Git, the D package manager

2015-02-05 Thread Mathias LANG via Digitalmars-d
On Thursday, 5 February 2015 at 15:26:23 UTC, ketmar wrote: On Thu, 05 Feb 2015 15:21:08 +, Atila Neves wrote: the package manager part should have good "machine" interface to allow it's usage in various scripts and other build systems. and build system... oh, well, it can simply use packa

Re: Git, the D package manager

2015-02-05 Thread Mathias LANG via Digitalmars-d
On Thursday, 5 February 2015 at 15:15:10 UTC, Atila Neves wrote: The approach taken for DUB is to put as much knowledge of the target problem into the build tool as possible, so that the amount of work/knowledge required by the developer is minimal (as long as problem is within the target domai

Re: Git, the D package manager

2015-02-05 Thread Mathias LANG via Digitalmars-d
On Thursday, 5 February 2015 at 15:01:48 UTC, ketmar wrote: ??? i didn't modified "mymod.d"! why it is rebuilding it?! 'cmon, it's in no way better than a simple shell script that just executes "dmd -c" for each file and then links the results. Looks like you missing one of my mails: http:/

Re: Git, the D package manager

2015-02-04 Thread Mathias LANG via Digitalmars-d
On Wednesday, 4 February 2015 at 01:04:42 UTC, Martin Nowak wrote: No idea why git submodule update worked the second time. You can simply use: `git submodule update --init`, which init submodules if they aren't yet. Better, write yourself an alias for clone, let's call it 'cl', which includ

Re: Git, the D package manager

2015-02-02 Thread Mathias LANG via Digitalmars-d
On Monday, 2 February 2015 at 21:55:21 UTC, Jonathan M Davis wrote: I've long thought that it some point, dub would be forced to support arbitrary build systems in order to actually work in the general case. There are far too many special cases and more complicated things that build scripts and

Re: Git, the D package manager

2015-02-02 Thread Mathias LANG via Digitalmars-d
On Monday, 2 February 2015 at 09:44:18 UTC, Andrej Mitrovic wrote: Also: - Dub installs everything in ~/ (home, which on Windows is an awful location anywho). It's a pain in the ass for browsing dependencies in your editor. If it's just a submodule you can easily view it in the source tree (e

Re: Git, the D package manager

2015-02-02 Thread Mathias LANG via Digitalmars-d
On Monday, 2 February 2015 at 13:42:19 UTC, Vladimir Panteleev wrote: On Monday, 2 February 2015 at 13:25:57 UTC, Mathias LANG wrote: To be more specific, dub won't let you compile a project with multiple definition of a function. How is that a liability ? You can't have more than one main() f

Re: Git, the D package manager

2015-02-02 Thread Mathias LANG via Digitalmars-d
On Monday, 2 February 2015 at 08:09:39 UTC, Vladimir Panteleev wrote: In contrast, Dub's default modus operandi is to blindly send to the compiler all *.d files found in the "src" folder, whether they're actually used or not. Not only can this be slower if not all modules are always used, but i

Re: Git, the D package manager

2015-02-02 Thread Mathias LANG via Digitalmars-d
On Monday, 2 February 2015 at 09:03:56 UTC, Vladimir Panteleev wrote: Is that so? Won't a security fix entail a version bump, requiring a change in the requirements file of the parent project? Also, does Dub really check for updated versions of libraries online, every time a project is built?

Re: DMD 2.066.1 is missing in the Digitalmars FTP

2015-01-29 Thread Mathias LANG via Digitalmars-d
On Wednesday, 28 January 2015 at 19:06:23 UTC, Andrei Alexandrescu wrote: On 1/28/15 11:04 AM, Brad Roberts via Digitalmars-d wrote: Sorry, typed those by hand rather than cut/paste. Pluralize each: http://downloads.dlang.org/pre-releases/ http://downloads.dlang.org/releases/ BTW how do I d

Re: DMD 2.066.1 is missing in the Digitalmars FTP

2015-01-28 Thread Mathias LANG via Digitalmars-d
On Wednesday, 28 January 2015 at 02:41:19 UTC, Brad Roberts wrote: I spent the time today to read up on how to use s3 website redirects, since s3 doesn't support symlinks. The only new requirement is for the http client to follow a 301 redirect, which most do. The new directories: http

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread Mathias LANG via Digitalmars-d
On Monday, 26 January 2015 at 18:25:13 UTC, Robert burner Schadek wrote: thank you @!"In order of appearance on github"() { Dicebot, JakobOvrum, monarchdodra, klamonte, grogancolin, fugalh, Geod24, andralex, braddr, AndrejMitrovic, MetaLang, p0nce, yglukhov, elendel-, sigod, sybrandy, DmitryOls

Re: D Meetup in Berlin

2015-01-23 Thread Mathias LANG via Digitalmars-d
On Friday, 23 January 2015 at 10:05:07 UTC, Andrej Mitrovic wrote: On Thursday, 4 December 2014 at 12:57:59 UTC, Ben wrote: Hi All, I am a Berlin based D developer who has been working with D for about 2 and a half years. Like other more well known names in these forums I work for a company c

Re: D on Slashdot

2015-01-21 Thread Mathias LANG via Digitalmars-d
On Wednesday, 21 January 2015 at 08:56:54 UTC, Kagamin wrote: [...] Windows console does it elegantly without telepathy: it rolls through the list of ambiguous names. Personally I use http://grml.org/zsh/. It's available as an ArchLinux package. It's also the default shell config for the

Re: Use proper frameworks for building dlang.org

2015-01-19 Thread Mathias LANG via Digitalmars-d
On Monday, 19 January 2015 at 16:38:58 UTC, Andrei Alexandrescu wrote: But that's beside the point. This seems to suggest the choice is "if we didn't have to build the mobi and pdf, the road is clear to using Great Framework(tm)". There are a few issues with that, such as nobody seems to agre

  1   2   >