Trying to find stuff in the manual and discovered that Guile has block comment support.

(+ 2
#| This is a
multiline comment #|
3)

I'll likely never use it, but it's cool.

Hoooboy. Okay I finally cleaned up and now the "next/prev" buttons work *properly*, as does the description file.

update. Thumbnails are now actually thumbnails (thanks, ImageMagick).

Support for image titles and descriptions were added.

It's all very, very hacky. I'll redesign some functions later. I'm pooped right now.

When you have your own website, you don't have to worry about being banned for crappy, useless content.

On a /completely unrelated/ note, I wrote about (using )

muto.ca/messing-around-with-sx

For my projects I modified the original module for prettier printing (no indentation, but newlines between tags at least).
I also added support for comments in sxml->xml so that ends that.

I can't for the love of god figure out what the / equivalent is to XML's <!-- comment --> tags, or how to properly define my own, since sxml->xml transforms all "< >" characters to "&lt; &rt;".

I'm going to take a break from that now, though.

Briefly mentioning because I tried it and it's not half as half-baked as I thought it would be.

muto.ca/guile-ncurses-has-a-li

Alrighty.
Is there a way to convert the string:
"123"
to the list
(1 2 3)
in ?

There seems to be no primitive function or module that does this.

I really like the README file for the bindings.

Particularly I like the complete list of SDL functions & whether or not they're available. It lets users know exactly where work needs to be done.

I don't think the bindings have this kind of table anywhere (there's a TODO section, but that doesn't tell us what *is* available).

I understand that the SDL-2 bindings are way more important, but I'd still like a full set of SDL 1.2 bindings, if just fort the sake of completion.

I'm glad and exist, cause they give me an insight on how to use the web modules.

I'm planning on making a forum software package in Guile because I want to better understand how Guile can be used in a client/server sort of way.

It'll either be half-baked or totally non-existent, but it's another project I'll add to the bin.

I really wish got as much love as

I have nothing crazy to say *about* . I just want to mention it, & that it's a cool idea.

Thanks, BT Templeton 👍

"Immutable PONG"

Not my code, but it still runs & is good to read through.

Been trying to get back into the habit of writing code again. I still want to learn Activtypub properly.

pastebin.com/ebDEczch

You know, has that nice "We came up with the name first, then gave it an acronym later" vibe.

These bindings seemingly have no way to access

SDL_FlushEvent
or
SDL_FreeSurface.

It's already tomorrow. I should sleep.

On a similar note, is very, *very* smooth.

IMO, a project shouldn't be called "alpha" if it makes the user feel like a godly wizard.

Since I've been struggling to understand them for quite some time now, I've written an article about Guile-OpenGL. The bindings aren't particularly challenging to figure out, but there are so few articles about them and I haven't uploaded in ages.


muto.ca/painting-in-guile-with

Yes, indeed. Things still don't work well but at least it runs the way I expect it to (more or less).

Okay cool. So apparently all the values have been renamed to lowercase-hyphen instead of UPPERCASE_UNDERSCORE. Guess that makes it more lispy by convention.

(glEnable fog)
still does not work, since fog is only an argument to
(enable-cap)

(enable-cap fog)
returns a numerical value 2912, so

(glEnable (enable-cap fog))
or even
(glEnable 2912)
works correctly.

The "Low-level" module for -
(gl low-level)
- Sure has some... "Meh" documentation.

(glEnable) is recognized but requires a single argument, so I try to enable GL_FOG:

(glEnable GL_FOG)
;;Doesn't work
(glEnable (GL_FOG))
;;Nothing
(glEnable 'GL_FOG)
;;Same

Apparently none work since GL_FOG is not defined in the bindings, or maybe (likely) I'm just not that bright.

I'm unsure as to whether I'm asking for help or just venting right now.

(random) is an interesting function.

Is there a way to change the default range of random?

For instance, to make (random 10) output a random number between -20 and +10

In other words, is there a way to include negative *and* positive numbers in random? I know I can do
(- (random 10))
but this only outputs a random negative number.

I currently only have a sloppy work-around for this problem.

Show more
Functional Café

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!