Futhark 0.5.1 发布,小型全新的函数式编程语言

  

Futhark 0.5.1 已发布

Futhark 是一个小型全新的函数式编程语言,可编译为高性能的 GPU 代码。使用静态类型、并行数据以及纯函数数组语言。该语言对编译器提前进行重度的优化,通过 OpenCL 生成 GPU 代码。Futhark 并非为图形编程而设计,通过使用 GPU 来加速并行的数组计算,支持常规嵌套的数据并行化处理。

Futhark 使用 Haskell 语言开发。

该版本的主要变化是切换到新的版本方案,以后发布的版本号永远不会以.0结束。这个版本是一个稳定和整合的版本。

具体更新如下:

Added

  • Entry points need no longer be syntactically first-order.

  • Added overloaded numeric literals (#532). This means type
    suffixes are rarely required.

  • Binary and unary operators may now be bound in patterns by
    enclosing them in parenthesis.

  • futhark-doc now produces much nicer documentation. Markdown is
    now supported in documentation comments.

    扫描二维码关注公众号,回复: 1427052 查看本文章
  • /futlib/functional now has operators >-> and <-< for
    function composition. <<| are |>> are deprecated.

  • /futlib/segmented now has a segmented_reduce.

  • Scans and reductions can now be horizontally fused.

  • futhark-bench now supports multiple entry points, just like
    futhark-test.

  • ".." is now supported in include paths.

Removed

  • The reshape construct has been removed. Use the
    flatten/unflatten functions instead.

  • concat and rotate no longer support the @ notation. Use
    map nests instead.

  • Removed -I/--library. These never worked with
    futhark-test/futhark-bench anyway.

Changed

  • When defining a module type, a module of the same name is no
    longer defined (#538).

  • The default keyword is no longer supported.

  • /futlib/merge_sort and /futlib/radix_sort now define
    functions instead of modules.

Fixed

  • Better type inference for rearrange and rotate.

  • import path resolution is now much more robust.

点此查看完整更新日志 https://github.com/diku-dk/futhark/releases/tag/v0.5.1

下载

猜你喜欢

转载自www.oschina.net/news/96701/futhark-0-5-1-released