digitalmars.D - Map/Reduce/Filter
- Walter Bright (3/3) Jun 17 2008 We could sure use an article like this for D:
- bearophile (6/9) Jun 18 2008 You know that I have spent many months to write a large group of mostly ...
- Walter Bright (3/24) Jun 18 2008 Writing about it in your blog is important, but writing articles will
- Sean Kelly (6/19) Jun 18 2008 http://www.25hoursaday.com/weblog/2008/06/16/FunctionalProgrammingInC30H...
- bearophile (4/6) Jun 18 2008 You can write articles on a blog too, but the problem is that it's a lot...
- janderson (2/10) Jun 18 2008 Where is your blog?
- Walter Bright (6/8) Jun 19 2008 I tend to regard a "blog" entry as something rather short and
- superdan (2/8) Jun 18 2008 better said 8x slower and quite a bit dumber too. great deal.
- Robert Fraser (12/24) Jun 19 2008 LINQ should actually be possible in D without language integration.
- bearophile (6/7) Jun 19 2008 Feel free to suggest how to make parts of the code more enlightened.
- superdan (3/9) Jun 19 2008 sorting may be faster only with default comparison. also it's the most a...
We could sure use an article like this for D: http://www.25hoursaday.com/weblog/2008/06/16/FunctionalProgrammingInC30HowMapReduceFilterCanRockYourWorld.aspx Anyone game?
Jun 17 2008
Walter Bright:We could sure use an article like this for D: http://www.25hoursaday.com/weblog/2008/06/16/FunctionalProgrammingInC30HowMapReduceFilterCanRockYourWorld.aspx Anyone game?You know that I have spent many months to write a large group of mostly functional-style open source libs for D 1.x (quite more complete and smarter than the stuff in std.algorithm of 2.x, but possibly a bit slower), and on my blog I have discussed many times about this topic, showing usage examples too. So writing another smallish article about such usages seems possible. But that article looks mostly about LINQ, that's much better (mostly because it's more integrated and pervasive in the language and systems usable from it, like the DBMS) than anything I can create with D. So maybe a comparison will not show many advantages compared to that LINQ code... If someone else has some suggestions I'll willing to listen to them. Bye and thank you for the suggestion, bearophile
Jun 18 2008
bearophile wrote:Walter Bright:Writing about it in your blog is important, but writing articles will reach a much wider audience.We could sure use an article like this for D: http://www.25hoursaday.com/weblog/2008/06/16/FunctionalProgrammingInC30HowMapReduceFilterCanRockYourWorld.aspx Anyone game?You know that I have spent many months to write a large group of mostly functional-style open source libs for D 1.x (quite more complete and smarter than the stuff in std.algorithm of 2.x, but possibly a bit slower), and on my blog I have discussed many times about this topic, showing usage examples too.So writing another smallish article about such usages seems possible. But that article looks mostly about LINQ, that's much better (mostly because it's more integrated and pervasive in the language and systems usable from it, like the DBMS) than anything I can create with D. So maybe a comparison will not show many advantages compared to that LINQ code... If someone else has some suggestions I'll willing to listen to them. Bye and thank you for the suggestion, bearophile
Jun 18 2008
== Quote from Walter Bright (newshound1 digitalmars.com)'s articlebearophile wrote:http://www.25hoursaday.com/weblog/2008/06/16/FunctionalProgrammingInC30HowMapReduceFilter CanRockYourWorld.aspxWalter Bright:We could sure use an article like this for D:But the thing you linked is a blog. And the DDJ "articles" are blog entries too. Or am I missing something? SeanWriting about it in your blog is important, but writing articles will reach a much wider audience.Anyone game?You know that I have spent many months to write a large group of mostly functional-style open source libs for D 1.x (quite more complete and smarter than the stuff in std.algorithm of 2.x, but possibly a bit slower), and on my blog I have discussed many times about this topic, showing usage examples too.
Jun 18 2008
Sean Kelly:But the thing you linked is a blog. And the DDJ "articles" are blog entries too. Or am I missing something?You can write articles on a blog too, but the problem is that it's a lot of time I don't write a "real" article on D, and that my blog has just 3 readers ;-) Bye, bearophile
Jun 18 2008
bearophile wrote:Sean Kelly:Where is your blog?But the thing you linked is a blog. And the DDJ "articles" are blog entries too. Or am I missing something?You can write articles on a blog too, but the problem is that it's a lot of time I don't write a "real" article on D, and that my blog has just 3 readers ;-) Bye, bearophile
Jun 18 2008
Sean Kelly wrote:But the thing you linked is a blog. And the DDJ "articles" are blog entries too. Or am I missing something?I tend to regard a "blog" entry as something rather short and superficial, and an "article" as something that's longer and gives a more thorough treatment. Articles can also be placed where the readership is high, blog entries generally cannot be.
Jun 19 2008
bearophile Wrote:Walter Bright:better said 8x slower and quite a bit dumber too. great deal.We could sure use an article like this for D: http://www.25hoursaday.com/weblog/2008/06/16/FunctionalProgrammingInC30HowMapReduceFilterCanRockYourWorld.aspx Anyone game?You know that I have spent many months to write a large group of mostly functional-style open source libs for D 1.x (quite more complete and smarter than the stuff in std.algorithm of 2.x, but possibly a bit slower)
Jun 18 2008
bearophile Wrote:Walter Bright:LINQ should actually be possible in D without language integration. For example, with CTFE/templates this should be possible in D right now: struct Employee { string name; int id; } Employee[] employees; //... auto rows = mixin(query("SELECT name, id FROM employees WHERE id > 5")); foreach(row; rows) writefln("%d - %s", row.id, row.name);We could sure use an article like this for D: http://www.25hoursaday.com/weblog/2008/06/16/FunctionalProgrammingInC30HowMapReduceFilterCanRockYourWorld.aspx Anyone game?You know that I have spent many months to write a large group of mostly functional-style open source libs for D 1.x (quite more complete and smarter than the stuff in std.algorithm of 2.x, but possibly a bit slower), and on my blog I have discussed many times about this topic, showing usage examples too. So writing another smallish article about such usages seems possible. But that article looks mostly about LINQ, that's much better (mostly because it's more integrated and pervasive in the language and systems usable from it, like the DBMS) than anything I can create with D. So maybe a comparison will not show many advantages compared to that LINQ code... If someone else has some suggestions I'll willing to listen to them. Bye and thank you for the suggestion, bearophile
Jun 19 2008
superdan:better said 8x slower and quite a bit dumber too. great deal.Feel free to suggest how to make parts of the code more enlightened. Andrei Alexandrescu has lot of more experience than me in C++-like languages, and this is my first lib in in D. Regarding speed, there are things faster too, like sorting, some string operations, or you can benchmark the levenshtein distance present in the std.algorithm, compared to the version you can find in my libs. Bye, bearophile
Jun 19 2008
bearophile Wrote:superdan:less braggin' goes a long way. you keep on goin' about ur lib as if it is the next avatar of freakin' buddha. also wtf is wrong with u man. did u swear to use only the zip format for the rest of ur life??? to read the doc of ur lib i need to download it then unzip and then freakin' grep the god damn html. wtf! put the damn html on ur website and let google take care of the rest.better said 8x slower and quite a bit dumber too. great deal.Feel free to suggest how to make parts of the code more enlightened. Andrei Alexandrescu has lot of more experience than me in C++-like languages, and this is my first lib in in D.Regarding speed, there are things faster too, like sorting, some string operations, or you can benchmark the levenshtein distance present in the std.algorithm, compared to the version you can find in my libs.sorting may be faster only with default comparison. also it's the most ass-backward sorting api i've ever seen. ur levenshtein may be the fastest in the world but is useless as it doesn't give u the path. thanks for nothin'.
Jun 19 2008