jbzfn, to random
@jbzfn@mastodon.social avatar

🐫 Effective Programming in OCaml
➥ KC Sivaramakrishnan • YOW! 2021

https://youtube.com/watch?v=X28PFYvZ_V8&si=zSN4ClLR9H1dfU19

ramin_hal9001, to scheme
@ramin_hal9001@emacs.ch avatar

Playing around with Guile/Goblins: so much fun!

I have learned a lot about the Guile platform recently, and it is starting to feel a bit more familiar to me now. The programming language does have support for multithreading, but in classic Scheme fashion, is much more minimal than what something like provides (Haskell concurrency is what I know best). What Haskell calls a "mutex variable" or MVar is actually a combination of two fundamental components: "mutexs" and "condition variables." After coding my own Haskell-like MVar, I feel like I understand Scheme multithreading well enough to implement any concurrent algorithm...

...which I don't need to do because Guile Scheme provides just about every single algorithm to you already, between Andy Wingo's (@wingo) Fibers library, and the Actors Library, which they describe as "a standard library of sorts ... for a variety of common actor model patterns." I can see why @cwebber occasionally shows bouts of hubris over this project, it is truly an achievement! With a little more work, Guile could become a fully networked software platform, like the World Wide Web itself.

I am also working with the Guile-GI library to program GUIs using Gtk. At the moment I am trying to figure out how to define my own class of Goblins "Vat" objects using GLib Threads so I can run a Gtk application within a Vat. I want to update the Gtk Application view from the Scheme REPL. (Any help is appreciated.)

(Shout-out to @spritelyinst )

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • InstantRegret
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • GTA5RPClips
  • ethstaker
  • cisconetworking
  • tester
  • modclub
  • everett
  • cubers
  • tacticalgear
  • Leos
  • megavids
  • normalnudes
  • anitta
  • lostlight
  • All magazines