Re: Code security: "auto" / Reason for errors

2016-03-02 Thread Jacob Carlborg via Digitalmars-d
On 2016-03-02 20:42, Ozan wrote: Hi I despair of "auto var1 = var2"for arrays. Isn't it a open door for errors. Example import std.stdio; void main() { int[] a; foreach(i; 0..10) a ~= i; auto b = a; // correct dlang coding: auto b = a.dup; a[2] = 1; b[2] = 5; // Overw

Re: Code security: "auto" / Reason for errors

2016-03-02 Thread Jacob Carlborg via Digitalmars-d
On 2016-03-02 22:23, Ozan wrote: Yes, but D handles basic datatypes (int, char, ...) different to objects (similar to Java). Arrays in Java and most other languages in the C family behaves the like in D. Example: class Foo { public static void main (String[] args) { int[] a

Re: Code security: "auto" / Reason for errors

2016-03-02 Thread Daniel Kozak via Digitalmars-d
Dne 3.3.2016 v 03:39 Jack Stouffer via Digitalmars-d napsal(a): Dynamic arrays are reference types in D; No, they are value types, but mimic reference types in some cases void fun(int[] arr) { arr ~= 10; } void fun2(ref int[] arr) { arr ~= 10; } void mod(int[] arr) { if (arr.leng

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread Sebastien Alaiwan via Digitalmars-d
Hi guys, thanks a lot for your answers! On Wednesday, 2 March 2016 at 22:42:18 UTC, ag0aep6g wrote: On 02.03.2016 21:40, Sebastien Alaiwan wrote: - I only work with separate compilation, using gdc (Windows-dmd produces OMF, which is a dealbreaker ; but I use rdmd a lot for small programs). dm

Re: Problem running code examples in the Home page

2016-03-02 Thread Mike Parker via Digitalmars-d
On Thursday, 3 March 2016 at 05:09:17 UTC, mahdi wrote: When I click on "Run" I have the text "Running..." inside the box and nothing happens. I don't know if this is a problem with the code or the website but can someone please take a look. This is the first view of a newcomer on the D langua

Problem running code examples in the Home page

2016-03-02 Thread mahdi via Digitalmars-d
When I click on "Run" I have the text "Running..." inside the box and nothing happens. I don't know if this is a problem with the code or the website but can someone please take a look. This is the first view of a newcomer on the D language so better to be as polished as possible.

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-02 Thread Andrei Alexandrescu via Digitalmars-d
On 03/02/2016 05:38 PM, tsbockman wrote: Once you've familiarized yourself with the basics of using D, you can read this: http://wiki.dlang.org/Starting_as_a_Contributor To help you get started contributing. I see each section in that document is still broken down by OS, instead of the entire

Re: GSOC Idea.

2016-03-02 Thread Rikki Cattermole via Digitalmars-d
On 03/03/16 9:21 AM, Marco wrote: Hi, I am Marco, a CS student at UCL. This is both a presentation post and also post where I ask some suggestions about an idea for a GSOC project. I am a first year student and I do now that I may be too inexperienced for such difficult projects, but my willingn

Re: std.database

2016-03-02 Thread Rikki Cattermole via Digitalmars-d
On 03/03/16 8:36 AM, landaire wrote: On Wednesday, 2 March 2016 at 18:28:34 UTC, landaire wrote: How is this a UAF? Isn't the struct copied? Ah I think I misunderstood. You mean in the database, not the dpaste? Correct. My code was just to showcase the problem.

Re: Code security: "auto" / Reason for errors

2016-03-02 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 2 March 2016 at 20:01:01 UTC, Ozan wrote: I agree for slices, but typically variables should have his own data. To add additional code for separate data has a lot of risk in my mind. Behaviors should also be the same. int a = 1: int b = a; // data copy int[] a; int[] b = a; //

Re: Compile time performance for metaprogramming is somewhat inconsistent

2016-03-02 Thread maik klein via Digitalmars-d
On Thursday, 3 March 2016 at 02:26:09 UTC, cym13 wrote: On Thursday, 3 March 2016 at 02:03:01 UTC, maik klein wrote: Consider the following code void main() { import std.stdio; import std.range: iota, join; import std.algorithm.iteration: map; import std.conv: to; import std

Re: Compile time performance for metaprogramming is somewhat inconsistent

2016-03-02 Thread cym13 via Digitalmars-d
On Thursday, 3 March 2016 at 02:03:01 UTC, maik klein wrote: Consider the following code void main() { import std.stdio; import std.range: iota, join; import std.algorithm.iteration: map; import std.conv: to; import std.meta: aliasSeqOf, staticMap, AliasSeq; enum types =

Compile time performance for metaprogramming is somewhat inconsistent

2016-03-02 Thread maik klein via Digitalmars-d
Consider the following code void main() { import std.stdio; import std.range: iota, join; import std.algorithm.iteration: map; import std.conv: to; import std.meta: aliasSeqOf, staticMap, AliasSeq; enum types = "AliasSeq!(" ~ iota(0,1).map!(i => to!string(i)).join(","

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread Mike Parker via Digitalmars-d
On Thursday, 3 March 2016 at 01:47:08 UTC, Mike Parker wrote: The package and module system is very intuitive to me and has been from the beginning, so I'm still not quite sure what it is about it that bothers you. The two major issues you bring up here, the need to import package.module and h

Re: std.database

2016-03-02 Thread Chris Wright via Digitalmars-d
On Wed, 02 Mar 2016 15:41:56 +, Piotrek wrote: > 3. What I call a D Database API could be described as: > - Database object > - DbCollection object (equivalent to array) > - ranges + std.algorithm It looks like you're trying to write a LevelDB analogue that implements an array rather th

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread Mike Parker via Digitalmars-d
On Wednesday, 2 March 2016 at 20:40:39 UTC, Sebastien Alaiwan wrote: However, it feels wrong that modules (foo, bar) inside the same package ("pkg") need to repeat the "absolute" package name when referencing each other, I mean "import pkg.foo" instead of "import foo". Not because of the extr

Re: Why don't you use the Github issue system?

2016-03-02 Thread Seb via Digitalmars-d
On Thursday, 3 March 2016 at 00:27:39 UTC, Walter Bright wrote: On 3/2/2016 3:59 PM, Seb wrote: I am just curious whether you have already considered moving from Bugzilla to the Github issue system and where your current opinion is. 1. Bugzilla is working famously for us. 2. I've had occasio

Re: Why don't you use the Github issue system?

2016-03-02 Thread sigod via Digitalmars-d
On Thursday, 3 March 2016 at 00:27:39 UTC, Walter Bright wrote: 3. If Github goes dark, we still have our local complete copies of the git database. If Github issues goes dark, we lose it all. We control the Bugzilla database. This database is ABSOLUTELY CRITICAL to D's future, and not having a

Re: Why don't you use the Github issue system?

2016-03-02 Thread Walter Bright via Digitalmars-d
On 3/2/2016 3:59 PM, Seb wrote: I am just curious whether you have already considered moving from Bugzilla to the Github issue system and where your current opinion is. 1. Bugzilla is working famously for us. 2. I've had occasion to use github issues, and was surprised by how lame it was comp

Re: State of the Compiler

2016-03-02 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 2 March 2016 at 22:12:11 UTC, Jonathan M Davis wrote: Maybe the wiki should have pages for dmd and Phobos (and possible druntime) with stuff like this which indicates what you'd prefer that folks do. I'd think that bugzilla is a much better mechanism for this, as you can mark in

Re: Why don't you use the Github issue system?

2016-03-02 Thread BBasile via Digitalmars-d
On Wednesday, 2 March 2016 at 23:59:49 UTC, Seb wrote: Hey, I am just curious whether you have already considered moving from Bugzilla to the Github issue system and where your current opinion is. Con: - Bugzilla is working fine - More than five years of history - Github doesn't have voting

Re: Why don't you use the Github issue system?

2016-03-02 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 2 March 2016 at 23:59:49 UTC, Seb wrote: Hey, I am just curious whether you have already considered moving from Bugzilla to the Github issue system and where your current opinion is. I HATE Github issues. When they are not filled with unhelpful, annoying, and signal drowning c

Why don't you use the Github issue system?

2016-03-02 Thread Seb via Digitalmars-d
Hey, I am just curious whether you have already considered moving from Bugzilla to the Github issue system and where your current opinion is. Con: - Bugzilla is working fine - More than five years of history - Github doesn't have voting yet (it's supposed to come soon) Pro: - Unified issue t

Re: Suggestion for a book

2016-03-02 Thread Nick B via Digitalmars-d
On Wednesday, 2 March 2016 at 17:12:39 UTC, karabuta wrote: Whilst coding in D, there so many approaches one can take to structure his project. As the code base grow large, one can get really confused as to how best to structure code (modules, directories, classes, using class or structs, utili

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread ag0aep6g via Digitalmars-d
On 02.03.2016 21:40, Sebastien Alaiwan wrote: - I only work with separate compilation, using gdc (Windows-dmd produces OMF, which is a dealbreaker ; but I use rdmd a lot for small programs). dmd gives you COFF with -m64 or -m32mscoff (-m32 is the default is => OMF). [...] Clearly, "main.d" ne

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-02 Thread tsbockman via Digitalmars-d
On Wednesday, 2 March 2016 at 06:44:24 UTC, Abhishek Kumar wrote: On Tuesday, 1 March 2016 at 11:50:02 UTC, Abhishek Kumar wrote: Hello I am Abhishek Kumar,computer science student from India.I am interested in working on D language during GSoC 2016.I found "GDC Project - The GNU D Compiler" i

Re: State of the Compiler

2016-03-02 Thread Jonathan M Davis via Digitalmars-d
On Monday, 29 February 2016 at 00:10:33 UTC, Walter Bright wrote: This will all take years, but we've already made good progress such as the conversion of the source code to D. You should probably turn at least some of this into a checklist somewhere so that it doesn't get lost in the shuffle.

Re: std.database

2016-03-02 Thread Kagamin via Digitalmars-d
On Wednesday, 2 March 2016 at 15:41:56 UTC, Piotrek wrote: Moreover one may say it's almost impossible to make a common and effective interface which would work with all databases. e.g. someone on Wikipedia argues ODBC is obolete (check "ODBC today") I believe that section is about PHP forums

Re: Code security: "auto" / Reason for errors

2016-03-02 Thread Steven Schveighoffer via Digitalmars-d
On 3/2/16 3:01 PM, Ozan wrote: It'd do exactly the same thing if you wrote int[] b = a; so the auto changes nothing there. Generally, the slice assignment is a good thing because it gives you easy efficiency and doesn't hide the costs of a duplicate. I agree for slices, but typically variable

Re: Code security: "auto" / Reason for errors

2016-03-02 Thread Ozan via Digitalmars-d
On Wednesday, 2 March 2016 at 20:07:30 UTC, Jacob Carlborg wrote: On 2016-03-02 21:01, Ozan wrote: I agree for slices, but typically variables should have his own data. int a = 1: int b = a; // data copy int[] a; int[] b = a; // pointer copy is not the same and should be avoid. Same thing

Re: State of the Compiler

2016-03-02 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 1 March 2016 at 16:23:37 UTC, Jack Stouffer wrote: On Tuesday, 1 March 2016 at 13:48:18 UTC, Andrei Alexandrescu wrote: How would cutting and pasting from phobos be better than using it? -- Andrei There wouldn't be downward pressure on Phobos devs from DMD devs to not change anyth

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread Sebastien Alaiwan via Digitalmars-d
On Wednesday, 2 March 2016 at 08:50:50 UTC, Mike Parker wrote: I'm curious what sort of system you have in mind. How does the current system not work for you and what would you prefer to see? First, you must know that I've been a C++ programmer for way too much time ; and that my way of think

GSOC Idea.

2016-03-02 Thread Marco via Digitalmars-d
Hi, I am Marco, a CS student at UCL. This is both a presentation post and also post where I ask some suggestions about an idea for a GSOC project. I am a first year student and I do now that I may be too inexperienced for such difficult projects, but my willingness to learn is big. I am very

Re: Code security: "auto" / Reason for errors

2016-03-02 Thread Jacob Carlborg via Digitalmars-d
On 2016-03-02 21:01, Ozan wrote: I agree for slices, but typically variables should have his own data. To add additional code for separate data has a lot of risk in my mind. Behaviors should also be the same. int a = 1: int b = a; // data copy int[] a; int[] b = a; // pointer copy is not the

Re: State of the Compiler

2016-03-02 Thread deadalnix via Digitalmars-d
On Tuesday, 1 March 2016 at 21:01:13 UTC, Mathias Lang wrote: 2016-03-01 12:22 GMT+01:00 Ola Fosheim Grøstad via Digitalmars-d < digitalmars-d@puremagic.com>: On Tuesday, 1 March 2016 at 10:11:03 UTC, Kagamin wrote: On Tuesday, 1 March 2016 at 07:00:43 UTC, Ola Fosheim Grøstad wrote: If ph

Re: C++ UFCS update

2016-03-02 Thread deadalnix via Digitalmars-d
On Wednesday, 2 March 2016 at 15:57:41 UTC, Piotrek wrote: On Wednesday, 2 March 2016 at 13:29:03 UTC, Dejan Lekic wrote: I am not sure I agree with this. "->" will make it *visible* what is going on, while "." can mean many things, and I would have to investigate what .something in part of a c

Re: Code security: "auto" / Reason for errors

2016-03-02 Thread Ozan via Digitalmars-d
It'd do exactly the same thing if you wrote int[] b = a; so the auto changes nothing there. Generally, the slice assignment is a good thing because it gives you easy efficiency and doesn't hide the costs of a duplicate. I agree for slices, but typically variables should have his own data. T

Re: std.xml2 (collecting features)

2016-03-02 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 2 March 2016 at 06:59:49 UTC, Tobias Müller wrote: What's the usecase of DOM outside of browser interoperability/scripting? The API isn't particularly nice, especially in languages with a rich type system. I find my extended dom to be very nice, especially thanks to D's type sys

Re: std.xml2 (collecting features)

2016-03-02 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 2 March 2016 at 02:50:22 UTC, Alex Vincent wrote: I agree, but the Document Object Model (DOM) is a hge project. It's a project I'd love to take an active hand in driving. My dom.d implements a fair chunk of it already. https://github.com/adamdruppe/arsd/blob/master/do

Re: Code security: "auto" / Reason for errors

2016-03-02 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 2 March 2016 at 19:42:02 UTC, Ozan wrote: I despair of "auto var1 = var2"for arrays. Isn't it a open door for errors. Example int[] a; foreach(i; 0..10) a ~= i; auto b = a; // correct dlang coding: auto b = a.dup; It'd do exactly the same thing if you wrot

Code security: "auto" / Reason for errors

2016-03-02 Thread Ozan via Digitalmars-d
Hi I despair of "auto var1 = var2"for arrays. Isn't it a open door for errors. Example import std.stdio; void main() { int[] a; foreach(i; 0..10) a ~= i; auto b = a; // correct dlang coding: auto b = a.dup; a[2] = 1; b[2] = 5; // Overwrites ass

Re: std.database

2016-03-02 Thread landaire via Digitalmars-d
On Wednesday, 2 March 2016 at 18:28:34 UTC, landaire wrote: How is this a UAF? Isn't the struct copied? Ah I think I misunderstood. You mean in the database, not the dpaste?

Re: State of the Compiler

2016-03-02 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 1 March 2016 at 21:01:13 UTC, Mathias Lang wrote: Most _serious_ developers go for mature frameworks and libraries for major projects. https://yourlogicalfallacyis.com/no-true-scotsman Here I thought I stated one of the most obvious empirical fact, but in the D community there is

Re: std.database

2016-03-02 Thread landaire via Digitalmars-d
On Wednesday, 2 March 2016 at 03:07:54 UTC, Rikki Cattermole wrote: Okay I've found a problem. Here is some code demonstrating it. http://dpaste.dzfl.pl/022c9e610a18 Now take a look again at Database https://github.com/cruisercoder/dstddb/blob/master/src/std/database/poly/database.d#L37 Do y

Re: GSoC Next Steps

2016-03-02 Thread Craig Dillabaugh via Digitalmars-d
On Wednesday, 2 March 2016 at 17:27:47 UTC, Alex Herrmann wrote: On Wednesday, 2 March 2016 at 00:29:27 UTC, CraigDillabaugh wrote: Craig I just had time to see the results today, congratulations on the approval into GSOC! Very exciting time as a student who enjoys programming in D. Althoug

Re: GSoC Next Steps

2016-03-02 Thread Alex Herrmann via Digitalmars-d
On Wednesday, 2 March 2016 at 00:29:27 UTC, CraigDillabaugh wrote: Not sure if this fits better in announcements, but I will try here for now. I need email addresses for mentors so I can add you to the organization (D Foundation). I can hunt most of you down, but it would be easier if you got

Re: std.database

2016-03-02 Thread Stefan Koch via Digitalmars-d
On Wednesday, 2 March 2016 at 15:41:56 UTC, Piotrek wrote: On Tuesday, 1 March 2016 at 21:00:30 UTC, Erik Smith wrote: [...] My quick comments: 1. In my opinion it should not be called std.database, but let's say "std.dbc". This is because it looks like a wrapper over db clients. Moreover

Re: std.database

2016-03-02 Thread Erik Smith via Digitalmars-d
1. In my opinion it should not be called std.database, but let's say "std.dbc". This is because it looks like a wrapper over db clients. Moreover one may say it's almost impossible to make a common and effective interface which would work with all databases. e.g. someone on Wikipedia argues OD

Re: C++ UFCS update

2016-03-02 Thread Piotrek via Digitalmars-d
On Wednesday, 2 March 2016 at 13:29:03 UTC, Dejan Lekic wrote: I am not sure I agree with this. "->" will make it *visible* what is going on, while "." can mean many things, and I would have to investigate what .something in part of a chain does. Right? Are you sure that "->" is obvious in C+

Suggestion for a book

2016-03-02 Thread karabuta via Digitalmars-d
Whilst coding in D, there so many approaches one can take to structure his project. As the code base grow large, one can get really confused as to how best to structure code (modules, directories, classes, using class or structs, utilizing language features, etc.). Making a good decision init

Re: C++ UFCS update

2016-03-02 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 2 March 2016 at 15:57:41 UTC, Piotrek wrote: Are you sure that "->" is obvious in C++? I ask because it can mean many things, not mentioning it can be overloaded! That's an odd statement. In C++ it is a member-overload that returns a pointer which is hardwired to be dereferenced

Re: std.database

2016-03-02 Thread Piotrek via Digitalmars-d
On Tuesday, 1 March 2016 at 21:00:30 UTC, Erik Smith wrote: The main focus of this project is to bring a standard interface for database clients.This is similar to the purpose of JDBC (java) and DBI (perl). While there is some existing work in place (ddbc, etc.c.odbc.sql, vibe.d and other

Re: C++ UFCS update

2016-03-02 Thread Dejan Lekic via Digitalmars-d
On Sunday, 21 February 2016 at 10:16:19 UTC, Jonathan M Davis wrote: As for a pipe operator, I expect that it wouldn't really help any. It would be a lot like . vs -> in that it's an unnecessary complication, but it would actually probably be worse. If | I am not sure I agree with this. "->" w

Updated Sublime Text 3's D snippets

2016-03-02 Thread Vladimirs Nordholm via Digitalmars-d
Changes to the ST3 snippets: https://github.com/sublimehq/Packages/pull/218

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 1 March 2016 at 06:33:06 UTC, Sebastien Alaiwan wrote: However, we still need separate compilation. Otherwise your turnaround time is going to resemble a tractor pulling competition as your project grows. Recompiling everything everytime you change one module is not an option ; Some

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 2 March 2016 at 06:40:53 UTC, Sebastien Alaiwan wrote: Yeah, this is what I going to do: flat hierarchy, like one 'src' directory and one 'extra' directory in the project root, globally unique package names, passing -Isrc and -Iextra to the compiler, and ... module declaration d

Re: Libdivide ported to D

2016-03-02 Thread Tomer Filiba via Digitalmars-d
On Wednesday, 2 March 2016 at 09:28:30 UTC, Johan Engelen wrote: Where can we find the code? Oh my, obviously I forgot to put the link. Here you go: https://github.com/tomerfiliba/dlang/blob/master/source/divide.d

Re: Libdivide ported to D

2016-03-02 Thread Johan Engelen via Digitalmars-d
On Wednesday, 2 March 2016 at 08:57:59 UTC, Tomer Filiba wrote: I ported libdivide (http://libdivide.com/) to D for my own purposes, but thought it would be nice to contribute it back to the community. Where can we find the code?

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-02 Thread ZombineDev via Digitalmars-d
On Wednesday, 2 March 2016 at 06:44:24 UTC, Abhishek Kumar wrote: On Tuesday, 1 March 2016 at 11:50:02 UTC, Abhishek Kumar wrote: Hello I am Abhishek Kumar,computer science student from India.I am interested in working on D language during GSoC 2016.I found "GDC Project - The GNU D Compiler" i

Libdivide ported to D

2016-03-02 Thread Tomer Filiba via Digitalmars-d
I ported libdivide (http://libdivide.com/) to D for my own purposes, but thought it would be nice to contribute it back to the community. In short, libdivide does optimized integer division, it first does some preprocessing of the denominator and generates something that will divide must fast.

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread Mike Parker via Digitalmars-d
On Wednesday, 2 March 2016 at 06:40:53 UTC, Sebastien Alaiwan wrote: Yeah, this is what I going to do: flat hierarchy, like one 'src' directory and one 'extra' directory in the project root, globally unique package names, passing -Isrc and -Iextra to the compiler, and ... module declaration d

Re: std.xml2 (collecting features)

2016-03-02 Thread Tobias Müller via Digitalmars-d
Dejan Lekic wrote: > If you really want to be serious about the XML package, then I > humbly believe implementing the commonly-known DOM interfaces is > a must. Luckily there is IDL available for it: > https://www.w3.org/TR/DOM-Level-2-Core/idl/dom.idl . Also, > speaking about DOM, all levels

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-02 Thread Abhishek Kumar via Digitalmars-d
On Tuesday, 1 March 2016 at 11:50:02 UTC, Abhishek Kumar wrote: Hello I am Abhishek Kumar,computer science student from India.I am interested in working on D language during GSoC 2016.I found "GDC Project - The GNU D Compiler" interesting. I have interest in programming languages and compilers.

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread Sebastien Alaiwan via Digitalmars-d
On Wednesday, 2 March 2016 at 00:16:57 UTC, Guillaume Piolat wrote: Would this work? 1. pick a single module name like module math.optimize; 2. import that module with: import math.optimize; 3. put this module in a hierarchy like that: math/optimize.d 4. pass -I to the compiler

Re: std.database

2016-03-02 Thread Erik Smith via Digitalmars-d
I will look at your managed approach to understand it better. One drawback I can think of is that destruction might not occur immediately. This can be an issue for shared libraries when the GC hasn't run when the library call returns to the host application. Maybe it's a C++ bias, but the R

Re: std.database

2016-03-02 Thread Rikki Cattermole via Digitalmars-d
On 02/03/16 4:48 PM, Erik Smith wrote: Yes agree that the poly Database is broken - it isn't reference counted and I will fix that. My point was, you shouldn't handle that. Your sample code had me wondering if I am missing something else, but I can't see another issue yet. I think the use of

Re: std.database

2016-03-02 Thread Erik Smith via Digitalmars-d
Yes agree that the poly Database is broken - it isn't reference counted and I will fix that. Your sample code had me wondering if I am missing something else, but I can't see another issue yet. I think the use of classes would definitely lead to problems with resources being freed out of ord

Re: std.database

2016-03-02 Thread Erik Smith via Digitalmars-d
Hi Stefan, It might be a challenge for CTFE compatibility in the API, but it would be interesting to see how much of it is workable. There does need to be some optional API elements in cases where it's not supported by the underlying database client(array binding for example) and these compi

Re: std.database

2016-03-02 Thread Rikki Cattermole via Digitalmars-d
Okay I've found a problem. Here is some code demonstrating it. http://dpaste.dzfl.pl/022c9e610a18 Now take a look again at Database https://github.com/cruisercoder/dstddb/blob/master/src/std/database/poly/database.d#L37 Do you see the problem? The solution is simple. The client database type

Re: std.xml2 (collecting features)

2016-03-02 Thread Alex Vincent via Digitalmars-d
On Wednesday, 24 February 2016 at 10:55:01 UTC, Dejan Lekic wrote: If you really want to be serious about the XML package, then I humbly believe implementing the commonly-known DOM interfaces is a must. Luckily there is IDL available for it: https://www.w3.org/TR/DOM-Level-2-Core/idl/dom.idl .

Re: State of the Compiler

2016-03-02 Thread tsbockman via Digitalmars-d
On Tuesday, 1 March 2016 at 20:57:39 UTC, Jack Stouffer wrote: They don't have enough manpower to keep with with the current bugs, let alone adding extra work to each fix by targeting two code bases. Speaking of which... could I persuade anyone to take a crack at this DMD codegen bug I found

Re: std.database

2016-03-02 Thread Stefan Koch via Digitalmars-d
On Tuesday, 1 March 2016 at 21:00:30 UTC, Erik Smith wrote: I'm back to actively working on a std.database specification & implementation. It's still unstable, minimally tested, and there is plenty of work to do, but I wanted to share an update on my progress. [...] Hi Erik, As soon as sq

GSoC Next Steps

2016-03-02 Thread CraigDillabaugh via Digitalmars-d
Not sure if this fits better in announcements, but I will try here for now. I need email addresses for mentors so I can add you to the organization (D Foundation). I can hunt most of you down, but it would be easier if you got in touch with me: craig dot dillabaugh at gmail dot com Also, if

Re: A suggestion for modules names / sharing code between projects

2016-03-02 Thread Guillaume Piolat via Digitalmars-d
On Monday, 29 February 2016 at 19:03:53 UTC, Sebastien Alaiwan wrote: Hi all, I've came across the following problem number of times. Let's say I have project A and B, sharing code but having a different tree structure. $ find projectA ./projectA/internal/math/algo.d ./projectA/internal/math/

Re: std.database

2016-03-02 Thread Erik Smith via Digitalmars-d
Typo fixed - thanks. Incidentally, I'm not 100% content with createDatabase. With the library being template based, the types are no longer as easy to work with directly: auto database = Database!DefaultPolicy(); alias cant be used because it instantiates. The template argument can be defa

Re: std.database

2016-03-02 Thread jmh530 via Digitalmars-d
On Tuesday, 1 March 2016 at 21:00:30 UTC, Erik Smith wrote: Please feel free to comment or question on the design as evolves. Minor typo in the fluent style select section of readme.md. the line createDatabase("file:///demo.sqlite"); should be createDatabase("file:///demo.sqlite")

std.database

2016-03-02 Thread Erik Smith via Digitalmars-d
I'm back to actively working on a std.database specification & implementation. It's still unstable, minimally tested, and there is plenty of work to do, but I wanted to share an update on my progress. The main focus of this project is to bring a standard interface for database clients.Th

Re: State of the Compiler

2016-03-02 Thread Mathias Lang via Digitalmars-d
2016-03-01 12:22 GMT+01:00 Ola Fosheim Grøstad via Digitalmars-d < digitalmars-d@puremagic.com>: > On Tuesday, 1 March 2016 at 10:11:03 UTC, Kagamin wrote: > >> On Tuesday, 1 March 2016 at 07:00:43 UTC, Ola Fosheim Grøstad wrote: >> >>> If phobos isn't stable enough for the compiler, then it isn't

Re: State of the Compiler

2016-03-02 Thread Jack Stouffer via Digitalmars-d
On Tuesday, 1 March 2016 at 17:06:21 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 1 March 2016 at 16:57:41 UTC, Chris Wright wrote: Specifically not to add anything, since we want to ensure that DMD 2.73.0 compiles with DMD 2.70.0 through DMD 2.72.x. Why is this important? Cant you lock DMD2.x

Re: State of the Compiler

2016-03-02 Thread Chris Wright via Digitalmars-d
On Tue, 01 Mar 2016 17:06:21 +, Ola Fosheim Grøstad wrote: > Cant you lock DMD2.x to DMD2.70.x (back-porting bug fixes)? Yes. If the build system uses dmd from $PATH, that would be pretty annoying. However, if the build system downloads and unpacks the correct dmd inside the build directory

Re: SDL langauge guide

2016-03-02 Thread Sönke Ludwig via Digitalmars-d
Am 01.03.2016 um 16:12 schrieb Luis: So,seeing that no body rewrites it or fix the webpage, I ended putting it on a GitHub wiki page : https://github.com/Abscissa/SDLang-D/wiki/Language-Guide Is 1:1 copy from the internet archive's copy. Did you see https://sdlang.org? I made that page a while

Re: State of the Compiler

2016-03-02 Thread Chris Wright via Digitalmars-d
On Tue, 01 Mar 2016 07:00:43 +, Ola Fosheim Grøstad wrote: > On Monday, 29 February 2016 at 23:25:45 UTC, Chris Wright wrote: >> The second part is an argument against circular dependencies between >> projects. Phobos depends only on system libraries, libcurl, druntime, >> and dmd, and it's un

Re: Field testing of std.experimental

2016-03-02 Thread Jesse Phillips via Digitalmars-d
On Monday, 29 February 2016 at 09:49:23 UTC, Bastiaan Veelo wrote: Is there a central place to document field testing of packages in std.experimental, to help determine when they are ready? Pegged has recently started using std.experimental.logging for doing parse traces [1]. The only comment

Re: State of the Compiler

2016-03-02 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 1 March 2016 at 13:48:18 UTC, Andrei Alexandrescu wrote: On 02/28/2016 11:57 PM, Walter Bright wrote: There are good reasons for that. But there's no reason why std.algorithm.sort, for example, cannot still be used (cut & paste). How would cutting and pasting from phobos be better

Re: Static inheritance (proof of concept)

2016-03-02 Thread Iakh via Digitalmars-d
On Monday, 29 February 2016 at 13:31:11 UTC, Atila Neves wrote: http://forum.dlang.org/post/tgnxocozkurfvmxqo...@forum.dlang.org Atila If you about this: http://forum.dlang.org/post/eejiauievypbfifky...@forum.dlang.org On Wednesday, 29 July 2015 at 06:05:37 UTC, Kagamin wrote: On Tuesday, 2

Re: SDL langauge guide

2016-03-02 Thread Luis via Digitalmars-d
On Tuesday, 1 March 2016 at 19:00:20 UTC, Luis wrote: On Tuesday, 1 March 2016 at 18:49:22 UTC, Sönke Ludwig wrote: Am 01.03.2016 um 16:12 schrieb Luis: So,seeing that no body rewrites it or fix the webpage, I ended putting it on a GitHub wiki page : https://github.com/Abscissa/SDLang-D/wiki/L

Re: SDL langauge guide

2016-03-02 Thread Luis via Digitalmars-d
On Tuesday, 1 March 2016 at 18:49:22 UTC, Sönke Ludwig wrote: Am 01.03.2016 um 16:12 schrieb Luis: So,seeing that no body rewrites it or fix the webpage, I ended putting it on a GitHub wiki page : https://github.com/Abscissa/SDLang-D/wiki/Language-Guide Is 1:1 copy from the internet archive's

Re: State of the Compiler

2016-03-02 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 1 March 2016 at 16:57:41 UTC, Chris Wright wrote: Specifically not to add anything, since we want to ensure that DMD 2.73.0 compiles with DMD 2.70.0 through DMD 2.72.x. Why is this important? Cant you lock DMD2.x to DMD2.70.x (back-porting bug fixes)? Then you push for changes wi

Re: Official compiler

2016-03-02 Thread Bruno Medeiros via Digitalmars-d
On 26/02/2016 06:19, Walter Bright wrote: I wish LLVM would switch to the Boost license, in particular removing this clause: "Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materia

Re: State of the Compiler

2016-03-02 Thread Chris Wright via Digitalmars-d
On Tue, 01 Mar 2016 16:23:37 +, Jack Stouffer wrote: > On Tuesday, 1 March 2016 at 13:48:18 UTC, Andrei Alexandrescu wrote: >> How would cutting and pasting from phobos be better than using it? -- >> Andrei > > There wouldn't be downward pressure on Phobos devs from DMD devs to not > change a

Re: SDL langauge guide

2016-03-02 Thread ZombineDev via Digitalmars-d
On Tuesday, 1 March 2016 at 15:12:05 UTC, Luis wrote: So,seeing that no body rewrites it or fix the webpage, I ended putting it on a GitHub wiki page : https://github.com/Abscissa/SDLang-D/wiki/Language-Guide Is 1:1 copy from the internet archive's copy. Nice!

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-02 Thread Joakim via Digitalmars-d
On Tuesday, 1 March 2016 at 11:50:02 UTC, Abhishek Kumar wrote: Hello I am Abhishek Kumar,computer science student from India.I am interested in working on D language during GSoC 2016.I found "GDC Project - The GNU D Compiler" interesting. I have interest in programming languages and compilers.

Re: D Vulkan API

2016-03-02 Thread karabuta via Digitalmars-d
On Tuesday, 1 March 2016 at 11:33:26 UTC, Nicholas Wilson wrote: So i've spent the last few days making more D feeling bindings for vulkan, based off Satoshi's because going strait from the spec was a PITA and very inconsistent, and they're almost done. I would like to request some feedback o

Re: GSoC 2016 "GDC Project - The GNU D Compiler" project

2016-03-02 Thread Lass Safin via Digitalmars-d
On Tuesday, 1 March 2016 at 11:50:02 UTC, Abhishek Kumar wrote: Hello I am Abhishek Kumar,computer science student from India.I am interested in working on D language during GSoC 2016.I found "GDC Project - The GNU D Compiler" interesting. I have interest in programming languages and compilers.

Re: State of the Compiler

2016-03-02 Thread Jack Stouffer via Digitalmars-d
On Tuesday, 1 March 2016 at 13:48:18 UTC, Andrei Alexandrescu wrote: How would cutting and pasting from phobos be better than using it? -- Andrei There wouldn't be downward pressure on Phobos devs from DMD devs to not change anything. One of the things that contributed to my decision to swit

SDL langauge guide

2016-03-02 Thread Luis via Digitalmars-d
So,seeing that no body rewrites it or fix the webpage, I ended putting it on a GitHub wiki page : https://github.com/Abscissa/SDLang-D/wiki/Language-Guide Is 1:1 copy from the internet archive's copy.