Re: Google Summer of Code - Again

2015-02-14 Thread Craig Dillabaugh via Digitalmars-d
On Saturday, 14 February 2015 at 06:56:00 UTC, Russel Winder wrote: Craig, I have signed up on Melange as a potential mentor, user name russel_winder. Thank you.

Re: math libraries

2015-02-14 Thread Luc Bourhis via Digitalmars-d
Thank you very much Ilya for this comprehensive and clear answer.

Re: Your 02.14

2015-02-14 Thread ketmar via Digitalmars-d
On Sun, 15 Feb 2015 01:06:36 +0100, FG wrote: > On 2015-02-14 at 21:41, ketmar wrote: >> i made a present for myself (as i really really love myself very much): >> a minimalistic LISP interpreter (yeah, i need a *small* scripting >> language, >> and memory/speed doesn't matter in this case, only s

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
On 2/14/15 5:19 AM, Sönke Ludwig wrote: Am 14.02.2015 um 09:46 schrieb Andrei Alexandrescu: Per the screenshot at http://i.imgur.com/6lY57L6.png, the entire /library/ and /library-prerelease/ part of the website is not rendering properly at least in Chrome and Firefox on OSX. Folks, there needs

Re: Your 02.14

2015-02-14 Thread FG via Digitalmars-d
On 2015-02-14 at 21:41, ketmar wrote: i made a present for myself (as i really really love myself very much): a minimalistic LISP interpreter (yeah, i need a *small* scripting language, and memory/speed doesn't matter in this case, only source code size). and i titled it MILF. MILF as in Minima

Re: Any ddox experts n da house?

2015-02-14 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 14 February 2015 at 23:38:38 UTC, Vladimir Panteleev wrote: On Saturday, 14 February 2015 at 23:06:20 UTC, Mathias Lang wrote: We'll get the best of both world, keeping the possibility to output any target out of the specs, but writting website-specific part in a proper framework.

Re: Any ddox experts n da house?

2015-02-14 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 14 February 2015 at 23:06:20 UTC, Mathias Lang wrote: We'll get the best of both world, keeping the possibility to output any target out of the specs, but writting website-specific part in a proper framework. And the advantages of this are..? Sorry, but I don't think this is goi

Re: [WORK] startsWith

2015-02-14 Thread via Digitalmars-d
On Saturday, 14 February 2015 at 17:52:09 UTC, Andrei Alexandrescu wrote: I just submitted an optimization for skipOver for strings: https://github.com/D-Programming-Language/phobos/pull/2986. I noticed startsWith should be similarly optimized. If anyone would want to work on that, it would be

Re: Any ddox experts n da house?

2015-02-14 Thread Mathias Lang via Digitalmars-d
2015-02-14 10:46 GMT+01:00 Vladimir Panteleev via Digitalmars-d < digitalmars-d@puremagic.com>: > On Saturday, 14 February 2015 at 09:17:57 UTC, Andrei Alexandrescu wrote: > >> Counting on your help! >> > > Here are some things that would help: > > 1. Most urgently, update the .dt template to matc

druntime debug build

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
Blast from the past: found https://issues.dlang.org/show_bug.cgi?id=6309 while entering a very related enhancement request. For now I assigned it to Martin as he's our release czar and by extension also the build issues ombudsman. But I'm sure he wouldn't mind if someone took this! Andrei

URGENT: the autotester does not test in debug mode

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
We've been having issues with Phobos unittests failing in debug mode for the simple reason the autotester was silently not testing the debug mode (which is kind of subtly ironic). Please review and pull: https://github.com/D-Programming-Language/druntime/pull/1171 https://github.com/D-Program

Re: H1 2015 - C++ integration

2015-02-14 Thread Guillaume Chatelet via Digitalmars-d
On Saturday, 14 February 2015 at 19:54:53 UTC, Daniel Murphy wrote: - name mangling on linux (bug reported in my first message) Is this in bugzilla? I just created it https://issues.dlang.org/show_bug.cgi?id=14178

Re: Your 02.14

2015-02-14 Thread ketmar via Digitalmars-d
i made a present for myself (as i really really love myself very much): a minimalistic LISP interpreter (yeah, i need a *small* scripting language, and memory/speed doesn't matter in this case, only source code size). and i titled it MILF. signature.asc Description: PGP signature

Re: H1 2015 - C++ integration

2015-02-14 Thread Daniel Murphy via Digitalmars-d
"Guillaume Chatelet" wrote in message news:fzxoskcrswitmsdsz...@forum.dlang.org... I did a few tests. Using a class doesn't work because of the added vptr. This is a bug, D currently adds a vptr even if there are no members. It's just one that doesn't happen to affect ddmd so I never got a

Re: groupBy/chunkBy redux

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
On 2/13/15 3:45 PM, Peter Alexander wrote: On Friday, 13 February 2015 at 18:32:35 UTC, Andrei Alexandrescu wrote: * Perhaps rename groupBy to chunkBy. People coming from SQL and other languages might expect groupBy to do hash-based grouping. Agreed. * The unary function implementation must

Re: Template constraints

2015-02-14 Thread Xinok via Digitalmars-d
On Saturday, 14 February 2015 at 17:00:33 UTC, Andrei Alexandrescu wrote: There's been recurring discussion about failing constraints not generating nice error messages. void fun(T)(T x) if (complicated_condition) { ... } struct Type(T)(T x) if (complicated_condition) { ... } If complicated_co

Re: H1 2015 - C++ integration

2015-02-14 Thread Guillaume Chatelet via Digitalmars-d
On Saturday, 14 February 2015 at 18:04:50 UTC, Andrei Alexandrescu wrote: On 2/13/15 4:23 AM, Guillaume Chatelet wrote: * In the video Walter posted recently (3), he states that one should use a class to represent a std::string or std::vector in D because most of the time we want to have refere

Re: Template constraints

2015-02-14 Thread via Digitalmars-d
On Saturday, 14 February 2015 at 17:00:33 UTC, Andrei Alexandrescu wrote: ... This should improve error messages for types (only). The rationale is that it's okay for types to refuse compilation because types, unlike functions, don't overload. There was talk about enabling IFTI for constructo

Re: H1 2015 - C++ integration

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
On 2/13/15 4:23 AM, Guillaume Chatelet wrote: * In the video Walter posted recently (3), he states that one should use a class to represent a std::string or std::vector in D because most of the time we want to have reference semantic. I find this a bit counter intuitive for people coming from C++

[WORK] startsWith

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
I just submitted an optimization for skipOver for strings: https://github.com/D-Programming-Language/phobos/pull/2986. I noticed startsWith should be similarly optimized. If anyone would want to work on that, it would be great. Thanks, Andrei

Re: Template constraints

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
On 2/14/15 9:06 AM, Tobias Pankrath wrote: I agree, but also for function should conditions that do not effect overloading go into static asserts. For example if I were to write an algorithm that works with forward ranges and can be optimized for random access ranges but needs assignable element

Re: H1 2015 - C++ integration

2015-02-14 Thread Paolo Invernizzi via Digitalmars-d
On Saturday, 14 February 2015 at 17:24:51 UTC, Guillaume Chatelet wrote: I did a few tests. Using a class doesn't work because of the added vptr. The data would be managed at the same time on the D and the C++ side. Structs work however because we can add something like this : struct std_stri

Re: H1 2015 - C++ integration

2015-02-14 Thread Guillaume Chatelet via Digitalmars-d
I did a few tests. Using a class doesn't work because of the added vptr. The data would be managed at the same time on the D and the C++ side. Structs work however because we can add something like this : struct std_string { void[8] _ = void; // to match sizeof(std::string) and pad the obje

Re: Your 02.14

2015-02-14 Thread Mengu via Digitalmars-d
On Saturday, 14 February 2015 at 14:39:34 UTC, FrankLike wrote: 2015-2-14,I build a small program for wife: module for214; import std.stdio; import std.random; extern(C) int setlocale(int, char*); static this() { import core.stdc.wchar_; fwide(core.stdc.stdio.stdout, 1); setloca

Re: Author of rust book explores Nim

2015-02-14 Thread Laeeth Isharc via Digitalmars-d
Clarification - author of the project unix in rust, not a book. He is a beginner in both rust and Nim. On Saturday, 14 February 2015 at 17:12:00 UTC, Laeeth Isharc wrote: Via HN https://github.com/andreaferretti/on-rust-and-nim The original email I hope you don't mind if I contact you direc

Author of rust book explores Nim

2015-02-14 Thread Laeeth Isharc via Digitalmars-d
Via HN https://github.com/andreaferretti/on-rust-and-nim The original email I hope you don't mind if I contact you directly, and ignore if you're offended, but I saw your post on the parasail email list and looked at your KMeans benchmark. In particular, I was interested in your statement th

Re: Template constraints

2015-02-14 Thread Tobias Pankrath via Digitalmars-d
On Saturday, 14 February 2015 at 17:00:33 UTC, Andrei Alexandrescu wrote: There's been recurring discussion about failing constraints not generating nice error messages. void fun(T)(T x) if (complicated_condition) { ... } struct Type(T)(T x) if (complicated_condition) { ... } If complicated_co

Template constraints

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
There's been recurring discussion about failing constraints not generating nice error messages. void fun(T)(T x) if (complicated_condition) { ... } struct Type(T)(T x) if (complicated_condition) { ... } If complicated_condition is not met, the symbol simply disappears and the compiler error me

Re: H1 2015 - C++ integration

2015-02-14 Thread Guillaume Chatelet via Digitalmars-d
On Friday, 13 February 2015 at 18:47:53 UTC, Daniel Murphy wrote: "Guillaume Chatelet" wrote in message news:gvnxmwplwkyfrydwr...@forum.dlang.org... I'm not sure I get your point. In C++ classes without vtables are exactly like structs. Also I don't see any difference between a struct or a c

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-02-14 10:04, Rikki Cattermole wrote: It might be wise to start setting up some form or web site testing. Like PhantomJS[0]. PhantomJS will only cover the WebKit engine. I guess it's better than nothing. For other browser engines there's a service called Saucelabs [1] that supports a

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-02-14 10:48, Vladimir Panteleev wrote: Can you write a PhantomJS test that checks whether a web page "looks broken"? No, the only thing one can do is take screenshots and look at them manually or compare them with a previous state if similar. -- /Jacob Carlborg

Your 02.14

2015-02-14 Thread FrankLike via Digitalmars-d
2015-2-14,I build a small program for wife: module for214; import std.stdio; import std.random; extern(C) int setlocale(int, char*); static this() { import core.stdc.wchar_; fwide(core.stdc.stdio.stdout, 1); setlocale(0, cast(char*)"china"); } void main() { int i; while

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Sönke Ludwig via Digitalmars-d
Am 14.02.2015 um 09:46 schrieb Andrei Alexandrescu: Per the screenshot at http://i.imgur.com/6lY57L6.png, the entire /library/ and /library-prerelease/ part of the website is not rendering properly at least in Chrome and Firefox on OSX. Folks, there needs to be some visual testing with each pull

Re: Issue with rendering dlang.org/library

2015-02-14 Thread John Colvin via Digitalmars-d
On Saturday, 14 February 2015 at 11:08:18 UTC, Vladimir Panteleev wrote: On Saturday, 14 February 2015 at 10:46:07 UTC, John Colvin wrote: On Saturday, 14 February 2015 at 08:46:58 UTC, Andrei Alexandrescu wrote: Per the screenshot at http://i.imgur.com/6lY57L6.png, the entire /library/ and /li

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 14 February 2015 at 10:46:07 UTC, John Colvin wrote: On Saturday, 14 February 2015 at 08:46:58 UTC, Andrei Alexandrescu wrote: Per the screenshot at http://i.imgur.com/6lY57L6.png, the entire /library/ and /library-prerelease/ part of the website is not rendering properly at least

Re: Issue with rendering dlang.org/library

2015-02-14 Thread John Colvin via Digitalmars-d
On Saturday, 14 February 2015 at 08:46:58 UTC, Andrei Alexandrescu wrote: Per the screenshot at http://i.imgur.com/6lY57L6.png, the entire /library/ and /library-prerelease/ part of the website is not rendering properly at least in Chrome and Firefox on OSX. All looks fine to me on up-to-date

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 14 February 2015 at 09:04:55 UTC, Rikki Cattermole wrote: I don't know how doable, but set it up to so it would auto submit the images to the github PR would be awesome. That would be nice. Currently people have to do this by hand. This doesn't even need to have screenshots or use

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 14 February 2015 at 10:08:16 UTC, Rikki Cattermole wrote: Anyone with DOM + javascript experience could. But it would be more of a set of unit tests then anything else. No, you have missed my point. without an AI, it is impossible to write a general test to check that the webpage

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Rikki Cattermole via Digitalmars-d
On 14/02/2015 10:48 p.m., Vladimir Panteleev wrote: On Saturday, 14 February 2015 at 09:04:55 UTC, Rikki Cattermole wrote: It might be wise to start setting up some form or web site testing. Like PhantomJS[0]. Can you write a PhantomJS test that checks whether a web page "looks broken"? Any

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 14 February 2015 at 09:04:55 UTC, Rikki Cattermole wrote: It might be wise to start setting up some form or web site testing. Like PhantomJS[0]. Can you write a PhantomJS test that checks whether a web page "looks broken"?

Re: Any ddox experts n da house?

2015-02-14 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 14 February 2015 at 09:17:57 UTC, Andrei Alexandrescu wrote: Counting on your help! Here are some things that would help: 1. Most urgently, update the .dt template to match the current Dlang.org style. 2. Ideally, the .dt templates need to be removed, and DDox made to use the

Any ddox experts n da house?

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
Hello, I'm chatting with Vladimir on IRC and we reached the conclusion that neither of us has the expertise to maintain the ddox-based build, nor the bandwidth to get into it. Is there someone who can help us with improving our ddox-based Phobos documentation build? There are several issues

Re: Issue with rendering dlang.org/library

2015-02-14 Thread Rikki Cattermole via Digitalmars-d
On 14/02/2015 9:46 p.m., Andrei Alexandrescu wrote: Per the screenshot at http://i.imgur.com/6lY57L6.png, the entire /library/ and /library-prerelease/ part of the website is not rendering properly at least in Chrome and Firefox on OSX. Folks, there needs to be some visual testing with each pull

Issue with rendering dlang.org/library

2015-02-14 Thread Andrei Alexandrescu via Digitalmars-d
Per the screenshot at http://i.imgur.com/6lY57L6.png, the entire /library/ and /library-prerelease/ part of the website is not rendering properly at least in Chrome and Firefox on OSX. Folks, there needs to be some visual testing with each pull request. This is one of the places where automate