tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. dave (dthompson@toot.cat)'s status on Friday, 10-Sep-2021 21:26:16 CEST dave dave

    there's one big issue remaining with my non-blocking guile repl: if you press enter without having typed in a full s-expression, it hangs. this is because guile's 'read' procedure will block until a full expression has been input. guile has a buffered input port type that could address this, but I rely upon delimited continuations to suspend the repl while waiting for user input. delimited continuations do not work if the call stack has anything from guile's c api in it. the 'read' procedure is implemented in c, so I'm stuck.

    In conversation Friday, 10-Sep-2021 21:26:16 CEST from toot.cat permalink
    • dave (dthompson@toot.cat)'s status on Friday, 10-Sep-2021 21:28:28 CEST dave dave
      in reply to

      I've worked around it with a big gross hack that prevents multi-line expressions but prevents hanging the repl. an okay trade-off for now until guile replaces the c reader with a scheme one, which could happen as soon as the next release because I know it has been worked on.

      In conversation Friday, 10-Sep-2021 21:28:28 CEST permalink
    • dave (dthompson@toot.cat)'s status on Friday, 10-Sep-2021 22:16:01 CEST dave dave
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga the standard guile repl does not support being used in combination with an event loop at all. when you run that repl, it has complete control over the thread it is running in until the user quits the repl.

      In conversation Friday, 10-Sep-2021 22:16:01 CEST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.