tag:blogger.com,1999:blog-8638474063464489651.post6061575621515082824..comments2024-01-15T11:38:29.051-08:00Comments on Multi-paradigm: Monadic Parsing in C++Splinter of Chaoshttp://www.blogger.com/profile/14715348728512729776noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8638474063464489651.post-18063373626571320282012-11-26T08:24:44.033-08:002012-11-26T08:24:44.033-08:00I see. I'll have to re-read the Monadic IO art...I see. I'll have to re-read the Monadic IO article again. Thanks.moswaldhttps://www.blogger.com/profile/10136919110136673189noreply@blogger.comtag:blogger.com,1999:blog-8638474063464489651.post-61101615994324457872012-11-20T04:26:12.278-08:002012-11-20T04:26:12.278-08:00Thank you.Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8638474063464489651.post-39718981146523387142012-11-20T04:19:06.951-08:002012-11-20T04:19:06.951-08:00I would be honoured. All of my work is public doma...I would be honoured. All of my work is public domain so feel free to use it in whatever way you feel is best.Splinter of Chaoshttps://www.blogger.com/profile/14715348728512729776noreply@blogger.comtag:blogger.com,1999:blog-8638474063464489651.post-47684235612808832902012-11-20T03:57:41.222-08:002012-11-20T03:57:41.222-08:00Can I put your article on my web resource (with a ...Can I put your article on my web resource (with a direct link to your blog)?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8638474063464489651.post-21267037558926660292012-11-20T01:32:40.281-08:002012-11-20T01:32:40.281-08:00Looking back, I guess I never fully explained this...Looking back, I guess I never fully explained this position though it comes up in the Monadic IO article, where I implement it both with and without std::function. Basically, since std::function is a type eraser; the compiler loses all the useful information for optimization. It may resort to a pointer-to-implementation pattern, meaning heap allocation and indirect calls. <br /><br />Still, without it, this would have been extremely challenging to write. (Again, demonstrated in the IO article.)Splinter of Chaoshttps://www.blogger.com/profile/14715348728512729776noreply@blogger.comtag:blogger.com,1999:blog-8638474063464489651.post-35235630519228938702012-11-19T19:19:07.993-08:002012-11-19T19:19:07.993-08:00You said you "have mentioned in previous arti...You said you "have mentioned in previous articles that one should avoid std::function for efficiency reasons", but I can't find that anywhere (on this site or using Google). Can you give a reference? I'd be interested in reading what you wrote.moswaldnoreply@blogger.comtag:blogger.com,1999:blog-8638474063464489651.post-78209315105349168722012-11-19T19:14:28.394-08:002012-11-19T19:14:28.394-08:00This comment has been removed by the author.moswaldhttps://www.blogger.com/profile/10136919110136673189noreply@blogger.com