Re: Where the F*** is phobos on OSX nowadays ?

2015-08-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-08-11 10:01, John Colvin wrote: well if you're sane, then you had homebrew install it to /usr/local/lib/ and /usr/local/include/d2/ If you're sane you'll be using DVM ;) -- /Jacob Carlborg

Re: std.data.json formal review

2015-08-11 Thread Sönke Ludwig via Digitalmars-d
Am 11.08.2015 um 19:30 schrieb deadalnix: Ok some actionable items. 1/ How big is a JSON struct ? What is the biggest element in the union ? Is that element really needed ? Recurse. See http://s-ludwig.github.io/std_data_json/stdx/data/json/value/JSONValue.payload.html The question whether

Re: std.data.json formal review

2015-08-11 Thread Sönke Ludwig via Digitalmars-d
Am 11.08.2015 um 20:15 schrieb Dmitry Olshansky: On 11-Aug-2015 20:30, deadalnix wrote: Ok some actionable items. 1/ How big is a JSON struct ? What is the biggest element in the union ? Is that element really needed ? Recurse. +1 Also most JS engines use nan-boxing to fit type tag along

Re: countUntil for SortedRange

2015-08-11 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 19:30:02 UTC, Laeeth Isharc wrote: Hi. Basic question: suppose I have a SortedRange and want to find the index of the first entry of an array of structs matching a needle struct. What's the best way to do that? It's not clear that countUntil treats a

Re: Release D 2.068.0

2015-08-11 Thread Daniel Kozak via Digitalmars-d-announce
On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote: Glad to announce D 2.068.0. http://downloads.dlang.org/releases/2.x/2.068.0/ This release comes with many rangified phobos functions, 2 new GC profilers, a new AA implementation, and countless further improvements and fixes.

Re: std.data.json formal review

2015-08-11 Thread Sönke Ludwig via Digitalmars-d
Am 04.08.2015 um 19:14 schrieb deadalnix: On Tuesday, 4 August 2015 at 13:10:11 UTC, Sönke Ludwig wrote: This is how it used to be in the vibe.data.json module. I consider that to be a mistake now for multiple reasons, at least on this abstraction level. My proposal would be to have a clean,

Re: Release D 2.068.0

2015-08-11 Thread Ben Boeckel via Digitalmars-d-announce
On Tue, Aug 11, 2015 at 15:08:21 -0700, Bill Baxter via Digitalmars-d-announce wrote: New to brew... getting errors with this on Yosemite: Error: Permission denied - /usr/local/etc/dmd.conf and sudo brew install refuses to do so. /usr/local is Apple's domain on Yosemite now. IIRC, even

Re: Release D 2.068.0

2015-08-11 Thread John Colvin via Digitalmars-d-announce
On Tuesday, 11 August 2015 at 22:08:50 UTC, Bill Baxter wrote: On Tue, Aug 11, 2015 at 12:52 AM, John Colvin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote: Glad to announce D 2.068.0.

Re: Release D 2.068.0

2015-08-11 Thread John Colvin via Digitalmars-d-announce
On Tuesday, 11 August 2015 at 22:30:04 UTC, Ben Boeckel wrote: On Tue, Aug 11, 2015 at 15:08:21 -0700, Bill Baxter via Digitalmars-d-announce wrote: New to brew... getting errors with this on Yosemite: Error: Permission denied - /usr/local/etc/dmd.conf and sudo brew install refuses to do

Re: D for Game Development

2015-08-11 Thread Walter Bright via Digitalmars-d
On 8/11/2015 12:57 AM, Benjamin Thaut wrote: Also the front end transition from C++ to D hits me hard also. It's going to hit everyone hard who works on the front end.

Code Reviewer

2015-08-11 Thread Clayton via Digitalmars-d-learn
Hello everyone, Am looking for someone who could help review my code . As an entry exercise to D am converting 3 C implementations of popular pattern matching algorithms. The idea is to have 6 final implementations ( 3 compile-time and 3 runtime) . I think am basically done with the

Re: Release D 2.068.0

2015-08-11 Thread Bill Baxter via Digitalmars-d-announce
On Tue, Aug 11, 2015 at 3:28 PM, John Colvin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Tuesday, 11 August 2015 at 22:08:50 UTC, Bill Baxter wrote: On Tue, Aug 11, 2015 at 12:52 AM, John Colvin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com

Re: D for Game Development

2015-08-11 Thread Benjamin Thaut via Digitalmars-d
On Monday, 10 August 2015 at 05:23:20 UTC, Walter Bright wrote: On 8/9/2015 9:26 PM, Tofu Ninja wrote: On Sunday, 9 August 2015 at 20:51:32 UTC, Walter Bright wrote: On 8/9/2015 4:38 AM, Manu via Digitalmars-d wrote: On 9 August 2015 at 15:31, Walter Bright via Digitalmars-d I agree, and

Re: Where the F*** is phobos on OSX nowadays ?

2015-08-11 Thread John Colvin via Digitalmars-d
On Tuesday, 11 August 2015 at 04:51:03 UTC, deadalnix wrote: And why does it keep moving ? Why isn't it in some place where linker will find it ? Is that really worth it to have every build system to have to jump through hoops to find it, and to break it on a regular basis ? well if you're

DWT fails to build with DMD 2.068.0

2015-08-11 Thread Mike James via Digitalmars-d-dwt
Hi, Is there an updated release for DWT - it fails to build with the latest version of DMD - mainly casting errors... Thanks. Regards, Mike.

Re: Release D 2.068.0

2015-08-11 Thread John Colvin via Digitalmars-d-announce
On Tuesday, 11 August 2015 at 08:27:00 UTC, Marc Schütz wrote: Packages for openSUSE 13.1, 13.2, Factory and Tumbleweed are now available in devel:languages:D. http://download.opensuse.org/repositories/devel:/languages:/D/ Please could you update/correct the entry here to reflect that:

[Issue 14901] [reg 2.067/2.068] template static shared this() run multiple times with separate compilation

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14901 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

Re: D for Game Development

2015-08-11 Thread via Digitalmars-d
On Monday, 10 August 2015 at 19:31:55 UTC, David Gileadi wrote: …[insert your language here] has a long way to go… :) Yes, the real culprit is getting really good IDE support, and for that one need to write a high quality analyzer that can provide more information than a compiler. As far

Re: Release D 2.068.0

2015-08-11 Thread via Digitalmars-d-announce
Packages for openSUSE 13.1, 13.2, Factory and Tumbleweed are now available in devel:languages:D. http://download.opensuse.org/repositories/devel:/languages:/D/

Suggestion: arrays.

2015-08-11 Thread DLearner via Digitalmars-d
From dlang: Static array properties are: ... .dup Create a dynamic array of the same size and copy the contents of the array into it. .idup Create a dynamic array of the same size and copy the contents of the array into it. The copy is typed as being immutable. ... Dynamic array

Re: D for Game Development

2015-08-11 Thread via Digitalmars-d
On Monday, 10 August 2015 at 19:34:26 UTC, rsw0x wrote: On Monday, 10 August 2015 at 19:31:55 UTC, David Gileadi wrote: On 8/10/15 12:25 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: [...] …[insert your language here] has a long way to go… :) Which is

[Issue 14905] duplicate error message: 'Warning: statement is not reachable'

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14905 --- Comment #3 from Kenji Hara k.hara...@gmail.com --- (In reply to Timothee Cour from comment #2) (In reply to Kenji Hara from comment #1) They're not true duplication. If the error messages print their enclosing functions, the messages will

Re: Suggestion: arrays.

2015-08-11 Thread John Colvin via Digitalmars-d
On Tuesday, 11 August 2015 at 08:59:50 UTC, DLearner wrote: From dlang: Static array properties are: ... .dup Create a dynamic array of the same size and copy the contents of the array into it. .idup Create a dynamic array of the same size and copy the contents of the array into it. The

Re: Release D 2.068.0

2015-08-11 Thread via Digitalmars-d-announce
On Tuesday, 11 August 2015 at 09:04:42 UTC, John Colvin wrote: On Tuesday, 11 August 2015 at 08:27:00 UTC, Marc Schütz wrote: Packages for openSUSE 13.1, 13.2, Factory and Tumbleweed are now available in devel:languages:D. http://download.opensuse.org/repositories/devel:/languages:/D/

[Issue 14905] duplicate error message: 'Warning: statement is not reachable'

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14905 Timothee Cour timothee.co...@gmail.com changed: What|Removed |Added CC|

Re: Binary file grammar

2015-08-11 Thread Atila Neves via Digitalmars-d
On Monday, 10 August 2015 at 12:29:43 UTC, wobbles wrote: I have to read a binary file. I can use std.stdio.File.rawRead to do this (and it's even typesafe, awesome!!) [...] https://github.com/atilaneves/cerealed If that doesn't do what you need, I've done something wrong. Atila

Re: Release D 2.068.0

2015-08-11 Thread John Colvin via Digitalmars-d-announce
On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote: Glad to announce D 2.068.0. http://downloads.dlang.org/releases/2.x/2.068.0/ This release comes with many rangified phobos functions, 2 new GC profilers, a new AA implementation, and countless further improvements and fixes.

[Issue 14900] 2.068.0 change log example does not compile

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14900 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||rejects-valid --- Comment

[Issue 14889] ICE: Assertion `o-dyncast() == DYNCAST_DSYMBOL' failed.

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14889 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords|ice-on-valid-code |pull

[Issue 14903] Destructors for arguments completely broken

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14903 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

Re: D for Game Development

2015-08-11 Thread Timothee Cour via Digitalmars-d
On Sun, Aug 9, 2015 at 12:33 AM, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 8/9/2015 12:18 AM, Iain Buclaw via Digitalmars-d wrote: If the libraries were shared, this would reduce linking time, which in various benchmarks I've done is where most small projects

Re: vibe.d 0.7.24 released

2015-08-11 Thread Misu via Digitalmars-d-announce
On Monday, 10 August 2015 at 17:27:56 UTC, Sönke Ludwig wrote: A new vibe.d release is out. Apart from support for the 2.068 D frontend, some of the major changes are: - The vibe.web.web module adds support for convenient WebSocket routes - Renamed SSL to TLS (with compatibility aliases, of

[Issue 14901] [reg 2.067/2.068] template static shared this() run multiple times with separate compilation

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14901 --- Comment #3 from Kenji Hara k.hara...@gmail.com --- (In reply to Walter Bright from comment #2) The cause of this is not excessive instantiation, it is the fragile name generation system. Yes, the ultimate root issue is it. But if the code for

Re: D fund

2015-08-11 Thread ketmar via Digitalmars-d
On Mon, 10 Aug 2015 16:58:13 +, vladde wrote: Will the swag feature http://dlangcomicstrips.tumblr.com/ ? you told them about our little secret! how dare you?!. p.s. no, i'm not the author. signature.asc Description: PGP signature

[Issue 14903] Destructors for arguments completely broken

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14903 --- Comment #3 from David Nadlinger c...@klickverbot.at --- Note that all those cases do not (yet) fail because of the throwing dtors. It's that the dtors aren't even invoked in the first place. --

[Issue 14901] [reg 2.067/2.068] template static shared this() run multiple times with separate compilation

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14901 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC|

[Issue 11581] Given T..., new T[0] does not work

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11581 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid ---

[Issue 14903] Destructors for arguments completely broken

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14903 --- Comment #2 from Sobirari Muhomori dfj1es...@sneakemail.com --- Imagine resource management with reference counting, then destructors can throw due to environmental issues. (stdio.File destructor throws) --

Re: Binary file grammar

2015-08-11 Thread ketmar via Digitalmars-d
On Tue, 11 Aug 2015 07:51:37 +, Atila Neves wrote: On Monday, 10 August 2015 at 12:29:43 UTC, wobbles wrote: I have to read a binary file. I can use std.stdio.File.rawRead to do this (and it's even typesafe, awesome!!) [...] https://github.com/atilaneves/cerealed If that doesn't

Re: Release D 2.068.0

2015-08-11 Thread BBasile via Digitalmars-d-announce
On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote: See the changelog for more details. http://dlang.org/changelog.html#2.068.0 Something that's not obvious about phobos `hexString` CT template, it's not reflected in the DDOC, but it works with the `import` expression, and i think

Re: D fund

2015-08-11 Thread Rikki Cattermole via Digitalmars-d
On 11/08/2015 4:58 a.m., vladde wrote: On Monday, 10 August 2015 at 01:34:24 UTC, Walter Bright wrote: On 8/9/2015 6:52 AM, Andrei Alexandrescu wrote: There will be a possibility with the D Language Foundation, hopefully by the end of this year. -- Andrei Looking forward to it. We can also

Re: D fund

2015-08-11 Thread Nick Sabalausky via Digitalmars-d
On 08/10/2015 01:10 PM, Tofu Ninja wrote: Would be great if D could have full time paid devs working on it. Totally. That would be a dream job @_@

Re: Suggestion: arrays.

2015-08-11 Thread jmh530 via Digitalmars-d
On Tuesday, 11 August 2015 at 09:08:57 UTC, John Colvin wrote: 2 choices: 1) break people's code and documentation by renaming .dup on static arrays 2) have 2 equivalent names for the same thing Neither is likely to happen. If you want it for your own code: T[] dyn(T, size_t n)(T[n] a) {

Problem with dmd 2.068 Win 32

2015-08-11 Thread MGW via Digitalmars-d-learn
Hi! My project has an error link: Error 42: Symbol Undefined _D6object9Exception6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC9Exception On dmd 2.067.* everything gathered without mistakes. Where to look for a mistake?

Re: vibe.d 0.7.24 released

2015-08-11 Thread Suliman via Digitalmars-d-announce
I can't understand why I can't build vibed with 2.068 C:\Users\bubenkov_di\AppData\Roaming\dub\packages\vibe-d-0.7.23\source\vibe\core\drivers\libevent2.d(631): Error: '_d_monitorenter' is not nothrow

Re: Binary file grammar

2015-08-11 Thread wobbles via Digitalmars-d
On Tuesday, 11 August 2015 at 07:51:39 UTC, Atila Neves wrote: On Monday, 10 August 2015 at 12:29:43 UTC, wobbles wrote: I have to read a binary file. I can use std.stdio.File.rawRead to do this (and it's even typesafe, awesome!!) [...] https://github.com/atilaneves/cerealed If that

Re: vibe.d 0.7.24 released

2015-08-11 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 10 August 2015 at 18:23:25 UTC, Sönke Ludwig wrote: The main technical reason was CT reflections issues (the particular case was that they had always been erroneously recognized as input ranges) and the fact that any API change involving the Json struct would potentially be a

[Issue 14901] [reg 2.067/2.068] template static shared this() run multiple times with separate compilation

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14901 --- Comment #5 from Kenji Hara k.hara...@gmail.com --- (In reply to Steven Schveighoffer from comment #4) Does this have any bearing/relation to https://issues.dlang.org/show_bug.cgi?id=14517 ? Unfortunately, it is not related with. --

Re: vibe.d 0.7.24 released

2015-08-11 Thread Sönke Ludwig via Digitalmars-d-announce
Am 11.08.2015 um 15:28 schrieb Suliman: I can't understand why I can't build vibed with 2.068 C:\Users\bubenkov_di\AppData\Roaming\dub\packages\vibe-d-0.7.23\source\vibe\core\drivers\libevent2.d(631): Error: '_d_monitorenter' is not nothrow

Re: vibe.d 0.7.24 released

2015-08-11 Thread wobbles via Digitalmars-d-announce
On Tuesday, 11 August 2015 at 14:14:10 UTC, Suliman wrote: I still can't get 0.7.24. My config is: dependencies: { vibe-d: 0.7.24 }, [...] Try going to your packages directory and actually deleting the 0.7.23 folder? (Remember, backup!)

Re: Problem with dmd 2.068 Win 32

2015-08-11 Thread Dominikus Dittes Scherkl via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 15:04:29 UTC, MGW wrote: Hi! My project has an error link: Error 42: Symbol Undefined _D6object9Exception6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC9Exception On dmd 2.067.* everything gathered without mistakes. Where to look for a mistake? See the changelog.

Re: vibe.d 0.7.24 released

2015-08-11 Thread Suliman via Digitalmars-d-announce
I still can't get 0.7.24. My config is: dependencies: { vibe-d: 0.7.24 }, D:\code\httpAppdub clean-caches D:\code\httpAppdub build Fetching vibe-d 0.7.23 (getting selected version)... Placing vibe-d 0.7.23 to C:\Users\bubenkov_di\AppData\Roaming\dub\packages\... Selected package vibe-d 0.7.23

Re: vibe.d 0.7.24 released

2015-08-11 Thread Sönke Ludwig via Digitalmars-d-announce
Am 11.08.2015 um 16:14 schrieb Suliman: I still can't get 0.7.24. My config is: dependencies: { vibe-d: 0.7.24 }, D:\code\httpAppdub clean-caches D:\code\httpAppdub build (...) C:\Users\bubenkov_di\AppData\Roaming\dub\packages\... Selected package vibe-d 0.7.23 does not match the dependency

Re: D fund

2015-08-11 Thread Tofu Ninja via Digitalmars-d
On Tuesday, 11 August 2015 at 14:26:45 UTC, Nick Sabalausky wrote: On 08/10/2015 01:10 PM, Tofu Ninja wrote: Would be great if D could have full time paid devs working on it. Totally. That would be a dream job @_@ I know right, where can I apply?

[Issue 14906] New: dmd dumps core at incorrect enum declaration

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14906 Issue ID: 14906 Summary: dmd dumps core at incorrect enum declaration Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: Problem with dmd 2.068 Win 32

2015-08-11 Thread MGW via Digitalmars-d-learn
Thanks to all! The problem is localized!

Re: Problem with dmd 2.068 Win 32

2015-08-11 Thread Martin Nowak via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 15:04:29 UTC, MGW wrote: Hi! My project has an error link: Error 42: Symbol Undefined _D6object9Exception6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC9Exception On dmd 2.067.* everything gathered without mistakes. Where to look for a mistake? Try ddemangle

Re: Problem with dmd 2.068 Win 32

2015-08-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 15:10:57 UTC, Dominikus Dittes Scherkl wrote: See the changelog. The compiler is now pickier if you forgot to link something explicitly. That shouldn't affect an Exception constructor through since they are part of the core druntime. I suspect it has to do

Re: Problem with dmd 2.068 Win 32

2015-08-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 15:18:31 UTC, Martin Nowak wrote: You either have a wrong import paths (check which dmd.conf is used with 'dmd -v non_existent') or a stable object_.di file. Or maybe a stale .obj or .lib file, referencing the old symbol. Try a make clean too - delete any .obj

Re: Where the F*** is phobos on OSX nowadays ?

2015-08-11 Thread John Colvin via Digitalmars-d
On Tuesday, 11 August 2015 at 16:12:12 UTC, Sebastiaan Koppe wrote: On Tuesday, 11 August 2015 at 08:01:53 UTC, John Colvin wrote: On Tuesday, 11 August 2015 at 04:51:03 UTC, deadalnix wrote: And why does it keep moving ? Why isn't it in some place where linker will find it ? Is that really

Re: Where the F*** is phobos on OSX nowadays ?

2015-08-11 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 11 August 2015 at 08:01:53 UTC, John Colvin wrote: On Tuesday, 11 August 2015 at 04:51:03 UTC, deadalnix wrote: And why does it keep moving ? Why isn't it in some place where linker will find it ? Is that really worth it to have every build system to have to jump through hoops to

[Issue 14907] New: DMD crash when using template name as a default value of template's typed argument

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14907 Issue ID: 14907 Summary: DMD crash when using template name as a default value of template's typed argument Product: D Version: D2 Hardware: x86_64 OS: Windows

DDT 0.13.0 released - DUB configurations support.

2015-08-11 Thread Bruno Medeiros via Digitalmars-d-announce
A new DDT release (nicknamed Candy Kingdom ) is out, please read the changelog: https://github.com/bruno-medeiros/DDT/releases/tag/Release_0.13.0 This is Release Candidate quality, there might be a few undiscovered bugs with the recently introduced functionality. -- Bruno Medeiros

Re: std.data.json formal review

2015-08-11 Thread deadalnix via Digitalmars-d
On Tuesday, 11 August 2015 at 17:08:39 UTC, Atila Neves wrote: On Tuesday, 28 July 2015 at 14:07:19 UTC, Atila Neves wrote: Start of the two week process, folks. Code: https://github.com/s-ludwig/std_data_json Docs: http://s-ludwig.github.io/std_data_json/ Atila I forgot to give warnings

[Issue 14903] Destructors for arguments completely broken

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14903 ki...@gmx.net changed: What|Removed |Added CC||ki...@gmx.net --- Comment #4 from

[Issue 14903] Destructors for arguments completely broken

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14903 --- Comment #5 from David Nadlinger c...@klickverbot.at --- *** Issue 14902 has been marked as a duplicate of this issue. *** --

[Issue 14902] Temporaries in argument expressions not properly destructed on throw (argprefix)

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14902 David Nadlinger c...@klickverbot.at changed: What|Removed |Added Status|NEW |RESOLVED

Re: Binary file grammar

2015-08-11 Thread Atila Neves via Digitalmars-d
On Tuesday, 11 August 2015 at 13:40:52 UTC, wobbles wrote: On Tuesday, 11 August 2015 at 07:51:39 UTC, Atila Neves wrote: On Monday, 10 August 2015 at 12:29:43 UTC, wobbles wrote: I have to read a binary file. I can use std.stdio.File.rawRead to do this (and it's even typesafe, awesome!!)

Re: DDT 0.13.0 released - DUB configurations support.

2015-08-11 Thread Colin via Digitalmars-d-announce
On Tuesday, 11 August 2015 at 17:03:35 UTC, Bruno Medeiros wrote: A new DDT release (nicknamed Candy Kingdom ) is out, please read the changelog: https://github.com/bruno-medeiros/DDT/releases/tag/Release_0.13.0 This is Release Candidate quality, there might be a few undiscovered bugs with

Re: std.data.json formal review

2015-08-11 Thread Dmitry Olshansky via Digitalmars-d
On 11-Aug-2015 20:30, deadalnix wrote: On Tuesday, 11 August 2015 at 17:08:39 UTC, Atila Neves wrote: On Tuesday, 28 July 2015 at 14:07:19 UTC, Atila Neves wrote: Start of the two week process, folks. Code: https://github.com/s-ludwig/std_data_json Docs:

Re: std.data.json formal review

2015-08-11 Thread Atila Neves via Digitalmars-d
On Tuesday, 28 July 2015 at 14:07:19 UTC, Atila Neves wrote: Start of the two week process, folks. Code: https://github.com/s-ludwig/std_data_json Docs: http://s-ludwig.github.io/std_data_json/ Atila I forgot to give warnings that the two week period was about to be up, and was unsure from

[Issue 14903] Destructors for arguments completely broken

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14903 --- Comment #6 from ki...@gmx.net --- --- import core.stdc.stdio; struct Struct { int a = 6; ~this() { printf(dtor\n); throw new Exception(big bang); } } int foo(bool doThrow) { printf(foo()\n); if (doThrow)

countUntil for SortedRange

2015-08-11 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. Basic question: suppose I have a SortedRange and want to find the index of the first entry of an array of structs matching a needle struct. What's the best way to do that? It's not clear that countUntil treats a SortedRange specially. I could get the lowerBound and then length or

Re: Infinity loop with dates comparison

2015-08-11 Thread anonymous via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 19:56:02 UTC, Suliman wrote: Date startDate = Date.fromISOExtString(2014-08-01); [...] Date nextday; while (nextday currentDate) { nextday = startDate + 1.days; writeln(nextday); } startDate

Re: Infinity loop with dates comparison

2015-08-11 Thread cym13 via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 19:56:02 UTC, Suliman wrote: The code look very trivial, but I am getting infinity loop like: 2014-Aug-02 2014-Aug-02 2014-Aug-02 ... 2014-Aug-02 Date startDate = Date.fromISOExtString(2014-08-01); Date currentDate = to!(Date)(Clock.currTime()-1.days);

Infinity loop with dates comparison

2015-08-11 Thread Suliman via Digitalmars-d-learn
The code look very trivial, but I am getting infinity loop like: 2014-Aug-02 2014-Aug-02 2014-Aug-02 ... 2014-Aug-02 Date startDate = Date.fromISOExtString(2014-08-01); Date currentDate = to!(Date)(Clock.currTime()-1.days); //because current day is not finished writeln(startDate);

Re: Infinity loop with dates comparison

2015-08-11 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Aug 11, 2015 at 07:56:00PM +, Suliman via Digitalmars-d-learn wrote: [...] Date startDate = Date.fromISOExtString(2014-08-01); Date currentDate = to!(Date)(Clock.currTime()-1.days); //because current day is not finished writeln(startDate); writeln(currentDate);

Re: std.data.json formal review

2015-08-11 Thread deadalnix via Digitalmars-d
On Tuesday, 11 August 2015 at 21:27:48 UTC, Sönke Ludwig wrote: That is not going to cut it. I've been working with these for ages. This is the very kind of scenarios where dynamically typed languages are way more convenient. I've used both quite extensively and this is clear cut: you don't

Re: Where the F*** is phobos on OSX nowadays ?

2015-08-11 Thread Daniel Kozak via Digitalmars-d
Not at all, I am using dvm and I like it. But OTOH it makes things sometimes wierd. My common habit is to do something like this: dmd somefile ./somefile. But without dvm I use latest (current installed vesion of dmd) but with dvm I use last setup vesion. And often I do not know which version

Re: Release D 2.068.0

2015-08-11 Thread Bill Baxter via Digitalmars-d-announce
On Tue, Aug 11, 2015 at 12:52 AM, John Colvin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote: Glad to announce D 2.068.0. http://downloads.dlang.org/releases/2.x/2.068.0/ This release comes with many

Convert a hex color string into r,g,b components.

2015-08-11 Thread Marcin Szymczak via Digitalmars-d-learn
When programming i have encountered a simple ( i think ) problem, yet i can't get my head around it. I am trying to convert a string ( like #FF00FF for magenta ) into a color. I figured out that i need to skip the first character '#' and then using chunks range convert each pair of 2 chars

Re: Convert a hex color string into r,g,b components.

2015-08-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 22:11:51 UTC, Marcin Szymczak wrote: /usr/include/dlang/dmd/std/conv.d(295): Error: template std.conv.toImpl cannot deduce function from argument types !(ubyte)(Take!string, int), candidates are: I don't think to! with the base given works on the chunked

Re: Where the F*** is phobos on OSX nowadays ?

2015-08-11 Thread deadalnix via Digitalmars-d
On Tuesday, 11 August 2015 at 05:40:01 UTC, Brad Anderson wrote: On Tuesday, 11 August 2015 at 04:51:03 UTC, deadalnix wrote: And why does it keep moving ? Why isn't it in some place where linker will find it ? Is that really worth it to have every build system to have to jump through hoops

Re: std.data.json formal review

2015-08-11 Thread deadalnix via Digitalmars-d
On Tuesday, 11 August 2015 at 21:06:24 UTC, Sönke Ludwig wrote: See http://s-ludwig.github.io/std_data_json/stdx/data/json/value/JSONValue.payload.html The question whether each field is really needed obviously depends on the application. However, the biggest type is BigInt that, form a

[Issue 14907] DMD crash when using template name as a default value of template's typed argument

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14907 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||ice, pull

Re: Derelict, SDL, and OpenGL3: Triangle Tribulations

2015-08-11 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 05:35:30 UTC, Mike Parker wrote: One of the best I've seen is by Anton Gerdelan [1]. The four [1] http://antongerdelan.net/opengl/index.html

[Issue 14874] __traits(getFunctionAttributes) does not support the new `return` attribute

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14874 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0c1fd7108015d06e120178b7d8de6cd7caad6283 Merge pull request #4868

Re: Derelict, SDL, and OpenGL3: Triangle Tribulations

2015-08-11 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 03:32:47 UTC, DarthCthulhu wrote: So, any ideas what I'm doing wrong? Too much to list. I suggest you get going with a good tutorial. One of the best I've seen is by Anton Gerdelan [1]. The four basic tutorials he has on his site will be enough to get you up

Re: Derelict, SDL, and OpenGL3: Triangle Tribulations

2015-08-11 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 05:34:22 UTC, BBasile wrote: static this() { DerelictGL3.load; DerelictGL.load; DerelictSDL2.load; SDL_Init(SDL_INIT_VIDEO); } I should point out that *either* DerelictGL3 *or* DerelictGL should be loaded, but never both. DerelictGL actually

Re: Derelict, SDL, and OpenGL3: Triangle Tribulations

2015-08-11 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 05:34:22 UTC, BBasile wrote: For me the following code works: --- import derelict.sdl2.sdl; import derelict.opengl3.gl3; import derelict.opengl3.gl; import std.stdio; static this() { DerelictGL3.load; DerelictGL.load; DerelictSDL2.load;

Re: Release D 2.068.0

2015-08-11 Thread ketmar via Digitalmars-d-announce
On Tue, 11 Aug 2015 20:54:15 +, Daniel Kozak wrote: On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote: Glad to announce D 2.068.0. http://downloads.dlang.org/releases/2.x/2.068.0/ This release comes with many rangified phobos functions, 2 new GC profilers, a new AA

[Issue 14906] dmd dumps core at incorrect enum declaration

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14906 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||ice, pull

Re: Code Reviewer

2015-08-11 Thread Rikki Cattermole via Digitalmars-d-learn
On 12/08/2015 10:50 a.m., Clayton wrote: Hello everyone, Am looking for someone who could help review my code . As an entry exercise to D am converting 3 C implementations of popular pattern matching algorithms. The idea is to have 6 final implementations ( 3 compile-time and 3 runtime) . I

Re: Derelict, SDL, and OpenGL3: Triangle Tribulations

2015-08-11 Thread BBasile via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 03:32:47 UTC, DarthCthulhu wrote: So I decided to try some OGL3 stuff in D utilizing the Derelict bindings and SDL. Creating an SDL-OGL window worked fine, but I'm having trouble with doing the most basic thing of rendering a triangle. I get the window just fine

Re: Release D 2.068.0

2015-08-11 Thread Ben Boeckel via Digitalmars-d-announce
On Tue, Aug 11, 2015 at 22:36:47 +, John Colvin via Digitalmars-d-announce wrote: Not true. AFAIK /usr/local is the only bit of /usr that *is* available for third-parties. Ah, mixed it up with this tidbit: The /usr/local folder remains accessible, however; it's a long-running

Re: countUntil for SortedRange

2015-08-11 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 21:38:49 UTC, John Colvin wrote: On Tuesday, 11 August 2015 at 19:30:02 UTC, Laeeth Isharc wrote: Hi. Basic question: suppose I have a SortedRange and want to find the index of the first entry of an array of structs matching a needle struct. What's the best

[Issue 13567] Attribute inference for private functions

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13567 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

Re: Release D 2.068.0

2015-08-11 Thread Rikki Cattermole via Digitalmars-d-announce
On 12/08/2015 8:54 a.m., Daniel Kozak wrote: On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote: Glad to announce D 2.068.0. http://downloads.dlang.org/releases/2.x/2.068.0/ This release comes with many rangified phobos functions, 2 new GC profilers, a new AA implementation, and

[Issue 10706] Functions that require a sorted range to take a SortedRange?

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10706 Collin Reeser collin.ree...@gmail.com changed: What|Removed |Added CC|

[Issue 14908] New: dmd's rewrite is exposed in error message: Error: 's += 1' is not a scalar, it is a S

2015-08-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14908 Issue ID: 14908 Summary: dmd's rewrite is exposed in error message: Error: 's += 1' is not a scalar, it is a S Product: D Version: D2 Hardware: x86_64 OS: Linux

  1   2   >