首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏C++核心准则原文翻译

    C++核心准则Con.5:对于可以在编译时计算的值,使用constexpr进行声明

    computed at compile time Con.5:对于可以在编译时计算的值,使用constexpr进行声明 Reason(原因) Better performance, better compile-time checking, guaranteed compile-time evaluation, no possibility of race conditions.

    74230发布于 2020-08-18
  • 来自专栏dongfanger

    Java官方笔记8泛型

    = key; this.value = value; } // ... } Pair<int, char> p = new Pair<>(8, 'a'); // compile-time Pair<>(8, 'a'); 2、不能创建泛型实例: public static <E> void append(List<E> list) { E elem = new E(); // compile-time instanceof public static <E> void rtti(List<E> list) { if (list instanceof ArrayList<Integer>) { // compile-time Types // Extends Throwable indirectly class MathException<T> extends Exception { /* ... */ } // compile-time error // Extends Throwable directly class QueueFullException<T> extends Throwable { /* ... */ // compile-time

    35520编辑于 2023-07-10
  • 来自专栏二进制文集

    JDK源码分析 异常

    * * @author Frank Yellin * @see java.lang.Error * @jls 11.2 Compile-Time Checking of Exceptions That is, {@code Error} and its subclasses are regarded as unchecked * exceptions for the purposes of compile-time * * @author Frank Yellin * @see java.lang.ThreadDeath * @jls 11.2 Compile-Time Checking of

    1.1K40发布于 2018-10-08
  • 来自专栏C++ 动态新闻推送

    C++ 中文周刊 第125期

    misleadingly-named STATUS_STACK_BUFFER_OVERRUN[9] 看不懂 视频 meeting cpp推荐了十个,我把我感兴趣的列一下 Daniel Withopf - Compile-time Is the New Constexpr: Leveraging Compile-time Sparsity for Vectors and Matrices[10] 大概意思是利用constexpr p=108505 [10] Daniel Withopf - Compile-time Is the New Constexpr: Leveraging Compile-time Sparsity for

    14910编辑于 2024-07-30
  • 来自专栏C++核心准则原文翻译

    C++核心准则Per.11:将计算从运行时移动到编译时

    while (n--) m *= d; return m; } constexpr double s3 {ntimes(2, 3)}; // modern-style: compile-time so they can't be moved to compile time, but beyond that logical constraint is the fact that complex compile-time It is even possible to slow down code by compile-time computation.

    57440发布于 2020-06-24
  • 来自专栏我是业余自学C/C++的

    Pointer and the C++ Philosophy

    vacation,choosing what sights to see depending on the weather and your mood at the moment,whereas a compile-time yourself to a particular array size.Thus,the array size is set when the program is compiled;it is a compile-time

    46210发布于 2018-05-28
  • 来自专栏coding

    PHP错误实例详解错误级别配置项设置错误级别手动触发PHP错误自定义错误处理器脚本即将关闭前执行的函数

    fatal run-time errors ; E_WARNING - run-time warnings (non-fatal errors) ; E_PARSE - compile-time non-fatal errors) that occur during PHP's ; initial startup ; E_COMPILE_ERROR - fatal compile-time errors ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) ; E_USER_ERROR - user-generated

    1.9K20发布于 2018-06-27
  • 来自专栏C++核心准则原文翻译

    C++核心准则CP.9:尽可能使用工具检查并发代码

    CP.9:尽可能使用工具检查并发代码 Experience shows that concurrent code is exceptionally hard to get right and that compile-time Consistent use of this technique turns many classes of thread-safety errors into compile-time errors.

    48610发布于 2020-07-02
  • 来自专栏Godot游戏开发引擎介绍和入门

    【学习笔记】SWIFT中的构造函数

    myVariable = variable } } //let instance = MyClass() //compile-time error! //initialization code here...... } } //let twoByTwo1 = AStruct(property: 2, variable: false) //compile-time property } init(property:Int, variable:String) { //self.init(property: property) //compile-time

    1.9K20发布于 2019-01-08
  • 来自专栏鱼头的Web海洋

    尤大亲自评测 Vue3 和 Svelte(19个组件后Vue更好!)

    在更广泛的意义上,本研究旨在展示框架如何在compile-time 编译时和runtime spectrum 运行时找到一个平衡点:Vue 在源码上使用了一定的 compile-time 编译时 优化, 但选择较重的 compile-time 返回较小的生成代码。

    2.4K40发布于 2021-07-23
  • 来自专栏锦小年的博客

    使用gdb调试内核

    # 开启kernel debug info Kernel hacking ---> [*] Kernel debugging Compile-time checks and compiler > Kernel hacking > Compile-time checks and compiler options [*] Provide GDB scripts for kernel debugging

    2.2K50编辑于 2022-11-02
  • 来自专栏Nodejs技术栈

    Farrow 介绍:类型友好的函数式风格 Node.js Web 服务框架

    如果我们把——充分发挥 Static Type-System 的能力,在 Compile-Time 去尽可能捕获潜在的问题——也列入 Web 框架的考量范畴,那么用 TypeScript 重新开发一个 另一位开发者 Oliver Ash 在推特上,也指出了 expressjs 的中间件设计的一个不足指出——没有充分利用 Compile-Time 的排查能力[1]。 ? 2)response 是中间件函数的返回值,可以在 Compile-Time 得到检查。 如果没有返回值,会像下面这样: ? 如果返回错误的值,会像下面这样: ? 必须通过 Response.

    1.7K10发布于 2021-05-11
  • 来自专栏C++核心准则原文翻译

    C++核心准则​T.123:使用常量表达式函数在编译时求值

    Often a constexpr function implies less compile-time overhead than alternatives. 函数是表达求值的最显然,最便利的方式。

    89920发布于 2020-09-28
  • 来自专栏一个会写诗的程序员的博客

    NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy

    When a library declares a compile-time dependency on a SLF4J provider, it imposes that provider on the When a library declares a compile-time dependency on a SLF4J binding, it imposes that binding on the For example, cassandra-all version 0.8.1 declares both log4j and slf4j-log4j12 as compile-time dependencies When a library declares a compile-time dependency on a SLF4J binding, it imposes that binding on the When you come across an embedded component declaring a compile-time dependency on any SLF4J binding,

    6.5K10发布于 2018-08-17
  • 来自专栏知识碎片

    pImpl

    参考文档 difference-between-api-and-abi Herb Sutter(C++标准委员会成员)一些相关的博客 GotW #7a Solution: Minimizing Compile-Time Dependencies, Part 1 [GotW #7a Solution: Minimizing Compile-Time Dependencies, Part 2 Compilation Firewalls

    1.1K00发布于 2020-09-23
  • Wire,一个神奇的Go依赖注入神器!

    Wire 特别受到关注,因为它通过 compile-time 的方式,生成初始化代码,避免了运行时反射的开销,保持了 Go 的高性能特点。 Wire 是一个由 Google 开发的 compile-time 依赖注入工具。它通过代码生成的方式,在编译时解决依赖关系,而不是在运行时。 以下是 Wire 的一些特点:compile-time 生成:在编译时生成代码,无运行时开销。类型安全:通过 Go 的类型系统确保依赖正确。无反射:避免了运行时反射的性能问题。

    51810编辑于 2025-08-04
  • 来自专栏全栈程序员必看

    abstractmethoderror:某方法_error parse true

    method. we know that an abstract method cannot be invoked and if we try to do so then you will get a compile-time

    47710编辑于 2022-09-19
  • 来自专栏猫头虎博客专区

    解决 Spring Boot 和 Gradle Java 版本兼容性问题:A problem occurred configuring root project ‘demo1‘. > Could n

    dependencies declared externally: - Incompatible because this component declares a component for use during compile-time dependencies declared externally: - Incompatible because this component declares a component for use during compile-time

    2.4K10编辑于 2024-04-09
  • 来自专栏JAVA

    解决 :A problem occurred configuring root project ‘demo1‘. > Could not resolve all files for configu

    dependencies declared externally: - Incompatible because this component declares a component for use during compile-time dependencies declared externally: - Incompatible because this component declares a component for use during compile-time

    58310编辑于 2024-11-20
  • 来自专栏小勇DW3

    @KafkaListener和@KafkaListeners的使用

    注解要求必须在compile-time就能确定值,可以移步stackOverFlow查看更加详细的解释。

    5.8K10发布于 2019-11-14
领券