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

2015-08-10 Thread Brad Anderson 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 ? The problem, as

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

2015-08-10 Thread deadalnix via Digitalmars-d
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 ?

Re: D fund

2015-08-10 Thread Rikki Cattermole via Digitalmars-d
On 11/08/2015 11:55 a.m., Adam D. Ruppe wrote: Something I've been pondering for some time that could materialize a lot faster than the D foundation would be something like a kickstarter for me personally. If I could raise about $15,000 in the short term - a large sum of money, I admit - I could

Re: D needs to focus and better the available resources

2015-08-10 Thread Rikki Cattermole via Digitalmars-d
On 11/08/2015 4:20 a.m., karabuta wrote: On Monday, 10 August 2015 at 04:07:05 UTC, Rikki Cattermole wrote: On 10/08/2015 5:29 a.m., karabuta wrote: [...] I have two separate plans right now for how to grow D. The first related to GUI's and game development is going very well. Although it'll

Re: DMD diagnostic - any way to remove identical lines from final dmd error log?

2015-08-10 Thread Walter Bright via Digitalmars-d
On 8/13/2012 9:47 AM, Dmitry Olshansky wrote: I seriously consider writing a simple postprocessor for dmd's output. Once dmd became able to recover from errors and crawl on it started to produce horrific amounts of redundant text on failure. The current strategy the compiler uses on detecting a

Re: DMD diagnostic - any way to remove identical lines from final dmd error log?

2015-08-10 Thread timotheecour via Digitalmars-d
On Friday, 17 August 2012 at 13:10:52 UTC, Timon Gehr wrote: On 08/17/2012 02:17 PM, Marco Leise wrote: Am Tue, 14 Aug 2012 12:15:35 +0200 schrieb Don Clugston: Seriously, if you are finding ANY error messages for things which are not real errors, that is a bug. What about errors that are a

Re: D for Game Development

2015-08-10 Thread Manu via Digitalmars-d
On 11 August 2015 at 01:15, jmh530 via Digitalmars-d wrote: > On Monday, 10 August 2015 at 14:13:53 UTC, Manu wrote: >> >> I really hope this is a top-priority goal for the switch to DDMD. > > > My understanding is that 2.069 is supposed to bring DDMD support. I think > there has been a lot of hea

Re: D fund

2015-08-10 Thread Walter Bright via Digitalmars-d
On 8/10/2015 9:58 AM, vladde wrote: Will the swag feature http://dlangcomicstrips.tumblr.com/ ? Why didn't I know about that? Pretty dazz! (Who drew them? Keep 'em coming!)

Re: D fund

2015-08-10 Thread Walter Bright via Digitalmars-d
On 8/10/2015 6:44 AM, Jonathan M Davis wrote: Are you one of those guys who wears a Star Trek t-shirt to a Star Wars convention (or vice versa)? ;) If Luke and Kirk would only put aside their differences.

Re: D fund

2015-08-10 Thread Adam D. Ruppe via Digitalmars-d
Something I've been pondering for some time that could materialize a lot faster than the D foundation would be something like a kickstarter for me personally. If I could raise about $15,000 in the short term - a large sum of money, I admit - I could take a three month break from my day job an

Re: Binary file grammar

2015-08-10 Thread Artem Tarasov via Digitalmars-d
On Monday, 10 August 2015 at 12:29:43 UTC, wobbles wrote: While doing this I had the idea of implementing a more general approach to this, using CTFE to build a struct / parserFunction (Similar to Pegged [1] ). You describe at compile time how this binary file looks, and then the parser handl

Re: D fund

2015-08-10 Thread jmh530 via Digitalmars-d
On Monday, 10 August 2015 at 20:28:10 UTC, Andrei Alexandrescu wrote: Straight development plus minding releases, organizing DConf, website, media, PR, and more. -- Andrei May I suggest copying some of what Boost does on their donate page (monthly recurring donations, esp.). I also like pypy

Re: D for Game Development

2015-08-10 Thread rsw0x via Digitalmars-d
On Monday, 10 August 2015 at 20:20:36 UTC, Tofu Ninja wrote: 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?= " wrote: [...] …[insert your language here] has a lo

Re: D fund

2015-08-10 Thread Andrei Alexandrescu via Digitalmars-d
On 8/10/15 1:10 PM, Tofu Ninja wrote: On Sunday, 9 August 2015 at 13:52:17 UTC, Andrei Alexandrescu wrote: On 8/9/15 5:15 AM, ref2401 wrote: Does the fund exist? Are there sponsors? How can one donate some money to D? There will be a possibility with the D Language Foundation, hopefully by th

Re: D for Game Development

2015-08-10 Thread Tofu Ninja 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?= " wrote: [...] …[insert your language here] has a long way to go… :) Which is why I think people are attracted t

Re: D for Game Development

2015-08-10 Thread David Gileadi via Digitalmars-d
On 8/10/15 12:25 PM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= " wrote: On Sunday, 9 August 2015 at 02:41:00 UTC, Manu wrote: People keep talking about Rust, I'm thinking of giving it a shot. I feel there is something wrong with the Rust and Go agendas, both languages have interesting features, bu

Re: D for Game Development

2015-08-10 Thread rsw0x via Digitalmars-d
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?= " wrote: [...] …[insert your language here] has a long way to go… :) Which is why I think people are attracted towards D. It's very close to being "there". The large el

Re: D for Game Development

2015-08-10 Thread rsw0x via Digitalmars-d
On Monday, 10 August 2015 at 19:25:45 UTC, Ola Fosheim Grøstad wrote: On Sunday, 9 August 2015 at 02:41:00 UTC, Manu wrote: People keep talking about Rust, I'm thinking of giving it a shot. I feel there is something wrong with the Rust and Go agendas, both languages have interesting features,

Re: D for Game Development

2015-08-10 Thread via Digitalmars-d
On Sunday, 9 August 2015 at 02:41:00 UTC, Manu wrote: People keep talking about Rust, I'm thinking of giving it a shot. I feel there is something wrong with the Rust and Go agendas, both languages have interesting features, but then they seem to get too moralistic/political. Is there a way to

Re: pthread_create oddity

2015-08-10 Thread Steven Schveighoffer via Digitalmars-d
On 8/8/15 8:40 AM, Andrei Alexandrescu wrote: pthread_getstacksize indicates 8,388,608 bytes. It doesn't seem excessive, but the 32-bit build does find that too big. If I try to set stack size to that value with pthread_setstacksize, indeed the thread fails. So it's not that you need to call pth

Re: D fund

2015-08-10 Thread H. S. Teoh via Digitalmars-d
On Mon, Aug 10, 2015 at 05:00:38PM +, Tofu Ninja via Digitalmars-d wrote: > On Monday, 10 August 2015 at 16:58:15 UTC, 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

Re: D fund

2015-08-10 Thread Tofu Ninja via Digitalmars-d
On Sunday, 9 August 2015 at 13:52:17 UTC, Andrei Alexandrescu wrote: On 8/9/15 5:15 AM, ref2401 wrote: Does the fund exist? Are there sponsors? How can one donate some money to D? There will be a possibility with the D Language Foundation, hopefully by the end of this year. -- Andrei What e

Re: D fund

2015-08-10 Thread Tofu Ninja via Digitalmars-d
On Monday, 10 August 2015 at 16:58:15 UTC, 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

Re: D fund

2015-08-10 Thread vladde via Digitalmars-d
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 use the foundation to sell some D swag s

Re: D needs to focus and better the available resources

2015-08-10 Thread karabuta via Digitalmars-d
On Monday, 10 August 2015 at 04:07:05 UTC, Rikki Cattermole wrote: On 10/08/2015 5:29 a.m., karabuta wrote: [...] I have two separate plans right now for how to grow D. The first related to GUI's and game development is going very well. Although it'll take atleast another year before you sho

findSplit corner case bug?

2015-08-10 Thread via Digitalmars-d
Although it is a bit of a corner case, I would argue that the following behaviour is buggy: assert(findSplit!(reverseArgs!canFind)("078.12.13-4.5", ".-") == tuple("078", ".1", "2.13-4.5")); To understand why, consider the following more explicit code: void main() { static

Re: D for Game Development

2015-08-10 Thread ponce via Digitalmars-d
On Monday, 10 August 2015 at 14:44:42 UTC, Jacob Carlborg wrote: Shared libraries are not supported on OS X, at least not with DMD, not sure about LDC. Shared libraries works well here on OS X with LDC 0.15.2-beta2 (and only with LDC).

Re: D for Game Development

2015-08-10 Thread jmh530 via Digitalmars-d
On Monday, 10 August 2015 at 14:13:53 UTC, Manu wrote: I really hope this is a top-priority goal for the switch to DDMD. My understanding is that 2.069 is supposed to bring DDMD support. I think there has been a lot of heated discussion about something that really isn't that far away. Neverth

Re: Binary file grammar

2015-08-10 Thread Jacob Carlborg via Digitalmars-d
On 10/08/15 15:12, wobbles wrote: Trouble with that is what if there's some funny formats some data is in? Like I described above a string which starts with a number and continues for that number of bytes. What if it's a string that goes on until you hit a '\0' ? A serialisation library like Ora

Re: D for Game Development

2015-08-10 Thread Jacob Carlborg via Digitalmars-d
On 10/08/15 14:25, Manu via Digitalmars-d wrote: I wonder how .so files to work on those platforms? I expect iOS would leverage OSX support almost verbatim? Shared libraries are not supported on OS X, at least not with DMD, not sure about LDC. On Android, all binaries are .so files; but I

Re: D for Game Development

2015-08-10 Thread Manu via Digitalmars-d
On 10 August 2015 at 06:51, Walter Bright via Digitalmars-d 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 >>> >>> But waiting for someone else to discover the same thing on some other >>> piece >>> of code means you'll

Re: D fund

2015-08-10 Thread Nicholas Wilson via Digitalmars-d
On Monday, 10 August 2015 at 13:44:17 UTC, Jonathan M Davis 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

Re: D fund

2015-08-10 Thread Jonathan M Davis via Digitalmars-d
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 use the foundation to sell some D swag s

Re: Binary file grammar

2015-08-10 Thread wobbles via Digitalmars-d
On Monday, 10 August 2015 at 12:38:11 UTC, ketmar wrote: it looks like you can use some serialization library instead, like Orange. structs that those library takes as input can be seen as a kind of grammar description. ;-) Trouble with that is what if there's some funny formats some data is

Re: Binary file grammar

2015-08-10 Thread ketmar via Digitalmars-d
it looks like you can use some serialization library instead, like Orange. structs that those library takes as input can be seen as a kind of grammar description. ;-) signature.asc Description: PGP signature

Re: Writing/Creating files at compile-time

2015-08-10 Thread ketmar via Digitalmars-d
On Mon, 10 Aug 2015 22:22:49 +1200, Rikki Cattermole wrote: > Nah, I like CTFE a lot. if it will ever be augmented with AST macros... yes. until then, people will try to bolt extensions on it again and again, and i have a feeling that CTFE engine will become another abomination that makes D weir

Re: D for Game Development

2015-08-10 Thread Manu via Digitalmars-d
On 10 August 2015 at 05:00, Jacob Carlborg via Digitalmars-d wrote: > On 09/08/15 13:38, Manu via Digitalmars-d wrote: > >> In fact, we've been discussing for a few months that we'd have have >> another very promising opportunity to use D at work in a really >> appropriate context if I could rely

Binary file grammar

2015-08-10 Thread wobbles via Digitalmars-d
I have to read a binary file. I can use std.stdio.File.rawRead to do this (and it's even typesafe, awesome!!) Currently, I'm doing this with a little helper function I've called Get: /// Creates a buffer to read the file. Handles a special case string T[] Get(T)(File f, size_t num=1)

Re: D for Game Development

2015-08-10 Thread Walter Bright via Digitalmars-d
On 8/10/2015 3:32 AM, ponce wrote: On Monday, 10 August 2015 at 01:26:44 UTC, Walter Bright wrote: On 8/9/2015 2:03 PM, ponce wrote: Once I get back to Windows I will post the report. Thank you. https://issues.dlang.org/show_bug.cgi?id=14896 Good!

Re: Writing/Creating files at compile-time

2015-08-10 Thread Rikki Cattermole via Digitalmars-d
On 10/08/2015 10:31 p.m., Dmitry Olshansky wrote: On 10-Aug-2015 13:22, Rikki Cattermole wrote: On 10/08/2015 9:48 p.m., ketmar wrote: On Mon, 10 Aug 2015 16:08:43 +1200, Rikki Cattermole wrote: I think you mean dlopen, dlsym and dlclose. Not full file system access geez. and root privs req

Re: D for Game Development

2015-08-10 Thread Iain Buclaw via Digitalmars-d
On 10 August 2015 at 12:29, Jacob Carlborg via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On 10/08/15 10:43, John Colvin wrote: > > I think most people these days associate "DLL" exclusively with windows. >> I certainly do. >> > > Exactly. "DLL" on Windows and "shared library" on Posix.

Re: Writing/Creating files at compile-time

2015-08-10 Thread Dmitry Olshansky via Digitalmars-d
On 10-Aug-2015 13:22, Rikki Cattermole wrote: On 10/08/2015 9:48 p.m., ketmar wrote: On Mon, 10 Aug 2015 16:08:43 +1200, Rikki Cattermole wrote: I think you mean dlopen, dlsym and dlclose. Not full file system access geez. and root privs requirement. just to complement it all. We are alre

Re: D for Game Development

2015-08-10 Thread ponce via Digitalmars-d
On Monday, 10 August 2015 at 01:26:44 UTC, Walter Bright wrote: On 8/9/2015 2:03 PM, ponce wrote: Once I get back to Windows I will post the report. Thank you. https://issues.dlang.org/show_bug.cgi?id=14896

Re: D for Game Development

2015-08-10 Thread Jacob Carlborg via Digitalmars-d
On 10/08/15 10:43, John Colvin wrote: I think most people these days associate "DLL" exclusively with windows. I certainly do. Exactly. "DLL" on Windows and "shared library" on Posix. Although I think it's "dynamic library" on OS X. -- /Jacob Carlborg

Re: Writing/Creating files at compile-time

2015-08-10 Thread Rikki Cattermole via Digitalmars-d
On 10/08/2015 9:48 p.m., ketmar wrote: On Mon, 10 Aug 2015 16:08:43 +1200, Rikki Cattermole wrote: I think you mean dlopen, dlsym and dlclose. Not full file system access geez. and root privs requirement. just to complement it all. We are already getting so close to have a full blown CTFE

Re: Writing/Creating files at compile-time

2015-08-10 Thread via Digitalmars-d
On Monday, 10 August 2015 at 09:55:51 UTC, Iain Buclaw wrote: Who said anything about D-files? import() accepts any arbitrary text that you may want to embed in a program. And that is not a problem if it is reading a static file from the source-bundle, conceptually it just means you have spli

Re: Writing/Creating files at compile-time

2015-08-10 Thread Iain Buclaw via Digitalmars-d
On 10 August 2015 at 10:59, via Digitalmars-d wrote: > On Monday, 10 August 2015 at 08:03:47 UTC, lobo wrote: >> >> While I agree with you I am curious; where would the compiler place its >> artefacts and why can't "export" write to the same place? > > > I think that is an implementation detail an

Re: Writing/Creating files at compile-time

2015-08-10 Thread ketmar via Digitalmars-d
On Mon, 10 Aug 2015 07:50:27 +, Ola Fosheim Grøstad wrote: > Ugh… please don't add more ugly features that has to be ripped out to > bring the language to a sane state. hear, hear. signature.asc Description: PGP signature

Re: Writing/Creating files at compile-time

2015-08-10 Thread ketmar via Digitalmars-d
On Mon, 10 Aug 2015 08:33:49 +, Tofu Ninja wrote: > On Monday, 10 August 2015 at 07:02:44 UTC, Iain Buclaw wrote: >> On 10 August 2015 at 07:54, ChangLong via Digitalmars-d >>> >>> what will bing D more awesomeness is a ctfe execute. >>> >>> enum file = execute("shell scripts"); >> >> I don't

Re: Writing/Creating files at compile-time

2015-08-10 Thread ketmar via Digitalmars-d
On Mon, 10 Aug 2015 16:08:43 +1200, Rikki Cattermole wrote: > I think you mean dlopen, dlsym and dlclose. Not full file system access > geez. and root privs requirement. just to complement it all. > We are already getting so close to have a full blown CTFE implementation > that it isn't funny.

Re: Writing/Creating files at compile-time

2015-08-10 Thread via Digitalmars-d
On Monday, 10 August 2015 at 08:03:47 UTC, lobo wrote: While I agree with you I am curious; where would the compiler place its artefacts and why can't "export" write to the same place? I think that is an implementation detail and not a language-issue. The way I see it files created by export

Re: D for Game Development

2015-08-10 Thread John Colvin via Digitalmars-d
On Sunday, 9 August 2015 at 05:31:41 UTC, Walter Bright wrote: I agree, and now we ship a Phobos DLL, resolving that issue. I think most people these days associate "DLL" exclusively with windows. I certainly do.

Re: Writing/Creating files at compile-time

2015-08-10 Thread Tofu Ninja via Digitalmars-d
On Monday, 10 August 2015 at 07:02:44 UTC, Iain Buclaw wrote: On 10 August 2015 at 07:54, ChangLong via Digitalmars-d what will bing D more awesomeness is a ctfe execute. enum file = execute("shell scripts"); I don't think so... Its basically as bad, but the execute is frr more useful.

Re: Writing/Creating files at compile-time

2015-08-10 Thread lobo via Digitalmars-d
On Monday, 10 August 2015 at 07:50:29 UTC, Ola Fosheim Grøstad wrote: Ugh… please don't add more ugly features that has to be ripped out to bring the language to a sane state. A compiler should be able to compile all programs on a read only filesystem. If the language requires a filesystem t

Re: Writing/Creating files at compile-time

2015-08-10 Thread via Digitalmars-d
On Monday, 10 August 2015 at 07:05:40 UTC, Iain Buclaw wrote: On 9 August 2015 at 11:07, JDemler via Digitalmars-d wrote: We can read files at compile-time: enum file = import(fileName); But we cannot write to a file or create files at compile time. So, something like: enum contents = s

Re: Writing/Creating files at compile-time

2015-08-10 Thread Iain Buclaw via Digitalmars-d
On 9 August 2015 at 11:07, JDemler via Digitalmars-d wrote: > We can read files at compile-time: > > enum file = import(fileName); > > But we cannot write to a file or create files at compile time. > So, something like: enum contents = someCTFEStringFunction(); export(fileName, contents); Iai

Re: Writing/Creating files at compile-time

2015-08-10 Thread Iain Buclaw via Digitalmars-d
On 10 August 2015 at 07:54, ChangLong via Digitalmars-d wrote: > On Sunday, 9 August 2015 at 09:07:51 UTC, JDemler wrote: >> >> We can read files at compile-time: >> >> enum file = import(fileName); >> >> But we cannot write to a file or create files at compile time. >> >> Generating code at com