Giter VIP home page Giter VIP logo

Comments (9)

enso-bot avatar enso-bot commented on September 26, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-05-21):

Progress: - playing with `Widget: #9941

  • addressing review comments: #9997 (comment)
  • perf issues: #9236 (comment)
  • reporting PoC LS as library: #10010
  • planning work & meeting & standup It should be finished by 2024-05-28.

from enso.

JaroslavTulach avatar JaroslavTulach commented on September 26, 2024

I've created a small project to play with the drop down arguments. Download as AccessArgumentsDropDown.zip and unzip. The code in question is:

from Standard.Base import all
from Standard.Base.Metadata import all
import Standard.Visualization

type T
    @b for_b
    as_list a b = [a, b]

for_b s cache=Nothing =
    me = [ "self", s ]
    a = ["a", cache "a"]
    b = ["b", cache "b"]
    make [1, "dva", me, a, b]

make values:Vector =
    make_option value = Choice.Option value.to_text value.pretty
    dbg values.to_text
    Widget.Single_Choice (values.map make_option) Nothing Display.Always

main =


    integer1 = 11
    node1 = T.as_list 436 1
    [node1, _]

foreign js dbg info = """
    debugger;

The first thing to notice is that evaluation of the @b widget content happens at UUID 83b40fc8-1b02-418e-8e0d-80f153bc2504 (index 496, size 9) which represents T.as_list - however when this node is evaluated, its arguments 436 and 1 aren't yet computed. There is also d872a8e8-47ea-4c0c-b3ef-a20df2ab4c3b which represents the whole T.as_list 436 1. If we want the drop down visualization to access the arguments, shouldn't we evaluate the visualization for the whole expression, @Frizi and @farmaazon?

from enso.

JaroslavTulach avatar JaroslavTulach commented on September 26, 2024

@jdunkerley, @marthasharkey - if you want to experiment with accessing arguments like 436, try it with this patch:

diff --git engine/runtime-instrument-common/src/main/java/org/enso/interpreter/instrument/RuntimeCache.java engine/runtime-instrument-common/src/main/java/org/enso/interpreter/instrument/RuntimeCache.java
index da2f8e2447..985a02d943 100644
--- engine/runtime-instrument-common/src/main/java/org/enso/interpreter/instrument/RuntimeCache.java
+++ engine/runtime-instrument-common/src/main/java/org/enso/interpreter/instrument/RuntimeCache.java
@@ -38,14 +38,8 @@ public final class RuntimeCache implements java.util.function.Function<String, O
       valuesToKeys.put(value, key);
       return true;
     } else {
-      var otherId = valuesToKeys.get(value);
-      var otherValue = cache.get(otherId);
-      if (otherValue != null && otherValue.get() == value) {
-        // if the value is already cached for another UUID, cache it
-        // for this expression UUID as well
-        var ref = new WeakReference<>(value);
-        expressions.put(key, ref);
-      }
+      var ref = new WeakReference<>(value);
+      expressions.put(key, ref);
       return false;
     }
   }

it does seem to work to some extend (values may be outdated, or missing from time to time). It should be good enough for testing.

from enso.

farmaazon avatar farmaazon commented on September 26, 2024

The first thing to notice is that evaluation of the @b widget content happens at UUID 83b40fc8-1b02-418e-8e0d-80f153bc2504 (index 496, size 9) which represents T.as_list

By evaluation you mean on what value get_widget_json is called? Then it's even stranger, because according to our code it should be called on self argument, that is T in this case.

from enso.

enso-bot avatar enso-bot commented on September 26, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-05-22):

Progress: - small Widget repro: https://discord.com/channels/@me/948519891961544714/1242708122607550464

  • design evaluation for widgets: #9941 (comment)
  • addressing review comments: #9997
  • review of Hubert's: #9914 (review)
  • meeting Pavel
  • meeting James: rewrite table representation (to Truffle?)
  • reacting to comments: aaa5e9e It should be finished by 2024-05-28.
Discord
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

from enso.

JaroslavTulach avatar JaroslavTulach commented on September 26, 2024

The first thing to notice is that evaluation of the @b widget content happens at UUID 83b40fc8-1b02-418e-8e0d-80f153bc2504 (index 496, size 9) which represents T.as_list

By evaluation you mean on what value get_widget_json is called?

Yes. get_widget_json calls into @b annotation.

Then it's even stranger, because according to our code it should be called on self argument, that is T in this case.

You are right the [{"index":{"value":496},"size":{"value":1}},"83b40fc8-1b02-418e-8e0d-80f153bc2504"] node represents T - I misread the location due to strange formatting of the metadata in my text editor.

from enso.

enso-bot avatar enso-bot commented on September 26, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-05-23):

Progress: - ms in log merged : #10016

  • Enso Library Feature merged: #9997
  • reporting subsequent work: #10044
  • widgets discussion with Pawel & Hubert & at standup
  • "storage benchmark" proposal: #10056 It should be finished by 2024-05-28.

from enso.

enso-bot avatar enso-bot commented on September 26, 2024

Jaroslav Tulach reports a new STANDUP for the last Friday (2024-05-24):

Progress: - reactive RuntimeCache PR: #10065

Discord
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

from enso.

enso-bot avatar enso-bot commented on September 26, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-05-27):

Progress: - Reactive Cache is in: #10065

Discord
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
GitHub
Pull Request Description Refactored mutable parts of ModuleScope into builder to make it easier to reduce unnecessary locks. Important Notes

Checklist
Please ensure that the following checklist ha...

from enso.

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.