Julia 中文文档
函数 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 28.5 内存管理 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 Updating 低调又牛逼的类型系统 • 优雅、可扩展的类型转换和类型提升 • 对 Unicode 的有效支持,包括但不限于 UTF-8 • 直接调用 C 函数,无需封装或调用特别的 API • 像 Shell 一样强大的管理其他进程的能力 • 像 Lisp 一样的宏和其他元编程工具 Part III 手册 11 Chapter 3 入门 无论是使用预编译好的二进制程序,还是自己从源码编译,安装 Julia 调用匿名函数,正如在 map(func, [A, B, C]) 语法中所发生的。 这种语法使得更容易使用函数来有效地扩展语言,因为调用看起来就像普通代码块。有许多可能的 用法与 map 完全不同,比如管理系统状态。例如,有一个版本的 open 可以通过运行代码来确保已经 打开的文件最终会被关闭: open("outfile", "w") do io write(io, data) end 这是通过以下定义实现的:0 码力 | 1238 页 | 4.59 MB | 1 年前3julia 1.13.0 DEV
C program that initializes Julia and calls some Julia code: #includeJULIA_DEFINE_FAST_TLS // only define this once, in an executable (not in a shared library) if you want fast code. �→ int the Julia C API from a thread started by Julia itself: #include JULIA_DEFINE_FAST_TLS double c_func(int i) { printf("[C %08x] i = %d\n", pthread_self(), i); // Call the Julia sqrt() using the (internal) function Base.tls_world_age julia> function f end f (generic function with 0 methods) julia> begin @show (Int(Base.get_world_counter()), Int(Base.tls_world_age())) Core.eval(@__MODULE__ 0 码力 | 2058 页 | 7.45 MB | 3 月前3Julia 1.12.0 RC1
C program that initializes Julia and calls some Julia code: #includeJULIA_DEFINE_FAST_TLS // only define this once, in an executable (not in a shared library) if you want fast code. �→ int the Julia C API from a thread started by Julia itself: #include JULIA_DEFINE_FAST_TLS double c_func(int i) { printf("[C %08x] i = %d\n", pthread_self(), i); // Call the Julia sqrt() using the (internal) function Base.tls_world_age julia> function f end f (generic function with 0 methods) julia> begin @show (Int(Base.get_world_counter()), Int(Base.tls_world_age())) Core.eval(@__MODULE__ 0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta4
C program that initializes Julia and calls some Julia code: #includeJULIA_DEFINE_FAST_TLS // only define this once, in an executable (not in a shared library) if you want fast code. �→ int the Julia C API from a thread started by Julia itself: #include JULIA_DEFINE_FAST_TLS double c_func(int i) { printf("[C %08x] i = %d\n", pthread_self(), i); // Call the Julia sqrt() using the (internal) function Base.tls_world_age julia> function f end f (generic function with 0 methods) julia> begin @show (Int(Base.get_world_counter()), Int(Base.tls_world_age())) Core.eval(@__MODULE__ 0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta3
C program that initializes Julia and calls some Julia code: #includeJULIA_DEFINE_FAST_TLS // only define this once, in an executable (not in a shared library) if you want fast code. �→ int the Julia C API from a thread started by Julia itself: #include JULIA_DEFINE_FAST_TLS double c_func(int i) { printf("[C %08x] i = %d\n", pthread_self(), i); // Call the Julia sqrt() using the (internal) function Base.tls_world_age julia> function f end f (generic function with 0 methods) julia> begin @show (Int(Base.get_world_counter()), Int(Base.tls_world_age())) Core.eval(@__MODULE__ 0 码力 | 2057 页 | 7.44 MB | 3 月前3julia 1.10.10
C program that initializes Julia and calls some Julia code: #includeJULIA_DEFINE_FAST_TLS // only define this once, in an executable (not in a shared library) if you want fast code. int main(int the Julia C API from a thread started by Julia itself: #include JULIA_DEFINE_FAST_TLS double c_func(int i) { printf("[C %08x] i = %d\n", pthread_self(), i); // Call the Julia sqrt() PEM-encoded certificate authority roots. By default, on systems like Windows and macOS where the built-in TLS engines know how to verify hosts using the system's built-in certificate verification mechanism, this 0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
C program that initializes Julia and calls some Julia code: #includeJULIA_DEFINE_FAST_TLS // only define this once, in an executable (not in a shared library) if you want fast code. int main(int the Julia C API from a thread started by Julia itself: #include JULIA_DEFINE_FAST_TLS double c_func(int i) { printf("[C %08x] i = %d\n", pthread_self(), i); // Call the Julia sqrt() PEM-encoded certificate authority roots. By default, on systems like Windows and macOS where the built-in TLS engines know how to verify hosts using the system's built-in certificate verification mechanism, this 0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.11.4
C program that initializes Julia and calls some Julia code: #includeJULIA_DEFINE_FAST_TLS // only define this once, in an executable (not in a shared library) if you want fast code. �→ int the Julia C API from a thread started by Julia itself: #include JULIA_DEFINE_FAST_TLS double c_func(int i) { printf("[C %08x] i = %d\n", pthread_self(), i); // Call the Julia sqrt() PEM-encoded certificate authority roots. By default, on systems like Windows and macOS where the built-in TLS engines know how to verify hosts using the system's built-in certificate verification mechanism, this 0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.5 Documentation
C program that initializes Julia and calls some Julia code: #includeJULIA_DEFINE_FAST_TLS // only define this once, in an executable (not in a shared library) if you want fast code. �→ int the Julia C API from a thread started by Julia itself: #include JULIA_DEFINE_FAST_TLS double c_func(int i) { printf("[C %08x] i = %d\n", pthread_self(), i); // Call the Julia sqrt() PEM-encoded certificate authority roots. By default, on systems like Windows and macOS where the built-in TLS engines know how to verify hosts using the system's built-in certificate verification mechanism, this 0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia v1.9.4 Documentation
C program that initializes Julia and calls some Julia code: #includeJULIA_DEFINE_FAST_TLS // only define this once, in an executable (not in a shared library) if you want fast code. int main(int the Julia C API from a thread started by Julia itself: #include JULIA_DEFINE_FAST_TLS double c_func(int i) { printf("[C %08x] i = %d\n", pthread_self(), i); // Call the Julia sqrt() PEM-encoded certificate authority roots. By default, on systems like Windows and macOS where the built-in TLS engines know how to verify hosts using the system's built-in certificate verification mechanism, this 0 码力 | 1644 页 | 5.27 MB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9