Language Selection

English French German Italian Portuguese Spanish

GNU Guile-SDL 0.6.0 available

Filed under
GNU

release notes:

  Lots of love this time.  Shout out to all technical writers!

  Please see also the (currently wip, it may have finished by the time
  you read this) "Hooray!" series: <https://www.gnuvola.org/uc/hooray/>.

README excerpt:

  Guile-SDL is a set of modules that provide bindings for various
  Simple DirectMedia Layer (http://www.libsdl.org) libraries.

  Most of the SDL functions are wrapped, with the exception of a
  few functions that are too C-centric.  The SDL threads, audio
  and network functions are not included.  However, there are
  (optionally configured) bindings for SDL_mixer and SDL_ttf.

  Also included is SDL_gfx 2.0.26 (by Andreas Schiffler) source
  code (ZLIB license) and bindings for it.

  This is alpha code (pre 1.0 release), tested with various,
  but not all, versions of Guile and SDL.  It may have bugs,
  and the interfaces may change from version to version.

NEWS for 0.6.0 (2022-02-05):

  - bugfix: avoid range error in image filter procedures

    Procedures ‘imfi-add-c’ and ‘imfi-sub-c’ used to convert 3rd arg
    ‘c’ (constant) from Scheme to C using a signed integer function
    that would signal range error for large values.  This is now
    fixed to use an unsigned integer function to do the job.

  - intermittent crash fix reverted

    The fix in Guile-SDL 0.5.3 (2021-12-11) was not The Right Thing.
    It has been reverted and a better solution put in place.  We now
    initialize the ‘event-thread’ subsystem in test/cursor.scm.  AHA
    moment: <https://www.gnuvola.org/u/2022/01/08h13.html>.

  - embedded SDL_gfx upgraded to version 2.0.26

    This brings bugfixes and MMX support for x86_64 (amd64),
    primarily.  Now, "cd test && make check TESTS=gfx.scm" really
    flies!

    NB: The license for SDL_gfx is now the zlib license.  See
    src/SDL_gfx/LICENSE in the distribution for the new text.

  - ‘(sdl gfx) fps-manager-delay!’ can have meaningful rv

    The embedded SDL_gfx is currently at version 2.0.26, but the
    previous version was 2.0.22, and its function that underlies
    ‘fps-manager-delay!’ did not have a meaningful return value.
    Previously, if you configured w/ ‘--disable-embedded-gfx’ and
    built w/ SDL_gfx 2.0.24 or later (that DOES have a meaningful
    rv), such ignorance was foisted upon you.  Now, you are free to
    fully enjoy that sweet rv.  :-D

  - changes to to ‘(sdl gfx) blit-rgba’

    - accepts ‘#f’ for 2nd, 4th arg

      The 2nd and 4th args to ‘blit-rgba’ indicate the source and
      destination rectangles, respectively.  Previously, they were
      required to be fully specified.  Now, you can use ‘#f’ there to
      indicate the entire (source/destination) surface.

    - return value more informative

      Previously, ‘blit-rgba’ returned ‘#f’ if there were problems and
      ‘#t’ if not.  However, "no problem" was narrowly interpreted and
      missed a certain common case -- upshot is that it incorrectly
      returned ‘#f’ even in that case.

      Now, if there were no problems, it returns an integer: 1 if a
      blit was performed, 0 otherwise.  (If there were problems, it
      returns ‘#f’ as before -- use ‘get-error’ to get more info.)

  - new proc: ‘(sdl misc-utils) exact-floor’

    Actually, this is an old proc that was misguidedly deleted in
    2011 to make room for ‘exact-truncate’.  Both are useful in
    their own right, it is now evident.  Live and learn.

  - new proc: ‘(sdl sdl) must-lock?’

    This wraps the convenience C macro ‘SDL_MUSTLOCK’.  Useful (in
    conjunction w/ ‘lock-surface’ and ‘unlock-surface’) for avoiding
    segfaults when examining pixel data from RLE-enabled surfaces.

  - new proc: ‘(sdl gfx) multiply-pixel-alpha!’

    This multiples the alpha channel in a 32-bit surface by FACTOR
    (actually, FACTOR/256).  The underlying function has been
    available in SDL_gfx since version 2.0.21, so this is a bit of
    a late bloomer.  Still, more alpha blending for everyone!

  - new proc: ‘(sdl gfx) fps-manager-count’

    This returns the frame count (i.e., how many times
    ‘fps-manager-delay!’ was called) for an FPS manager.
    Another late bloomer (again, since SDL_gfx 2.0.21).

  - documentation improvements

    - external representations described

      The manual now includes a description of the external
      representation of these object types:

       Pixel Format
       Rectangle
       Color
       Surface
       Joystick
       CDROM Drive
       FPS Manager

      Types with a standard (non-custom, Guile-generated) external
      representation are not documented.

      By the way, the Surface external representation now also
      includes "L" to indicate that the surface is locked.

    - image filtering procedures general behavior documented

      The manual now sports three paragraphs describing commonalities
      of the ‘imfi-*’ procedures, as well as the special processing
      done by ‘imfi-add-c’, ‘imfi-sub-c’, ‘imfi-lshr’, ‘imfi-lshl’.

    - say "byte", not "nybble"

      The documentation for ‘surface-pixels’ was simply wrong (but it
      sounded groovy for a while to Some Fool, probably).

  - bootstrap/maintenance tools

    upgraded:

     Guile-BAUX 20211208.0839.a5245e7
     GNU gnulib 2022-01-27 07:00:41

    as before:

     GNU Libtool 2.4.6
     GNU Autoconf 2.71
     GNU Automake 1.16.5
     GNU Texinfo 6.8

tarballs and detached signatures:

  https://ftpmirror.gnu.org/guile-sdl/guile-sdl-0.6.0.tar.lz
  https://ftpmirror.gnu.org/guile-sdl/guile-sdl-0.6.0.tar.lz.sig

source code:

  https://git.savannah.gnu.org/cgit/guile-sdl.git/?h=p

homepage:

  https://www.gnu.org/software/guile-sdl/

Read more

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.