Happen to find this [url=http://www.venge.net/graydon/talks/mkc/html/mgp00001.html]nice presentation[/url] on quickly developing static DSL in OCaml. Here, 'static' means the DSL is processed by a formal compiler as opposed to dynamic DSL such as the fancy metaprogramming in Ruby in runtime. I've been learning OCaml for a while and find it amazing for the elegance, speed and easiness to play with. It's also very good at writing compilers, which I've been long planning to learn thoroughly.
One-day Compiler in Ocaml
最新推荐文章于 2025-12-01 23:29:26 发布
本文分享了一个关于如何使用OCaml快速开发静态领域特定语言(DSL)的精彩演示。这里提到的静态DSL是指通过正式的编译器进行处理的语言,与运行时处理的动态DSL(如Ruby中的元编程)形成对比。作者一直在学习OCaml,并对其优雅性、速度及易于实践的特点感到惊叹。此外,OCaml非常适合用于编写编译器,这也是作者长期计划深入学习的内容。
269

被折叠的 条评论
为什么被折叠?



