Giter VIP home page Giter VIP logo

Comments (6)

viebel avatar viebel commented on August 23, 2024 1

This is because the code is evaluated as you type, with a delay of 20 msec
of inactivity. And (range) is an infinite list.

You can modify the delay, as explained in the README

On Thu, Aug 18, 2016, 07:39 Allan Jiang [email protected] wrote:

I was trying to test the following code snippet on klipse (range -10 10).
However, when typing up to (range) the whole page freezes!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#100, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6VPvJXLJzHY0i5TG8fLb5D_Z6vxHdMks5qg-H7gaJpZM4JnII9
.

from klipse.

darwin avatar darwin commented on August 23, 2024 1

I strongly believe that you cannot move evaluating to a WebWorker to fix this. And definitely not easily.

Problem is DOM API and other Browser APIs not available in WebWorker context.

from klipse.

qgustavor avatar qgustavor commented on August 23, 2024

For me it's still a bug: you can move evaluating to a WebWorker to fix this. They are well supported.

from klipse.

viebel avatar viebel commented on August 23, 2024

This specific issue is fixed now.
Please check again

On Wed, Sep 7, 2016, 21:13 Antonin Hildebrand [email protected]
wrote:

I'm strongly cannot move evaluating to a WebWorker to fix this. And
definitely not easily.


You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
#100 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA6VPr-O94zxmcPjVBe_E-cyGN0JmbUgks5qnv67gaJpZM4JnII9
.

from klipse.

qgustavor avatar qgustavor commented on August 23, 2024

Understood... then I suppose my computer is too slow for this script.

from klipse.

viebel avatar viebel commented on August 23, 2024

@qgustavor @jiangts @darwin I solved the (range) issue by limiting the length of the strings emitted by the evaluation function. See

(defn result-as-str [{:keys [form warning error value success?]} print-length]
(let [status (if error :error :ok)
res (if success?
(with-redefs [*print-length* print-length]
(pr-str value))
(pr-str error))]
[status res]))

from klipse.

Related Issues (20)

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.