Google C++ Style GuideGoogle C++ Style Guide Google C++ Style Guide Background C++ is one of the main development languages used by many of Google’s open- source projects. As every C++ programmer knows, the language has describing in detail the dos and don’ts of writing C++ code. These rules exist to keep the code base manageable while still allowing coders to use C++ language features produc- tively. Style, also known known as readability, is what we call the conventions that govern our C++ code. The term Style is a bit of a misnomer, since these conventions cover far more than just source file formatting. Most open-source0 码力 | 83 页 | 238.71 KB | 1 年前3
Krita 5.2 Manualdocumentation comes from the underlying C++ language that Krita is written in. The magic happens because of a Python tool called SIP, which makes it possible for python speak in C++ and talk to Krita. The end result result is that when we import krita and call functions, we’re actually using the C++ methods listed in that documentation. Let’s see how this stuff works in more detail. Let’s take a look at the second activeWindow(), and action() which we used above. One of the more confusing things is seeing all the C++ classes that Krita uses, including the Qt classes that start with Q. But here is the beauty of SIP:0 码力 | 1502 页 | 79.07 MB | 1 年前3
Krita 5.2 브로셔documentation comes from the underlying C++ language that Krita is written in. The magic happens because of a Python tool called SIP, which makes it possible for python speak in C++ and talk to Krita. The end result result is that when we import krita and call functions, we’re actually using the C++ methods listed in that documentation. Let’s see how this stuff works in more detail. Let’s take a look at the second activeWindow(), and action() which we used above. One of the more confusing things is seeing all the C++ classes that Krita uses, including the Qt classes that start with Q. But here is the beauty of SIP:0 码力 | 1531 页 | 79.11 MB | 1 年前3
Krita 5.2 中文手册org/krita/html/annotated.html] 这两个页面可能看起来非常艰深。这很难避免,毕竟 Krita 是通过 C++ 编程语 言编写的。Python 脚本在与 Krita 建立联系时会通过 SIP 使用 C++,这样当我 们使用 import krita 来调用功能时,我们实际上调用的是这些文档里列举的 C++ 功能。 让我们仔细观察一下这些功能是如何工作的。在 Krita 程序类参考文档 [https://api instance()) ,它返回的结果应该和该页非常相近。你可以研究一 下前面例子使用过的功能:createDocument()、activeWindow()、action()。 看到 Krita 的各种 C++ 程序类和 Q 开头的 Qt 程序类混列在一起会让人觉得眼 花缭乱。不过这正是 SIP 大展身手的地方:它会尽可能把这些程序类翻译为简 单易懂的 Python 格式。例如你可以看到 filters() 的文档不知所云 [https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.html] ,而且 信号和信号槽的创建方式又跟 C++ 下的 Qt 很不一样,因此我们在此展开说明 一下: 你使用 PyQt 制作的所有 Python 功能都可以被看作是信号槽。这意味着它们可 以接受 Action.triggered 或者 QPushButton0 码力 | 1594 页 | 79.20 MB | 1 年前3
Krita 5.2 官方文档中文版 2023-12-08Aorg/krita/html/annotated.html] 这两个页面可能看起来非常艰深。这很难避免,毕竟 Krita 是通过 C++ 编程语 言编写的。Python 脚本在与 Krita 建立联系时会通过 SIP 使用 C++,这样当我 们使用 import krita 来调用功能时,我们实际上调用的是这些文档里列举的 C++ 功能。 让我们仔细观察一下这些功能是如何工作的。在 Krita 程序类参考文档 [https://api instance()) ,它返 回的结果应该和该页非常相近。你可以研究一下前面例子使用过的功能: createDocument()、activeWindow()、action()。 看到 Krita 的各种 C++ 程序类和 Q 开头的 Qt 程序类混列在一起会让人觉得眼 花缭乱。不过这正是 SIP 大展身手的地方:它会尽可能把这些程序类翻译为简 单易懂的 Python 格式。例如你可以看到 filters() 的文档不知所云 [https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.html] ,而且信号和信号槽的 创建方式又跟 C++ 下的 Qt 很不一样,因此我们在此展开说明一下: 你使用 PyQt 制作的所有 Python 功能都可以被看作是信号槽。这意味着它们可 以接受 Action.triggered 或者 QPushButton0 码力 | 1562 页 | 79.19 MB | 1 年前3
Krita 5.1 官方文档中文版 2023-05-26Aorg/krita/html/annotated.html] 这两个页面可能看起来非常艰深。这很难避免,毕竟 Krita 是通过 C++ 编程语 言编写的。Python 脚本在与 Krita 建立联系时会通过 SIP 使用 C++,这样当我 们使用 import krita 来调用功能时,我们实际上调用的是这些文档里列举的 C++ 功能。 让我们仔细观察一下这些功能是如何工作的。在 Krita 程序类参考文档 [https://api instance()) ,它返 回的结果应该和该页非常相近。你可以研究一下前面例子使用过的功能: createDocument()、activeWindow()、action()。 看到 Krita 的各种 C++ 程序类和 Q 开头的 Qt 程序类混列在一起会让人觉得眼 花缭乱。不过这正是 SIP 大展身手的地方:它会尽可能把这些程序类翻译为简 单易懂的 Python 格式。例如你可以看到 filters() 的文档不知所云 [https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.html] ,而且信号和信号槽的 创建方式又跟 C++ 下的 Qt 很不一样,因此我们在此展开说明一下: 你使用 PyQt 制作的所有 Python 功能都可以被看作是信号槽。这意味着它们可 以接受 Action.triggered 或者 QPushButton0 码力 | 1547 页 | 78.22 MB | 1 年前3
Krita 5.2 マニュアル
の API ドキュメントは Krita が書かれた C++ 言語に基づいている からです。魔法は Python の SIP と呼ばれるツールにあり、これを用いるこ とで Python に C++ を喋らせたり、Krita と会話できるようになります。結 果、import krita を行い、関数を呼び出したときに、ドキュメントに書か れている C++ メソッドを実際に使うようになります。 これがど ことと合うはずです - 上で使った createDocument()、activeWindow()、 action() 関数のドキュメントを閲覧することができます。 もっと混乱するのは Krita が使う C++ クラスを、Q で始まる Qt のクラスも 含めて見ることです。でもここに SIP の美しさがあります: これらのクラス を可能な限りシンプルで単直に訳してくれることです。例えば、 QStringList 解するのがかなり難しい [https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.html] の と、シグナルやスロットを作る方法が C++ の Qt と非常に異なるため、こ こで説明します: PyQt で作るすべての Python の関数は、スロットとして理解できます。つま り、これらは Action.triggered や QPushButton0 码力 | 1591 页 | 79.16 MB | 1 年前3
Krita 5.2 官方文档中文版 2023-12-08Aorg/krita/html/annotated.html] 这两个页面可能看起来非常艰深。这很难避免,毕竟 Krita 是通过 C++ 编程语言编写的。Python 脚本在与 Krita 建立联系时会通过 SIP 使用 C++,这样当我们使用 import krita 来调用功能时,我们 实际上调用的是这些文档里列举的 C++ 功能。 让我们仔细观察一下这些功能是如何工作的。在 Krita 程序类参考 文档 [https://api instance()) ,它返回的结果应该和该页非 常相近。你可以研究一下前面例子使用过的功能: createDocument()、activeWindow()、action()。 看到 Krita 的各种 C++ 程序类和 Q 开头的 Qt 程序类混列在一起会 让人觉得眼花缭乱。不过这正是 SIP 大展身手的地方:它会尽可能 把这些程序类翻译为简单易懂的 Python 格式。例如你可以看到 filters() 的文档不知所云 [https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.ht ml] ,而且信号和信号槽的创建方式又跟 C++ 下的 Qt 很不一样, 因此我们在此展开说明一下: 你使用 PyQt 制作的所有 Python 功能都可以被看作是信号槽。这 意味着它们可以接受 Action.triggered 或者 QPushButton0 码力 | 1685 页 | 91.87 MB | 1 年前3
Trends Artificial Intelligence
these topics in the Fourth Edition (2020) of their 1,116-page classic ‘Artificial Intelligence: A Modern Approach’ (link here), and their views still hold true. Highlights follow… …the benefits: put ty… AI = Benefits & Risks Source: Stuart Russell and Peter Norvig, ‘Artificial Intelligence: A Modern Approach’51 Success in creating AI could be the biggest event in the history of our civilization of Google’s ‘Attention is All You Need’ Transformers research paper in 2017, the first wave of ‘modern AI’ (read: LLMs) focused on text: models such as OpenAI’s GPT-3 and Meta’s Llama-1 showed that0 码力 | 340 页 | 12.14 MB | 4 月前3
Krita 4.x 官方文档中文版 2021-08-06AassKrita.html] 这两个⻚⾯可能看起来⾮常艰深。这很难避免,毕竟 Krita 是通过 C++ 编程语⾔编写的。Python 脚本在与 Krita 建⽴联系时会通过 SIP 使⽤ C++,这样当我们使⽤ import krita 来调⽤功能时,我们实 际上调⽤的是这些⽂档⾥列举的 C++ 功能。 让我们仔细观察⼀下这些功能是如何⼯作的。在 Krita 程序类参考 ⽂档 [https://api instance()) ,它返回的结果应该和该⻚ ⾮常相近。你可以研究⼀下前⾯例⼦使⽤过的功能: createDocument() 、activeWindow() 、action() 。 看到 Krita 的各种 C++ 程序类和 Q 开头的 Qt 程序类混列在⼀起会 让⼈觉得眼花缭乱。不过这正是 SIP ⼤展⾝⼿的地⽅:它会尽可能 把这些程序类翻译为简单易懂的 Python 格式。例如你可以看到 function 的⽂档不知所云 [https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.h tml] ,⽽且信号和信号槽的创建⽅式⼜跟 C++ 下的 Qt 很不⼀样, 因此我们在此展开说明⼀下: 你使⽤ PyQt 制作的所有 Python 功能都可以被看作是信号槽。这 意味着它们可以接受 Action.triggered 或者 QPushButton0 码力 | 1594 页 | 110.95 MB | 1 年前3
共 297 条
- 1
- 2
- 3
- 4
- 5
- 6
- 30













