Re: Deimos bindings to libmrss

2016-03-03 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Friday, 4 March 2016 at 07:43:59 UTC, Ilya Yaroshenko wrote: GitHub: https://github.com/9il/mrss Dub: http://code.dlang.org/packages/mrss libmrss: https://github.com/9il/mrss See also: https://github.com/Laeeth/d_rss/ EDIT: libmrss: http://www.autistici.org/bakunin/libmrss

Deimos bindings to libmrss

2016-03-03 Thread Ilya Yaroshenko via Digitalmars-d-announce
GitHub: https://github.com/9il/mrss Dub: http://code.dlang.org/packages/mrss libmrss: https://github.com/9il/mrss See also: https://github.com/Laeeth/d_rss/

Re: A very interesting slide deck comparing sync and async IO

2016-03-03 Thread Shachar Shemesh via Digitalmars-d
On 03/03/16 19:31, Andrei Alexandrescu wrote: https://www.mailinator.com/tymaPaulMultithreaded.pdf Andrei You just stepped on a pet peeve of mine. NIO isn't async IO. It's non-blocking IO. Many people (including Microsoft's MSDN) confuse the two, but they are completely and utterly

Re: std.database

2016-03-03 Thread Piotrek via Digitalmars-d
On Thursday, 3 March 2016 at 18:48:08 UTC, Chris Wright wrote: You were a bit vague before. I interpreted you as saying "just offer a range and an array-like API, and then you can use it with std.algorithm". But if you meant to offer an API that is similar to std.algorithm and also array-like,

Re: A very interesting slide deck comparing sync and async IO

2016-03-03 Thread Ali Çehreli via Digitalmars-d
On 03/03/2016 06:01 PM, deadalnix wrote: > 2x64kb L1 cache, which probably reduce the cache trashing due > to context switches (I am speaking without measuring anything.) I imagine that lost cache is one of the biggest costs in thread switching. It would be great if a thread could select a

[Issue 15752] Diagnostic: Better Error Message for Assigning Incorrect AA Empty Value

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15752 Jack Stouffer changed: What|Removed |Added Keywords||diagnostic --

[Issue 15752] New: Diagnostic: Better Error Message for Assigning Incorrect AA Empty Value

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15752 Issue ID: 15752 Summary: Diagnostic: Better Error Message for Assigning Incorrect AA Empty Value Product: D Version: D2 Hardware: All OS: All Status:

Re: Uniform Function Call Syntax?

2016-03-03 Thread user001 via Digitalmars-d
On Friday, 4 March 2016 at 02:09:25 UTC, Era Scarecrow wrote: On Friday, 4 March 2016 at 01:56:34 UTC, user001 wrote: Was just wondering why UFCS only works in one direction, that is why functions can be used as if it were part of a struct/class but not the other way around. int dot; float

Re: Uniform Function Call Syntax?

2016-03-03 Thread Era Scarecrow via Digitalmars-d
On Friday, 4 March 2016 at 01:56:34 UTC, user001 wrote: Was just wondering why UFCS only works in one direction, that is why functions can be used as if it were part of a struct/class but not the other way around. int dot; float value = dot(a, b); // would be same as a.dot(b)

Re: A very interesting slide deck comparing sync and async IO

2016-03-03 Thread deadalnix via Digitalmars-d
On Thursday, 3 March 2016 at 20:31:51 UTC, Vladimir Panteleev wrote: 3. The first benchmark essentially measures the overhead of fiber context switching and nothing else Ha yes, forgot that. Many JVM use fiber instead of thread internally.

Re: Forwarding varadic function arguments

2016-03-03 Thread Nicholas Wilson via Digitalmars-d-learn
On Friday, 4 March 2016 at 01:13:37 UTC, Ali Çehreli wrote: On 03/03/2016 04:50 PM, Nicholas Wilson wrote: > [...] I think so. Also noting that C-style varargs can only work with fundamental types (Am I correct there? I am carrying this assumption from C++.), you may be happier with a

Re: GSoC Next Steps

2016-03-03 Thread Craig Dillabaugh via Digitalmars-d
Haven't yet found email addresses for a few mentors (if you are available this year): Iain Buclaw Jacob Ovrum Also, there is still time to sign up if you are a potential mentor. For those of you interested in mentoring, the following is a good (and short) read on how students should be

Re: A very interesting slide deck comparing sync and async IO

2016-03-03 Thread deadalnix via Digitalmars-d
On Thursday, 3 March 2016 at 17:31:59 UTC, Andrei Alexandrescu wrote: https://www.mailinator.com/tymaPaulMultithreaded.pdf Andrei A lot of data presented are kind of skewed. For instance, the synchronization costs across cores are done at 0% writes. It comes to no surprise that

Uniform Function Call Syntax?

2016-03-03 Thread user001 via Digitalmars-d
Was just wondering why UFCS only works in one direction, that is why functions can be used as if it were part of a struct/class but not the other way around. struct Vec3 { float x; float y; float z; float dot(Vec3 o) { return x * o.x + y * o.y + z * o.z; } }

Re: Choosing arity of a template function

2016-03-03 Thread Meta via Digitalmars-d
On Thursday, 3 March 2016 at 21:06:12 UTC, Andrei Alexandrescu wrote: Thanks! That will push introspection considerably further. I toggled auto-pull. -- Andrei I made the simplest change possible to get it to compile, PR here[1]. It adds an extra allocation so any suggestions on eliminating

Re: Forwarding varadic function arguments

2016-03-03 Thread Ali Çehreli via Digitalmars-d-learn
On 03/03/2016 04:50 PM, Nicholas Wilson wrote: > //f is a File* > void fwrite(int line = __LINE__)(...) > { > f.write("/*",line,"*/ "); > f.write(_argptr); //prints e.g 7FFF5B055440 > } > basically i want > fwrite("1 ","2\t","3\n"); > to print > /*7*/ 1 23 > > do I have to

Re: Why not use the address of the TypeInfo symbol as TypeInfo.toHash()?

2016-03-03 Thread Yuxuan Shui via Digitalmars-d
On Friday, 4 March 2016 at 00:42:28 UTC, Walter Bright wrote: On 3/3/2016 4:29 PM, Yuxuan Shui wrote: After linking each _DxxTypeInfo___initZ symbol should have a unique address, so why are we using hash of type name as TypeInfo.toHash()? I don't think this has anything to do with

Forwarding varadic function arguments

2016-03-03 Thread Nicholas Wilson via Digitalmars-d-learn
//f is a File* void fwrite(int line = __LINE__)(...) { f.write("/*",line,"*/ "); f.write(_argptr); //prints e.g 7FFF5B055440 } basically i want fwrite("1 ","2\t","3\n"); to print /*7*/ 1 23 do I have to iterate through _argptr

Re: Why not use the address of the TypeInfo symbol as TypeInfo.toHash()?

2016-03-03 Thread Walter Bright via Digitalmars-d
On 3/3/2016 4:29 PM, Yuxuan Shui wrote: After linking each _DxxTypeInfo___initZ symbol should have a unique address, so why are we using hash of type name as TypeInfo.toHash()? I don't think this has anything to do with compacting GC. Is there something I'm missing? Because when working

Re: DigitalWhip

2016-03-03 Thread artemalive via Digitalmars-d-announce
On Saturday, 13 February 2016 at 19:19:46 UTC, Johan Engelen wrote: On Saturday, 13 February 2016 at 18:48:12 UTC, artemalive wrote: DigitalWhip is a performance benchmark of statically typed programming languages that compile to native code: https://github.com/artemalive/DigitalWhip Could

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

2016-03-03 Thread deadalnix via Digitalmars-d
On Thursday, 3 March 2016 at 23:54:15 UTC, cym13 wrote: 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.

Why not use the address of the TypeInfo symbol as TypeInfo.toHash()?

2016-03-03 Thread Yuxuan Shui via Digitalmars-d
After linking each _DxxTypeInfo___initZ symbol should have a unique address, so why are we using hash of type name as TypeInfo.toHash()? I don't think this has anything to do with compacting GC. Is there something I'm missing?

Re: Is it safe to use 'is' to compare types?

2016-03-03 Thread Yuxuan Shui via Digitalmars-d-learn
On Thursday, 3 March 2016 at 23:58:39 UTC, Yuxuan Shui wrote: On Thursday, 3 March 2016 at 23:51:16 UTC, Adam D. Ruppe wrote: On Thursday, 3 March 2016 at 23:46:50 UTC, Yuxuan Shui wrote: Will typeid(a) is typeid(b) yield different results than typeid(a) == typeid(b)? No. Indeed, opEquals on

Re: Is it safe to use 'is' to compare types?

2016-03-03 Thread Yuxuan Shui via Digitalmars-d-learn
On Thursday, 3 March 2016 at 23:51:16 UTC, Adam D. Ruppe wrote: On Thursday, 3 March 2016 at 23:46:50 UTC, Yuxuan Shui wrote: Will typeid(a) is typeid(b) yield different results than typeid(a) == typeid(b)? No. Indeed, opEquals on TypeInfo just calls is itself. But opEquals also has extra

Re: Is it safe to use 'is' to compare types?

2016-03-03 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 3 March 2016 at 23:46:50 UTC, Yuxuan Shui wrote: Will typeid(a) is typeid(b) yield different results than typeid(a) == typeid(b)? No. Indeed, opEquals on TypeInfo just calls is itself.

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

2016-03-03 Thread cym13 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

Is it safe to use 'is' to compare types?

2016-03-03 Thread Yuxuan Shui via Digitalmars-d-learn
Will typeid(a) is typeid(b) yield different results than typeid(a) == typeid(b)?

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

2016-03-03 Thread tsbockman via Digitalmars-d
On Thursday, 3 March 2016 at 03:22:02 UTC, Andrei Alexandrescu wrote: 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

Re: Error with associative array initializer DMD32 D Compiler v2.070.0

2016-03-03 Thread Ali Çehreli via Digitalmars-d-learn
On 03/03/2016 05:17 AM, Andrew Edwards wrote: > On 3/3/16 7:01 PM, MGW wrote: >> immutable long[string] aa = [ >> "foo": 5, >> "bar": 10, >> "baz": 2000 >> ]; > > The only way this can be done outside the body of a function is if it is > a manifest constant. This works: > > enum

Re: Empty Associative Aarray Literal

2016-03-03 Thread Ali Çehreli via Digitalmars-d-learn
On 03/03/2016 02:06 PM, Jack Stouffer wrote: This doesn't work either string func(int a, int[int] b = int[int].init) { Parentheses around int[int] works though. I don't know whether it's a bug. string func(int a, int[int] b = (int[int]).init) { Ali

Empty Associative Aarray Literal

2016-03-03 Thread Jack Stouffer via Digitalmars-d-learn
I want to have one of the parameters on a function be optional. The problem is, is that it's a AA and D does not seem to support empty AA literals. Observe: string func(int a, int[int] b = []) { return "mem1"; } void main() { func(1); } $ dmd test test.d(8): Error: cannot implicitly

[Issue 15751] New: atomicLoad doesn't return stable result if compiled with -profile

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15751 Issue ID: 15751 Summary: atomicLoad doesn't return stable result if compiled with -profile Product: D Version: D2 Hardware: x86 OS: Windows Status:

Re: Choosing arity of a template function

2016-03-03 Thread Meta via Digitalmars-d
On Thursday, 3 March 2016 at 21:06:12 UTC, Andrei Alexandrescu wrote: Thanks! That will push introspection considerably further. I toggled auto-pull. -- Andrei I would recommend cancelling that as it's currently failing on Linux and FreeBSD.

Re: Choosing arity of a template function

2016-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 03/03/2016 02:54 PM, Meta wrote: On Friday, 26 February 2016 at 23:09:52 UTC, Andrei Alexandrescu wrote: So, what's an elegant solution to this? I looked up std.traits but nothing seems to help. (Tried arity, no avail.) There's this[1] PR which implements exactly what you want, but it's

Re: Argon: an alternative parser for command-line arguments

2016-03-03 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 03/03/2016 04:09 AM, Markus Laker wrote: On Thursday, 3 March 2016 at 01:52:11 UTC, Chris Wright wrote: You might want to take a minute to shill it here. What's great about it? OK. :-) [snip] Very nice! I think we should adopt some of these ideas for std.getopt as well. -- Andrei

Re: Argon: an alternative parser for command-line arguments

2016-03-03 Thread Markus Laker via Digitalmars-d-announce
On Thursday, 3 March 2016 at 15:08:37 UTC, Jacob Carlborg wrote: Does it support some longer documentation for the flags, i.e. "git status -h" vs "git status --help"? Yes. You can give an option a description, like this: // ... uint nr_doors; // ... Named("doors", nr_doors, 0) ("number of

Re: Mallocator

2016-03-03 Thread Erik Smith via Digitalmars-d
On Thursday, 3 March 2016 at 20:31:47 UTC, Meta wrote: On Thursday, 3 March 2016 at 20:16:55 UTC, Erik Smith wrote: The later works and qualifying the allocator member variable shared seems to solve the issue. Example: struct A(T) { alias Allocator = T; shared Allocator allocator;

Re: Argon: an alternative parser for command-line arguments

2016-03-03 Thread Markus Laker via Digitalmars-d-announce
On Thursday, 3 March 2016 at 09:33:38 UTC, Johannes Pfau wrote: The rest of this list sounds quite good, but please reconsider automatically opening files: https://media.ccc.de/v/32c3-7130-the_perl_jam_2 I guess the scenario can't happen in D as our open file methods won't execute programs

Re: Argon: an alternative parser for command-line arguments

2016-03-03 Thread Markus Laker via Digitalmars-d-announce
On Thursday, 3 March 2016 at 04:48:42 UTC, Jason White wrote: I was also dissatisfied with std.getopt and wrote a command line argument parser (competition!): https://github.com/jasonwhite/darg Though it's not quite feature-complete yet, it does everything I need it to. It uses

Re: A very interesting slide deck comparing sync and async IO

2016-03-03 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 3 March 2016 at 17:31:59 UTC, Andrei Alexandrescu wrote: https://www.mailinator.com/tymaPaulMultithreaded.pdf Andrei Not an expert on the subject, but FWIW: 1. This is from 2008 2. Seems to be highly specific to Java 3. The first benchmark essentially measures the overhead of

Re: Mallocator

2016-03-03 Thread Meta via Digitalmars-d
On Thursday, 3 March 2016 at 20:16:55 UTC, Erik Smith wrote: The later works and qualifying the allocator member variable shared seems to solve the issue. Example: struct A(T) { alias Allocator = T; shared Allocator allocator; this(string url="") { allocator =

Re: Mallocator

2016-03-03 Thread Erik Smith via Digitalmars-d
On Thursday, 3 March 2016 at 19:32:40 UTC, Brian Schott wrote: On Thursday, 3 March 2016 at 19:01:52 UTC, Erik Smith wrote: I get the error "allocate is not callable using a non-shared object" and I'm not sure how to resolve it. Are you calling `Mallocator.allocate()` or

Re: Unable to instantiate template with same name as function

2016-03-03 Thread ag0aep6g via Digitalmars-d-learn
On 03.03.2016 07:12, Shriramana Sharma wrote: string ta(string s) { return s ~ "1"; } template ta(string s) { enum ta = ta(s); } In `ta(s)` here, `ta` is the enum itself again. It's similar to `int x = x;`. Can't do that, of course. Add a leading dot to refer to the module level `ta`

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

2016-03-03 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 3 March 2016 at 20:05:03 UTC, ag0aep6g wrote: [1] https://en.wikipedia.org/wiki/Reverse_domain_name_notation LOL at the code section of that page.

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

2016-03-03 Thread ag0aep6g via Digitalmars-d
On 03.03.2016 07:53, Sebastien Alaiwan wrote: However, using global package names means you're relying on the library providers to avoid conflicts, in their package names, although they might not even know each other. Which basically implies to always put your name / company name in your package

[Issue 15738] Problem with std.experimental.ndslice empty()

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15738 Илья Ярошенко changed: What|Removed |Added Hardware|x86_64 |All

[Issue 15738] Problem with std.experimental.ndslice empty()

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15738 Илья Ярошенко changed: What|Removed |Added CC|

Re: A very interesting slide deck comparing sync and async IO

2016-03-03 Thread Ali Çehreli via Digitalmars-d
On 03/03/2016 09:31 AM, Andrei Alexandrescu wrote: https://www.mailinator.com/tymaPaulMultithreaded.pdf Andrei Another interesting architecture is LMAX Disruptor: https://lmax-exchange.github.io/disruptor/ Ali

Re: Choosing arity of a template function

2016-03-03 Thread Meta via Digitalmars-d
On Friday, 26 February 2016 at 23:09:52 UTC, Andrei Alexandrescu wrote: So, what's an elegant solution to this? I looked up std.traits but nothing seems to help. (Tried arity, no avail.) There's this[1] PR which implements exactly what you want, but it's currently not passing the auto-tester.

Re: An argument for removing monitors from Java

2016-03-03 Thread Meta via Digitalmars-d
On Thursday, 3 March 2016 at 16:54:40 UTC, Andrei Alexandrescu wrote: http://blog.jooq.org/2016/01/12/if-java-were-designed-today-the-synchronizable-interface/ There was work on removing the default monitor from Object, what is the status of it? Thanks, Andrei

Re: Compile time performance for metaprogramming is somewhat inconsistent

2016-03-03 Thread Steven Schveighoffer via Digitalmars-d
On 3/2/16 9:33 PM, maik klein wrote: 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;

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

2016-03-03 Thread Steven Schveighoffer via Digitalmars-d
On 3/3/16 2:03 AM, Daniel Kozak via Digitalmars-d wrote: 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 The case that you pass something by reference, and change what

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

2016-03-03 Thread Patience 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. Is it Kardashian

Re: Mallocator

2016-03-03 Thread Brian Schott via Digitalmars-d
On Thursday, 3 March 2016 at 19:01:52 UTC, Erik Smith wrote: I get the error "allocate is not callable using a non-shared object" and I'm not sure how to resolve it. Are you calling `Mallocator.allocate()` or `Mallocator.instance.allocate()`?

Mallocator

2016-03-03 Thread Erik Smith via Digitalmars-d
Just a question on Mallocator and shared. My code does a lot of non-GC heap allocation (malloc) for buffers, so I reached for Mallocator as a starting point. I propagate an Allocator type generically through my structs, but it is defaulted to Mallocator. After checking with the docs & TDPL,

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

2016-03-03 Thread Sebastien Alaiwan via Digitalmars-d
On Thursday, 3 March 2016 at 08:39:51 UTC, Laeeth Isharc wrote: On Thursday, 3 March 2016 at 06:53:33 UTC, Sebastien Alaiwan If, unfortunately, I happen to run into a conflict, i.e my project uses two unrelated libraries sharing a name for their top-level namespace, there's no way out for me,

Re: std.database

2016-03-03 Thread Chris Wright via Digitalmars-d
On Thu, 03 Mar 2016 15:50:04 +, Piotrek wrote: > On Thursday, 3 March 2016 at 01:49:22 UTC, Chris Wright wrote: >> If you're trying to connect to a SQL database or a document database, >> as I'd expect for something called "std.database" > > The thing is I strongly encourage to not reserve

Re: A very interesting slide deck comparing sync and async IO

2016-03-03 Thread Brad Anderson via Digitalmars-d
On Thursday, 3 March 2016 at 17:31:59 UTC, Andrei Alexandrescu wrote: https://www.mailinator.com/tymaPaulMultithreaded.pdf Andrei Related to this, I watched a talk about user-level threads by another Google engineer awhile back (also named Paul but not the same person).

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

2016-03-03 Thread Nick Sabalausky via Digitalmars-d
On 03/02/2016 07:57 PM, sigod wrote: 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

Re: Argon: an alternative parser for command-line arguments

2016-03-03 Thread Nick Sabalausky via Digitalmars-d-announce
On 03/02/2016 02:50 PM, Markus Laker wrote: https://github.com/markuslaker/Argon Let me know if you do something interesting with it. Markus Reminds me of one I used years ago for C#: I like the approach, it's a good one. Getopt by comparison, while very good, always seemed like a kludge

Re: std.database

2016-03-03 Thread Erik Smith via Digitalmars-d
On Thursday, 3 March 2016 at 17:03:58 UTC, Kagamin wrote: On Thursday, 3 March 2016 at 15:53:28 UTC, Erik Smith wrote: auto r = db.connection().statement("select from t").range(); // nouns db.execute("select from t").range(); `range` is probably ok. Or auto connection =

Re: A very interesting slide deck comparing sync and async IO

2016-03-03 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 3 March 2016 at 17:31:59 UTC, Andrei Alexandrescu wrote: https://www.mailinator.com/tymaPaulMultithreaded.pdf Slide decks are so unbelievably bad at conveying information. But, looking through it, I think I agree. There's a reason why I stick with my cgi.d - using a simple

Re: std.database

2016-03-03 Thread Erik Smith via Digitalmars-d
On Thursday, 3 March 2016 at 16:08:03 UTC, Piotrek wrote: I agree with you we need database manipulation in Phobos. However modules like db, gui, xml or similar are too much work for a one developer. And as you can see from time to time there apears someone with its own vision. That's why,

Re: std.database

2016-03-03 Thread Kagamin via Digitalmars-d
On the other hand execute can simply return the reader with extra getter for scalar result. Just don't do stuff until it's iterated. Is it possible? auto rows = db.execute("select * from t");

A very interesting slide deck comparing sync and async IO

2016-03-03 Thread Andrei Alexandrescu via Digitalmars-d
https://www.mailinator.com/tymaPaulMultithreaded.pdf Andrei

Re: Lilypond Contributor's Guide - an excellent example to emulate

2016-03-03 Thread Iain Buclaw via Digitalmars-d
On 3 Mar 2016 6:02 pm, "Andrei Alexandrescu via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > On 03/03/2016 11:57 AM, Andrei Alexandrescu wrote: >> >> This is one beautiful guide for contributors: >> http://lilypond.org/doc/v2.19/Documentation/contributor/index. A >> Lilypond advanced

[Issue 15750] New: net/isemail uses lots of redundant helper methods

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15750 Issue ID: 15750 Summary: net/isemail uses lots of redundant helper methods Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: std.database

2016-03-03 Thread Kagamin via Digitalmars-d
Other options: db.execute("select from t").reader; //row range db.execute("select from t").get!long; //scalar db.execute("select from t"); //non-query

Re: std.database

2016-03-03 Thread Kagamin via Digitalmars-d
On Thursday, 3 March 2016 at 15:53:28 UTC, Erik Smith wrote: auto r = db.connection().statement("select from t").range(); // nouns db.execute("select from t").range(); `range` is probably ok. Or auto connection = db.createConnection(); connection.execute("select from t").range(); auto r =

Re: Lilypond Contributor's Guide - an excellent example to emulate

2016-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 03/03/2016 11:57 AM, Andrei Alexandrescu wrote: This is one beautiful guide for contributors: http://lilypond.org/doc/v2.19/Documentation/contributor/index. A Lilypond advanced user pointed it to me as a good example of community management. Would be awesome if we expanded our small

Lilypond Contributor's Guide - an excellent example to emulate

2016-03-03 Thread Andrei Alexandrescu via Digitalmars-d
This is one beautiful guide for contributors: http://lilypond.org/doc/v2.19/Documentation/contributor/index. A Lilypond advanced user pointed it to me as a good example of community management. Would be awesome if we expanded our small contributor guides on the wiki into a coherent document

An argument for removing monitors from Java

2016-03-03 Thread Andrei Alexandrescu via Digitalmars-d
http://blog.jooq.org/2016/01/12/if-java-were-designed-today-the-synchronizable-interface/ There was work on removing the default monitor from Object, what is the status of it? Thanks, Andrei

Re: std.database

2016-03-03 Thread Piotrek via Digitalmars-d
On Wednesday, 2 March 2016 at 17:13:32 UTC, Erik Smith wrote: There are a number of areas where this design is an improvement over DDBC: ease-of-use, better resource management (no scope, no GC), phobos compatibility, to name a few. There is a lot more that needs to be added to make it

Re: std.database

2016-03-03 Thread John Colvin via Digitalmars-d
On Thursday, 3 March 2016 at 11:16:03 UTC, Dejan Lekic wrote: 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

Re: std.database

2016-03-03 Thread Erik Smith via Digitalmars-d
On Thursday, 3 March 2016 at 15:07:43 UTC, Kagamin wrote: Also member names: methods are named after verbs, you use nouns. Method `next` is ambiguous: is the first row the next row? `fetch` or `fetchRow` would be better. Those are actually internal methods not intended for the interface

Re: std.database

2016-03-03 Thread Piotrek via Digitalmars-d
On Thursday, 3 March 2016 at 01:49:22 UTC, Chris Wright wrote: If you're trying to connect to a SQL database or a document database, as I'd expect for something called "std.database" The thing is I strongly encourage to not reserve std.database for external database clients and even what is

[Issue 15749] New: allow `with` on an expression

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15749 Issue ID: 15749 Summary: allow `with` on an expression Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1

[Issue 15748] inconsistent symbols generated by dmd vs ldc

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15748 --- Comment #1 from Sobirari Muhomori --- Single underscore is standard mangling for D symbols, most platforms take it literally, mac traditionally adds extra underscore to all symbols. --

Re: Problem running code examples in the Home page

2016-03-03 Thread CookiesOfLove via Digitalmars-d
On Thursday, 3 March 2016 at 14:21:15 UTC, Meta wrote: On Thursday, 3 March 2016 at 14:19:32 UTC, Meta wrote: On Thursday, 3 March 2016 at 05:24:26 UTC, Mike Parker wrote: Works for me. It took a couple of seconds before the output appeared, but it did appear. I just tried to run the

Re: std.range: Lockstep vs. Zip

2016-03-03 Thread Alex Parrill via Digitalmars-d-learn
On Wednesday, 2 March 2016 at 08:51:07 UTC, Manuel Maier wrote: Hi there, I was wondering why I should ever prefer std.range.lockstep over std.range.zip. In my (very limited) tests std.range.zip offered the same functionality as std.range.lockstep, i.e. I was able to iterate using

Re: std.database

2016-03-03 Thread Kagamin via Digitalmars-d
Also member names: methods are named after verbs, you use nouns. Method `next` is ambiguous: is the first row the next row? `fetch` or `fetchRow` would be better.

Re: Argon: an alternative parser for command-line arguments

2016-03-03 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-03-02 20:50, Markus Laker wrote: https://github.com/markuslaker/Argon Let me know if you do something interesting with it. Does it support some longer documentation for the flags, i.e. "git status -h" vs "git status --help"? -- /Jacob Carlborg

Re: GSOC Idea.

2016-03-03 Thread Rikki Cattermole via Digitalmars-d
On 04/03/16 3:09 AM, Marco wrote: On Thursday, 3 March 2016 at 09:29:38 UTC, Johannes Pfau wrote: Am Thu, 3 Mar 2016 16:14:24 +1300 schrieb Rikki Cattermole : [...] The arduino Due uses a Cortex M3, so arduino could mean ARM or AVR. GDC can target AVR devices with

Re: Compile time performance for metaprogramming is somewhat inconsistent

2016-03-03 Thread maik klein via Digitalmars-d
On Thursday, 3 March 2016 at 11:40:29 UTC, John Colvin 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;

Re: std.database

2016-03-03 Thread Erik Smith via Digitalmars-d
I suggest you call the package stdx.db - it is not (and may not become) a standard package, so `std` is out of question. If it is supposed to be *proposed* as standard package, then `stdx` is good because that is what some people have used in the past (while others used the ugly

Re: Problem running code examples in the Home page

2016-03-03 Thread Meta via Digitalmars-d
On Thursday, 3 March 2016 at 14:19:32 UTC, Meta wrote: On Thursday, 3 March 2016 at 05:24:26 UTC, Mike Parker wrote: Works for me. It took a couple of seconds before the output appeared, but it did appear. I just tried to run the "floating point rounding" example in Chrome. I got a "service

Re: Problem running code examples in the Home page

2016-03-03 Thread Meta via Digitalmars-d
On Thursday, 3 March 2016 at 05:24:26 UTC, Mike Parker wrote: Works for me. It took a couple of seconds before the output appeared, but it did appear. I just tried to run the "floating point rounding" example in Chrome. I got a "service temporarily unavailable" message.

Re: Unable to instantiate template with same name as function

2016-03-03 Thread cym13 via Digitalmars-d-learn
On Thursday, 3 March 2016 at 08:58:25 UTC, Shriramana Sharma wrote: Hello people and thanks for your replies. Jonathan M Davis via Digitalmars-d-learn wrote: You can't overload a function and an eponymous template like that. They need to have distinct names. Why is it not possible for the

Re: GSOC Idea.

2016-03-03 Thread Marco via Digitalmars-d
On Thursday, 3 March 2016 at 09:29:38 UTC, Johannes Pfau wrote: Am Thu, 3 Mar 2016 16:14:24 +1300 schrieb Rikki Cattermole : [...] The arduino Due uses a Cortex M3, so arduino could mean ARM or AVR. GDC can target AVR devices with minimal changes. The main problem

[Issue 15721] free error when calling Mallocator.dispose on interfaces

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

Re: std.xml2 (collecting features)

2016-03-03 Thread Tobias Müller via Digitalmars-d
Adam D. Ruppe wrote: > 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

Re: Error with associative array initializer DMD32 D Compiler v2.070.0

2016-03-03 Thread Andrew Edwards via Digitalmars-d-learn
On 3/3/16 7:01 PM, MGW wrote: immutable long[string] aa = [ "foo": 5, "bar": 10, "baz": 2000 ]; The only way this can be done outside the body of a function is if it is a manifest constant. This works: enum long[string] aa = [ "foo": 5, "bar": 10, "baz": 2000 ];

Release D 2.070.2

2016-03-03 Thread Martin Nowak via Digitalmars-d-announce
Glad to announce D 2.070.2. http://dlang.org/download.html This unplanned point release fixes just a single issue over 2.070.2, see the changelog for more details. http://dlang.org/changelog/2.070.2.html -Martin

Re: Problem running code examples in the Home page

2016-03-03 Thread cym13 via Digitalmars-d
On Thursday, 3 March 2016 at 10:14:43 UTC, Dominikus Dittes Scherkl wrote: On Thursday, 3 March 2016 at 05:24:26 UTC, Mike Parker wrote: 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

Re: Compile time performance for metaprogramming is somewhat inconsistent

2016-03-03 Thread Stefan Koch 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 =

Re: Template mixins and struct constructors

2016-03-03 Thread Adrian Matoga via Digitalmars-d-learn
On Wednesday, 2 March 2016 at 20:39:57 UTC, Adam D. Ruppe wrote: On Wednesday, 2 March 2016 at 12:27:04 UTC, Adrian Matoga wrote: Is it by design or is it a bug? And, if it is by design, what is the reason for that? That's by design. It allows you to override names from a template mixin like

Re: Compile time performance for metaprogramming is somewhat inconsistent

2016-03-03 Thread John Colvin 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 =

Re: Unable to instantiate template with same name as function

2016-03-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, March 03, 2016 14:28:25 Shriramana Sharma via Digitalmars-d-learn wrote: > Hello people and thanks for your replies. > > Jonathan M Davis via Digitalmars-d-learn wrote: > > You can't overload a function and an eponymous template like that. They > > need to have distinct names. > >

Re: Error with associative array initializer DMD32 D Compiler v2.070.0

2016-03-03 Thread mahdi via Digitalmars-d-learn
On Thursday, 3 March 2016 at 10:35:50 UTC, MGW wrote: The citation from https://dlang.org/spec/hash-map.html Static Initialization of AAs immutable long[string] aa = [ "foo": 5, "bar": 10, "baz": 2000 ]; unittest { assert(aa["foo"] == 5);

Re: std.database

2016-03-03 Thread Dejan Lekic 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. I suggest you call the package

  1   2   >