More from dthompson
I'm happy to announce that guile-bstructs 0.2.0 has been released! About guile-bstructs Guile-bstructs is a library that provides structured read/write access to binary data for Guile. A bstruct (short for “binary structure”) is a data type that encapsulates a bytevector and a byte offset which interprets that bytevector based on a specified layout. See the guile-bstructs project page for more information. Notable changes Added support for anonymous structs and unions. Contrived example: (define-bstruct <location> (struct (id int) (union (struct (x double) (y double) (z double)) (coords (array 3 double))))) Made bstruct-wrap offset optional. Added bstruct-by-value syntax. Added void primitive type. Added support for array elements to bstruct-ref, bstruct-set, etc. Bug fixes Fixed guard clause for bstruct-by-value. Added missing symbolic-match? check in define-bstruct-primitive. Internal type descriptor ids are now stable to allow for clean redefinition at the REPL. Download Starting with this release, I am no longer uploading release tarballs. This is due to Guix moving away from them and for good reason after events like the xz-utils backdoor. Build from the v0.2.0 tag in Git, instead.
I'm happy to announce that guile-websocket 0.3.0 has been released! Guile-websocket is an implementation of the WebSocket protocol, both the client and server sides, for Guile Scheme. Highlights for this release are: New (web socket) module that provides a standard Scheme port interface for WebSockets. WebSocket is a framed protocol, not a simple bytestream, but the new wrappers websocket and wrap-websocket provide the useful illusion of a raw bytestream. The #:max-attempts argument to read-data-frame can now be #f, meaning that the read operation should never give up in the case of a read timeout. This is useful for keeping server-side client connections alive as long as the client hasn't hung up, even if ping frames haven't been sent in awhile. New websocket-upgrade-request?, websocket-upgrade-response?, and make-websocket-upgrade-response procedures in (web socket server). These new procedures allow for integration of WebSockets into custom Guile HTTP servers rather than having to use the overly simplistic built-in one that only handles WebSocket requests. The #:configure-socket argument to open-websocket-for-uri has been deprecated. In practice, user code just needs to set some socket flags, particularly SOCK_NONBLOCK for asynchronous I/O. Use the new #:flags argument instead. source tarball: https://files.dthompson.us/releases/guile-websocket/guile-websocket-0.3.0.tar.gz signature: https://files.dthompson.us/releases/guile-websocket/guile-websocket-0.3.0.tar.gz.asc See the guile-websocket project page for more information. Bug reports, bug fixes, feature requests, and patches are welcomed.
I'm happy to announce that guile-websocket 0.2.1 has been released! Guile-websocket is an implementation of the WebSocket protocol, both the client and server sides, for Guile Scheme. This small patch release contains the following changes: Greatly improved validation of initial handshake request on server. In previous releases, when bots discovered a server and sent random HTTP requests they’d cause needless exceptions to be thrown and clog up server logs. The accept-client hook can now return #t when a new client has not connected but the server loop should continue anyway. source tarball: https://files.dthompson.us/releases/guile-websocket/guile-websocket-0.2.1.tar.gz signature: https://files.dthompson.us/releases/guile-websocket/guile-websocket-0.2.1.tar.gz.asc See the guile-websocket project page for more information. Bug reports, bug fixes, feature requests, and patches are welcomed.
I'm pleased to announce that the very first release of guile-bstructs, version 0.1.0, has been released! This is a library I've been working on for quite some time and after more than one rewrite and many smaller refactors I think it's finally ready to release publicly. Let's hope I'm not wrong about that! About guile-bstructs Guile-bstructs is a library that provides structured read/write access to binary data for Guile. A bstruct (short for “binary structure”) is a data type that encapsulates a bytevector and a byte offset which interprets that bytevector based on a specified layout. Some use cases for bstructs are: manipulating C structs when using the foreign function interface packing GPU vertex buffers when using graphics APIs such as OpenGL implementing data types that benefit from Guile's unboxed math optimizations such as vectors and matrices This library was initially inspired by guile-opengl's define-packed-struct syntax but is heavily based on "Ftypes: Structured foreign types" by Andy Keep and R. Kent Dybvig. The resulting interface is quite similar but the implementation is completely original. This library provides a syntax-heavy interface; nearly all of the public API is syntax. This is done to ensure that bstruct types are static and well-known at compile time resulting in efficient bytecode and minimal runtime overhead. A subset of the interface deals in raw bytevector access for accessing structured data in bytevectors directly without going through an intermediary bstruct wrapper. This low-level interface is useful for certain batch processing situations where the overhead of creating wrapper bstructs would hinder throughput. Example Here is some example code to give you an idea of what it’s like to use guile-bstructs: ;; Struct (define-bstruct <vec2> (struct (x float) (y float))) ;; Get size/alignment (bstruct-sizeof <vec2>) ; => 8 (bstruct-alignof <vec2>) ; => 4 ;; Allocation (define v (bstruct-alloc <vec2> (x 42.0) (y 61.0))) ;; Check type (bstruct? <vec2> v) ; => #t ;; Read (bstruct-ref <vec2> v x) ; => 42.0 (bstruct-ref <vec2> v x y) ; => 42.0, 61.0 ;; Write (bstruct-set! <vec2> v (x 0.0) (y 0.0)) ;; Convert to s-expression (bstruct->sexp <vec2> v) ; => ((struct (x 42.0) (y 61.0))) ;; Convert FFI pointer (pointer->bstruct <vec2> my-pointer) ;; More type examples: ;; Type group with a union (define-bstruct (<mouse-move-event> (struct (type uint8) (x int32) (y int32))) (<mouse-button-event> (struct (type uint8) (button uint8) (state uint8) (x int32) (y int32))) (<event> (union (type uint8) (mouse-move <mouse-move-event>) (mouse-button <mouse-button-event>)))) ;; Array (define-bstruct <matrix4> (array 16 float)) ;; Bit fields (define-bstruct <date> (bits (year 32 s) (month 4 u) (day 5 u))) ;; Pointer (define-bstruct (<item> (struct (type int))) (<chest> (struct (opened? uint8) (item (* <item>))))) ;; Packed struct modifier (define-bstruct <enemy> (packed (struct (type uint8) (health uint32)))) ;; Endianness modifier (define-bstruct <big-float> (endian big float)) ;; Recursive type (define-bstruct <node> (struct (item int) (next (* <node>)))) ;; Mutually recursive type group (define-bstruct (<forest> (struct (children (* <tree>)))) (<tree> (struct (value int) (forest (* <forest>)) (next (* <tree>))))) ;; Opaque type (define-bstruct SDL_GPUTexture) Download Source tarball: guile-bstructs-0.1.0.tar.gz GPG signature: guile-bstructs-0.1.0.tar.gz.asc This release was signed with this GPG key. See the guile-bstructs project page for more information.
More in programming
slug: design-audit-ai-built-github-clone
Good evening! Long time no type. I am feeling a lightness, a floating, and wanted to share it with you. In a , I confessed that once, adrift, unmoored from God, I threw away my bible and reached instead for a slim pamphlet, the United Nations Declaration of Human Rights. One needs a anchor betimes. It was a funny instinct but not capital-W Wrong. I joined the university chapter of Amnesty International; I wasn’t much on writing to political prisoners, but much more about opposing Wrong, that which was Not Right. Any port in a storm, I suppose. We would table in the university quad, hold posters at prominent intersections in town, and vigil all night outside the state prison on execution nights. I admired the chapter president, and somehow, eventually, in a way I still don’t understand, I became president.previous missive I didn’t do a great job. I’m not great at motivating people; that requires a combination of organization and follow-through, and though I’m good at steady participation (I’ll show up), I will do anything rather than send an e-mail on time. I think I became president by virtue of participating and then proceeded to do it poorly, leading the organization to a period of gentle decline. The nice thing about trying things at university is that there is a natural term limit; graduation bounds the damage any one person can do. — I don’t know what pulls me to this kind of rights-based organization. Though human rights are a useful rhetorical device, I no longer have the grasping faith that they are axiomatic, beyond reason themselves. But they seem to correlate with what I feel in my bones, that a christian who works for the “least of us” is more my comrade than the atheist that can’t be arsed. — Time passed. I changed countries, once, twice; new ports, new storms. One stays plugged in to home, though, and you can’t really unplug from the US. When Trump was elected in 2016 I knew it was going to get bad for immigrants, and I knew also that I couldn’t do anything about it. Anything there, anyway. But it was Not Right. I decided to reach out to a couple local associations that worked for immigrant rights; after all, I am an immigrant here in France, I have been through the system and I knew how to work it pretty well. I ended up joining the local chapter, riding shotgun in the weekly office-hours sessions that sometimes lasted until eleven at night.Ligue des droits de l’Homme I admired the chapter president and somehow, eventually, in a way I don’t understand, I became president. Dint of participation, I expect. Groups like this are funny: there is no graduation, just incapacity, death, and attrition. Around 2018 or so, some lifers got in a spat, and almost tore the place apart. The chapter I inherited in late 2020 was a husk of what it was. I kept the lights on, and I’m still there at the weekly office hours, three weeks out of four. But happily, like university, statutory term limits mitigate the effect that any one person can have, and I am delighted, elated that as of tonight, I am free again, free from being responsible for sending emails to tell people what they already know, that the monthly meeting is the last Thursday in the month, that we need to figure out who will staff which office hours, free to be nagged by someone else instead of being the one to do the nagging. And so that’s the end of tonight’s short note: I’m free, wheee!!!
The ware for October 2026 is the control board from a SodaStream drinking water carbonation machine. It was really interesting to see people puzzle over the nature of the board – I would say I’d have a similarly difficult time guessing this. On the flip side, I also never would have suspected that the operating […]
Sumatra File Manager is a file manager for Windows. Multiple selection Several files can be selected with Ctrl and Shift click. See this day in the changelog, the full changelog, or download Sumatra File Manager.