SPVM :: SYS 0.26已发布 - Python/Numpy Portl的项目
#python #perl #spvm #numpy

SPVM::Sys 0.26释放。您将在几个小时内在CPAN上看到它。 SPVM :: SYS是用于调用系统调用的类,例如文件I/O,套接字,用户/组,进程。 SPVM :: SYS是在SPVM::Sys on Github上开发的。

对于Python/numpy移植到Perl的项目,SPVM :: SYS是从文件读取/写数据的基本类。

Changes:

0.26 2022-11-12
  [Incompatible Changes]
    * The definitions of the following methods in the Sys::IO::Stat class are changed.
      [Before]
        method st_dev : int ();
        method st_ino : int ();
        method st_nlink : int ();
        method st_rdev : int ();
      [After]
        method st_dev : long ();
        method st_ino : long ();
        method st_nlink : long ();
        method st_rdev : long ();
   * The stat and lstat methods in the Sys::IO class are moved to the Sys::IO::Stat class.

  [New Features]
    * Added the following methods to the Sys::IO::Stat class.
      static method fstat_raw : int ($fd : int, $stat : Sys::IO::Stat);

      static method fstat : int ($fd : int, $stat : Sys::IO::Stat);

    * Added the following methods to the Sys::IO class.

      static method readline : mutable string ($stream : Sys::IO::FileStream);

      static method ftruncate : int ($fd : int, $length : long);

      static method ungetc : int ($c : int, $stream : Sys::IO::FileStream);

      static method fsync : int ($fd : int);

      static method freopen : Sys::IO::FileStream ($path : string, $mode : string, $stream : Sys::IO::FileStream);

      static method setvbuf : int ($stream : Sys::IO::FileStream, $buf : mutable string, $mode : int, $size : int);

      static method setbuf : void ($stream : Sys::IO::FileStream, $buf : mutable string);

      static method setbuffer : void ($stream : Sys::IO::FileStream, $buf : mutable string, $size : int);

      static method setlinebuf : void ($stream : Sys::IO::FileStream);

      static method stdin : Sys::IO::FileStream ()

      static method stdout : Sys::IO::FileStream ()

      static method stderr : Sys::IO::FileStream ()

    * Added the following methods to the Sys::IO::Constant class.

      static method STDIN_FILENO : int ();

      static method STDOUT_FILENO : int ();

      static method STDERR_FILENO : int ();

      static method BUFSIZ : int ();

      static method _IONBF : int ();

      static method _IOLBF : int ();

      static method _IOFBF : int ();

    * Added the offset argument to the following methods.
      [Before]
      static method read : int ($fd : int, $buf : mutable string, $count : int);
      static method write : int ($fd : int, $buf : string, $count : int);
      static method fread : int ($ptr : mutable string, $size : int, $nmemb : int, $stream : Sys::IO::FileStream);
      static method fgets : mutable string ($s : mutable string, $size : int, $stream : Sys::IO::FileStream);
      static method fwrite : int ($ptr : string, $size : int, $nmemb : int, $stream : Sys::IO::FileStream);

      [After]
      static method read : int ($fd : int, $buf : mutable string, $count : int, $buf_offset = 0 : int);
      static method write : int ($fd : int, $buf : string, $count : int, $buf_offset = 0 : int);
      static method fread : int ($ptr : mutable string, $size : int, $nmemb : int, $stream : Sys::IO::FileStream, $ptr_offset = 0 : int);
      static method fgets : mutable string ($s : mutable string, $size : int, $stream : Sys::IO::FileStream, $s_offset = 0 : int);
      static method fwrite : int ($ptr : string, $size : int, $nmemb : int, $stream : Sys::IO::FileStream, $ptr_offset = 0 : int);

什么是SPVM?

SPVM是一种可以从Perl使用的静态打字语言。 SPVM是Pe​​rl的Python/Numpy移植的必不可少的部分。如果您还没有听说过Perl的SPVM。请参阅SPVM Language Specification

SPVM的潜在剂量如何?

预计在Bio Tech,AI/ML,Apple/iPhone/iPad应用程序,Google/Android应用程序,IoT设备,连接的汽车,智能设备,智能家居等的领域将有望增长。

这是因为SPVM可以生成支持交叉平台并易于计算数组并​​绑定C/C ++和NVIDIA/GPU/CUDA的可执行文件。

SPVM文档

SPVM模块

该项目确实需要贡献者,赞助商,投资者。

这个项目确实需要贡献者。我正在寻找贡献者,赞助商,投资者。