Re: dmd.conf... again

2015-08-12 Thread Atila Neves via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 12:21:14 UTC, Rikki Cattermole wrote: On 13/08/2015 12:16 a.m., Atila Neves wrote: [...] Perhaps this small snippet from my Windows install might shred some light. Specifically the LIB property. [Environment32] LIB=%@P%\..\lib LINKCMD=%@P%\link.exe

Re: dmd.conf... again

2015-08-12 Thread wobbles via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 14:05:57 UTC, Atila Neves wrote: On Wednesday, 12 August 2015 at 13:46:24 UTC, wobbles wrote: On Wednesday, 12 August 2015 at 13:00:45 UTC, Atila Neves wrote: On Wednesday, 12 August 2015 at 12:40:49 UTC, Adam D. Ruppe wrote: [...] I downloaded the zip, added

Re: Does D have syntax for adding subscopes to classes?

2015-08-12 Thread sigod via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 15:21:28 UTC, GregoryP wrote: I'm just wondering if, or how much of the following is possible in some way in D: class Foo { int x; sub Bar { int x; int getFooX(){ return super.x; } sub FooBar { int x; int

Re: D for Game Development

2015-08-12 Thread jmh530 via Digitalmars-d
On Wednesday, 12 August 2015 at 13:32:10 UTC, kink wrote: Afaik DMD for Win64 requires the MS linker, so good luck without Visual Studio then. Same goes for LDC on Win64, although an LLVM COFF linker is under development. Serious system programming on Windows without MSVC and its C runtime?

Re: dmd.conf... again

2015-08-12 Thread Atila Neves via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 15:22:39 UTC, wobbles wrote: On Wednesday, 12 August 2015 at 14:05:57 UTC, Atila Neves wrote: On Wednesday, 12 August 2015 at 13:46:24 UTC, wobbles wrote: On Wednesday, 12 August 2015 at 13:00:45 UTC, Atila Neves wrote: On Wednesday, 12 August 2015 at 12:40:49

Re: dmd.conf... again

2015-08-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 15:30:09 UTC, Atila Neves wrote: I've never seen a colon in library options before and the (ancient) gcc on the system doesn't seem to like it one bit. ohhh, I have seen that before, I was on a CentOS 5 VM and it didn't like that colon either. It was added

Re: Does D have syntax for adding subscopes to classes?

2015-08-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 15:24:43 UTC, sigod wrote: [Nested classes][0] maybe? Example with them: class Foo { int x; class Bar_ { // underscore cuz we have to declare variable too int x; int getFooX() { return this.outer.x; }

Re: dmd.conf... again

2015-08-12 Thread via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 15:30:09 UTC, Atila Neves wrote: On Wednesday, 12 August 2015 at 15:22:39 UTC, wobbles wrote: On Wednesday, 12 August 2015 at 14:05:57 UTC, Atila Neves wrote: On Wednesday, 12 August 2015 at 13:46:24 UTC, wobbles wrote: On Wednesday, 12 August 2015 at 13:00:45

Re: dmd.conf... again

2015-08-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 15:49:37 UTC, Joakim Brännström wrote: From man ld :) It's only there if you have a new enough ld for the feature to be supported! One of the work CentOS VMs I have to use sometimes doesn't have it. $ ld --version GNU ld version 2.17.50.0.6-14.el5 20061020

[Issue 14912] New: Move initialisation of GC'd struct and class data from the callee to the caller

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14912 Issue ID: 14912 Summary: Move initialisation of GC'd struct and class data from the callee to the caller Product: D Version: D2 Hardware: All OS: All

Re: Hello Assembly!

2015-08-12 Thread Taylor Hillegeist via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 22:32:30 UTC, Adam D. Ruppe wrote: On Wednesday, 12 August 2015 at 22:18:41 UTC, Adam D. Ruppe wrote: [...] Here's an example: [...] Wow, very cool thanks!

Re: DIP81: Writing files at compile time

2015-08-12 Thread Nicholas Wilson via Digitalmars-d
On Wednesday, 12 August 2015 at 23:27:16 UTC, Tofu Ninja wrote: On Wednesday, 12 August 2015 at 18:37:40 UTC, JDemler wrote: [...] The benefits of this I see are debugging, actually having the generated files makes it much simpler to see what is going wrong. Otherwise the utility of this

Hello Assembly!

2015-08-12 Thread Taylor Hillegeist via Digitalmars-d-learn
So i was playing around with the D inline assembly trying to make it say hello world on my windows setup... void main(){ asm { myhello: db HELLO, WORLD$; mov EAX , myhello; mov AH, 0x09; int 0x21; } } I figure this should do it. but i'm

Re: Hello Assembly!

2015-08-12 Thread Justin Whear via Digitalmars-d-learn
On Wed, 12 Aug 2015 22:10:30 +, Taylor Hillegeist wrote: I figure this should do it. but i'm running into problems. Anybody know why? Describe problems

Re: Where will D sit in the web service space?

2015-08-12 Thread via Digitalmars-d
On Wednesday, 12 August 2015 at 21:16:28 UTC, karabuta wrote: Not long ago, C++ was the perfect programming language that everybody was running to. Then came ~ Java, Well, C++ was never considered a good language by anyone. It was shunned at universities by lecturers. Java was basically

Re: More threads - Slower program ??

2015-08-12 Thread Yuxuan Shui via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 23:15:48 UTC, Adam D. Ruppe wrote: On Wednesday, 12 August 2015 at 23:06:32 UTC, Yuxuan Shui wrote: What is wrong here? I didn't look too closely, but there's some memory allocations going on there which have the potential of locking all the threads any time

Re: DIP81: Writing files at compile time

2015-08-12 Thread JDemler via Digitalmars-d
On Wednesday, 12 August 2015 at 19:12:53 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 12 August 2015 at 18:57:05 UTC, Adam D. Ruppe wrote: I've been looking at a company's build system recently and it makes me think this is a bad idea: we have enough problems tracking import dependencies and

Re: D fund

2015-08-12 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 12 August 2015 at 18:19:48 UTC, Bruno Medeiros wrote: Actually, it seems BountySource is experimenting with a monthly payment model: https://salt.bountysource.com/ Invite only at the moment, but I think you can submit request if you are the project leader. Interesting, they seem

More threads - Slower program ??

2015-08-12 Thread Yuxuan Shui via Digitalmars-d-learn
Here is a small program (https://gist.github.com/yshui/a426f73be77d1d699555) that uses taskPool to parallely reading from /proc/pid/ and sum the swap usage. Individual tasks has zero dependency between each other, but when I remove the 'defaultPoolThreads(1)' line, the programs takes 8x

Re: Hello Assembly!

2015-08-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 22:18:41 UTC, Adam D. Ruppe wrote: The way you'd typically do it on Windows is to just call one of the win32 api functions, similarly to how you'd do it from C or regular D, just calling the functions manually. Here's an example: import

Re: DIP81: Writing files at compile time

2015-08-12 Thread lobo via Digitalmars-d
On Wednesday, 12 August 2015 at 18:57:05 UTC, Adam D. Ruppe wrote: I've been looking at a company's build system recently and it makes me think this is a bad idea: we have enough problems tracking import dependencies and changes as it is without other files being written in the middle of the

Re: Hello Assembly!

2015-08-12 Thread Taylor Hillegeist via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 22:18:41 UTC, Adam D. Ruppe wrote: On Wednesday, 12 August 2015 at 22:10:32 UTC, Taylor Hillegeist wrote: So i was playing around with the D inline assembly trying to make it say hello world on my windows setup... Have you ever written assembly for Windows

[Issue 14913] New: The return attribute cannot be on the left side of a function declaration

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14913 Issue ID: 14913 Summary: The return attribute cannot be on the left side of a function declaration Product: D Version: D2 Hardware: All OS: All

[Issue 14912] Move initialisation of GC'd struct and class data from the callee to the caller

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

Re: Hello Assembly!

2015-08-12 Thread Taylor Hillegeist via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 22:14:58 UTC, Justin Whear wrote: On Wed, 12 Aug 2015 22:10:30 +, Taylor Hillegeist wrote: I figure this should do it. but i'm running into problems. Anybody know why? Describe problems object.Error@(0): Access Violation 0x00402028

Re: Where will D sit in the web service space?

2015-08-12 Thread rsw0x via Digitalmars-d
On Wednesday, 12 August 2015 at 22:10:18 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 12 August 2015 at 21:16:28 UTC, karabuta wrote: Not long ago, C++ was the perfect programming language that everybody was running to. Then came ~ Java, Well, C++ was never considered a good language by

Re: More threads - Slower program ??

2015-08-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 23:06:32 UTC, Yuxuan Shui wrote: What is wrong here? I didn't look too closely, but there's some memory allocations going on there which have the potential of locking all the threads any time one of them tries to allocate. Parallelism's benefits are largely

Re: DIP81: Writing files at compile time

2015-08-12 Thread Tofu Ninja via Digitalmars-d
On Wednesday, 12 August 2015 at 18:37:40 UTC, JDemler wrote: Triggered by the original forum thread I wrote a DIP to further explain the idea of the writing files at compile time feature and its implications. http://wiki.dlang.org/DIP81 Please discuss! The benefits of this I see are

Re: DIP81: Writing files at compile time

2015-08-12 Thread Dicebot via Digitalmars-d
Please no.

Should these aliases kind be illegal ?

2015-08-12 Thread anonymous via Digitalmars-d-learn
The following alias declaration is totally legal but actually it's not usable --- class Foo { void something(size_t param){} } class Bar { private Foo foo; this(){foo = new Foo;} alias somethingelse = foo.something; } void main(string[] args) { auto bar = new Bar;

Re: Hello Assembly!

2015-08-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 22:10:32 UTC, Taylor Hillegeist wrote: So i was playing around with the D inline assembly trying to make it say hello world on my windows setup... Have you ever written assembly for Windows before? Your code looks more like DOS (aside from the EAX, which would

Re: DIP81: Writing files at compile time

2015-08-12 Thread via Digitalmars-d
On Wednesday, 12 August 2015 at 20:21:06 UTC, JDemler wrote: Maybe a combination of both could work? A central database that tracks which files have been generated and which have not, but the imported code still lies on the file system. Although that seems overly complex and would imply a

Re: DIP81: Writing files at compile time

2015-08-12 Thread via Digitalmars-d
And for this to work you also need a highly concurrent compiler.

Re: Where will D sit in the web service space?

2015-08-12 Thread karabuta via Digitalmars-d
On Monday, 13 July 2015 at 07:11:35 UTC, Ola Fosheim Grøstad wrote: On Sunday, 12 July 2015 at 19:02:23 UTC, Brad Anderson wrote: I'd consider D a failure if it couldn't fill both of these roles. D is a general purpose systems programming language. It doesn't and shouldn't care about what you

[Issue 14912] Move initialisation of GC'd struct and class data from the callee to the caller

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14912 Iain Buclaw ibuc...@gdcproject.org changed: What|Removed |Added CC||ibuc...@gdcproject.org

Re: DIP81: Writing files at compile time

2015-08-12 Thread Tofu Ninja via Digitalmars-d
On Thursday, 13 August 2015 at 00:58:14 UTC, JDemler wrote: On Wednesday, 12 August 2015 at 23:27:16 UTC, Tofu Ninja wrote: On Wednesday, 12 August 2015 at 18:37:40 UTC, JDemler wrote: Triggered by the original forum thread I wrote a DIP to further explain the idea of the writing files at

Re: std.data.json formal review

2015-08-12 Thread Walter Bright via Digitalmars-d
On 8/12/2015 10:10 AM, deadalnix wrote: Thing is, the schema is not always known perfectly? Typical case is JSON used for configuration, and diverse version of the software adding new configurations capabilities, or ignoring old ones. Hah, I'd like to replace dmd.conf with a .json file.

Re: Where will D sit in the web service space?

2015-08-12 Thread Rikki Cattermole via Digitalmars-d
On 13/08/2015 10:17 a.m., rsw0x wrote: On Wednesday, 12 August 2015 at 22:10:18 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 12 August 2015 at 21:16:28 UTC, karabuta wrote: Not long ago, C++ was the perfect programming language that everybody was running to. Then came ~ Java, Well, C++

Re: DIP81: Writing files at compile time

2015-08-12 Thread JDemler via Digitalmars-d
On Wednesday, 12 August 2015 at 20:39:31 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 12 August 2015 at 20:21:06 UTC, JDemler wrote: Maybe a combination of both could work? A central database that tracks which files have been generated and which have not, but the imported code still lies on

Re: D fund

2015-08-12 Thread Tofu Ninja via Digitalmars-d
On Thursday, 13 August 2015 at 00:22:05 UTC, Adam D. Ruppe wrote: On Wednesday, 12 August 2015 at 18:19:48 UTC, Bruno Medeiros wrote: Actually, it seems BountySource is experimenting with a monthly payment model: https://salt.bountysource.com/ Invite only at the moment, but I think you can

Re: Should these aliases kind be illegal ?

2015-08-12 Thread Timon Gehr via Digitalmars-d-learn
On 08/13/2015 12:17 AM, anonymous wrote: The following alias declaration is totally legal but actually it's not usable --- class Foo { void something(size_t param){} } class Bar { private Foo foo; this(){foo = new Foo;} alias somethingelse = foo.something; } void

Attributes not propagating to objects via typeinfo?

2015-08-12 Thread rsw0x via Digitalmars-d-learn
Sample code: class C{} struct S{} void main(){ import std.stdio; auto c = new shared C(); auto s = new shared S(); writeln(typeid(c)); //modulename.C writeln(typeid(s)); //shared(modulename.S)* writeln(typeid(c).next); //null writeln(typeid(s).next);

Re: DIP81: Writing files at compile time

2015-08-12 Thread Rikki Cattermole via Digitalmars-d
On 13/08/2015 6:37 a.m., JDemler wrote: Triggered by the original forum thread I wrote a DIP to further explain the idea of the writing files at compile time feature and its implications. http://wiki.dlang.org/DIP81 Please discuss! Problem: debugging The debugger cannot attach to

Re: DIP81: Writing files at compile time

2015-08-12 Thread JDemler via Digitalmars-d
On Wednesday, 12 August 2015 at 23:27:16 UTC, Tofu Ninja wrote: On Wednesday, 12 August 2015 at 18:37:40 UTC, JDemler wrote: Triggered by the original forum thread I wrote a DIP to further explain the idea of the writing files at compile time feature and its implications.

Indivisual Incremental Compalation with dub

2015-08-12 Thread Freddy via Digitalmars-d-learn
I have a file that takes a while to compile with a static interface. Is there any way i can make dub keep the object file of only that file(for faster compilation)?

Re: std.data.json formal review

2015-08-12 Thread Sönke Ludwig via Digitalmars-d
Am 12.08.2015 um 00:21 schrieb deadalnix: 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

Re: std.data.json formal review

2015-08-12 Thread via Digitalmars-d
On Tuesday, 11 August 2015 at 21:06:24 UTC, Sönke Ludwig wrote: However, my goal when implementing this has never been to make the DOM representation as efficient as possible. The simple reason is that a DOM representation is inherently inefficient when compared to operating on the structure

[Issue 14906] dmd dumps core at incorrect enum declaration

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14906 --- Comment #2 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/1a5b4098e7a7f0bbdfd3c8035a93d1e71471afc1 fix Issue 14906 - dmd dumps

[Issue 14906] dmd dumps core at incorrect enum declaration

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

Re: std.data.json formal review

2015-08-12 Thread Sönke Ludwig via Digitalmars-d
Am 11.08.2015 um 23:52 schrieb deadalnix: 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

[Semi OT] DDT Eclipse Plugin

2015-08-12 Thread Freddy via Digitalmars-d
I just install eclipse with the DDT plugin(https://ddt-ide.github.io/) and it worked well. It has auto complete, dub support(with a minor case senativity bug),and other IDE features.

Re: std.data.json formal review

2015-08-12 Thread Sönke Ludwig via Digitalmars-d
Am 12.08.2015 um 08:28 schrieb Dmitry Olshansky: On 12-Aug-2015 00:21, Sönke Ludwig wrote: 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

[Issue 14910] New: Take!R does not offer length for char[]

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14910 Issue ID: 14910 Summary: Take!R does not offer length for char[] Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: enhancement

Re: Derelict, SDL, and OpenGL3: Triangle Tribulations

2015-08-12 Thread JN via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 05:58:23 UTC, BBasile wrote: On Wednesday, 12 August 2015 at 05:46:27 UTC, Mike Parker wrote: On Wednesday, 12 August 2015 at 05:34:22 UTC, BBasile wrote: [...] It seems to me that your driver is doing things it isn't actually supposed to do. This code is

Re: std.data.json formal review

2015-08-12 Thread Dmitry Olshansky via Digitalmars-d
On 12-Aug-2015 00:21, Sönke Ludwig wrote: 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

Re: Derelict, SDL, and OpenGL3: Triangle Tribulations

2015-08-12 Thread BBasile via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 05:46:27 UTC, Mike Parker wrote: On Wednesday, 12 August 2015 at 05:34:22 UTC, BBasile wrote: [...] It seems to me that your driver is doing things it isn't actually supposed to do. This code is binding a vertex buffer object with a function which is

Re: Derelict, SDL, and OpenGL3: Triangle Tribulations

2015-08-12 Thread DarthCthulhu via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 05:26:33 UTC, JN wrote: You need a vertex and a fragment shader. You can't render anything in OGL3 without shaders. I thought that was the case, but the tutorial I was looking at didn't have any shaders at that point. I added a shader program. Also, you

[Issue 14909] New: Template argument of std.algoirthm.iteration.chunkBy cannot access a local variable

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14909 Issue ID: 14909 Summary: Template argument of std.algoirthm.iteration.chunkBy cannot access a local variable Product: D Version: D2 Hardware: All OS: All

Re: DDT 0.13.0 released - DUB configurations support.

2015-08-12 Thread Dejan Lekic 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

[Issue 14910] Take!R does not offer length for char[]

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14910 ZombineDev petar.p.ki...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: vibe.d 0.7.24 released

2015-08-12 Thread ponce via Digitalmars-d-announce
On Tuesday, 11 August 2015 at 16:11:29 UTC, Sönke Ludwig wrote: Did you try to run dub upgrade again after the clean-caches? This is necessary, because dub.selections.json is supposed to be able to manually override dependency specifications in dub.json. I have a script called dubrenew.sh

Re: vibe.d 0.7.24 released

2015-08-12 Thread ponce via Digitalmars-d-announce
On Wednesday, 12 August 2015 at 09:42:20 UTC, ponce wrote: I have a script called dubrenew.sh --8- #!/bin/bash rm dub.selections.json dub clean-caches --8- Works every time (dub upgrade can be used alternatively to deleting dub.selections.json)

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

2015-08-12 Thread Daniel Kozák via Digitalmars-d
On Wed, 12 Aug 2015 11:16:55 +0200 Jacob Carlborg d...@me.com wrote: On 2015-08-11 23:55, Daniel Kozak via Digitalmars-d wrote: 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

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

2015-08-12 Thread Jacob Carlborg via Digitalmars-d
On 2015-08-11 23:55, Daniel Kozak via Digitalmars-d wrote: 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

Re: std.data.json formal review

2015-08-12 Thread Sönke Ludwig via Digitalmars-d
Anyway, I've just started to work on a generic variant of an enum based algebraic type that exploits as much static type information as possible. If that works out (compiler bugs?), it would be a great thing to have in Phobos, so maybe it's worth to delay the JSON module for that if necessary.

Re: D for Game Development

2015-08-12 Thread Jacob Carlborg via Digitalmars-d
On 2015-08-11 09:08, Timothee Cour via Digitalmars-d wrote: on OSX I only see libphobos2.a (including dmd 2.068) It's not supported on OS X. -- /Jacob Carlborg

Re: Release D 2.068.0

2015-08-12 Thread John Colvin via Digitalmars-d-announce
On Wednesday, 12 August 2015 at 02:46:41 UTC, Ben Boeckel wrote: 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

Re: vibe.d 0.7.24 released

2015-08-12 Thread Rory McGuire via Digitalmars-d-announce
On Tue, Aug 11, 2015 at 3:48 PM, Adam D. Ruppe via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: ... Most dynamic types really are static, you just don't always know the layout at compile time. But with a bit of ahead-of-time analyzers of the data, we can basically

[Issue 13567] Attribute inference for private functions

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13567 ZombineDev petar.p.ki...@gmail.com changed: What|Removed |Added CC||petar.p.ki...@gmail.com

[Issue 14910] Take!R does not offer length for char[]

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14910 ZombineDev petar.p.ki...@gmail.com changed: What|Removed |Added CC||petar.p.ki...@gmail.com

Re: dmd.conf... again

2015-08-12 Thread Atila Neves via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 15:49:37 UTC, Joakim Brännström wrote: On Wednesday, 12 August 2015 at 15:30:09 UTC, Atila Neves wrote: [...] From man ld :) -l namespec Add the archive or object file specified by namespec to the list of files to link. This option may be used any number of

IFTI with template alias fails in D, works in C++

2015-08-12 Thread Timothee Cour via Digitalmars-d-learn
main.d: -- struct A(T, int D) { this(string ignore){} } alias B(T)=A!(T, 1); void fun1(T)(A!(T,1) a) { } void fun2(T)(B!T a) { } unittest{ auto a=A!(double,1)(a); assert(is(typeof(a) == B!double)); fun1(a);//ok fun2!double(a);//ok // no IFTI here: //fun2(a);//not ok:

[Issue 14911] New: Compiler found indexing in code new MyStruct[2].ptr

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14911 Issue ID: 14911 Summary: Compiler found indexing in code new MyStruct[2].ptr Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity:

Re: D for Game Development

2015-08-12 Thread kink via Digitalmars-d
On Wednesday, 12 August 2015 at 14:57:17 UTC, jmh530 wrote: Well I'm not sure what percent serious system programming is done by other people, but I don't do any. I understand your points. I meant to say that D is a system programming language (too), so it's tightly coupled to some internals

Re: dmd.conf... again

2015-08-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 12:16:50 UTC, Atila Neves wrote: I'm trying to use dmd on a VM where I don't have root privileges (don't ask). I can't copy dmd.conf to /etc. If you use the dmd zip, everything just works when you just unzip it and use it all in-place. No need to move or copy

Re: [Optimization] Speculatively not calling invariant on class objects

2015-08-12 Thread Kagamin via Digitalmars-d
Remove allocation?

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

2015-08-12 Thread wobbles via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 22:11:51 UTC, Marcin Szymczak wrote: I would really love to solve this problem using ranges, because i am learning how to use them. Unfortunately even such a simple task seems so hard for me ;( I think writing a simple function to parse a string into a Color

Re: dmd.conf... again

2015-08-12 Thread Dicebot via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 13:04:25 UTC, Atila Neves wrote: On Wednesday, 12 August 2015 at 12:29:46 UTC, Dicebot wrote: More info about what gets placed where please. I have special dev layout on my system that co-exists with system-wide installation of dmd. It is as simple as having

Re: Code Reviewer

2015-08-12 Thread Clayton via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 02:49:59 UTC, Rikki Cattermole wrote: 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

Re: Code Reviewer

2015-08-12 Thread Rikki Cattermole via Digitalmars-d-learn
On 13/08/2015 12:09 a.m., Clayton wrote: On Wednesday, 12 August 2015 at 02:49:59 UTC, Rikki Cattermole wrote: 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

dmd.conf... again

2015-08-12 Thread Atila Neves via Digitalmars-d-learn
I'm trying to use dmd on a VM where I don't have root privileges (don't ask). I can't copy dmd.conf to /etc. According to the docs, I should be able to use a dmd.conf that's in the same dir as dmd itself, or in my home directory, or even specifying -conf=. None of these seems to tell dmd where

Re: dmd.conf... again

2015-08-12 Thread via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 12:16:50 UTC, Atila Neves wrote: I'm trying to use dmd on a VM where I don't have root privileges (don't ask). I can't copy dmd.conf to /etc. According to the docs, I should be able to use a dmd.conf that's in the same dir as dmd itself, or in my home directory,

Re: vibe.d 0.7.24 released

2015-08-12 Thread Suliman via Digitalmars-d-announce
Did you try to run dub upgrade Thanks! It's work!

[Optimization] Speculatively not calling invariant on class objects

2015-08-12 Thread Iain Buclaw via Digitalmars-d
This post got me thinking: http://forum.dlang.org/post/mpo71n$22ma$1...@digitalmars.com We know at compile time for a given object whether or not there are any invariants, lack of any polymorphism, along with disallowing invariants in interfaces means that for the given: class

Re: dmd.conf... again

2015-08-12 Thread Rikki Cattermole via Digitalmars-d-learn
On 13/08/2015 12:16 a.m., Atila Neves wrote: I'm trying to use dmd on a VM where I don't have root privileges (don't ask). I can't copy dmd.conf to /etc. According to the docs, I should be able to use a dmd.conf that's in the same dir as dmd itself, or in my home directory, or even specifying

Re: dmd.conf... again

2015-08-12 Thread Dicebot via Digitalmars-d-learn
More info about what gets placed where please. I have special dev layout on my system that co-exists with system-wide installation of dmd. It is as simple as having ~/dlang/{dmd|druntime|phobos}, linking ~/dlang/dmd/src/dmd to ~/bin/dmd-dev and placing dmd.conf in ~/bin which adds all those

Re: dmd.conf... again

2015-08-12 Thread Atila Neves via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 12:29:46 UTC, Dicebot wrote: More info about what gets placed where please. I have special dev layout on my system that co-exists with system-wide installation of dmd. It is as simple as having ~/dlang/{dmd|druntime|phobos}, linking ~/dlang/dmd/src/dmd to

Re: dmd.conf... again

2015-08-12 Thread Atila Neves via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 12:40:49 UTC, Adam D. Ruppe wrote: On Wednesday, 12 August 2015 at 12:16:50 UTC, Atila Neves wrote: I'm trying to use dmd on a VM where I don't have root privileges (don't ask). I can't copy dmd.conf to /etc. If you use the dmd zip, everything just works when

Re: Code Reviewer

2015-08-12 Thread sigod via Digitalmars-d-learn
On Tuesday, 11 August 2015 at 22:50:52 UTC, 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

Re: [Optimization] Speculatively not calling invariant on class objects

2015-08-12 Thread Iain Buclaw via Digitalmars-d
On Wednesday, 12 August 2015 at 12:48:53 UTC, Kagamin wrote: Remove allocation? My test isn't good enough for that. With scoped classes, the backend can actually devirtualize, inline and DCE pretty much everything except the one side effect I added. This is because it knows how the vtable

Re: std.data.json formal review

2015-08-12 Thread Meta via Digitalmars-d
On Wednesday, 12 August 2015 at 07:19:05 UTC, Sönke Ludwig wrote: We also discussed an alternative approach similar to opt(n).foo.bar[1].baz, where n is a JSONValue and opt() creates a wrapper that enables safe navigation within the DOM, propagating any missing/mismatched fields to the final

Re: D fund

2015-08-12 Thread Jacob Carlborg via Digitalmars-d
On 2015-08-10 22:28, Andrei Alexandrescu wrote: Straight development plus minding releases, organizing DConf, website, media, PR, and more. -- Andrei I suggest that the foundation also owns all infrastructure, accounts and similar as much as possible. This is to avoid that a single person

Re: D for Game Development

2015-08-12 Thread kink via Digitalmars-d
On Tuesday, 11 August 2015 at 00:56:57 UTC, Manu wrote: On 11 August 2015 at 01:15, jmh530 via Digitalmars-d digitalmars-d@puremagic.com wrote: One big positive for DMD is that it is very easy to install on Windows. Just about anyone can get up and running quite easily. It doesn't require the

Re: dmd.conf... again

2015-08-12 Thread Atila Neves via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 13:46:24 UTC, wobbles wrote: On Wednesday, 12 August 2015 at 13:00:45 UTC, Atila Neves wrote: On Wednesday, 12 August 2015 at 12:40:49 UTC, Adam D. Ruppe wrote: On Wednesday, 12 August 2015 at 12:16:50 UTC, Atila Neves wrote: [...] If you use the dmd zip,

Re: dmd.conf... again

2015-08-12 Thread wobbles via Digitalmars-d-learn
On Wednesday, 12 August 2015 at 13:00:45 UTC, Atila Neves wrote: On Wednesday, 12 August 2015 at 12:40:49 UTC, Adam D. Ruppe wrote: On Wednesday, 12 August 2015 at 12:16:50 UTC, Atila Neves wrote: I'm trying to use dmd on a VM where I don't have root privileges (don't ask). I can't copy

[Issue 13567] Attribute inference for private functions

2015-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13567 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment #4 from

Re: [Optimization] Speculatively not calling invariant on class objects

2015-08-12 Thread Kagamin via Digitalmars-d
static __gshared NoInv obj; void test() { obj.func(); } obj = new NoInv(); auto bench = benchmark!(test)(10_000_000); writeln(Total time: , to!Duration(bench[0]));

Re: std.data.json formal review

2015-08-12 Thread deadalnix via Digitalmars-d
On Wednesday, 12 August 2015 at 08:21:41 UTC, Sönke Ludwig wrote: Just to state explicitly what I mean: This strategy has the most efficient in-memory storage format and profits from all the static type checking niceties of the compiler. It also means that there is a documented schema in the

Re: D fund

2015-08-12 Thread Bruno Medeiros via Digitalmars-d
On 09/08/2015 14:22, ref2401 wrote: I don't have much experience and time to contribute to code-base directly. But I'd like to donate some money every month. I think (hope) there are several guys who would like to donate to. There must be the way to do it. Actually, it seems BountySource is

Re: DIP81: Writing files at compile time

2015-08-12 Thread via Digitalmars-d
On Wednesday, 12 August 2015 at 18:37:40 UTC, JDemler wrote: Triggered by the original forum thread I wrote a DIP to further explain the idea of the writing files at compile time feature and its implications. http://wiki.dlang.org/DIP81 Please discuss! 1. How do you order imports and

  1   2   >