gpt4 book ai didi

c# - Python 是一种托管代码语言吗?

转载 作者:太空狗 更新时间:2023-10-30 00:40:47 28 4
gpt4 key购买 nike

我在这里是菜鸟,但由于 The Heartbleed Bug,我对托管代码非常感兴趣。

我最近在 HN 中读到以下声明:

C and other languages without memory checks are unsuitable for writing secure code. Plainly unsuitable. They need to be restricted to writing a small core system, preferably small enough that it can be checked using formal (proof-based) methods, and all the rest, including all application logic, should be written using managed code (such as C#, Java, or whatever - I have no preference).

那么 Python 是一种托管代码语言还是托管代码只是一个 Microsoft 术语?

最佳答案

我会认为 Python 是托管的,因为它在虚拟环境中运行,为您执行所有内存管理、不允许指针、进行数组边界检查等。

它不是托管的,因为它在 CLR 中运行(除非您使用的是 IronPython),但它仍然是托管的。

关于c# - Python 是一种托管代码语言吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22953080/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com