MoonBit月兔编程语言 现代编程思想 第九课 接口0 码力 | 16 页 | 346.04 KB | 1 年前3
Julia 中文文档. . . 159 案例研究:有理数的类型提升 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 16 接口 161 16.1 迭代 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353 37.15不要把不安全的操作暴露在接口层 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353 37.16不要重载基础容器类型的方法 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 773 55 迭代相关 775 56 C 接口 783 57 LLVM 接口 793 58 C 标准库 795 59 堆栈跟踪 799 60 SIMD 支持 801 CONTENTS xiii V Standard Library 803 61 Base640 码力 | 1238 页 | 4.59 MB | 1 年前3
Linear Algebra Coming to Standard C++(“cache-based”) Representative system Code optimization strategy Hand-optimize key loops in assembly Fuse loops to amortize latency & maximize instruction-level parallelism Maximize data reuse & minimize (“cache-based”) Representative system Code optimization strategy Hand-optimize key loops in assembly Fuse loops to amortize latency & maximize instruction-level parallelism Maximize data reuse & minimize (“cache-based”) Representative system Code optimization strategy Hand-optimize key loops in assembly Fuse loops to amortize latency & maximize instruction-level parallelism Maximize data reuse & minimize0 码力 | 46 页 | 2.95 MB | 6 月前3
Data Is All You Need for Fusionconsumption pattern to automatically fuse computation. 46The Big Idea: Enrich function interfaces with data production and consumption pattern to automatically fuse computation. 47 Only function signatureThe Big Idea: Enrich function interfaces with data production and consumption pattern to automatically fuse computation. 48 Compute independent subsetsFern! 49Fern! 50 manya227 June 2024 Pipeline pipeline({ model complicated dependencies BLUR X BLUR Y INPUT Fuse TilesEnough to model complicated dependencies Overlapping Inputs BLUR X INPUT BLUR Y Fuse TilesEnough to model complicated dependencies Unfused0 码力 | 151 页 | 9.90 MB | 6 月前3
Remote Execution Caching Compiler (RECC)bubblewrap buildbox-worker WORKER FARM BuildBox-CASD (Local Caching Proxy) BuildBox-Fuse (FUSE filesystem) + Distributed Cache + Distributed Build:© 2024 Bloomberg Finance L.P. All rights0 码力 | 6 页 | 2.03 MB | 6 月前3
Theorem Proving in Lean
Release 3.23.0simplifies subterms like 5 + 7 to 12. Using the auxiliary function simp_const, define a function “fuse”: to simplify a plus or a times, first simplify the arguments recursively, and then apply simp_const := e def fuse : aexpr → aexpr := sorry theorem simp_const_eq (v : N → N) : ∀ e : aexpr, aeval v (simp_const e) = aeval v e := sorry theorem fuse_eq (v : N → N) : ∀ e : aexpr, aeval v (fuse e) = aeval0 码力 | 173 页 | 777.93 KB | 1 年前3
Real World Gostore, – camget, get things from the blob store, – camsync, synchronize blob stores, – cammount, a FUSE filesystem for accessing your data. • two dozen assorted libraries. The Go parts 4 Google Confidential0 码力 | 49 页 | 595.19 KB | 1 年前3
JAVA 应用与开发 - 高级类特性�������������� October 9, 2018 ���� ��抽象类�接口的������定义方法 ��抽象类�接口的����� ����类的�类�����类�����类�匿名��类的 �� ��匿名内部类的���继承�接口实现的�法 ����类�的��方法 1 29 �� 1 抽象类 2 接口 3 抽象类�接口�� 4 ��类 5 ��类� 2 29 抽象类 �����类 类成员 > 的方法�� ��� 7 29 接口 ���interface� 接口 ��������接口����为��������������接 ��������的部��� � Java ������接口�����象的���������象� �的����������������实现��� 接口�抽象方法����的定义的���������接口��� ��的抽象类���抽象类�只包含常量定义和方法声明,而没有 变量和方法的实现� 8 29 ���interface� 接口 ��������接口����为��������������接 ��������的部��� � Java ������接口�����象的���������象� �的����������������实现��� 接口�抽象方法����的定义的���������接口��� ��的抽象类���抽象类�只包含常量定义和方法声明,而没有0 码力 | 61 页 | 677.55 KB | 1 年前3
Object Pascal 参考手册(Ver 0.1) 结构看起来这样: unit Unit1; interface Programs and units - 11 - uses { 这里是单元列表 } { 这里是接口部分 } implementation uses { 这里是单元列表 } { 这里是实现部分 } initialization { 这里是初始化部分 } section(接口部分) 单元的接口部分从关键字 interface 开始,直到实现部分的开头。接口部分声明常量、类型、变 量、过程和函数,所有这些对单元的客户(也就是引用此单元的程序或其它单元)是可用的。在接口部 分声明的实体被称为‘公用’的,因为它们对客户来说,就像自己声明的一样。 在接口部分声明的过程或函数只是一个例程头,它们的代码块(block)在实现部分定义。所以,在 接口部分声明过程和函数就像使用 接口部分声明过程和函数就像使用 forward 指示字,虽然这里它并没有出现。 在接口部分声明一个类时,必须包含它的所有成员。 接口部分可以包含自己的 uses 子句,它必须紧跟在关键字 interface 之后。关于 uses 子句,请参考 单元引用和 uses 子句。 Programs and units - 12 - The implementation section(实现部分)0 码力 | 168 页 | 868.25 KB | 1 年前3
Golang 101(Go语言101 中文版) v1.21.a第18章:数组、切片和映射 - Go中的首要容器类型 第19章:字符串 第20章:函数 - 函数类型和函数值,以及变长参数个数函数 第21章:通道 - Go特色的并发同步方式 第22章:方法 第23章:接口 - 通过包裹不同具体类型的非接口值来实现反射和多态 第24章:类型内嵌 - 不同于继承的类型扩展方式 第25章:非类型安全指针 第26章:泛型 - 如何使用和解读组合类型 第27章:反射 - reflect标准库包中提供的反射支持 关于各种其它主题 的文章。 所以现在《Go语言101》大约有50篇文章。 你曾经的困惑主要包括哪些方面? 一些困惑是关于一些Go语法和语义设计细节的。 一些困惑涉及到某些类型的 值,主要是切片,接口和通道类型。 另外一些涉及到标准包API的使用细节。 你认为造成你曾经的困惑的主要原因是什么? 我觉得最主要的原因是我当时抱着Go是一门非常简单的语言的态度去学习和使 用Go。 持有这种态度阻止了我更深刻地理解Go。 Go中的一些语法和语义设计很简单明了,但也有一些设计略微反直觉,甚至自 相矛盾。 Go语法和语义设计中有很多折衷和权衡。一个Go程序员需要相当的 Go编程经验和感悟才能理解这些权衡。 Go提供了几种基本但非必需的类型,比如切片,接口和通道。 Go编译器和运 行时在实现这些类型的时候,进行了必要的封装。 一方面,这些封装为Go编程 带来了许多便利,使我们不用从头实现这些类型。 但另一方面,这些封装隐藏 了这些类型的内部结构, 从0 码力 | 608 页 | 1.08 MB | 1 年前3
共 554 条
- 1
- 2
- 3
- 4
- 5
- 6
- 56













