Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Martin Nowak via Digitalmars-d
On 01/10/2015 01:36 PM, Martin Nowak wrote: The idea isn't bad, but the performance will suck. This is generally known as N+1 query, only that this is even worse, as each field is queried individually. Here is a sketch for an optimal solution. I'm actually eagerly waiting that someone finally

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-10 07:46, DaveG wrote: Let me preface this by saying I only have a general conceptual understanding of compilers and know nothing about actual implementation. One common problem with Object-Relational Mapping (ORM) is what data to load and when. There is basically 2 options: 1. Load

Re: For those ready to take the challenge

2015-01-10 Thread via Digitalmars-d-learn
On Friday, 9 January 2015 at 17:18:43 UTC, Adam D. Ruppe wrote: Huh, looking at the answers on the website, they're mostly using regular expressions. Weaksauce. And wrong - they don't find ALL the links, they find the absolute HTTP urls! Yeah... Surprising, since languages like python

Re: Game development

2015-01-10 Thread ketmar via Digitalmars-d
On Sat, 10 Jan 2015 15:17:17 + dajones via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 9 January 2015 at 06:17:28 UTC, ketmar via Digitalmars-d wrote: On Thu, 08 Jan 2015 22:27:53 +0100 Joseph Rushton Wakeling via Digitalmars-d if he is intelligent enough, he will

Re: 4x4

2015-01-10 Thread Iain Buclaw via Digitalmars-d
On 8 January 2015 at 21:16, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 1/8/15 11:48 AM, Johannes Pfau wrote: Am Thu, 08 Jan 2015 10:50:10 -0800 schrieb Andrei Alexandrescu seewebsiteforem...@erdani.org: On 1/8/15 9:16 AM, Kiith-Sa wrote: This is a problem

Re: For those ready to take the challenge

2015-01-10 Thread Tobias Pankrath via Digitalmars-d-learn
On Saturday, 10 January 2015 at 15:13:27 UTC, Adam D. Ruppe wrote: On Saturday, 10 January 2015 at 12:34:42 UTC, Tobias Pankrath wrote: Since it is a comparison of languages it's okay to match the original behaviour. I don't think this is really a great comparison of languages either though

Re: For those ready to take the challenge

2015-01-10 Thread Paulo Pinto via Digitalmars-d-learn
On Saturday, 10 January 2015 at 15:52:21 UTC, Tobias Pankrath wrote: ... The thing is, in languages like Perl, Python, Ruby (to name a few), reusing someone else's code is not only easy, but it is how most people actually write code most of the time. I think he's wrong, because it spoils

Re: For those ready to take the challenge

2015-01-10 Thread via Digitalmars-d-learn
On Saturday, 10 January 2015 at 15:52:21 UTC, Tobias Pankrath wrote: I think he's wrong, because it spoils the comparison. Every answer should delegate those tasks to a library that Stroustroup used as well, e.g. regex matching, string to number conversion and some kind of TCP sockets. But it

ddox question

2015-01-10 Thread Andrei Alexandrescu via Digitalmars-d
In the ddox-generated documentation the heading is e.g. Module std.container. I wanted to style std.container in code font, but can't find where that text is generated. I've searched dlang.org/ and dub/, no avail. Andrei

Re: Game development

2015-01-10 Thread Mike Parker via Digitalmars-d
On 1/10/2015 12:28 AM, Ras wrote: On Friday, 9 January 2015 at 13:22:14 UTC, Mike Parker wrote: On 1/9/2015 2:35 PM, Ras wrote: No i dont. I want to use D language for as much as possible. The reason I want to use C++ for the engine is that it always has full support for DirectX. D has

Re: For those ready to take the challenge

2015-01-10 Thread Nordlöw
On Friday, 9 January 2015 at 17:15:43 UTC, Adam D. Ruppe wrote: import arsd.dom; import std.net.curl; import std.stdio, std.algorithm; void main() { auto document = new Document(cast(string) get(http://www.stroustrup.com/C++.html;));

Re: core.atomic: atomicFence, atomicLoad, atomicStore

2015-01-10 Thread John Colvin via Digitalmars-d-learn
On Saturday, 10 January 2015 at 12:16:24 UTC, ref2401 wrote: I learned how 'atomicOp' and 'cas' work and why i need them from the following sources: http://ddili.org/ders/d.en/concurrency_shared.html (Ali's book) http://www.informit.com/articles/article.aspx?p=1609144 (Andrei's book) Can

Re: For those ready to take the challenge

2015-01-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 10 January 2015 at 17:23:31 UTC, Ola Fosheim Grøstad wrote: For the challenge to make sense it would entail parsing all legal HTML5 documents, extracting all resource links, converting them into absolute form and printing them one per line. With no hickups. Though, that's still

Re: Game development

2015-01-10 Thread via Digitalmars-d
On Saturday, 10 January 2015 at 15:44:32 UTC, ketmar via Digitalmars-d wrote: On Sat, 10 Jan 2015 15:17:17 + dajones via Digitalmars-d digitalmars-d@puremagic.com wrote: Ketmar the teenage albino freak wasting time replying to time wasters. i'm proud of having my own fanclub. When I was

Re: NaCl/Emscripten

2015-01-10 Thread Martin Nowak via Digitalmars-d
On 01/09/2015 10:28 AM, Manu via Digitalmars-d wrote: I'm looking at another potential opportunity to get D into the office, but the target's for this particular project are NaCL and/or Emscripten. I was gonna start hacking around to see what the limitations are with Emscripten on D code

Re: For those ready to take the challenge

2015-01-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 10 January 2015 at 15:52:21 UTC, Tobias Pankrath wrote: But it must do the same work that he's solution does: Create and parse HTML header and extract the html links, probably using regex, but I wouldn't mind another solution. Yeah, that would be best. BTW interesting line here:

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-10 14:19, Martin Nowak wrote: I'd simple produce multiple rows, the principle remains the same. Ok, I think I understand the code now. You managed to register the fields at compile time. Pretty neat. I thought the query would need to be delayed to the first call to opDispatch.

Re: @api: One attribute to rule them All

2015-01-10 Thread via Digitalmars-d
On Friday, 9 January 2015 at 16:14:01 UTC, Zach the Mystic wrote: If solving the problem at the level of the command line with the help of the existing 'export' attribute is more flexible and robust, then I'm all for it. The first thing to find out is if anyone will have a problem overloading

Re: Why doesn't mktspec() use clock_gettime?

2015-01-10 Thread Mike Wey via Digitalmars-d
On 01/10/2015 08:16 AM, ketmar via Digitalmars-d wrote: On Fri, 09 Jan 2015 19:17:49 -0800 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 1/9/15 6:13 PM, weaselcat wrote: On Saturday, 10 January 2015 at 02:03:17 UTC, Andrei Alexandrescu wrote: cc Sean Kelly

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-10 13:36, Martin Nowak wrote: The idea isn't bad, but the performance will suck. This is generally known as N+1 query, only that this is even worse, as each field is queried individually. Since the all method was called I would assume all rows in the person table are fetched in

Re: For those ready to take the challenge

2015-01-10 Thread bearophile via Digitalmars-d-learn
Adam D. Ruppe: Don't use git master :P Is the issue in Bugzilla? Bye, bearophile

Re: For those ready to take the challenge

2015-01-10 Thread Daniel Kozak via Digitalmars-d-learn
Vladimir Panteleev via Digitalmars-d-learn píše v So 10. 01. 2015 v 07:42 +: On Saturday, 10 January 2015 at 02:10:04 UTC, Jesse Phillips wrote: On Friday, 9 January 2015 at 13:50:29 UTC, eles wrote:

Re: Utah Valley University is a sponsor of DConf 2015

2015-01-10 Thread Walter Bright via Digitalmars-d-announce
On 1/9/2015 10:37 PM, Ali Çehreli wrote: I encourage everyone to apply for visa as soon as possible. US visa process can be frustratingly delayed depending on many unknown factors. We've lost speakers in the past due to visa delays. I agree that it's never too early to get this done.

core.atomic: atomicFence, atomicLoad, atomicStore

2015-01-10 Thread ref2401 via Digitalmars-d-learn
I learned how 'atomicOp' and 'cas' work and why i need them from the following sources: http://ddili.org/ders/d.en/concurrency_shared.html (Ali's book) http://www.informit.com/articles/article.aspx?p=1609144 (Andrei's book) Can anybody tell me how 'atomicFence', 'atomicLoad' and

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Martin Nowak via Digitalmars-d
On 01/10/2015 11:20 AM, Jacob Carlborg wrote: On 2015-01-10 07:46, DaveG wrote: I might be crazy, but it seems like the compiler has all the information necessary to figure this out and it would make user code simpler, less error prone, and more efficient. So does anybody have any idea on how

Re: For those ready to take the challenge

2015-01-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 10 January 2015 at 12:34:42 UTC, Tobias Pankrath wrote: Since it is a comparison of languages it's okay to match the original behaviour. I don't think this is really a great comparison of languages either though because it is gluing together a couple library tasks. Only a few

Traits and functions

2015-01-10 Thread Bauss via Digitalmars-d-learn
Is there a way to get all functions within a module using traits? I tried allMembers and it seem to work, but I can't use getFunctionAttributes with it and if I use getAttributes then it won't find any applied attributes. What I do is having a package module with a staic constructor which

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Martin Nowak via Digitalmars-d
On 01/10/2015 01:52 PM, Jacob Carlborg wrote: On 2015-01-10 13:36, Martin Nowak wrote: The idea isn't bad, but the performance will suck. This is generally known as N+1 query, only that this is even worse, as each field is queried individually. Since the all method was called I would assume

Re: For those ready to take the challenge

2015-01-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 10 January 2015 at 13:22:57 UTC, Nordlöw wrote: on dmd git master. Ideas anyone? Don't use git master :P Definitely another regression. That line was just pushed to git like two weeks ago and the failing assertion is pretty obviously a pure dmd code bug, it doesn't know the

Re: An idea for commercial support for D

2015-01-10 Thread Joakim via Digitalmars-d
On Friday, 9 January 2015 at 18:01:50 UTC, anonymous wrote: On Friday, 9 January 2015 at 06:43:01 UTC, Joakim wrote: On Tuesday, 6 January 2015 at 22:37:40 UTC, anonymous wrote: [...] As far as I know there are companies that employ developers to work on open source software, with their

Re: For those ready to take the challenge

2015-01-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 10 January 2015 at 15:24:45 UTC, bearophile wrote: Is the issue in Bugzilla? https://issues.dlang.org/show_bug.cgi?id=13966

Re: NaCl/Emscripten

2015-01-10 Thread via Digitalmars-d
There are also other compilers from C++ to Javascript, Mandreel and Cheerp. Cheerp claims to support the builtin Javascript garbage collector: «Dynamic memory management. C++ objects are translated directly to JS objects, without the proxy of an emulated, flat memory space. Allow your

Re: For those ready to take the challenge

2015-01-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 10 January 2015 at 15:24:45 UTC, bearophile wrote: Is the issue in Bugzilla? I don't know, bugzilla is extremely difficult to search. I guess I'll post it again and worst case it will be closed as a duplicate.

Re: Game development

2015-01-10 Thread dajones via Digitalmars-d
On Saturday, 10 January 2015 at 15:44:32 UTC, ketmar via Digitalmars-d wrote: On Sat, 10 Jan 2015 15:17:17 + dajones via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 9 January 2015 at 06:17:28 UTC, ketmar via Digitalmars-d wrote: On Thu, 08 Jan 2015 22:27:53 +0100 Joseph

Re: DConf 2015 Call for Submissions is now open

2015-01-10 Thread Iain Buclaw via Digitalmars-d-announce
On 9 January 2015 at 00:32, Walter Bright via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 1/8/2015 8:42 AM, Jonathan M Davis via Digitalmars-d-announce wrote: On Thursday, January 08, 2015 10:31:37 Iain Buclaw via Digitalmars-d-announce wrote: On 6 January 2015 at

Re: @api: One attribute to rule them All

2015-01-10 Thread Atila Neves via Digitalmars-d
Very interesting, looking forward to reading the DIP. Atila On Friday, 9 January 2015 at 11:40:28 UTC, Dicebot wrote: I think that push for more inference / WPO is an important goal for D. However I had somewhat more radical and generic changes in mind, ones that don't add new keywords or

Re: For those ready to take the challenge

2015-01-10 Thread Tobias Pankrath via Digitalmars-d-learn
On Friday, 9 January 2015 at 17:18:43 UTC, Adam D. Ruppe wrote: Huh, looking at the answers on the website, they're mostly using regular expressions. Weaksauce. And wrong - they don't find ALL the links, they find the absolute HTTP urls! Since it is a comparison of languages it's okay to

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-10 13:36, Martin Nowak wrote: I'm actually eagerly waiting that someone finally implements it. There are two ORM libraries at code.dlang.org [1] [2]. Although I don't know how usable they are. [1] http://code.dlang.org/packages/hibernated [2]

Re: Game development

2015-01-10 Thread dajones via Digitalmars-d
On Friday, 9 January 2015 at 06:17:28 UTC, ketmar via Digitalmars-d wrote: On Thu, 08 Jan 2015 22:27:53 +0100 Joseph Rushton Wakeling via Digitalmars-d if he is intelligent enough, he will understand that nobody can talk for the whole community, so in the worst case he will ignore myself

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread DaveG via Digitalmars-d
On Saturday, 10 January 2015 at 13:19:19 UTC, Martin Nowak wrote: On 01/10/2015 01:52 PM, Jacob Carlborg wrote: On 2015-01-10 13:36, Martin Nowak wrote: The idea isn't bad, but the performance will suck. This is generally known as N+1 query, only that this is even worse, as each field is

Re: For those ready to take the challenge

2015-01-10 Thread MattCoder via Digitalmars-d-learn
On Friday, 9 January 2015 at 13:50:29 UTC, eles wrote: https://codegolf.stackexchange.com/questions/44278/debunking-stroustrups-debunking-of-the-myth-c-is-for-large-complicated-pro From the link: Let's show Stroustrup what small and readable program actually is. Alright, there are a lot a

Is anyone working on a D source code formatting tool?

2015-01-10 Thread Walter Bright via Digitalmars-d
Has someone made a dfmt, like http://gofmt.com/ ?

Discussion on groupBy

2015-01-10 Thread Andrei Alexandrescu via Digitalmars-d
groupBy is an important primitive for relational algebra queries on data. Soon to follow are operators such as aggregate() which is a sort of reduce() but operating on ranges of ranges. With those in tow, a query such as SELECT COUNT(*), SUM(x) FROM data GROUP BY userid can be expressed as:

Re: For those ready to take the challenge

2015-01-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 10 January 2015 at 19:17:22 UTC, Ola Fosheim Grøstad wrote: Nice and clean code; does it expand html entities (amp)? Of course. It does it both ways: spana amp;/span span.innerText == a span.innerText = a \ b; assert(span.innerHTML == a quot; b); parseGarbage also tries to

Re: Is anyone working on a D source code formatting tool?

2015-01-10 Thread Meta via Digitalmars-d
On Saturday, 10 January 2015 at 21:17:29 UTC, Meta wrote: On Saturday, 10 January 2015 at 20:54:56 UTC, Jacob Carlborg wrote: On 2015-01-10 21:17, Walter Bright wrote: Has someone made a dfmt, like http://gofmt.com/ ? I have thought about it a couple of times but never started. It would be

Re: Is anyone working on a D source code formatting tool?

2015-01-10 Thread Meta via Digitalmars-d
On Saturday, 10 January 2015 at 20:54:56 UTC, Jacob Carlborg wrote: On 2015-01-10 21:17, Walter Bright wrote: Has someone made a dfmt, like http://gofmt.com/ ? I have thought about it a couple of times but never started. It would be really nice to have. https://github.com/Hackerpilot/dfix

Re: D idioms list

2015-01-10 Thread Walter Bright via Digitalmars-d-announce
On 1/10/2015 1:28 PM, weaselcat wrote: Sorry for the off-topic noise, but where will you be publishing your articles since Dr.Dobbs has closed? Sorry if you have answered this elsewhere. It's a good question. Dr. Dobb's has graciously given me permission to republish them, and I'll post them

Any upgrades planned for D forums?

2015-01-10 Thread bitwise via Digitalmars-d
I'm curious if there are any upgrades coming in the near future. As a D-Newbie, I find myself combing these forums regularly to try and get up to speed on what's going on, but there are several things making it difficult. -I have a valid email address in the box up there^, but I don't

Phobos Contributor Tutorial

2015-01-10 Thread via Digitalmars-d
Hi, with one phobos PR accepted any a second one submitted, I feel it is about time I write a tutorial. No, seriously, I spend some time to get started. Others might have a rough time, too. So here is a draft of a contributor tutorial. Posix based.

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-10 Thread Laeeth Isharc via Digitalmars-d-learn
Small recommendation (apart from the reserved word issue which you fixed): it's generally considered good D style to give structs and classes names that start with capital letters, JustLikeThis. So, I suggest Node rather than node. Very minor point, and of course, your code is yours to style

Re: Discussion on groupBy

2015-01-10 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 10 January 2015 at 20:19:14 UTC, Andrei Alexandrescu wrote: groupBy is an important primitive for relational algebra queries on data. Soon to follow are operators such as aggregate() which is a sort of reduce() but operating on ranges of ranges. With those in tow, a query such as

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 10 January 2015 at 20:51:44 UTC, Jacob Carlborg wrote: That would be FreeTDS [1] with D bindings [2]. Unless Microsoft have headers available for interfacing with SQL Server. You can use ODBC if it is a Windows program. If you want to talk to SQL Server from a Linux program

Re: Wrapping a C library with its own GC + classes vs refcounted structs

2015-01-10 Thread Laeeth Isharc via Digitalmars-d-learn
Hi Aldanor. I wrote a slightly longer reply, but mislaid the file somewhere. I guess your question might relate to wrapping the HDF5 library - something that I have already done in a basic way, although I welcome your project, as no doubt we will get to a higher quality eventual solution

Re: endsWith - for a string vs an array of strings

2015-01-10 Thread bearophile via Digitalmars-d-learn
Laeeth Isharc: I understand from previous discussion there is some difficulty over immutability. I did not quite figure out what the solution was in this case: import std.array; import std.string; import std.stdio; void main(string[] args) { string[] test=[1,two,three!];

Re: Game development

2015-01-10 Thread ketmar via Digitalmars-d
On Sat, 10 Jan 2015 16:03:22 + dajones via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 10 January 2015 at 15:44:32 UTC, ketmar via Digitalmars-d wrote: On Sat, 10 Jan 2015 15:17:17 + dajones via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 9

Re: D idioms list

2015-01-10 Thread weaselcat via Digitalmars-d-announce
On Saturday, 10 January 2015 at 20:37:04 UTC, Walter Bright wrote: On 1/8/2015 2:21 AM, ponce wrote: I've started a list of curated D tips and tricks here: http://p0nce.github.io/d-idioms/ Anything that you wished you learned earlier at one point in the D world is welcome to be added or

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread DaveG via Digitalmars-d
On Saturday, 10 January 2015 at 18:31:18 UTC, Paolo Invernizzi wrote: On Saturday, 10 January 2015 at 17:31:42 UTC, DaveG wrote: On Saturday, 10 January 2015 at 13:19:19 UTC, Martin Nowak wrote: Here is a sketch for an optimal solution. I'm actually eagerly waiting that someone finally

Re: Is anyone working on a D source code formatting tool?

2015-01-10 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-10 21:17, Walter Bright wrote: Has someone made a dfmt, like http://gofmt.com/ ? I have thought about it a couple of times but never started. It would be really nice to have. -- /Jacob Carlborg

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-10 18:31, DaveG wrote: Oh, we will also need a good SQL Server library which, to my knowledge, D is lacking. This is going to be a hard sell... That would be FreeTDS [1] with D bindings [2]. Unless Microsoft have headers available for interfacing with SQL Server. [1]

Re: Is anyone working on a D source code formatting tool?

2015-01-10 Thread weaselcat via Digitalmars-d
On Saturday, 10 January 2015 at 20:18:03 UTC, Walter Bright wrote: Has someone made a dfmt, like http://gofmt.com/ ? Uncrustify claims D support. http://uncrustify.sourceforge.net/

Re: endsWith - for a string vs an array of strings

2015-01-10 Thread FG via Digitalmars-d-learn
On 2015-01-10 at 21:58, bearophile wrote: Needles is not an array type, it's a type tuple, so withOneOfThese doesn't accept an array of strings. [...] So if you really want to pack the strings in some kind of unity, you can do this as workaround: [...] I would suggest create a function that

Re: Phobos Contributor Tutorial

2015-01-10 Thread Craig Dillabaugh via Digitalmars-d
On Saturday, 10 January 2015 at 19:08:07 UTC, Ulrich Küttler wrote: Hi, with one phobos PR accepted any a second one submitted, I feel it is about time I write a tutorial. No, seriously, I spend some time to get started. Others might have a rough time, too. So here is a draft of a

endsWith - for a string vs an array of strings

2015-01-10 Thread Laeeth Isharc via Digitalmars-d-learn
I understand from previous discussion there is some difficulty over immutability. I did not quite figure out what the solution was in this case: import std.array; import std.string; import std.stdio; void main(string[] args) { string[] test=[1,two,three!]; auto

Re: Discussion on groupBy

2015-01-10 Thread Orvid King via Digitalmars-d
On Saturday, 10 January 2015 at 20:19:14 UTC, Andrei Alexandrescu wrote: groupBy is an important primitive for relational algebra queries on data. Soon to follow are operators such as aggregate() which is a sort of reduce() but operating on ranges of ranges. With those in tow, a query such as

Re: Phobos Contributor Tutorial

2015-01-10 Thread via Digitalmars-d
On Saturday, 10 January 2015 at 19:24:03 UTC, Craig Dillabaugh wrote: Thanks for taking the time to put that together. By it is taken from the Wiki did you mean individual parts are taken from the wiki, or the whole thing? I got it together (to the extend that I did) using the wiki. The

Re: D idioms list

2015-01-10 Thread Walter Bright via Digitalmars-d-announce
On 1/8/2015 2:21 AM, ponce wrote: I've started a list of curated D tips and tricks here: http://p0nce.github.io/d-idioms/ Anything that you wished you learned earlier at one point in the D world is welcome to be added or suggested. My contribution: http://digitalmars.com/articles/b68.html

Re: Is anyone working on a D source code formatting tool?

2015-01-10 Thread Walter Bright via Digitalmars-d
On 1/10/2015 12:17 PM, Walter Bright wrote: Has someone made a dfmt, like http://gofmt.com/ ? Next question - standalone tool, or built in to dmd (like Ddoc)? BTW, I think dfmt would be a significant win for D: 1. people expect this sort of thing these days 2. it tends to end bikeshedding

Re: Any upgrades planned for D forums?

2015-01-10 Thread Tobias Pankrath via Digitalmars-d
On Saturday, 10 January 2015 at 22:29:42 UTC, bitwise wrote: I'm curious if there are any upgrades coming in the near future. Although this is not directly an answer to your question, I just want to make sure you are aware of it: The forum is a front-end to a newsgroup. A news reader or

Re: For those ready to take the challenge

2015-01-10 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 10 January 2015 at 14:56:09 UTC, Adam D. Ruppe wrote: On Saturday, 10 January 2015 at 13:22:57 UTC, Nordlöw wrote: on dmd git master. Ideas anyone? Don't use git master :P Do use git master. The more people do, the fewer regressions will slip into the final release. You can

Re: DConf 2015 Call for Submissions is now open

2015-01-10 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/10/15 8:15 AM, Iain Buclaw via Digitalmars-d-announce wrote: In any event, are you doing flash talks this year? I don't think I could find something to spend more than 15 minutes talking about this year. Yes. -- Andrei

Re: DConf 2015 Call for Submissions is now open

2015-01-10 Thread Walter Bright via Digitalmars-d-announce
On 1/10/2015 9:50 AM, Andrei Alexandrescu wrote: On 1/10/15 9:49 AM, Andrei Alexandrescu wrote: On 1/10/15 8:15 AM, Iain Buclaw via Digitalmars-d-announce wrote: In any event, are you doing flash talks this year? I don't think I could find something to spend more than 15 minutes talking about

Re: Is anyone working on a D source code formatting tool?

2015-01-10 Thread Tobias Pankrath via Digitalmars-d
On Saturday, 10 January 2015 at 22:11:55 UTC, Walter Bright wrote: On 1/10/2015 12:17 PM, Walter Bright wrote: Has someone made a dfmt, like http://gofmt.com/ ? Next question - standalone tool, or built in to dmd (like Ddoc)? My only concern about it is if dfmt is changed, then we get faced

Re: DConf 2015 Call for Submissions is now open

2015-01-10 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/10/15 9:49 AM, Andrei Alexandrescu wrote: On 1/10/15 8:15 AM, Iain Buclaw via Digitalmars-d-announce wrote: In any event, are you doing flash talks this year? I don't think I could find something to spend more than 15 minutes talking about this year. Yes. -- Andrei I should add that

Re: Is it possible to collect object usage information during compilation?

2015-01-10 Thread Paolo Invernizzi via Digitalmars-d
On Saturday, 10 January 2015 at 17:31:42 UTC, DaveG wrote: On Saturday, 10 January 2015 at 13:19:19 UTC, Martin Nowak wrote: Here is a sketch for an optimal solution. I'm actually eagerly waiting that someone finally implements it. http://dpaste.dzfl.pl/cd375ac594cf I would also have to

Re: For those ready to take the challenge

2015-01-10 Thread via Digitalmars-d-learn
On Saturday, 10 January 2015 at 17:39:17 UTC, Adam D. Ruppe wrote: Though, that's still a library thing rather than a language thing. It is a language-library-platform thing, things like how composable the eco system is would be interesting to compare. But it would be unfair to require a

Re: Phobos Contributor Tutorial

2015-01-10 Thread Vlad Levenfeld via Digitalmars-d
On Saturday, 10 January 2015 at 19:08:07 UTC, Ulrich Küttler wrote: Hi, with one phobos PR accepted any a second one submitted, I feel it is about time I write a tutorial. No, seriously, I spend some time to get started. Others might have a rough time, too. So here is a draft of a

Re: GSOC - Holiday Edition

2015-01-10 Thread Craig Dillabaugh via Digitalmars-d
8) Russel Winder and QML ... see #4. Should we drop QML support from our GSOC due to: http://forum.dlang.org/thread/hapeegrotkazppwdn...@forum.dlang.org

Re: Any upgrades planned for D forums?

2015-01-10 Thread bitwise via Digitalmars-d
Guess it's not so great when your OS doesn't have a package manager that uses signed packages though. : ) Welll Some people seem to love the terminal, but in all honesty, if it wasnt' for Mono-D, I would not have taken the time to learn D.

Re: Any upgrades planned for D forums?

2015-01-10 Thread bitwise via Digitalmars-d
Welll Some people seem to love the terminal, but in all honesty, if it wasnt' for Mono-D, I would not have taken the time to learn D. Not to say that I'm not glad I did learn D, but I don't imagine anyone wanting to learn D would just take it on full throttle without first experimenting

Re: Game development

2015-01-10 Thread ketmar via Digitalmars-d
On Sat, 10 Jan 2015 23:13:28 + dajones via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 10 January 2015 at 20:59:20 UTC, ketmar via Digitalmars-d wrote: On Sat, 10 Jan 2015 16:03:22 + dajones via Digitalmars-d digitalmars-d@puremagic.com wrote: You are

Re: Any upgrades planned for D forums?

2015-01-10 Thread weaselcat via Digitalmars-d
On Saturday, 10 January 2015 at 22:29:42 UTC, bitwise wrote: ... -The way quotes are displayed is tough on the eyes. Rather than having the quotes grayed out and crowded by angle brackets, I would prefer something like stackoverflow where the text was black, but on a gray background, possibly

Re: Any upgrades planned for D forums?

2015-01-10 Thread weaselcat via Digitalmars-d
On Saturday, 10 January 2015 at 23:18:25 UTC, bitwise wrote: Userstyles is a site for Stylish themes, it's an open source extension for most browsers released under GPLv3. So is Filezilla...but would you care to download a copy? ;)

Re: Traits and functions

2015-01-10 Thread Ali Çehreli via Digitalmars-d-learn
On 01/10/2015 08:21 AM, Bauss wrote: Is there a way to get all functions within a module using traits? I tried allMembers and it seem to work, but I can't use getFunctionAttributes with it and if I use getAttributes then it won't find any applied attributes. What I do is having a package module

Re: endsWith - for a string vs an array of strings

2015-01-10 Thread bearophile via Digitalmars-d-learn
Laeeth Isharc: In D there is a feature that allows a function to accept both an array of items and items, yes - it is funny there is not an overloading that accepts arrays I meant this D feature: void foo(T)(T[] items...) { import std.stdio; items.writeln; } void main() {

Re: NaCl/Emscripten

2015-01-10 Thread via Digitalmars-d
On Sunday, 11 January 2015 at 01:05:59 UTC, Manu via Digitalmars-d wrote: The thing about cheerp vs emscripten, is that while cheerp produces code that is more like javascript, emscripten produces asm.js, which is lightning fast by comparison. If there's actual work being done, then emscripten

Re: Is this visible to all?

2015-01-10 Thread MattCoder via Digitalmars-d
On Sunday, 11 January 2015 at 03:36:20 UTC, Andrei Alexandrescu wrote: Some links on github are only visible to admins/committers. Is this available to all? https://github.com/pulls?user=D-Programming-Language Yes! Matheus.

Re: multidimensional interface generator

2015-01-10 Thread bearophile via Digitalmars-d
Vlad Levenfeld: auto tex1 = ℕ[0..100].by (ℕ[0..100]).map!((i,j) = (i+j)%2? red: yellow).Texture; auto tex2 = ℕ[0..50].by (ℕ[0..50]).map!((i,j) = (i+j)%2? blue: green).grid (100,100).Texture; tex1[50..75, 25..75] = tex2[0..25, 0..50]; The library seems nice, but I don't like

Re: Is anyone working on a D source code formatting tool?

2015-01-10 Thread Shammah Chancellor via Digitalmars-d
On 2015-01-10 20:17:34 +, Walter Bright said: Has someone made a dfmt, like http://gofmt.com/ ? No, I was planning on working on one if we ever got libd parsing 100% of the code.Unfortunately I haven't had a lot of time to work on these sorts of things lately. -Shammah

Re: multidimensional interface generator

2015-01-10 Thread Vlad Levenfeld via Digitalmars-d
On Saturday, 10 January 2015 at 22:56:28 UTC, bearophile wrote: The library seems nice, but I don't like Unicode identifiers. Understandable, I'll change N to Nat and R to Real or something and just make unicode aliases in my own code. Are those bugs in Bugzilla? They are, I tag them with

Re: Discussion on groupBy

2015-01-10 Thread Laeeth Isharc via Digitalmars-d
It would be interesting if we could make it possible to do a translation between D and SQL, similar to how LINQ is implemented internally, but preferably have it done at compile-time rather than at runtime. Have you seen Hibernated? https://github.com/buggins/hibernated

Re: Wrapping a C library with its own GC + classes vs refcounted structs

2015-01-10 Thread aldanor via Digitalmars-d-learn
On Saturday, 10 January 2015 at 20:55:05 UTC, Laeeth Isharc wrote: Hi Aldanor. I wrote a slightly longer reply, but mislaid the file somewhere. I guess your question might relate to wrapping the HDF5 library - something that I have already done in a basic way, although I welcome your

Re: Any upgrades planned for D forums?

2015-01-10 Thread bitwise via Digitalmars-d
Filters or some form of moderation would also be nice.

Re: Game development

2015-01-10 Thread dajones via Digitalmars-d
On Sunday, 11 January 2015 at 00:44:00 UTC, ketmar via Digitalmars-d wrote: On Sat, 10 Jan 2015 23:13:28 + dajones via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 10 January 2015 at 20:59:20 UTC, ketmar via Digitalmars-d wrote: On Sat, 10 Jan 2015 16:03:22 +

Re: Any upgrades planned for D forums?

2015-01-10 Thread bitwise via Digitalmars-d
Overall I find the site kind of tough on my eyes, I use a stylish theme to help. https://userstyles.org/styles/65395/dlang-org-dark-theme I am getting more and more weary of downloading software these days unless it's very well known. I almost got infected by malware yesterday by

Re: Game development

2015-01-10 Thread dajones via Digitalmars-d
On Saturday, 10 January 2015 at 20:59:20 UTC, ketmar via Digitalmars-d wrote: On Sat, 10 Jan 2015 16:03:22 + dajones via Digitalmars-d digitalmars-d@puremagic.com wrote: You are **proud** to draw the attention of nerdy middle aged men... ah, sure. it's always funny to see some old jerk

Re: Traits and functions

2015-01-10 Thread Bauss via Digitalmars-d-learn
On Saturday, 10 January 2015 at 23:23:52 UTC, Ali Çehreli wrote: On 01/10/2015 08:21 AM, Bauss wrote: Is there a way to get all functions within a module using traits? I tried allMembers and it seem to work, but I can't use getFunctionAttributes with it and if I use getAttributes then it

Re: NaCl/Emscripten

2015-01-10 Thread Manu via Digitalmars-d
On 11 January 2015 at 01:31, via Digitalmars-d digitalmars-d@puremagic.com wrote: There are also other compilers from C++ to Javascript, Mandreel and Cheerp. Cheerp claims to support the builtin Javascript garbage collector: «Dynamic memory management. C++ objects are translated directly to

Is this visible to all?

2015-01-10 Thread Andrei Alexandrescu via Digitalmars-d
Some links on github are only visible to admins/committers. Is this available to all? https://github.com/pulls?user=D-Programming-Language Andrei

Re: Is this visible to all?

2015-01-10 Thread Adam D. Ruppe via Digitalmars-d
i can see it

Re: Thoughts on replacement languages (Reddit + D)

2015-01-10 Thread MattCoder via Digitalmars-d
PS: I'm not posting this to see any flamewar between languages there, but maybe some could enlighten the discussion with some nice facts. Matheus.

  1   2   >