P
SRFI 269 is now in final status.This SRFI defines a portable API for test definitions that is decoupled from test execution and reporting. It provides four definition forms: the universal is macro for assertions, testing for giving groups of assertions human-readable context, test for grouping assertions into independently executable units, and suite for organizing tests into hierarchies. The exported metadata auxiliary syntax attaches user-provided information to tests and suites to adjust the…
P
Hi everyone. In this blog post I want to take you in an adventure of parsing Org mode with Parsing Expression Grammars (PEG) in Guile Scheme (ice-9 peg) and converting to HTML (via SXML): OrgWebAlchemy. I wanted to share something with you all that I’ve been working on for a while. It all started with some naive regular expressions to parse Org mode content, but I pretty quickly realized I needed something smarter than that to get to where I want to. It’s taken a while but I am finally more…
P
SRFI 285 is now in draft status. This SRFI details an API for storing and manipluating dates and times. This SRFI decomposes dates and times into dates (a count of days in the proleptic Gregorian calendar), clock times (time of day, independent of time zone), moments (instants in TAI), timezones (a possibly dynamic offset from UTC), timestamps (a date, clock time,and timezone), and time deltas (measurement of elapsed time). By doing this, a Scheme program can operate on days in different…
P
SRFI 284 is now in draft status.This SRFI defines the forms define-typed and define-typed* for creating procedures with checked type boundaries. It allows checking the arguments and/or the return value or values with simple predicate procedures and raises exceptions on usage when they don’t match. The form define-typed* supports keyword and optional arguments. For ad-hoc procedures for map or fold, it also provides lambda-typed and lambda-typed*. The implementation for Guile is optimized to…
P
I remember the moment when I learned about immutability. It changed everything. — Denis Defreyne Periodically, in various programming language forums, the discussion comes up of why a certain language doesn’t provide the immutable and mutable variants of some data structure as subtypes or supertypes of one another. Now, it’s not impossible to do this, but it’s actually not formally correct to do so, and by doing so you’ll lose at least some of the type checking guarantees your language can…
P
SRFI 283 is now in draft status. This SRFI focuses on the introspection and type inference sides of typing / checking. It provides several useful procedures deriving types / checks for arbitrary data. procedure-check-of and check-of work with checks, as in SRFI 253. procedure-type-of and type-of work with implementation-specific types. check->sexp provides a way to serialize opaque checks from above into more readable s-expressions.
P
SRFI 282 is now in final status. Types and entities deserve predicates so that their user can meaningfully understand what they are dealing with, and usefully dispatch on them in their code. However, some R7RS “types” have no respective predicates. This SRFI defines them.
P
Here’s a couple of things hanging around in my pre-SRFIs repo which I think are particularly interesting but which, owing to recent events, I’m unlikely to take any further within the context of Scheme. They might form part of a future programming language adventure, but in the meanwhile I’d like to document them here in the hope that some of them might be interesting to passers-by who may like to take them up. Turtle records Record systems are a design nightmare. Existing record type systems…
P
SRFI 277 is now in final status. Cyclic ports are like infinite string and bytevector input ports: they produce the elements of a given sequence repeatedly, forever. While their intended use is as reusable seeds for SRFI 271 random ports, they are also useful whenever a repeating sequence of one or more bytes or characters is needed.
P
Do come in and sit down. Pour yourself a cup of tea – I’ve just made a fresh pot. It’s been quite a ride since we last met to talk about these things. I became Scheme chair, but I’m not any more. Indeed, I’ve had to quit Scheme entirely. Let me tell you how this happened. Obviously, I’m a lot more personally (and emotionally) invested in telling the story this time than I was last time. It should go without saying that, like last time, this is my own view on what happened. The story so far In…