techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#guile

11 posts11 participants1 post today

You can have multiple modules in a single file, and you can re-open the already defined module:

(define-module (a)
#:export (a-x))

(define a-x 'a)

(define-module (b)
#:export (b-x))

(define b-x 'b)

(define-module (a)
#:use-module (b)
#:export (a-y))

(define a-y b-x)

When saved as a.scm, you can ,use (a), and get both a-x and a-y. And, iff you first ,use (a), you can even ,use (b). Interesting. Not sure how useful.

🍷 Veritas v0.1.6: The #guile #scheme (#lisp) testing framework

codeberg.org/jjba23/veritas

Updated on #guix : codeberg.org/guix/guix/pulls/1

A lot of improvements made to it!✨
- More latin puns
- We have a powerful #test runner with auto-discovery and a lot of configurability
- Environment variables for more control
- Stability and performance improvements (on concurrency especially)
- Benchmarks with statprof
- Delayed computations in assertion
- Running ONLY tests or suites that match a regex

Sharing this quite basic Bencode library in Guile:
github.com/4zv4l/guile-bencode

I am making this in case I decide myself to write a BitTorrent cli/daemon in Guile (one that could easily be used with Guix/Shepherd).

I originally wanted to write one in Zig but since it's going under heavy change, I could do a first try with Guile.

GitHubGitHub - 4zv4l/guile-bencode: Bencode library for GNU GuileBencode library for GNU Guile. Contribute to 4zv4l/guile-bencode development by creating an account on GitHub.
#guile#zig#guix

#guix #scheme #guile people.

I've done "guix install guile-netlink"

and inside ~/.guix-profile/share/guile/site/3.0 I see ip/ and netlink/

then in guile I do (add-to-load-path "~/.guix-profile...")

and now
(use-modules (ip))

and it says "no code for module (ip)"

what am I doing wrong?

#guile #scheme

i'm amazed that getopt-long doesn't handle description strings. it means you have to write out your useage/help manually instead of generating it from your command-line options...

EDIT: i hurt my head trying to modify it to accept them. modifying it was easy: just add another slot to the record. the hard bit was using my modified version, or wrapping the original somehow. headaches for something so simple...

Introducing Veritas v0.0.20: my new Lisp-powered (Guile Scheme) testing framework!

codeberg.org/jjba23/veritas

Born from my engineering experience and frustrations, I aim for incredible expressiveness. It is currently super early stages, also eager for other people to pitch in ideas before fully stabilizing the API. I also want to add many more capabilities for integration tests, containers and more.

#veritas#lisp#guile

Recently, I've received my first donation from @nlnet for suitbl, an interactive testing library for Scheme.

Their support allows me to allocate a lot of time to the development of the library. I still need to finish a few more parts before I can recommend it for adoption, but you already can take a sneak peek at the library & its usage here:

git.sr.ht/~abcdw/guile-ares-rs
git.sr.ht/~abcdw/guile-ares-rs

Kudos to @nlnet for backing great FOSS projects in general and me in particular :D

#guile #scheme

man, guile scheme has no nil punning, i'm gonna cry.

#f, '(), and #nil are all not equal to the others. surely that means i'm gonna have bugs where i think i have one of those but actually i have the other and it breaks. why make things difficult for mere mortals?

- Did you know that Guile's metacommands are comming to Arei soon?
- That we already have an incredibly useful guile stack traces viewer?
- That Ares now works with stable version of Guile and doesn't require guile-next?

No? We got you covered:

youtu.be/VUnY1LY4Las

git.sr.ht/~abcdw/guile-ares-rs
git.sr.ht/~abcdw/emacs-arei

Join the discussion:
lists.sr.ht/~abcdw/rde-discuss

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
#guile#scheme#repl