@jasongilman congrats on the great talk. Super exciting stuff. Amazing project
@limix Thanks!
I just released a new version of Proto REPL with a few small fixes https://github.com/jasongilman/proto-repl/blob/master/CHANGELOG.md#149
hey @jasongilman — i’m just sanity checking this; proto-repl doesn’t yet support the new syntax for maps in Clojure 1.9, right?
i ask because i’m not seeing any folding for a map. but i’ve just tried with 1.8, and i didn’t see any folding there either. is there some magic to pprint maps in the repl / inline result?
I haven't tried that new syntax yet. Let me fire up a REPL with Clojure 1.9
@robert-stuttaford The new syntax is working for me. I think you may not have Atom Ink installed. There are also some small corner cases where you won't get folding because of the way some objects print but those a very infrequent.
@robert-stuttaford Did you follow the setup guide here? https://gist.github.com/jasongilman/d1f70507bed021b48625 That's linked from Option2 on the README. Though the quick start option should still work.
yes, i did, verbatim
what i get is one continuous line with the whole map, printed 1.9 style
If you evaluate (range 3)
do you see any inline expandable results?
yes, that works
Can you send me a sample map that's not working?
I'm trying the han solo example from here and that's working for me. http://clojure.org/reference/reader But maybe something else is going on.
so the eval result should drop the ns, right?
i’ll see if i can work up an isolated failure case for you
It comes back with a namespace when I'm using it
i’m doing spec and requiring and aliasing namespaces as well
would you mind sharing a small screenshot of what you get for han-solo?
Yeah I was just doing thinking the same thing
The line display does not show the namespaces
That could be improved
how did you get yours on a separate line?
I just typed in person and then evaluated that
other than that, it’s looking the same
ah ok I think I'm getting it
There may be a couple issues here
When you evaluate that map block it doesn't include the reader macro in front of it
If you select and evaluate the whole thing does folding still work for you?
the ns is on the keywords as an alias ::dd/annotate-tx-fn
I think this might be the corner case I was talking about earlier where the parsing is failing.
for some reason cmd-alt-b wouldn’t eval this form, i had to use cmd-alt-s
If you evaluate with cmd-alt-b it looks for a Clojure block. If it doesn't find one it won't execute anything
aha, that’s good to know!
cmd-alt-s will look for vars if nothing is selected
ok, i just thought i’d run it past you. overall the experience close to being perfect so far. just got to get the indent on paste stuff right, learn some shortcuts, and get the panel hide-show thing right
If you can get me the string that comes back from the REPL I can look into why you're not seeing the expandable option on that result
i must admit i’m struggling with not having my clj-refactor threading and introduce-let / move-to-let shortcuts 🙂
cool, i’ll do that
#:cognician.datomic-doc{:annotate-tx-fn #function[clojure.core/identity], :conn #object[datomic.peer.LocalConnection 0x3385a68c "datomic.peer.LocalConnection@3385a68c"], :db datomic.db.Db@5dcf3e22, :lookup-type :ident, :lookup-ref :db/doc, :entity #:db{:id 62}}Â
that’s the string
Also for those other things it would be nice to have feature requests https://github.com/jasongilman/proto-repl/issues for those
maybe it’s the datomic vars?
#object and the db
cool, i will do!
Thanks, I'll take a look at that string and figure out why that's not parsing.
I'm glad to hear it's "close to perfect so far" 🙂
i particularly like the sticky results
super helpful. haven’t even touched any of the fancy-pants stuff yet!
The problem appears to be "datomic.db.Db@5dcf3e22"
I use clojurescript to parse the results and that's where it fails
I use cljs.reader/read-string
It's been a long time since I wrote all the code related to this but I think the assumption was that most things back from nREPL were parseable results
Most objects that come back are parseable like (Object. ) => #object[java.lang.Object 0x447f14f3 "java.lang.Object@447f14f3"]
but the datomic db instance seems to have another way it gets printed
I filed a new issue for this
@jasongilman Hi Jason, i just got introduced to proto REPL through your awesome talk! I’m curious, are their any plans for two way feedback between the visualizations and the code/data in the editor? e.g i move a point on a chart and the data changes?
I suppose that would be highly dependent on what the graphing tool supported.
@drewverlee: I want to be able to do things like that. Do you have a specific use case in mind?
@jasongilman: No particular use case. I’m just exploring whats possible. I think protorepl has the right foundation to become a very powerful tool (not that it isn’t already). Add a way for it to handle unbouded live data and its almost a monitoring tool. Make it easy to add markdown and snapeshot the visualizations and you have what make ipython notebooks attractive.