polytypic programming

1 view
Skip to first unread message

liuxinyu

unread,
Jun 22, 2008, 9:02:00 AM6/22/08
to TopLanguage
普及一下,没有什么新概念。
这个说法是在看yaht时注意到的。polytypic是一个生物学名词,其实就是generic programming。这个词在Haskell世
界已经存在了很久了。所谓program for any type/class后者Wirte everything once.

题外话,上个C++标准是98年,上个Haskell标准也是98年。一晃10年都过去了。

Albert Lee

unread,
Jun 22, 2008, 9:19:56 AM6/22/08
to pon...@googlegroups.com
2008/6/22 liuxinyu <liuxi...@gmail.com>:

Haskell 里面用类型变量来表示泛型函数

tim he

unread,
Jun 22, 2008, 9:25:23 AM6/22/08
to pon...@googlegroups.com
还是没普及到啊

2008/6/22 Albert Lee <hanzh...@gmail.com>:

Albert Lee

unread,
Jun 22, 2008, 9:43:55 AM6/22/08
to pon...@googlegroups.com
2008/6/22 tim he <tim...@gmail.com>:

用 haskell 的举手

Gavinen Liu

unread,
Jun 22, 2008, 9:46:02 AM6/22/08
to pon...@googlegroups.com
学过很少haskell,现在都忘了.

-------
Gavinen Liu
Homepage: www.mydecn.de
IM: gav...@gmail.com
#end


--------------------------------------------------
From: "liuxinyu" <liuxi...@gmail.com>
Sent: Sunday, June 22, 2008 3:02 PM
To: "TopLanguage" <pon...@googlegroups.com>
Subject: [TopLanguage] polytypic programming

mingli yuan

unread,
Jun 22, 2008, 10:12:16 AM6/22/08
to pon...@googlegroups.com
最近在尝试用Haskell写一个真正实用的parser,也稍微试了试Antlr,还是觉得函数式语言清晰。

2008/6/22 Gavinen Liu <gav...@gmail.com>:

Gavinen Liu

unread,
Jun 22, 2008, 10:16:28 AM6/22/08
to pon...@googlegroups.com
是呀,就是为数学的语言.

-------
Gavinen Liu
Homepage: www.mydecn.de
IM: gav...@gmail.com
#end

Wei Hu

unread,
Jun 22, 2008, 1:39:02 PM6/22/08
to TopLanguage
用Haskell做codejam的练习题吧。

On Jun 22, 9:43 am, "Albert Lee" <hanzhup...@gmail.com> wrote:
> 2008/6/22 tim he <tim...@gmail.com>:
>
>
>
>
>
> > 还是没普及到啊
>
> > 2008/6/22 Albert Lee <hanzhup...@gmail.com>:
>
> >> 2008/6/22 liuxinyu <liuxiny...@gmail.com>:
> >> > 普及一下,没有什么新概念。
> >> > 这个说法是在看yaht时注意到的。polytypic是一个生物学名词,其实就是generic programming。这个词在Haskell世
> >> > 界已经存在了很久了。所谓program for any type/class后者Wirte everything once.
>
> >> > 题外话,上个C++标准是98年,上个Haskell标准也是98年。一晃10年都过去了。
>
> >> Haskell 里面用类型变量来表示泛型函数
>
> 用 haskell 的举手- Hide quoted text -
>
> - Show quoted text -

liuxinyu

unread,
Jun 25, 2008, 5:57:26 AM6/25/08
to TopLanguage
把普通的题目同时用C++和Haskell实现非常有趣,有时完全是不同的思路。很冲击思维。
举个例子:
http://www.cpper.com/c/t4857.html
Reply all
Reply to author
Forward
0 new messages