Questions about VM service with regard to a Dart REPL

32 views
Skip to first unread message

Austin

unread,
Sep 10, 2015, 11:44:07 AM9/10/15
to Dart VM Observatory Discuss
Hello everyone,

I've been playing around with writing a REPL for Dart using the vm service and I was hoping I could get a few questions answered.

First of all, is it even viable to write a Dart REPL using the vm service and the evaluate and evaluateInFrame calls? I have gotten function calls and math expressions to work correctly using evaluate, but have not found a way to dynamically add new code like variables and functions.

If the vm service is too limited for use in a REPL, are there any other services or API's that would be useful?

What capabilites and limitations do the evaluate and evaluateInFrame calls have with regard to execution and declaration of code?

How would I go about declaring variables, functions, and classes via the vm service? Are these types of things even possible?

Thanks!
Reply all
Reply to author
Forward
0 new messages