Is there a way to convert the string:
to the list
(1 2 3)
in #Guile ?
There seems to be no primitive function or module that does this.
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 #Guile 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 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.
You know, #Guile 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
It's already tomorrow. I should sleep.
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.
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.
still does not work, since fog is only an argument to
returns a numerical value 2912, so
(glEnable (enable-cap fog))
(glEnable) is recognized but requires a single argument, so I try to enable GL_FOG:
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.
I'm not doing a good job figuring out shading in #guile OpenGL, so I might just play it dirty & let C++ do the shading while Guile does all the shape drawing (for now, at least).
Also I guess I should actually just define a macro instead of doing (primitive-eval) for the random colours. From what I've heard, the way I've been doing it lately isn't good practice.
Was thinking about doing some #GTK in C... But I don't think /usr/include is actually in my environment variables & those variables are all tangled up. I'm scared to add/remove anything from there so I'll just stick with #Guile for now.
What bugs me though is knowing that I *can* fix it, yet I'm so lazy that I'm telling myself "Nah, it's... Too dangerous to edit /that/ rc file!"
Sometimes taking the "easy way out" just means to refuse to do things 👌
I'm a UNIX user from Alberta, Canada, and I'm a failing computer scientist who works in LISP and C.
Half of what you say will go over my head but I'll act like I have a solution.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!