Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread aldanor via Digitalmars-d
On Friday, 23 January 2015 at 17:19:44 UTC, H. S. Teoh wrote: OTOH, do I hear the cry of a volunteer? ;-) (I'm only half-joking... the thing is, if nobody steps up to write said tutorial, it isn't gonna materialize. The rest of us are already busy enough with whatever it is we're

Re: D on Slashdot

2015-01-23 Thread ketmar via Digitalmars-d
On Fri, 23 Jan 2015 12:50:31 +, Kagamin wrote: On Thursday, 22 January 2015 at 16:13:31 UTC, ketmar wrote: somehow i can't close cmd.exe by hitting ctrl+c. don't console programs know what ctrl+c is for? Well, maybe because it's a shell, not a utility? shell is a console utility.

Cross platform Development

2015-01-23 Thread seany via Digitalmars-d-learn
Hello I read this page, but I still have questions : http://forum.dlang.org/thread/fzbaxwcrbztqedqgm...@forum.dlang.org#post-mailman.1142.1332716016.4860.digitalmars-d:40puremagic.com I also read this :

Re: sortUniq

2015-01-23 Thread zeljkog via Digitalmars-d
On 23.01.15 19:13, Andrei Alexandrescu wrote: On 1/23/15 10:05 AM, zeljkog wrote: On 23.01.15 18:48, H. S. Teoh via Digitalmars-d wrote: I think what he's trying to do is to call a function that returns a delegate, and use that delegate to instantiate the filter template. AFAIK I've never

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 10:29:13AM -0800, H. S. Teoh via Digitalmars-d wrote: On Fri, Jan 23, 2015 at 10:08:30AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: [...] The next step is to define an aggregate() function, which is a lot similar to reduce() but works on ranges of ranges and

Re: Calypso: Direct and full interfacing to C++

2015-01-23 Thread Elie Morisse via Digitalmars-d-announce
On Friday, 23 January 2015 at 12:29:56 UTC, Kelly wrote: Hello Elie, This project looks great, thanks for the hard work. I downloaded Calypso and ldc2 about 6 hours ago to try your project out. I can get Calypso to compile with a couple small changes to assistbuilder.cpp (just adding a

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread aldanor via Digitalmars-d
On Friday, 23 January 2015 at 17:03:17 UTC, aldanor wrote: Since we are the ones who generate the docs, we can totally do this (in a simplest way, bake in the markers into the ddoc and generate a javascript hashmap to trace back to them). I turns out that's exactly how it's done on the rust

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 05:34:28PM +, aldanor via Digitalmars-d wrote: On Friday, 23 January 2015 at 17:19:44 UTC, H. S. Teoh wrote: OTOH, do I hear the cry of a volunteer? ;-) (I'm only half-joking... the thing is, if nobody steps up to write said tutorial, it isn't gonna materialize.

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread aldanor via Digitalmars-d
On Friday, 23 January 2015 at 18:17:30 UTC, H. S. Teoh wrote: Well, to be fair, the reason Ali's book is so detailed is because it's geared towards the newbie programmer who is learning how to program, possibly for the first time. So the pacing isn't really suited for an experienced programmer

dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread aldanor via Digitalmars-d
In continuing the series of rant posts about the website, this one will be about the documentation. This is a big one and no fixing css or pretty menus can amend this. I've recently started learning Rust myself (a few weeks ago) and despite the alpha state of both rustc and rust-lang.org

Re: Compile time iota

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 7:21 AM, Dicebot wrote: So, to put it clear : do you approve merging https://github.com/D-Programming-Language/phobos/pull/2687 in general? (without any details about actual std.meta module layout etc). Assuming that old std.typetuple will be kept deprecated and (eventually) hidden

Re: Calypso: Direct and full interfacing to C++

2015-01-23 Thread Elie Morisse via Digitalmars-d-announce
On Friday, 23 January 2015 at 10:02:55 UTC, Jacob Carlborg wrote: Could this work for Objective-C as well. I'm working on adding support for Objective-C to DMD [1]. [1] https://github.com/D-Programming-Language/dmd/pull/4321 It's planned to add Objective-C to Calypso, although I never used

Re: sortUniq

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 10:05 AM, zeljkog wrote: On 23.01.15 18:48, H. S. Teoh via Digitalmars-d wrote: I think what he's trying to do is to call a function that returns a delegate, and use that delegate to instantiate the filter template. AFAIK I've never seen code like this before, and it looks like the

Re: sortUniq

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 7:04 AM, zeljkog wrote: On 22.01.15 22:40, Andrei Alexandrescu wrote: There's this classic patter on Unix: |sort|uniq, i.e. sort some data and only display the unique elements. Loosely-related, compiling ... auto ret = arr.filter!(myFilter()); ... I got: Error: closures are not

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 9:03 AM, aldanor wrote: [NB] SUGGESTION: initiate work on an Official Guide and keep it up to date with the latest language features. That would be fantastic, and something that might be parallelizable as well. Here's a related thought: I wonder what it would take to put together

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 10:09 AM, aldanor wrote: On Friday, 23 January 2015 at 18:00:13 UTC, Andrei Alexandrescu wrote: On 1/23/15 9:03 AM, aldanor wrote: [NB] SUGGESTION: initiate work on an Official Guide and keep it up to date with the latest language features. That would be fantastic, and something

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Justin Whear via Digitalmars-d
On Fri, 23 Jan 2015 10:08:30 -0800, Andrei Alexandrescu wrote: So H.S. Teoh awesomely took https://github.com/D-Programming-Language/phobos/pull/2878 to completion. We now have a working and fast relational group by facility. This is great news. It seems like every time I make use of

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread Martin Drašar via Digitalmars-d
Dne 23.1.2015 v 19:16 Andrei Alexandrescu via Digitalmars-d napsal(a): Both are nice: http://tour.golang.org/welcome/1 http://rustbyexample.com/ Or something along the lines of https://tryhaskell.org With possible integration with D REPL. smime.p7s Description: Elektronicky podpis S/MIME

Re: Calypso and the future of D

2015-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-23 17:02, Andrei Alexandrescu wrote: We should make the life of plugin writers easy. They do get to decide what other prerequisites their tools have. Are you suggesting to have a general plugin architecture in DMD? That would be very cool, especially if they can be installed as

Re: Speeding up compilation by using jemalloc

2015-01-23 Thread Wyatt via Digitalmars-d
On Thursday, 22 January 2015 at 19:37:11 UTC, weaselcat wrote: Might be of use to someone, but I was looking for ways to speed up dmd's albeit already fast compilation times. Just by dropping in jemalloc in place of glibc's malloc via LD_PRELOAD on my linux machine I saw a 10-15% drop in

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 05:03:15PM +, aldanor via Digitalmars-d wrote: [...] I personally see learning and documentation as two different classes of information. Learning resources might include tutorials, code examples, articles, books, whereas documentation would be a place for more

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread Zach the Mystic via Digitalmars-d
On Friday, 23 January 2015 at 10:31:45 UTC, aldanor wrote: Hi all, I've started redesigning dlang.org AGAIN (yea, I know...). There are several issues with structure and presentation that I think will have to be addressed. While compiling these, I also had several people that know nothing

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 10:08:30AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: So H.S. Teoh awesomely took https://github.com/D-Programming-Language/phobos/pull/2878 to completion. We now have a working and fast relational group by facility. Unfortunately it doesn't work in

Re: sortUniq

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 09:40:42AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/23/15 7:04 AM, zeljkog wrote: On 22.01.15 22:40, Andrei Alexandrescu wrote: There's this classic patter on Unix: |sort|uniq, i.e. sort some data and only display the unique elements.

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread aldanor via Digitalmars-d
On Friday, 23 January 2015 at 17:41:21 UTC, Zach the Mystic wrote: Basically, I suggest consciously addressing these four demographics in designing the site: 1. Experienced programmers, new to D. 2. Beginning programmers. 3. Experienced D users. 4. The community. Publications, social

Re: Speeding up compilation by using jemalloc

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 8:59 AM, Wyatt wrote: On Thursday, 22 January 2015 at 19:37:11 UTC, weaselcat wrote: Might be of use to someone, but I was looking for ways to speed up dmd's albeit already fast compilation times. Just by dropping in jemalloc in place of glibc's malloc via LD_PRELOAD on my linux

Re: Calypso and the future of D

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 8:57 AM, Jacob Carlborg wrote: On 2015-01-23 17:02, Andrei Alexandrescu wrote: We should make the life of plugin writers easy. They do get to decide what other prerequisites their tools have. Are you suggesting to have a general plugin architecture in DMD? It's something worth

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread aldanor via Digitalmars-d
On Friday, 23 January 2015 at 18:00:13 UTC, Andrei Alexandrescu wrote: On 1/23/15 9:03 AM, aldanor wrote: [NB] SUGGESTION: initiate work on an Official Guide and keep it up to date with the latest language features. That would be fantastic, and something that might be parallelizable as

Re: sortUniq

2015-01-23 Thread zeljkog via Digitalmars-d
On 23.01.15 18:48, H. S. Teoh via Digitalmars-d wrote: I think what he's trying to do is to call a function that returns a delegate, and use that delegate to instantiate the filter template. AFAIK I've never seen code like this before, and it looks like the compiler isn't prepared to handle

[WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
So H.S. Teoh awesomely took https://github.com/D-Programming-Language/phobos/pull/2878 to completion. We now have a working and fast relational group by facility. See it at work! #!/usr/bin/rdmd void main() { import std.algorithm, std.stdio; [293, 453, 600, 929, 339, 812, 222,

Re: Calypso: Direct and full interfacing to C++

2015-01-23 Thread Kelly via Digitalmars-d-announce
Hello Elie, Just a little build script until cmake can be used properly: #!/bin/bash set -x clang++ -std=c++11 -c showcase.cpp -o showcase.cpp.o ar rcs libshowcase.a showcase.cpp.o /bin/rm calypso_cache* ldc2 -cpp-args -std=c++11 -Llibshowcase.a -L-lstdc++ showcase.d I remove the the

Re: Calypso and the future of D

2015-01-23 Thread Elie Morisse via Digitalmars-d
On Friday, 23 January 2015 at 00:24:45 UTC, Andrei Alexandrescu wrote: I think it's important that we enable Calypso (https://github.com/Syniurge/Calypso) and related tooling that interfaces D with other languages, notably C++. A key topic in 2015 for D is playing well with C++. A good C++

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 06:30:04PM +, aldanor via Digitalmars-d wrote: On Friday, 23 January 2015 at 18:17:30 UTC, H. S. Teoh wrote: [...] I vote for ddoc / static generation. The site itself is static anyway, using client-side JS to do this seems to be overkill. You need both. What I

Re: This Week in D, issue 2

2015-01-23 Thread Dmitry Olshansky via Digitalmars-d-announce
On 19-Jan-2015 20:05, Adam D. Ruppe wrote: http://arsdnet.net/this-week-in-d/jan-18.html http://www.reddit.com/r/programming/comments/2sy7lg/this_week_in_d_january_18_2015/ For those of you who saw the draft earlier, hit refresh to ensure you aren't seeing a cached version. RSS feed:

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 10:29 AM, H. S. Teoh via Digitalmars-d wrote: On Fri, Jan 23, 2015 at 10:08:30AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: So H.S. Teoh awesomely took https://github.com/D-Programming-Language/phobos/pull/2878 to completion. We now have a working and fast relational group

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 10:34 AM, H. S. Teoh via Digitalmars-d wrote: Of course, it will require a little more polish before merging into Phobos, but the core implementation is nowhere near the complexity of groupBy. open https://github.com/D-Programming-Language/phobos/pulls [F5]... [F5]... [F5]...

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread Chris via Digitalmars-d
On Friday, 23 January 2015 at 13:39:23 UTC, Christof Schardt wrote: aldanor i.s.smir...@gmail.com schrieb im Newsbeitrag news:didzczqdggjchqgtg...@forum.dlang.org... Hi all, I've started redesigning dlang.org AGAIN (yea, I Very sensible considerations. I think your way is the right way to go:

[Issue 13870] [ICE] shared or immutable types can not be mapped to C++ (immutable(char))

2015-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13870 Guillaume Chatelet chatelet.guilla...@gmail.com changed: What|Removed |Added Keywords|C++ |ice --

[Issue 13870] [ICE] shared or immutable types can not be mapped to C++ (immutable(char))

2015-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13870 Guillaume Chatelet chatelet.guilla...@gmail.com changed: What|Removed |Added Keywords|ice |C++

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread aldanor via Digitalmars-d
On Friday, 23 January 2015 at 19:18:34 UTC, Chris wrote: On Friday, 23 January 2015 at 13:39:23 UTC, Christof Schardt wrote: aldanor i.s.smir...@gmail.com schrieb im Newsbeitrag news:didzczqdggjchqgtg...@forum.dlang.org... Hi all, I've started redesigning dlang.org AGAIN (yea, I Very

Re: Speeding up compilation by using jemalloc

2015-01-23 Thread weaselcat via Digitalmars-d
On Friday, 23 January 2015 at 16:59:41 UTC, Wyatt wrote: On Thursday, 22 January 2015 at 19:37:11 UTC, weaselcat wrote: Might be of use to someone, but I was looking for ways to speed up dmd's albeit already fast compilation times. Just by dropping in jemalloc in place of glibc's malloc via

Re: std.experimental.logger formal review round 3

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/6/15 8:51 AM, Robert burner Schadek wrote: recent updates: * Martins CT log function disabling (thanks Martin) * new thread local indirection Logger between free standing log functions and program global Logger * more documentation * some @trusted have been remove (thanks Dicebot) * local

Re: Cross platform Development

2015-01-23 Thread AndyC via Digitalmars-d-learn
On Friday, 23 January 2015 at 17:32:09 UTC, seany wrote: Hello I read this page, but I still have questions : http://forum.dlang.org/thread/fzbaxwcrbztqedqgm...@forum.dlang.org#post-mailman.1142.1332716016.4860.digitalmars-d:40puremagic.com I also read this :

Re: Calypso and the future of D

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 10:27 AM, Elie Morisse wrote: Exception catching is next after the first light of my Ogre3D demo, Clang will probably simplify handling of C++ exceptions a lot. On that front, a coworker gave me a simple idea for integration. 1. All C++ non-polymorphic types thrown cannot be caught

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 10:47:28AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/23/15 10:34 AM, H. S. Teoh via Digitalmars-d wrote: Of course, it will require a little more polish before merging into Phobos, but the core implementation is nowhere near the complexity of groupBy.

[Issue 13337] Invalid extern C++ namespace resolution

2015-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13337 Guillaume Chatelet chatelet.guilla...@gmail.com changed: What|Removed |Added Keywords||C++ --

[Issue 13867] Overriding a method from an extern(C++) interface requires extern(C++) on the method definition

2015-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13867 Guillaume Chatelet chatelet.guilla...@gmail.com changed: What|Removed |Added Keywords||C++

Re: I'll be presenting at NWCPP on Jan 21 at Microsoft

2015-01-23 Thread MattCoder via Digitalmars-d-announce
On Friday, 23 January 2015 at 05:54:41 UTC, Walter Bright wrote: On 1/22/2015 12:52 PM, Gary Willoughby wrote: Me too, is there any video available? https://www.youtube.com/watch?v=IkwaV6k6BmM I can't bear to watch it, you'll have to do it for me! My right ear can't hear too! :) Matheus.

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Ary Borenszweig via Digitalmars-d
On 1/23/15 3:08 PM, Andrei Alexandrescu wrote: So H.S. Teoh awesomely took https://github.com/D-Programming-Language/phobos/pull/2878 to completion. We now have a working and fast relational group by facility. See it at work! #!/usr/bin/rdmd void main() { import std.algorithm,

Re: Calypso and the future of D

2015-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-23 19:43, Andrei Alexandrescu wrote: On that front, a coworker gave me a simple idea for integration. 1. All C++ non-polymorphic types thrown cannot be caught in D 2. We (or Calypso) define D class counterparts for polymorphic types thrown from C++, notably std::exception and

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Nordlöw
On Friday, 23 January 2015 at 18:47:29 UTC, Andrei Alexandrescu wrote: open https://github.com/D-Programming-Language/phobos/pulls [F5]... [F5]... [F5]... Andrei Haha, that's funny!

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 12:38 PM, bearophile wrote: Ary Borenszweig: In most languages group by yields a tuple of {group key, group values}. I'm saying this since some years... (and those languages probably don't use sorting to perform the aggregation). At some point in the coming years the pain is

Re: forcing @nogc on class destructors

2015-01-23 Thread deadalnix via Digitalmars-d
On Friday, 23 January 2015 at 13:12:44 UTC, Steven Schveighoffer wrote: On 1/23/15 8:05 AM, Matthias Bentrup wrote: On Friday, 23 January 2015 at 10:53:54 UTC, aldanor wrote: On Friday, 23 January 2015 at 08:58:11 UTC, Ola Fosheim Grøstad wrote: How about banning GC-allocation of classes with

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread via Digitalmars-d
On Friday, 23 January 2015 at 20:19:31 UTC, Ary Borenszweig wrote: On 1/23/15 3:08 PM, Andrei Alexandrescu wrote: So H.S. Teoh awesomely took https://github.com/D-Programming-Language/phobos/pull/2878 to completion. We now have a working and fast relational group by facility. See it at work!

Re: Calypso: Direct and full interfacing to C++

2015-01-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-01-23 18:56, Elie Morisse wrote: It's planned to add Objective-C to Calypso, although I never used it and know little about it. Would you be interested in implementing support for its different flavors in Calypso, Jacob? You'd be welcome to the team :-) For the time being I think I

DLang Silicon Valley First Meetup

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d-announce
Hi folks, Yesterday's first DLang/Silicon Valley Meetup was really nice. We've had three talks (even I talked in spite of having a really hoarse voice following a cold) and we've made a number of important plans and decisions going forward. Vic Cekvenich, the initiator of the meetup, was

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 12:19 PM, Ary Borenszweig wrote: In most languages group by yields a tuple of {group key, group values}. Interesting, thanks. Looks like we're at a net loss of information with our current approach. @quickfur, do you think you could expose a tuple with key and values? The former

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread bearophile via Digitalmars-d
Ary Borenszweig: In most languages group by yields a tuple of {group key, group values}. I'm saying this since some years... (and those languages probably don't use sorting to perform the aggregation). Bye, bearophile

Re: forcing @nogc on class destructors

2015-01-23 Thread Steven Schveighoffer via Digitalmars-d
On 1/23/15 3:40 PM, deadalnix wrote: On Friday, 23 January 2015 at 13:12:44 UTC, Steven Schveighoffer wrote: On 1/23/15 8:05 AM, Matthias Bentrup wrote: On Friday, 23 January 2015 at 10:53:54 UTC, aldanor wrote: On Friday, 23 January 2015 at 08:58:11 UTC, Ola Fosheim Grøstad wrote: How about

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 12:40:01PM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/23/15 12:38 PM, bearophile wrote: Ary Borenszweig: In most languages group by yields a tuple of {group key, group values}. I'm saying this since some years... (and those languages probably don't

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 09:20:10PM +, Zach the Mystic via Digitalmars-d wrote: [...] I have a basic suggestion on how to get started. Create a Learning D button and put it on the menu at left on the front page. On the page it links to, start by researching and listing every existing

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 09:56:11PM +, MattCoder via Digitalmars-d wrote: On Friday, 23 January 2015 at 18:08:30 UTC, Andrei Alexandrescu wrote: So H.S. Teoh awesomely took https://github.com/D-Programming-Language/phobos/pull/2878 to completion. We now have a working and fast relational

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread H. S. Teoh via Digitalmars-d
On Fri, Jan 23, 2015 at 08:44:05PM +, via Digitalmars-d wrote: [...] You are talking about two different functions here. group by and partition by. The function that has been implemented is often called partition by. [...] It's not too late to rename it, since we haven't released it yet.

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread MattCoder via Digitalmars-d
On Friday, 23 January 2015 at 18:08:30 UTC, Andrei Alexandrescu wrote: So H.S. Teoh awesomely took https://github.com/D-Programming-Language/phobos/pull/2878 to completion. We now have a working and fast relational group by facility. See it at work! #!/usr/bin/rdmd void main() {

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread Orvid King via Digitalmars-d
On Friday, 23 January 2015 at 19:20:11 UTC, aldanor wrote: On Friday, 23 January 2015 at 19:18:34 UTC, Chris wrote: On Friday, 23 January 2015 at 13:39:23 UTC, Christof Schardt wrote: aldanor i.s.smir...@gmail.com schrieb im Newsbeitrag news:didzczqdggjchqgtg...@forum.dlang.org... Hi all,

Re: What to do with InvalidMemoryOperationError

2015-01-23 Thread anonymous via Digitalmars-d-learn
On Friday, 23 January 2015 at 21:25:01 UTC, Nordlöw wrote: On Friday, 23 January 2015 at 10:13:43 UTC, Joakim wrote: InvalidMemoryOperationError generally means that you are performing certain disallowed memory operations during a full garbage collection, such as allocating while the gc is

Re: Calypso: Direct and full interfacing to C++

2015-01-23 Thread Kelly via Digitalmars-d-announce
Hello Elie, The small patch for defining size_t works here. Thanks. I just wanted to let people know that showcase.d should build fine (one deprecation warning, but not a big deal). People might still need the small quick fixes for gen/cpp/assistbuilder.cpp, but just adding clang:: in a

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread Zach the Mystic via Digitalmars-d
On Friday, 23 January 2015 at 17:03:17 UTC, aldanor wrote: 1) D Learning This is the most problematic part. It's not even obvious where to start. Say I just landed on dlang.org via a google search and I want to find a quick user guide. I click D Reference (that seems the closest one to

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 1:34 PM, H. S. Teoh via Digitalmars-d wrote: On Fri, Jan 23, 2015 at 12:40:01PM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/23/15 12:38 PM, bearophile wrote: Ary Borenszweig: In most languages group by yields a tuple of {group key, group values}. I'm saying this

Re: What to do with InvalidMemoryOperationError

2015-01-23 Thread Nordlöw
On Friday, 23 January 2015 at 10:13:43 UTC, Joakim wrote: InvalidMemoryOperationError generally means that you are performing certain disallowed memory operations during a full garbage collection, such as allocating while the gc is running. If my app is single-threaded this cannot happen

[Issue 14035] New: string concatenation accepts ints in templates

2015-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 Issue ID: 14035 Summary: string concatenation accepts ints in templates Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread bearophile via Digitalmars-d
H. S. Teoh: What you describe could be an interesting candidate to add, though. It could iterate over distinct values of the predicate, and traverse the forward range (input ranges obviously can't work unless you allocate, which makes it no longer lazy) each time. This, however, has O(n*k)

Re: forcing @nogc on class destructors

2015-01-23 Thread Matthias Bentrup via Digitalmars-d
On Friday, 23 January 2015 at 21:00:08 UTC, Steven Schveighoffer wrote: On 1/23/15 3:40 PM, deadalnix wrote: On Friday, 23 January 2015 at 13:12:44 UTC, Steven Schveighoffer wrote: On 1/23/15 8:05 AM, Matthias Bentrup wrote: On Friday, 23 January 2015 at 10:53:54 UTC, aldanor wrote: On

Re: What D related (or interesting development based) twitter accounts do you guys follow?

2015-01-23 Thread eles via Digitalmars-d-learn
On Sunday, 28 July 2013 at 16:57:54 UTC, Gary Willoughby wrote: What D related (or interesting development based) twitter accounts do you guys follow? I'm pretty new to twitter and trying to follow accounts that i find interesting. Just remembered when reading this:

Re: Calypso and the future of D

2015-01-23 Thread Abdulhaq via Digitalmars-d
On Friday, 23 January 2015 at 11:26:07 UTC, Walter Bright wrote: On 1/23/2015 3:22 AM, Abdulhaq wrote: On Friday, 23 January 2015 at 10:53:47 UTC, Walter Bright wrote: Yes, it's tied to clang++. It may not even work on all the platforms we support. But that's no matter for now. When you say

Re: D on Slashdot

2015-01-23 Thread Kagamin via Digitalmars-d
On Thursday, 22 January 2015 at 16:13:31 UTC, ketmar wrote: somehow i can't close cmd.exe by hitting ctrl+c. don't console programs know what ctrl+c is for? Well, maybe because it's a shell, not a utility? shell is a console utility. Hmm... shell is a user interface providing access to

Re: for ranges

2015-01-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/23/15 4:44 AM, ixid wrote: On Thursday, 22 January 2015 at 16:41:49 UTC, Russel Winder wrote: Playing with factorial implementations, as you do. I had a D implementation using ulong. Not sensible obviously since overflow is a bit of a problem. But the code worked, as did the tests. Now

Re: why spawn crash?

2015-01-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/22/15 10:20 PM, mzf wrote: i wrote a test code: void worker(int firstNumber) { Thread.sleep(1.msecs); } void main() { foreach (i; 1 .. 1000) { spawn(worker, i ); writeln(i); } thread_joinAll(); writeln(ok); } sometimes it's ok,sometimes

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread aldanor via Digitalmars-d
On Friday, 23 January 2015 at 12:47:36 UTC, Jacob Carlborg wrote: Top-level-link: CHANGELOG It's updated when there's a new release. Not always -- e.g. there's several notes on 2.067 there already. I always thought that updating the changelog right after you fix something is easier than

Re: Calypso and the future of D

2015-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-23 11:52, Walter Bright wrote: Yes, it's tied to clang++. It may not even work on all the platforms we support. But that's no matter for now. At least Clang supports all platforms we support. -- /Jacob Carlborg

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread Mengu via Digitalmars-d
On Friday, 23 January 2015 at 10:31:45 UTC, aldanor wrote: Hi all, I've started redesigning dlang.org AGAIN (yea, I know...). The front page is mostly done aside from a several responsiveness and platform quirks, I will have the full landing page + a random sample page from the docs this

[Issue 14028] [CTFE] Possible reinterpret cast to a pointer to static array

2015-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14028 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/473cef885b499c5620f6dfd93a0a56771d0dd3bc fix Issue 14028 - [CTFE]

[Issue 14028] [CTFE] Possible reinterpret cast to a pointer to static array

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

dlang.org redesign -- a better code sample for landing page

2015-01-23 Thread aldanor via Digitalmars-d
Does anyone find the example on the landing page particularly exciting? (aside from it using an rdmd shebang) Anything that makes you, as a programmer, think -- huh, that's interesting, I'll need to check that out. It would be nice if it showcases more of D's strong parts, e.g. type

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread Christof Schardt via Digitalmars-d
aldanor i.s.smir...@gmail.com schrieb im Newsbeitrag news:didzczqdggjchqgtg...@forum.dlang.org... Hi all, I've started redesigning dlang.org AGAIN (yea, I Very sensible considerations. I think your way is the right way to go: first think about structure, then presentation and finally style.

Re: dlang.org redesign -- a better code sample for landing page

2015-01-23 Thread aldanor via Digitalmars-d
On Friday, 23 January 2015 at 13:34:36 UTC, aldanor wrote: Does anyone find the example on the landing page particularly exciting? (aside from it using an rdmd shebang) Anything that makes you, as a programmer, think -- huh, that's interesting, I'll need to check that out. It would be nice

[Issue 12406] Broken delegate closure

2015-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12406 --- Comment #1 from Infiltrator lt.infiltra...@gmail.com --- Bug still exists in 2.065. --

[Issue 12209] Unable to take address of function nested function

2015-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12209 --- Comment #1 from Infiltrator lt.infiltra...@gmail.com --- Bug still exists with 2.065. --

Re: I'll be presenting at NWCPP on Jan 21 at Microsoft

2015-01-23 Thread deadalnix via Digitalmars-d-announce
On Friday, 23 January 2015 at 05:54:41 UTC, Walter Bright wrote: On 1/22/2015 12:52 PM, Gary Willoughby wrote: Me too, is there any video available? https://www.youtube.com/watch?v=IkwaV6k6BmM I can't bear to watch it, you'll have to do it for me! Mandatory reddit link:

Re: forcing @nogc on class destructors

2015-01-23 Thread via Digitalmars-d
On Friday, 23 January 2015 at 06:16:21 UTC, Jakob Ovrum wrote: Classes don't have to be designed to be allocated on the GC heap. Class instances can be allocated on the stack, the C heap, or anywhere else. …and this is a badly typed design if you don't embed ownership in reference types.

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread Laeeth Isharc via Digitalmars-d
Hi all, I've started redesigning dlang.org AGAIN (yea, I know...). Appreciate the work you and others are doing on this. Web pages are so fiddly but so important for controlling the image one presents to the world. I don't have so much to say about the general case, as it is not my field.

Re: [WORK] groupBy is in! Next: aggregate

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 1:36 PM, H. S. Teoh via Digitalmars-d wrote: On Fri, Jan 23, 2015 at 08:44:05PM +, via Digitalmars-d wrote: [...] You are talking about two different functions here. group by and partition by. The function that has been implemented is often called partition by. [...] It's not

Re: forcing @nogc on class destructors

2015-01-23 Thread Paolo Invernizzi via Digitalmars-d
On Friday, 23 January 2015 at 21:00:08 UTC, Steven Schveighoffer wrote: On 1/23/15 3:40 PM, deadalnix wrote: On Friday, 23 January 2015 at 13:12:44 UTC, Steven Schveighoffer wrote: On 1/23/15 8:05 AM, Matthias Bentrup wrote: On Friday, 23 January 2015 at 10:53:54 UTC, aldanor wrote: On

Re: Calypso: Direct and full interfacing to C++

2015-01-23 Thread Elie Morisse via Digitalmars-d-announce
Nevermind it's just that CodeGen is ambiguous with clang::CodeGen although my compiler doesn't complain. Fixed.

dlang.org redesign n+2 (the one with the bold red vertical menu)

2015-01-23 Thread anonymous via Digitalmars-d
Inspired by the recent developments, and Sebastiaan Koppe's version [1] specifically, I gave it a go, too: http://ag0aep6g-dlang.rhcloud.com/ It's not as radical as other approaches. I didn't start from scratch, but tried to improve on what's there. Almost everything stayed in its place. The

proper groupBy

2015-01-23 Thread Laeeth Isharc via Digitalmars-d
On Friday, 23 January 2015 at 20:28:32 UTC, Andrei Alexandrescu wrote: On 1/23/15 12:19 PM, Ary Borenszweig wrote: In most languages group by yields a tuple of {group key, group values}. Interesting, thanks. Looks like we're at a net loss of information with our current approach.

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 1/23/15 9:03 AM, aldanor wrote: In continuing the series of rant posts about the website, this one will be about the documentation. This is a big one and no fixing css or pretty menus can amend this. [snip] These insights are solid, sorry for not explicitly stating my position earlier.

Re: dlang.org redesign n+2 (the one with the bold red vertical menu)

2015-01-23 Thread MattCoder via Digitalmars-d
On Saturday, 24 January 2015 at 02:43:47 UTC, anonymous wrote: Inspired by the recent developments, and Sebastiaan Koppe's version [1] specifically, I gave it a go, too: http://ag0aep6g-dlang.rhcloud.com/ Interesting, and just for fun I changed the CSS a bit: http://i.imgur.com/ijLxXe2.png

Re: Calypso: Direct and full interfacing to C++

2015-01-23 Thread Elie Morisse via Digitalmars-d-announce
On Friday, 23 January 2015 at 23:06:16 UTC, Kelly wrote: People might still need the small quick fixes for gen/cpp/assistbuilder.cpp, but just adding clang:: in a couple spots shouldn't be too arduous for anybody if they really want to compile and play with Calypso. Weird, assistbuilder.cpp

[Issue 14033] runtime error about auto ptr = cast(T*)buf , T is class type

2015-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14033 --- Comment #3 from mzfh...@foxmail.com --- i see,class and struct,their memory model is different,thanks. struct stTest { int a; int b; void foo(){} } class clsTest { int a; int b; void foo(){} } void main() { int

  1   2   >