Barry Schwartz 🫖
banner
chemoelectric.masto.ai.ap.brid.gy
Barry Schwartz 🫖
@chemoelectric.masto.ai.ap.brid.gy
Monster Island Tea, Pen, Oxford Commas & Non-loco #Physics.
A Division of The Crud Factory.

☙ To be good at scientific method, distrust scientific authority […]

[bridged from https://masto.ai/@chemoelectric on the fediverse by https://fed.brid.gy/ ]
I just wrote this and added it to my new autoconf archive at my chemoelectric github account:

https://pastebin.com/AeWDt9Yy

(To be distinguished from my older ‘sortsmill’ autoconf archive, which I am phasing out.)

The macro might interest people because it contains several shell commands I […]
Original post on masto.ai
masto.ai
December 6, 2025 at 6:07 PM
December 6, 2025 at 1:59 PM
I am so silly.

How to do reversible assignment in an Icon-like Scheme sublanguage is so dang obvious. You simply wrap it in dynamic-wind.
December 6, 2025 at 10:45 AM
Types are done all wrong in Scheme. It’s just wrong. You should not be testing objects for their types. You should be extracting a type object from the object and testing the type object.

I am about to rework the ‘define-record-interface’ I was just so proud about into ‘define-record-factory’ […]
Original post on masto.ai
masto.ai
December 6, 2025 at 9:19 AM
I got the Gerbil Scheme compiler into the Pipchix test suite but disabled by default.

Because it doesn’t work in parallel testing.

It doesn’t work in distcheck.

And is slow. I had to completely turn off optimization, too.

The developer has an arrangement for where files go during the […]
Original post on masto.ai
masto.ai
December 6, 2025 at 8:56 AM
I just added (pipchix define-record-interface) and am pretty darn proud.

All you need is R⁷RS/SRFI-9.
December 4, 2025 at 11:22 PM
This is what they just don’t seem to get.

All this nonsense with different record type SRFIs is NONSENSE.

Types should be first-class objects.

Things that create things should be able to assign a type to the things they create!

THEN THE PROBLEM IS SOLVED GENERALLY.

You want inheritance? […]
Original post on masto.ai
masto.ai
December 4, 2025 at 9:47 PM
I was wrong about converting to let a=3; in let b=4; being how to do (nix-let (`a==>3)(`b==>4) in Pipchix. That would be how to do nix-let* with the asterisk! Because doing a let in order is written in Scheme with an asterisk. Without the asterisk it is a SIMULTANEOUS binding. And written […]
Original post on masto.ai
masto.ai
December 4, 2025 at 5:52 PM
I watch ‘Mayday: Air Accident Investigation’ and just get more and more and more angry that our DEPLORABLE UNIVERSITIES (yes, I mean Harvard, Princeton, Oxford, etc.) graduate people who can believe FOR A SINGLE MINUTE that an airplane wing can get its lift from airflow over its TOP, or that […]
Original post on masto.ai
masto.ai
December 4, 2025 at 5:13 PM
I am rearranging the record types for the AST nodes in Pipchix. And it occurs to me how WRONGHEADED it is that the record type SRFIs have ‘inheritance’ features.

NO, NO, NO, NO, NO!

What you do is make TYPING a thing you can handle as data just like anything else. And then you can arrange […]
Original post on masto.ai
masto.ai
December 4, 2025 at 4:49 PM
I am building Gerbil and will try to add it as one of the R7RS implementations to test against.

Also I may be close to figuring out one way to test with the Gambit compiler. Maybe one can compile by telling the compiler to put everything in one namespace?
December 4, 2025 at 11:48 AM
How many of you folk do not know Unix had a filename length limit of 14 characters?

I mean, it was a different universe.

Yeah, the Berzerkeley Software Distribution embiggulated that, and then so did SysVR4.
December 4, 2025 at 11:47 AM
The module system in Gambit Scheme seems to work just as I said I would make my module system work.

It simply sticks the module name in the names of symbols.

I have pointed out I might use a hash function to obscure the names of the modules. Just to be a scoundrel. But it is the same thing.
December 3, 2025 at 5:57 PM
Alright, then. I reworked the macros to rewrite the syntax recursively if the attribute path be on the left. Thus the macros now no longer require SRFI-46/R⁷RS compliance and will work with Gambit Scheme.

Gambit also seems to require that you explicitly export all macros. That is, there are no […]
Original post on masto.ai
masto.ai
December 2, 2025 at 5:04 PM
The NixOS lesspipe.sh is TERRIBLE. I am done with it. I cannot wait until the end of time for a listing that then I cannot possibly read.

I am writing my own lesspipe. Here it is so far. It may have bugs.

https://pastebin.com/qQ82A9RQ

#nixos
lesspipe - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
December 2, 2025 at 2:20 PM
Yeah, that’s it. I can infer it from the Gambit manual. Gambit does not comply with SRFI-46. It must have a very old psyntax implementation as its means of implementing both syntax-case and syntax-rules.

If I want to support Gambit, I will have to complicate the syntax-rules to get it to work […]
Original post on masto.ai
masto.ai
December 2, 2025 at 3:36 AM
As for SRFI-148, it is easy to get that working in Gauche. But it seems fragile in other R⁷RS implementations. Being a ck-macros implementation, it should be difficult to debug.

But I tried it in Chez Scheme and it complained you couldn’t even do some of the things the syntax-rules were trying […]
Original post on masto.ai
masto.ai
December 1, 2025 at 7:33 PM
My syntax-rules indeed are not R⁵RS-compatible and so this MIGHT be why they do not work in Gambit Scheme, despite it claiming to support R⁷RS.

SRFI-46 is needed, at least. This calls for allowing things to come after an ellipsis in a pattern. And I have that.
December 1, 2025 at 7:30 PM
LOL. I was able to capture a default shell-print parameter setting for Pipchix into a continuation object (once I added Feeley-style continuation objects to Pipchix for no good reason) and later graft a procedure to that continuation. Or, in other words, save that setting for later.

Which was […]
Original post on masto.ai
masto.ai
December 1, 2025 at 4:13 PM
Guile seems to be the only Scheme I am testing against that does not have er-macro-transformer, either.

I mean, I should expect a FEW things beyond the standards.

(What may have made Gambit fail, for instance, is it may not have had certain extensions to syntax-rules that everyone else has.)
December 1, 2025 at 1:59 PM
As I say, I have had bad luck with Gambit.

It does not like my syntax-rules. Even though every other Scheme has no problem with them.

I will not test against Gambit. I will keep it on my system, but not test Pipchix against it.
November 30, 2025 at 10:51 PM
Currently I am playing with Marc Feeley’s ‘better continuations API’ using his wrappers around call/cc to implement it.

Obviously not how one wants to do it.

But that’s what got me to look at Gambit. Because it’s his implementation of Scheme, and also it’s an old and venerable one. Almost as […]
Original post on masto.ai
masto.ai
November 30, 2025 at 6:49 PM
Hmm, it is claimed Gambit Scheme support R⁷RS Scheme now. We shall see.

I have not had great luck with Gambit in the past.
November 30, 2025 at 6:44 PM
There is so much confusion that I can outsmart the "geniuses" of our society on, simply by TRULY not being a dualist.

Lots of "geniuses" CLAIM to have overcome dualism, without actually having done squat towards overcoming dualism.

Here is something I would like people to think about, which […]
Original post on masto.ai
masto.ai
November 30, 2025 at 11:04 AM
I just realized my printf encoding is also echo-compatible.
November 29, 2025 at 10:50 AM