sci

https://github.com/babashka/SCI - also see #babashka and #nbb
Timur Latypoff 2021-01-03T07:42:37.184700Z

Is there a simple way to know, on which vars a specific parsed form depends? Say, “if these vars existed, this form would run”.

borkdude 2021-01-03T09:33:09.185100Z

@timur058 Can you give an example?

Sam Ritchie 2021-01-06T12:20:51.196Z

@timur058 I’m not sure either but I see what you want and agree that it’s important. If you had this, you could pre-evaluate all of the cells in the notebook

Sam Ritchie 2021-01-06T12:20:58.196200Z

in proper order when it’s loaded

Sam Ritchie 2021-01-06T12:21:11.196400Z

(as you say in the comment, duh 🙂 )

Sam Ritchie 2021-01-06T12:21:18.196600Z

looks like a problem we need to solve!

borkdude 2021-01-06T12:28:30.196800Z

@sritchie09 Is this something sci should solve or is this some topological sort problem that should be solved in a sci-using app? And why not use namespaces for this? The namespace system already solves this problem

Sam Ritchie 2021-01-06T12:32:49.197Z

@borkdude my guess is that what @timur058 wants to enable is the ability to define “cells” of some notebook out of order, and as long as everything COULD be sorted, then great. I don’t think it’s an sci-level problem since this would have to happen before feeding the forms into sci

borkdude 2021-01-06T12:34:03.198300Z

if you use namespaces like:

(ns cell5 (:require [cell1]))
this would work, and you could artificially prepend these namespace things in front of the expressions

❤️ 1
Sam Ritchie 2021-01-06T13:42:39.206200Z

brilliant, I like it

borkdude 2021-01-03T09:33:29.185400Z

Does this have to do with allow/deny settings?

borkdude 2021-01-03T10:37:35.194200Z

Usually this is done through namespaces and requires