MPS(一种元编程语言)值得研究吗?

发布于 2024-07-29 04:41:23 字数 155 浏览 3 评论 0原文

Jetbrains 的另一个项目,他们的新问题跟踪器 Charisma 完全是用 MPS 编写的。 这个概念有用/实用吗,还是太早了?

Another project from Jetbrains, their new issue tracker Charisma was written entirely in MPS. Is the concept useful/practical, or is it too soon?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

就是爱搞怪 2024-08-05 04:41:23

MPS 不仅仅是 Java 的 DSL。 这实际上是语言不愉快的。 您可以将您的语言生成为 MPS 支持的任何其他语言。 我们在 MPS 1.1 中开箱即用地支持 Java、XML 和纯文本(作为最后的手段)。 也许,在未来的版本中,我们将提供其他语言,例如 javascript、css 等。

MPS 的关键功能之一是其他工具所不具备的功能,即能够编写语言。 您可以创建多种语言扩展并按照您想要的方式组合它们。 例如,一个供应商可能为其数据库实现一种语言,而另一个供应商则为财务计算实现一种语言。 他们会很好地合作,并且不会出现任何诸如歧义等问题。

MPS isn't just DSLs for Java. It's actually language-angostic. You can generate your language into any other language that is supported by MPS. We support Java, XML, and plain text (as a last resort) out of the box in MPS 1.1. Probably, in future version, we will provide other languages such as javascript, css, etc.

One of the key features of MPS which isn't available in other tools is ability to compose languages. You can create several language extensions and compose them in a way that you want. For example, one vendor might implement a language for their database, and the other a language for financial calculations. They will work together well, and you won't have any problems like ambiguities, etc.

熟人话多 2024-08-05 04:41:23

男人。 从我的角度来看,这很棒。 它就像是 Java 加上 DSL-s。 不要仅从 DSL 角度考虑它。 认为完全是图灵完备的,包括开箱即用的 Java 生成。 它就像 Java 8 +“Common Lisp”,增强版,没有文本语法问题。 对我来说,这似乎是未来。 我将我的心、思想和灵魂投入其中:)。

如果您正在寻找“领先于时代”的东西,但仍然实用且与当前技术非常接近,那就是 MPS!

Man. From my point of view, it's great. It's like Java on steroids, plus DSL-s. Dont' think about it only in terms of DSL. Think completely Turing-complete, including Java generation out-of-the-box. It's like Java 8 + "Common Lisp", on steroids, without the textual-syntax problems. To me it seems like the future. I'm investing in it my heart, mind and soul :).

If you are looking for something "ahead of its time", but still practical to use already and very much in touch with the current technologies, that's MPS!

情感失落者 2024-08-05 04:41:23

我相信MPS非常值得研究。 该工具是开源的并且非常强大。 MPS 中实现的想法非常强大,解决了自编程语言诞生以来一直困扰我们的许多挑战(最重要的是,语言组合)。 文档的质量对初学者来说是一个挑战,但您现在也可以阅读这本新书:http://books.campagnelab .org/(免责声明:我是这本书的作者,但我不是 MPS 的作者)。

I believe MPS is very worth looking into. The tool is open-source and very robust. Ideas implemented in MPS are extremely powerful and solve a number of challenges that have been with us since the beginning of programming languages (most importantly, language composition). The quality of documentation has been a challenge for beginners, but you can now also read this new book: http://books.campagnelab.org/ (disclaimer: I am the author of the book, but I am not an author of MPS).

一身骄傲 2024-08-05 04:41:23

这并不是“太早”的情况,而是这种开发方法本身就相当具有挑战性的事实。 MPS 的成本/效益比(我所说的成本是指传播时间)很大程度上取决于您应用它的项目类型。 如果您有一个可以从 DSL 中受益匪浅的领域(例如,对我来说,它是项目管理),那么就去吧!

It's not the case of 'too soon' but rather the fact that this development methodology is, in itself, rather challenging. The cost/benefit ratio for MPS (and by cost I mean dissemination time) depends largely on the type of the project you're applying it to. If you've got a domain that can benefit greatly from DSLs (for example, with me, it's project management), then go for it!

情绪操控生活 2024-08-05 04:41:23

它似乎是 Java 的 DSL。 为什么不亲自调查一下呢? 如果它只是生成 Java 源文件,如果您对此感兴趣并且不急于完成该项目,我认为没有理由不尝试一下。

It seems to be a DSL for Java. Why not investigate it yourself? If it just generates Java source files, I see no reason to not give it a crack, if it's something your interested in and there is no rush on the project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文