B-Method 是传统编程语言的替代品吗?

发布于 2024-08-22 05:04:36 字数 138 浏览 3 评论 0原文

我听说B-Method是在法国发明的。它是 C++ 和 Java 等传统编程语言的替代品,还是具有不同用途的完全不同的东西?

I heard about B-Method which is invented in France. Is it an alternative to traditional programming languages like c++ and java or is it a completely different thing with different purposes?

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

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

发布评论

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

评论(2

蓝天 2024-08-29 05:04:36

引用B-网站

B是形式化规范方法
得益于适当的语言,
允许高度准确的表达
所需的属性
规格。然后可以证明
一种完全自动化的时尚,这些
属性是明确的、连贯的
并且并不矛盾。那么这个
让我们能够从数学上证明
这些属性被考虑到
随着设计阶段的进展而考虑。

因此,该方法及其
相关证明允许:
(1) 明确的技术规范和
需达到的系统规格
是结构化的、连贯的和
明确,以及 (2) 的发展
合同软件
保证无故障。

回答你的问题:不,B-Method 不能替代编程语言。这是一种为程序创建蓝图并验证您创建的东西是否确实按照蓝图所描述的方式工作的方法。如果你不明白这一点,你可以放心地忘记它。

Quote the B-website:

B is a formal specification method
which, thanks to an adequate language,
allows for highly accurate expressions
of the properties required by
specifications. One can then prove in
a fully automated fashion that these
properties are unambiguous, coherent
and are not contradictory. This then
allows us to mathematically prove that
these properties are taken into
account as the design stages progress.

Therefore, this method and its
associated proof allow for:
(1) Clear technical specifications and
system specifications to be reached
that are structured, coherent and
unambiguous, and (2) The development of
software that is contractually
guaranteed to be fault-free.

To answer your question: No, B-Method is not an alternative to programming languages. It’s a way of creating blueprints for programs and for verifying that the thing you created really works as described by the blueprints. If you don’t understand this you can safely forget about it.

⊕婉儿 2024-08-29 05:04:36

不,正如维基百科文章所述,B-Method 是一种形式化方法,而不是编程语言。您也可以在维基百科上阅读形式化方法。基本上,它们可以在开发过程中用于描述和验证算法。

No, as the Wikipedia article says, B-Method is a Formal Method not a programming language. You can read up on Formal Methods on Wikipedia too. Basically, they can be used during development to describe and verify algorithms.

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