首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏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.

    76230发布于 2020-08-18
  • 来自专栏二进制文集

    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

    17410编辑于 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.

    58640发布于 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

    46710发布于 2018-05-28
  • 来自专栏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.

    49710发布于 2020-07-02
  • 来自专栏鱼头的Web海洋

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

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

    2.4K41发布于 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. 函数是表达求值的最显然,最便利的方式。

    91820发布于 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
  • Wire,一个神奇的Go依赖注入神器!

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

    59710编辑于 2025-08-04
  • 来自专栏小勇DW3

    @KafkaListener和@KafkaListeners的使用

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

    5.8K10发布于 2019-11-14
  • 来自专栏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

    65410编辑于 2024-11-20
  • 来自专栏C++核心准则原文翻译

    C++核心准则T.65:使用标签分发提供函数的不同实现

    .begin()); // uses a loop calling copy constructors } This is a general and powerful technique for compile-time

    1.3K20发布于 2020-09-21
  • 来自专栏程序员修炼之路

    Android面试题之Kotlin中怎么限制函数参数的取值范围、取值类型等

    Direction.West -> println("Moving West") } } move(Direction.North) // OK // move(SomeOtherDirection) // Compile-time

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

    C++核心准则​GSL:指南支持库

    Using the (compile-time) indirection through the gsl namespace allows for experimentation and for local

    1.3K30发布于 2020-11-17
  • 来自专栏Rust语言学习交流

    【Rust日报】2023-09-02 Freya GUI 库

    inputs you need and the framework will provide them // (if possible, or return a nice error at *compile-time

    63620编辑于 2023-09-26
  • 来自专栏乐百川的学习频道

    Groovy简介和一点资源

    Runtime and compile-time metaprogramming,运行时和编译时元编程, 这是高级功能。

    73610编辑于 2022-05-05
  • 来自专栏Golang语言社区

    2018.11月Go优质开源项目

    email) and send it to the specified webhook as a http post request google/wire stars:112 forks:8 项目描述:Compile-time

    1.4K20发布于 2018-12-29
领券