Giter VIP home page Giter VIP logo

Comments (4)

BenBrock avatar BenBrock commented on August 17, 2024

Thanks for creating this issue. This is a result of the design of reple, which currently prints new lines of output. This means that if new output appears without a newline, there is incorrect output.

from reple.

BenBrock avatar BenBrock commented on August 17, 2024

There's a feature already in repl, line epilogues, that could potentially fix this by adding a newline at the end of each line. There's a question about whether this is the correct thing to do, though, since ideally you would print without a newline, since there is no newline.

There's an example of how to use line epilogues here in the MPI config.

from reple.

BenBrock avatar BenBrock commented on August 17, 2024

Also, someone emailed me with a potential fix to nondeterministic output, which is related, and could potentially provide a full fix here. This would involve printing out tags before and after each command in order to help determine which command produced which specific bits of output. This way, even if the number of lines of output produced by previously entered commands changes, we can still only print the output produced by the most recently entered command.

This could introduce considerable complexity, though, so if someone wants to tackle this, please discuss here so we can agree on an approach before you write too much code. That way we can keep the code complexity as low as possible.

from reple.

Starwort avatar Starwort commented on August 17, 2024

Related: Printing to stderr results in the last line of stdout being repeated, instead of the line in stderr being printed (example below)
image
(My last print was a printf("%s\n", argv[0]);)

from reple.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.