正在使用本机 c++ 进行编码还流行吗?

发布于 2024-09-14 03:15:56 字数 76 浏览 4 评论 0原文

我想在大学毕业后进入本机 C++ 编程,但似乎使用 JIT 编译的语言(如 .Net)正在超越 C++。 Native 代码的未来会怎样?

I want to go into native c++ programming after University, but it seems like languages that compile with JIT (like .Net) are overtaking c++. What does the future hold for Native code?

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

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

发布评论

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

评论(6

毅然前行 2024-09-21 03:15:56

C++ 是我受雇进行专业编程的第七种编程语言,而且我确信不会是最后一种。我的建议是不要将自己视为特定语言程序员。即使 JIT 占领了世界,它最终也必须回归到本机机器代码,并且必须有人编写该软件。

C++ is the seventh programming language I have been professionally paid to program in, and I'm sure won't be the last. My advice is not to think of yourself as a specific language programmer. Even if JIT takes over the world, it has to get down to native machine code eventually, and someone has to write that software.

初心未许 2024-09-21 03:15:56

有很多机会可以处理本机编译的 C++ 代码。它(与 C 一起)在非 PC 环境(例如嵌入式和实时环境)以及许多需要某种程度的安全认证的情况下特别受欢迎。

性能通常至关重要的游戏编程是 C++ 非常流行的另一个领域。

它不像传统的“桌面”应用程序和 Web 服务应用程序那么受欢迎,尽管如果您四处寻找,您可以在这两个领域(尤其是前者)找到本机代码项目。

There are a lot of opportunities to work on natively compiled C++ code. It's especially popular (along with C) in non-PC environments such as embedded and real time environments, and in a lot of situations where there is some level of safety certification required.

Game programming, where performance is usually critical, is another area where C++ is very popular.

It is less popular than it was in traditional 'desktop' applications and web service applications although you can find native code projects in both these areas - especially the former - if you hunt around.

你穿错了嫁妆 2024-09-21 03:15:56

当你说你将“大学毕业后进入本机 C++”时,我不确定你的意思是什么。你的职业生涯不会由你懂什么语言来定义,而是由你能用这些语言做什么来定义。

然而,C++ 在许多应用中得到广泛使用。我从事系统工作,所有事情都使用 C++。在我的世界里,.NET 不是一个选择,但隔壁 GIU 的人却用它来做所有事情。这取决于您想在职业生涯中做什么。你使用的语言会自然而然地出现,你是在倒着思考它。

I'm not sure what you mean when you say that you will be "going into native C++ after college". Your career will not be defined by what languages you know, it will be defined by what you can do with those languages.

However, C++ is used widely in many applications. I work in systems and we use C++ for everything. .NET isn't an option in my world, but the guys doing the GIU's next door use it for everything. It comes down to what you want to do with your career. The language you use will come naturally, you are thinking about it backwards.

初心 2024-09-21 03:15:56

C/C++ 永远有一席之地

  1. 任何需要的应用程序
    尽快将被写入
    C/C++ 等本机语言
  2. 任何在内存有限的设备上运行的应用程序
    将要
    由于内存,C/C++ 运行得更好
    管理更具确定性。
  3. 操作系统将继续用 C 语言编写。
    包括
    设备驱动程序。

直到最近,人们总是可以通过使用更好的硬件来加速应用程序。如果摩尔定律延伸到极限,性能改进很可能必须来自软件。在这方面,性能更好的语言很可能会发挥作用。

There will always be a place for C/C++

  1. Any application that needs to be as
    fast as possible will be written in
    a native language like C/C++
  2. Any application that runs on a device that has limited memory
    will
    run better in C/C++ since memory
    management is more deterministic.
  3. Operating systems will continue to be written in C. That
    include
    device drivers.

Up until recently one always had the luxury of speeding an application up by using better hardware. Will Moore's law being stretched to the limit, chances are the performance improvements will have to come from software. Chances are that languages that give better performance will come into their own in this regard.

画骨成沙 2024-09-21 03:15:56

如果您选择桌面,C++ 仍然是您的最佳选择,特别是如果您想要跨平台。

Java GUI 库速度很慢,而且 .NET 不可移植(GUI 部分)。
但C++是一门语言野兽,是我唯一能理解经理要求5年工作经验的语言。

在服务器领域,VM/JIT 具有如此多的优势,以至于只有基本的基础设施才采用本机编码。如果这是你想加入的行业,学习(基础设施)或不学习(应用程序)C++。

它在嵌入式编程中也很流行,在嵌入式编程中您无法启动一百兆的虚拟机。

由于 C/C++ 是主流中唯一的快速命令式本机编程语言,因此您至少应该学习基础知识。

If you go desktop C++ is still the way to go especially if you want to be cross platform.

Java GUI Libraries are way to slow and .NET is not portable (the GUI part).
But C++ is a language beast, the only language where i can understand managers to ask for 5 years experience.

In the server world the VM/JIT has so many advantages that only basic infrastructure is coded native. If this is the industry you want to join learn (infrastructure) or don't learn (applications) C++.

Its also pretty popular in embedded programming where you can't fire up a hundert MB virtual machine.

Since C/C++ is the only fast imperative native programming language left in mainstream you should learn at least the basics.

橘和柠 2024-09-21 03:15:56

是的,当然是:

http://www.tiobe .com/index.php/content/paperinfo/tpci/index.html

http://langpop.com/< /a>

还有一些很棒的功能,如右值引用、可变参数模板、统一初始化、lambda、无限制联合、线程本地存储、外部模板等等……但 C++ 仍然是未来 20 年的一个不错的选择,直到 C++ 委员会决定在剩下的几年里发布另一个新标准(例如 do...while!)(:

请注意,计算机需要本机程序才能运行!Java< /em>、.NET、python 等都需要本机环境才能运行,因此,本机程序是软件的基础。

Yes, of course it is:

http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

http://langpop.com/

And some of the great features like rvalue-references, variadic templates, uniform initializations, lambdas, unrestricted unions, thread-local storage, extern templates and ... yet keeps C++ to be a good choice for 20 years of the future, until the C++ committee decides to publish another new standard for the other remaining years (like a do...while!) (:

Note that the computers needs native programs to run! Java, .NET, python and ... needs native environment to run on it! so, native programs are the base of softwares.

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