gpt4 book ai didi

language-agnostic - 'port' 这个词对于软件开发来说意味着什么?

转载 作者:行者123 更新时间:2023-12-03 05:59:26 25 4
gpt4 key购买 nike

我正在读一本关于 ASP.NET MVC 的书,书中写道:

"NVelocity is a port of the Java Apache Velocity template engine, and NHaml is a port of the Ruby on Rails Haml engine".

在这种情况下,“端口”一词意味着什么?

最佳答案

来自Porting (Software Engineering)维基百科条目:

In software engineering, porting is the process of adapting software so that an executable program [or library] can be created for a computing environment that is different from the one for which it was originally designed (e.g. [different language, ] different CPU, operating system, or third party library) ..

.. the term "port" is derived from the Latin portare, meaning "to carry". When code is not compatible with a particular operating system [or language] or architecture, the code must be "carried" [or "ported"] to the new system.

因此,“端口”是“移植”的结果,并且有许多不同种类的“端口”。

在某些情况下,移植可能“仅在精神上”,大量借鉴了原始实现的想法,但在其他方面不共享任何代码;库通常会进一步分化以利用目标语言功能。

另一方面,应用程序端口(尤其是那些设计为可在不同“UNIX”环境之间移植的应用程序端口)可能会共享除构建过程之外的所有内容。

关于language-agnostic - 'port' 这个词对于软件开发来说意味着什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15015466/

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