Re: std.data.json formal review

2015-07-30 Thread Suliman via Digitalmars-d
If this implementation will be merged with phobos will vibed migrate to it, or it would two similar libs?

Re: Last call for AliasSeq

2015-07-30 Thread via Digitalmars-d
On Thursday, 30 July 2015 at 04:20:41 UTC, Timon Gehr wrote: type exists in the latter system. D does not have a design that is as principled as that of the systems you draw inspiration from. I'm not drawing inspiration from anywhere. I'm talking about how the term "sequence"/"seq" is commonl

Re: std.data.json formal review

2015-07-30 Thread Sönke Ludwig via Digitalmars-d
Am 30.07.2015 um 05:25 schrieb Walter Bright: On 7/29/2015 1:41 PM, Sönke Ludwig wrote: The token level is useful for reasoning about the text representation. It could be used for example to implement syntax highlighting, or for using the location information to mark errors in the source code.

Re: std.data.json formal review

2015-07-30 Thread Sönke Ludwig via Digitalmars-d
Am 30.07.2015 um 09:27 schrieb Suliman: If this implementation will be merged with phobos will vibed migrate to it, or it would two similar libs? I'll then make the vibe.d JSON module compatible using "alias this" implicit conversions and then deprecate it over a longer period of time before

Re: Last call for AliasSeq

2015-07-30 Thread via Digitalmars-d
If in doubt, just google "define:sequence" and you'll get these two meanings: 1. a particular order in which related things follow each other. 2. a set of related events, movements, or items that follow each other in a particular order. Replace "related" with "type" and "things" with "value"

Implement Parse implementation like in Red

2015-07-30 Thread Suliman via Digitalmars-d
Red have very nice future called Parse http://www.red-lang.org/2013/11/041-introducing-parse.html Is it's possible to implement something like it in D/Phobos?

Re: Implement Parse implementation like in Red

2015-07-30 Thread tcak via Digitalmars-d
On Thursday, 30 July 2015 at 08:04:37 UTC, Suliman wrote: Red have very nice future called Parse http://www.red-lang.org/2013/11/041-introducing-parse.html Is it's possible to implement something like it in D/Phobos? I already have implemented a similar thing to it. A little more complex, bu

Re: Implement Parse implementation like in Red

2015-07-30 Thread Suliman via Digitalmars-d
On Thursday, 30 July 2015 at 08:14:44 UTC, tcak wrote: On Thursday, 30 July 2015 at 08:04:37 UTC, Suliman wrote: Red have very nice future called Parse http://www.red-lang.org/2013/11/041-introducing-parse.html Is it's possible to implement something like it in D/Phobos? I already have imple

Re: std.data.json formal review

2015-07-30 Thread Sönke Ludwig via Digitalmars-d
Am 29.07.2015 um 11:58 schrieb Andrea Fontana: On Wednesday, 29 July 2015 at 08:55:20 UTC, Sönke Ludwig wrote: That would be another possibility. What do you think about the opt(jv).foo.bar[12].baz alternative? One advantage is that it could work without parsing a string and the implications the

Re: Implement Parse implementation like in Red

2015-07-30 Thread Guillaume Chatelet via Digitalmars-d
On Thursday, 30 July 2015 at 08:04:37 UTC, Suliman wrote: Red have very nice future called Parse http://www.red-lang.org/2013/11/041-introducing-parse.html Is it's possible to implement something like it in D/Phobos? You can have a look at Philippe Sigaud's Pegged : https://github.com/Philipp

Re: Implement Parse implementation like in Red

2015-07-30 Thread tcak via Digitalmars-d
On Thursday, 30 July 2015 at 08:22:48 UTC, Suliman wrote: On Thursday, 30 July 2015 at 08:14:44 UTC, tcak wrote: On Thursday, 30 July 2015 at 08:04:37 UTC, Suliman wrote: Red have very nice future called Parse http://www.red-lang.org/2013/11/041-introducing-parse.html Is it's possible to impl

Re: Rant after trying Rust a bit

2015-07-30 Thread Chris via Digitalmars-d
On Thursday, 30 July 2015 at 02:30:45 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 28 July 2015 at 09:29:28 UTC, Chris wrote: [1] I wonder what kind of bugs will be introduced, when if-else is used as an expression. I believe most Algol-like languages outside the C-family have it... So can y

Re: Last call for AliasSeq

2015-07-30 Thread Timon Gehr via Digitalmars-d
On 07/30/2015 09:39 AM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= " wrote: On Thursday, 30 July 2015 at 04:20:41 UTC, Timon Gehr wrote: type exists in the latter system. D does not have a design that is as principled as that of the systems you draw inspiration from. ... Don't garble quotes like t

Re: Points of Failure

2015-07-30 Thread burjui via Digitalmars-d
On Wednesday, 29 July 2015 at 16:00:35 UTC, Alex Parrill wrote: `git clone` can take awhile with large repositories, like mono. Also not all people have a decent Internet connection, so it's just impractical to wait 10 minutes just for one file. For example, the only option I have at home is

Re: Interfaces, traits, concepts, and my idea for a DIP

2015-07-30 Thread Atila Neves via Digitalmars-d
On Wednesday, 29 July 2015 at 20:41:02 UTC, Tofu Ninja wrote: On Wednesday, 29 July 2015 at 20:26:53 UTC, Tofu Ninja wrote: If you write: @satisfies!(isInputRange, MyRange) struct MyRange { ... } the UDA can check it self, it really works as expected. Which is why I suggested a way to get wha

Dependent types in half of D

2015-07-30 Thread Max Klyga via Digitalmars-d
Just noticed a nice blog post about mapping dependent type applications to D. http://www.infognition.com/blog/2015/dependent_types_in_d.html reddit: https://www.reddit.com/r/programming/comments/3f59f4/dependent_types_in_half_of_d/

Working with pdf

2015-07-30 Thread Kingsley via Digitalmars-d
Hi Can anyone recommend any ways of pdf creation using D. I am generating an HTML and JavaScript page but I would like it in pdf format as well.

Re: Rant after trying Rust a bit

2015-07-30 Thread Bruno Medeiros via Digitalmars-d
On 22/07/2015 19:47, simendsjo wrote: Long rant ahead - a bit dipsy.. TL;DR: Rust has momentum, manpower and tooling. Tooling matters. Safe defaults. Ergonomics like expressions and deconstructing rocks. Tooling doesn't just matters. Tooling trumps everything else. I've skimmed through this

Re: Working with pdf

2015-07-30 Thread Andy Smith via Digitalmars-d
On Thursday, 30 July 2015 at 11:19:48 UTC, Kingsley wrote: Hi Can anyone recommend any ways of pdf creation using D. I am generating an HTML and JavaScript page but I would like it in pdf format as well. Hi Kingsley, Python reportlab via PyD maybe? Obviously not as good as pure d solution

Re: Working with pdf

2015-07-30 Thread Daniel Kozák via Digitalmars-d
I use wkhtmltopdf: http://wkhtmltopdf.org On Thu, 30 Jul 2015 11:19:45 + Kingsley via Digitalmars-d wrote: > Hi > > Can anyone recommend any ways of pdf creation using D. > > I am generating an HTML and JavaScript page but I would like it > in pdf format as well.

Re: Working with pdf

2015-07-30 Thread Adrian Matoga via Digitalmars-d
On Thursday, 30 July 2015 at 11:19:48 UTC, Kingsley wrote: Hi Can anyone recommend any ways of pdf creation using D. I am generating an HTML and JavaScript page but I would like it in pdf format as well. Another indirect solution would be to generate PostScript (there's no existing lib in D

Re: Working with pdf

2015-07-30 Thread JN via Digitalmars-d
On Thursday, 30 July 2015 at 11:19:48 UTC, Kingsley wrote: Hi Can anyone recommend any ways of pdf creation using D. I am generating an HTML and JavaScript page but I would like it in pdf format as well. http://libharu.org/ could try this, haven't used it myself but Wt Toolkit (C++ web too

Re: D Web Services Application Potential?

2015-07-30 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 29 July 2015 at 17:25:17 UTC, Etienne wrote: I can't share source but the idea is simple. You configure a DNS subdomain my.domain.com => 127.0.0.1, and test that address with javascript when a logins to the public website, if it doesn't work you show a message "plugin required". T

Re: Working with pdf

2015-07-30 Thread John Colvin via Digitalmars-d
On Thursday, 30 July 2015 at 11:19:48 UTC, Kingsley wrote: Hi Can anyone recommend any ways of pdf creation using D. I am generating an HTML and JavaScript page but I would like it in pdf format as well. I don't know of any pdf handling libraries in D Definitely check first to see if a comm

Re: Dependent types in half of D

2015-07-30 Thread Timon Gehr via Digitalmars-d
On 07/30/2015 12:40 PM, Max Klyga wrote: Just noticed a nice blog post about mapping dependent type applications to D. http://www.infognition.com/blog/2015/dependent_types_in_d.html reddit: https://www.reddit.com/r/programming/comments/3f59f4/dependent_types_in_half_of_d/ As already noted on

Re: Rant after trying Rust a bit

2015-07-30 Thread Timon Gehr via Digitalmars-d
On 07/30/2015 11:25 AM, Chris wrote: On Thursday, 30 July 2015 at 02:30:45 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 28 July 2015 at 09:29:28 UTC, Chris wrote: [1] I wonder what kind of bugs will be introduced, when if-else is used as an expression. I believe most Algol-like languages outsi

Re: D for Game Development

2015-07-30 Thread deadalnix via Digitalmars-d
On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for indie games? For some time I have been seeing some cool game engine being developed in the DUB repo. What more is happening? I

D for Game Development

2015-07-30 Thread karabuta via Digitalmars-d
D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for indie games? For some time I have been seeing some cool game engine being developed in the DUB repo. What more is happening? I don't see derelictSDl and derelictSFML activities much. Wha

Re: D for Game Development

2015-07-30 Thread Mike Parker via Digitalmars-d
On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: For some time I have been seeing some cool game engine being developed in the DUB repo. What more is happening? I don't see derelictSDl and derelictSFML activities much. Whatup? The Derelict packages are fairly stable. You aren't go

Re: D Web Services Application Potential?

2015-07-30 Thread Brandon Ragland via Digitalmars-d
On Thursday, 30 July 2015 at 05:50:56 UTC, Ola Fosheim Gr wrote: On Thursday, 30 July 2015 at 03:56:25 UTC, Brandon Ragland wrote: Regarding JavaScript being slower, this benchmark[1] seems to indicate that on average, JavaScript on V8 is at-least 4X slower than a g++ compiled native package. I

Re: D for Game Development

2015-07-30 Thread Brandon Ragland via Digitalmars-d
On Thursday, 30 July 2015 at 13:44:41 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for indie games? For some time I have been seeing some cool game engine

Re: Rant after trying Rust a bit

2015-07-30 Thread Chris via Digitalmars-d
On Thursday, 30 July 2015 at 13:32:29 UTC, Timon Gehr wrote: On 07/30/2015 11:25 AM, Chris wrote: On Thursday, 30 July 2015 at 02:30:45 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 28 July 2015 at 09:29:28 UTC, Chris wrote: [1] I wonder what kind of bugs will be introduced, when if-else is use

Re: D for Game Development

2015-07-30 Thread Minas Mina via Digitalmars-d
On Thursday, 30 July 2015 at 13:44:41 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for indie games? For some time I have been seeing some cool game engine

Re: Rant after trying Rust a bit

2015-07-30 Thread Alex Parrill via Digitalmars-d
On Thursday, 30 July 2015 at 11:46:02 UTC, Bruno Medeiros wrote: Tooling doesn't just matters. Tooling trumps everything else. I don't agree. IMO reducing the need for tools would be a better solution. For example, there's no need for a memory checker if you're writing in Python, but if y

Re: Last call for AliasSeq

2015-07-30 Thread via Digitalmars-d
On Thursday, 30 July 2015 at 09:45:31 UTC, Timon Gehr wrote: On 07/30/2015 09:39 AM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= " wrote: On Thursday, 30 July 2015 at 04:20:41 UTC, Timon Gehr wrote: type exists in the latter system. D does not have a design that is as principled as that of the syste

Re: Read text file fast, how?

2015-07-30 Thread Andrei Alexandrescu via Digitalmars-d
On 7/27/15 8:03 AM, Johan Holmberg via Digitalmars-d wrote: On Sun, Jul 26, 2015 at 5:36 PM, Andrei Alexandrescu via Digitalmars-d mailto:digitalmars-d@puremagic.com>> wrote: On 7/26/15 10:35 AM, Johan Holmberg via Digitalmars-d wrote: On Sat, Jul 25, 2015 at 10:12 PM, Andrei Ale

Re: Rant after trying Rust a bit

2015-07-30 Thread deadalnix via Digitalmars-d
On Thursday, 30 July 2015 at 14:23:34 UTC, Alex Parrill wrote: On Thursday, 30 July 2015 at 11:46:02 UTC, Bruno Medeiros wrote: Tooling doesn't just matters. Tooling trumps everything else. I don't agree. IMO reducing the need for tools would be a better solution. For example, there's no

Re: D for Game Development

2015-07-30 Thread CraigDillabaugh via Digitalmars-d
On Thursday, 30 July 2015 at 14:18:21 UTC, Brandon Ragland wrote: On Thursday, 30 July 2015 at 13:44:41 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for in

Re: D for Game Development

2015-07-30 Thread Laeeth Isharc via Digitalmars-d
On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for indie games? For some time I have been seeing some cool game engine being developed in the DUB repo. What more is happening? I

Re: D for Game Development

2015-07-30 Thread karabuta via Digitalmars-d
On Thursday, 30 July 2015 at 14:18:21 UTC, Brandon Ragland wrote: On Thursday, 30 July 2015 at 13:44:41 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for in

Re: D for Game Development

2015-07-30 Thread Brandon Ragland via Digitalmars-d
On Thursday, 30 July 2015 at 14:44:30 UTC, CraigDillabaugh wrote: On Thursday, 30 July 2015 at 14:18:21 UTC, Brandon Ragland wrote: On Thursday, 30 July 2015 at 13:44:41 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate

Re: D for Game Development

2015-07-30 Thread Minas Mina via Digitalmars-d
On Thursday, 30 July 2015 at 14:18:21 UTC, Brandon Ragland wrote: On Thursday, 30 July 2015 at 13:44:41 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for in

Re: D for Game Development

2015-07-30 Thread Alex Parrill via Digitalmars-d
On Thursday, 30 July 2015 at 15:10:59 UTC, Brandon Ragland wrote: It's a dog because Java is a dog. But that's not because of the GC. It's not really that bad either, I can open up Minecraft at any time and have it sit in the background quietly using ~800Mb ram and virtually no cpu time.

Re: Working with pdf

2015-07-30 Thread tcak via Digitalmars-d
On Thursday, 30 July 2015 at 11:19:48 UTC, Kingsley wrote: Hi Can anyone recommend any ways of pdf creation using D. I am generating an HTML and JavaScript page but I would like it in pdf format as well. In 2013, I had started developing a module to create PDF files based on version 1.5 spe

Re: D for Game Development

2015-07-30 Thread ZombineDev via Digitalmars-d
On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for indie games? For some time I have been seeing some cool game engine being developed in the DUB repo. What more is happening? I

Re: std.data.json formal review

2015-07-30 Thread Brad Anderson via Digitalmars-d
On Thursday, 30 July 2015 at 04:41:51 UTC, Walter Bright wrote: I agree with your goal of readability. And if someone wants to write code that emphasizes it's JSON, they can write it as std.data.json.parseStream. (It's not about saving typing, it's about avoiding extra redundant redundancy, I'm

Re: Working with pdf

2015-07-30 Thread Kingsley via Digitalmars-d
On Thursday, 30 July 2015 at 12:01:55 UTC, Daniel Kozák wrote: I use wkhtmltopdf: http://wkhtmltopdf.org On Thu, 30 Jul 2015 11:19:45 + Kingsley via Digitalmars-d wrote: Hi Can anyone recommend any ways of pdf creation using D. I am generating an HTML and JavaScript page but I would lik

Re: Rant after trying Rust a bit

2015-07-30 Thread Bruno Medeiros via Digitalmars-d
On 30/07/2015 15:23, Alex Parrill wrote: On Thursday, 30 July 2015 at 11:46:02 UTC, Bruno Medeiros wrote: Tooling doesn't just matters. Tooling trumps everything else. I don't agree. IMO reducing the need for tools would be a better solution. For example, there's no need for a memory checke

Re: std.data.json formal review

2015-07-30 Thread Jacob Carlborg via Digitalmars-d
On 2015-07-30 01:34, Walter Bright wrote: It if was returned as a range of nodes, it would be: Object, string, number, string, array, number, number, end, string, object, string, number, end, end Ah, that make sense. Never though of an "end" mark like that, pretty cleaver. -- /Jacob Ca

Re: Working with pdf

2015-07-30 Thread Ali Çehreli via Digitalmars-d
On 07/30/2015 08:39 AM, tcak wrote: > I had started developing a module to create PDF files based on > version 1.5 specification, but it had started being too complex to > handle I looked at that option for my book, which is written in DDOC to generate HTML. Yes, PDF and layout issues in genera

Re: force inline/not-inline

2015-07-30 Thread Steven Schveighoffer via Digitalmars-d
On 7/28/15 6:12 PM, David Nadlinger wrote: On Tuesday, 28 July 2015 at 21:29:45 UTC, Steven Schveighoffer wrote: On 7/28/15 5:28 PM, Steven Schveighoffer wrote: On 7/28/15 5:24 PM, David Nadlinger wrote: On Tuesday, 28 July 2015 at 15:56:52 UTC, Jonathan M Davis wrote: It[Accepting Booleans]'

Re: std.data.json formal review

2015-07-30 Thread Jacob Carlborg via Digitalmars-d
On 2015-07-30 06:41, Walter Bright wrote: I agree with your goal of readability. And if someone wants to write code that emphasizes it's JSON, they can write it as std.data.json.parseStream. (It's not about saving typing, it's about avoiding extra redundant redundancy, I'm a big fan of Strunk &

Re: D for Game Development

2015-07-30 Thread Brandon Ragland via Digitalmars-d
On Thursday, 30 July 2015 at 15:23:18 UTC, Minas Mina wrote: On Thursday, 30 July 2015 at 14:18:21 UTC, Brandon Ragland wrote: On Thursday, 30 July 2015 at 13:44:41 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for d

Re: Interfaces, traits, concepts, and my idea for a DIP

2015-07-30 Thread jmh530 via Digitalmars-d
On Thursday, 30 July 2015 at 10:40:59 UTC, Atila Neves wrote: You still wouldn't get a better error message here than with: struct MyRange { ... static assert(isInputRange!MyRange); } It's less typing, but you still wouldn't know why the static assertion failed. Now, if we make Adam's

Re: D for Android

2015-07-30 Thread Joakim via Digitalmars-d
On Monday, 25 May 2015 at 20:08:48 UTC, Joakim wrote: On Monday, 18 May 2015 at 15:47:07 UTC, Joakim wrote: Sure, have fun with your new devices. :) Hopefully, I'll get Android/ARM working before then, but I don't and won't have any AArch64 devices to test. Not that it matters, as 64-bit ARM

Re: std.data.json formal review

2015-07-30 Thread Walter Bright via Digitalmars-d
On 7/30/2015 9:58 AM, Brad Anderson wrote: If we can't have the minimal necessary module paths then I'm completely in favor of parseJSONStream over the more general parseStream. I want that "json" in there one way or another (preferably by the method which makes it optional while maintaining brev

Re: std.data.json formal review

2015-07-30 Thread H. S. Teoh via Digitalmars-d
On Thu, Jul 30, 2015 at 12:43:40PM -0700, Walter Bright via Digitalmars-d wrote: > On 7/30/2015 9:58 AM, Brad Anderson wrote: > >If we can't have the minimal necessary module paths then I'm > >completely in favor of parseJSONStream over the more general > >parseStream. I want that "json" in there o

Re: std.data.json formal review

2015-07-30 Thread Walter Bright via Digitalmars-d
On 7/30/2015 12:57 PM, H. S. Teoh via Digitalmars-d wrote: Yeah, local imports are fast becoming my preferred D coding style, because it makes code portable -- if you move a function to a new module, you don't have to untangle its import dependencies if all imports are local. It's one of those li

Re: std.data.json formal review

2015-07-30 Thread H. S. Teoh via Digitalmars-d
On Thu, Jul 30, 2015 at 01:26:17PM -0700, Walter Bright via Digitalmars-d wrote: > On 7/30/2015 12:57 PM, H. S. Teoh via Digitalmars-d wrote: > >Yeah, local imports are fast becoming my preferred D coding style, > >because it makes code portable -- if you move a function to a new > >module, you don

Re: force inline/not-inline

2015-07-30 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 30 July 2015 at 18:41:51 UTC, Steven Schveighoffer wrote: OK, that is what I first thought. Then I thought it meant that for that function, it works as if -inline was passed on the command line (i.e. try to inline if possible, if not, don't worry about it). So you are saying the fi

Re: force inline/not-inline

2015-07-30 Thread David Nadlinger via Digitalmars-d
On Thursday, 30 July 2015 at 18:41:51 UTC, Steven Schveighoffer wrote: So you are saying the first interpretation is correct? As far as I can see, this is what the implementation currently does, yes. — David

Re: D for Game Development

2015-07-30 Thread deadalnix via Digitalmars-d
On Thursday, 30 July 2015 at 14:12:32 UTC, Minas Mina wrote: On Thursday, 30 July 2015 at 13:44:41 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote: D is really cool and makes a good candidate for developing a game. Are there any guys out there using D for indie g

Re: D for Game Development

2015-07-30 Thread deadalnix via Digitalmars-d
On Thursday, 30 July 2015 at 15:10:59 UTC, Brandon Ragland wrote: It's a dog because Java is a dog. But that's not because of the GC. It's not really that bad either, I can open up Minecraft at any time and have it sit in the background quietly using ~800Mb ram and virtually no cpu time. Ei

Re: D for Game Development

2015-07-30 Thread via Digitalmars-d
On Thursday, 30 July 2015 at 21:27:09 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 15:10:59 UTC, Brandon Ragland wrote: It's a dog because Java is a dog. But that's not because of the GC. It's not really that bad either, I can open up Minecraft at any time and have it sit in the backgro

Helpers for writing unittests

2015-07-30 Thread Idan Arye via Digitalmars-d
The "Rant after trying Rust a bit" thread(http://forum.dlang.org/thread/ckjukjfkgrguhfhkd...@forum.dlang.org) talks mostly about traits, and how people want Rust's traits(or C++'s Concepts) in D. As a general rule, I believe that taking a feature from one language and sticking it in another works

What is the current status of D build systems?

2015-07-30 Thread Yuxuan Shui via Digitalmars-d
Hi, I'm working on a project that mixes both C and D code, and does code generation as well. I've been using a shell script to hack this together, since I can't figure out how to do this with dub. Now I'm looking for a proper build system for building this project. reggae (https://github.c

Re: Helpers for writing unittests

2015-07-30 Thread Jonathan M Davis via Digitalmars-d
On Friday, 31 July 2015 at 00:07:43 UTC, Idan Arye wrote: Thoughts? Some unit test helpers for this sort of thing might be nice, but I don't think that it really buys us much with this particular case. You could just as easily do unittest { foreach(T; TypeTuple!(ubyte, byte, ushort, sho

Re: Helpers for writing unittests

2015-07-30 Thread Idan Arye via Digitalmars-d
On Friday, 31 July 2015 at 00:30:23 UTC, Jonathan M Davis wrote: On Friday, 31 July 2015 at 00:07:43 UTC, Idan Arye wrote: Thoughts? Some unit test helpers for this sort of thing might be nice, but I don't think that it really buys us much with this particular case. You could just as easily

Re: D for Android

2015-07-30 Thread Etienne Cimon via Digitalmars-d
On Thursday, 30 July 2015 at 19:38:12 UTC, Joakim wrote: On Monday, 25 May 2015 at 20:08:48 UTC, Joakim wrote: On Monday, 18 May 2015 at 15:47:07 UTC, Joakim wrote: Sure, have fun with your new devices. :) Hopefully, I'll get Android/ARM working before then, but I don't and won't have any AArc

Re: D for Game Development

2015-07-30 Thread lobo via Digitalmars-d
On Thursday, 30 July 2015 at 21:27:09 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 15:10:59 UTC, Brandon Ragland wrote: It's a dog because Java is a dog. But that's not because of the GC. It's not really that bad either, I can open up Minecraft at any time and have it sit in the backgro

Re: D for Game Development

2015-07-30 Thread Mike Parker via Digitalmars-d
Everyone always references Minecraft, but that's not the only Java game out there. There are quite a few on Steam. You'll never even know they're Java if you don't follow their development, as they ship with a bundled JRE. The Java games that perform poorly or hog resources are always held up a

Re: What is the current status of D build systems?

2015-07-30 Thread Mike Parker via Digitalmars-d
On Friday, 31 July 2015 at 00:13:42 UTC, Yuxuan Shui wrote: are there any other build systems I should look into? Premake [1] supports mixing languages in the same build script. It's not a build tool itself, but can generate makefiles and IDE projects. Manu [2] maintains extensions for D su

Re: D for Game Development

2015-07-30 Thread Danni Coy via Digitalmars-d
Using C code from D is actually a fairly straightforward to do, all you need to do is write a D version of the function signature you want to call and tell D to mangle it as a C function eg extern(C) { int SDL_Init(uint flags); } now you just need to tell the linker to link in libsdl and you are re

Re: Helpers for writing unittests

2015-07-30 Thread jmh530 via Digitalmars-d
On Friday, 31 July 2015 at 00:07:43 UTC, Idan Arye wrote: people want Rust's traits(or C++'s Concepts) in D. Just to quibble, that wasn't my take-a-way from the thread. My take-a-way is that Jonathan Davis is really good at explaining things.

Re: Interfaces, traits, concepts, and my idea for a DIP

2015-07-30 Thread Sean Campbell via Digitalmars-d
On Tuesday, 28 July 2015 at 18:23:02 UTC, Tofu Ninja wrote: On Tuesday, 28 July 2015 at 13:23:37 UTC, Daniel Kozák wrote: [...] I have actually thought about this as well, and a thing that could actually make this possible is if UDAs could get the thing they are attached to. I realized it co

Re: D for Android

2015-07-30 Thread Elvis Zhou via Digitalmars-d
On Thursday, 30 July 2015 at 19:38:12 UTC, Joakim wrote: On Monday, 25 May 2015 at 20:08:48 UTC, Joakim wrote: [...] Some good news, I've made progress on the port to Android/ARM, using ldc's 2.067 branch. Currently, all 46 modules in druntime and 85 of 88 modules in phobos pass their tests

Re: What is the current status of D build systems?

2015-07-30 Thread Yuxuan Shui via Digitalmars-d
On Friday, 31 July 2015 at 02:00:41 UTC, Mike Parker wrote: On Friday, 31 July 2015 at 00:13:42 UTC, Yuxuan Shui wrote: are there any other build systems I should look into? Premake [1] supports mixing languages in the same build script. It's not a build tool itself, but can generate makefi

Re: D for Game Development

2015-07-30 Thread Brandon Ragland via Digitalmars-d
On Thursday, 30 July 2015 at 22:39:38 UTC, Márcio Martins wrote: On Thursday, 30 July 2015 at 21:27:09 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 15:10:59 UTC, Brandon Ragland wrote: It's a dog because Java is a dog. But that's not because of the GC. It's not really that bad either, I

Re: D for Game Development

2015-07-30 Thread Brandon Ragland via Digitalmars-d
On Thursday, 30 July 2015 at 21:27:09 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 15:10:59 UTC, Brandon Ragland wrote: It's a dog because Java is a dog. But that's not because of the GC. It's not really that bad either, I can open up Minecraft at any time and have it sit in the backgro

Re: Rant after trying Rust a bit

2015-07-30 Thread Enamex via Digitalmars-d
On Wednesday, 22 July 2015 at 18:47:33 UTC, simendsjo wrote: Long rant ahead - a bit dipsy.. TL;DR: Rust has momentum, manpower and tooling. Tooling matters. Safe defaults. Ergonomics like expressions and deconstructing rocks. [...] But again... After playing a bit with Rust, I feel it lack

Re: D for Android

2015-07-30 Thread Rikki Cattermole via Digitalmars-d
On 31/07/2015 7:38 a.m., Joakim wrote: On Monday, 25 May 2015 at 20:08:48 UTC, Joakim wrote: On Monday, 18 May 2015 at 15:47:07 UTC, Joakim wrote: Sure, have fun with your new devices. :) Hopefully, I'll get Android/ARM working before then, but I don't and won't have any AArch64 devices to test

Re: Rant after trying Rust a bit

2015-07-30 Thread Enamex via Digitalmars-d
On Friday, 31 July 2015 at 03:41:35 UTC, Enamex wrote: [...] Mostly my experience, so far. If I have to choose the 'most important' things that Rust has that I'd *definitely* want in D, I'd pick (in order): * A really nicely integrated package manager like Cargo that goes seamlessly hand-in-