A New Dragon in the Den: Fast Conversion From Floating-Point Numbers
0 码力 | 171 页 | 6.42 MB | 5 月前文档讨论了如何快速且高效地将浮点数转换为整数,涉及数学公式和优化技术。通过预计算和存储查找表,可以优化转换过程,提高效率。特别是,文档提到使用minverse算法来检测连带,并通过数学优化来处理整数和浮点数转换中的复杂问题。10 Problems Large Companies Have with Managing C++ Dependencies and How to Solve Them
0 码力 | 46 页 | 917.72 KB | 5 月前文档讨论了大型公司在管理C++依赖时面临的10个主要问题及其解决方案。这些问题包括难以跟踪所有依赖项、版本冲突、ABI不兼容、重复的工程维护成本以及依赖透明度需求等。解决方案包括从源代码构建依赖项、建立二进制缓存、使用开源包管理器、集中化依赖管理流程、监控漏洞并制定响应策略、组织依赖项以生成软件账单(SBOM)以及分阶段迁移以降低风险。stdx::interval, a library for intervals on totally ordered sets
0 码力 | 1 页 | 45.14 KB | 5 月前The document introduces the `stdx::interval` library, a header-only C++20 library for working with intervals on totally ordered sets. It provides predicates for membership and equality, operations for interval comparison, intersection, union, and cutting intervals at points. The library aims to handle differences between discrete and continuous types and avoid defects in interval calculations. It also emphasizes the importance of exhaustive testing to eliminate edge cases and discusses future directions such as better documentation, testing, and integration with the C++ standard library.micrograd++: A 500 line C++ Machine Learning Library
0 码力 | 3 页 | 1.73 MB | 5 月前文档介绍了一款名为micrograd++的纯C++机器学习库,该库旨在提供一个简单且强大的框架,用于构建和训练机学习模型。该库采用现代C++17标准编写,支持智能指针,且为单头文件实现,方便集成到C++项目中。micrograd++专注于为嵌入式设备和其他无GPU支持的环境提供高效的机器学习解决方案。其核心功能包括神经网络创建、反向传播实现以及梯度剪裁等。该库的设计目标是兼顾性能效率和易用性,适合教学和实际应用。未来计划包括支持WebAssembly、增加GPU支持并建立CI/CD流水线。jsc::chunk_evenly Range Adaptor for Distributing Work Across Tasks
0 码力 | 1 页 | 1.38 MB | 5 月前The document introduces a Range adaptor called 'chunk_evenly' designed to distribute work evenly across tasks. It compares the new adaptor with existing methods like 'std::views::chunk' and demonstrates its advantages in terms of efficiency and zero-overhead principle implementation. The adaptor ensures balanced distribution of tasks, leverages branch-less programming for performance, and supports various architectures including x86, ARM, and RISC-V. It also provides examples of integration with execution frameworks like 'std::execution' for parallel processing tasks.Real-Time Circuit Simulation With Wave Digital Filters in C++
0 码力 | 1 页 | 5.09 MB | 5 月前文档介绍了如何在C++中实时模拟电路,使用Wave Digital Filters(WDFs)作为电路建模的范式。WDFs通过波形变量和适配器节点实现电阻、电容、二极管等电路元件的模拟,适用于实时音频处理。文档还比较了不同WDF库的性能,展示了chowdsp_wdf库在多种电路中的优越性。Pipeline Architectures in C++: Overloaded Pipe Operator | and Its Monadic Operations
0 码力 | 3 页 | 422.24 KB | 5 月前本文档探讨了C++中使用重载管道操作符|构建自定义pipeline框架,并结合C++23引入的std::expected及其monadic操作来实现高效的编程范式。文档介绍了functional programming在C++中的应用,特别是函数组合和std::ranges的功能。std::expected在错误处理和pipeline构建中的作用尤为重要,其monadic操作如and_then、or_else、transform和transform_error提供了处理错误和转换数据的方法。此外,文档还讨论了如何通过自定义pipeline架构和重载管道操作符来实现更灵活和高效的程序设计。Named Optional Parameters - JavaScript Style
0 码力 | 1 页 | 3.17 MB | 5 月前The document discusses how to implement named optional parameters in C++ functions similar to JavaScript, addressing the issue of parameter ambiguity and accidental switches. It explores the use of POD structs, designated initializers, structured binding, and function overloading to create clear and expressive function calls. The approach is demonstrated through examples like processCarStateTransition, which builds a path with explicit road state transitions. The document also highlights potential ambiguities and proposes language tweaks to improve the implementation, such as explicit parameter lists as structs or implicit parameter lists without curly braces.Modern C++ for Parallelism in High Performance Computing
0 码力 | 3 页 | 91.16 KB | 5 月前本文档介绍了'D2D'基准测试,该测试旨在探索高性能计算中不同并行化策略在表达优雅性和性能方面的表现。实现了多种并行化方法,包括使用OpenMP、Modern C++、Kokkos和Sycl等技术,并在多种CPU上进行了测试。初步结果显示了这些方法的性能特点,并讨论了未来可能的扩展和改进,如支持GPU和更多的编译器后端。C++26 for C++14 Developers: STL-Preview
0 码力 | 3 页 | 129.06 KB | 5 月前本文介绍了一个名为stl-preview的库,该库将C++26及更高版本的STL功能回带到C++14,兼容现有的STL实现。该库已实现C++17至C++26间引入的281个STL函数和类,包括ranges、concepts、span和expected等核心功能。stl-preview支持多种编译器,确保跨平台开发中的兼容性,并为未能升级至新标准的行业提供桥梁。尽管无法完全替代STL,但其主要作用是连接旧标准与新标准的功能差距。当前实现覆盖了C++20.STL的48%,预计到2024年CppCon期间可达到90%。
共 452 条
- 1
- 2
- 3
- 4
- 5
- 6
- 46
关键词
floating-point numbers fast conversion optimization integer conversion logarithmic functions dependencies package manager binary caching vulnerability monitoring SBOM stdx::interval interval totally ordered sets C++20 MIT License C++ micrograd++ 神经网络 反向传播 机器学习库 chunk_evenly Range adaptor chunk_size chunk_count std::views::chunk Wave Digital Filters Real-Time Circuit Simulation WDF Resistor RC Lowpass Filter pipe operator std::expected monadic operations pipeline architecture functional programming designated initializers structured binding function overloading Polymorphic POD structs Modern C++ OpenMP Kokkos Sycl D2D C++14 C++26 STL backporting compatibility