You are viewing archived messages.
Go here to search the history.

Peter Saxton 2022-09-26 14:38:27

Good afternoon. I was thinking about the following question an the answer was less clear than I was originally thinking.

What is the fundamental difference between a Repl and a Shell? In my opinion there is very little, the main differences seem to be what systems they are plugged into. i.e. a shell is plugged into the os and a repl is language specific. Also if we add the nice feature of being able to change previous expressions do both end up looking effectively like a code notebook.

So the final feeling is just that a code notebook is just a fancy Repl.

In which case are code notebooks the future of Repl's/shells. Would you like a code notebook that was able to read your os processes and replace the sell?

Breck Yunits 2022-09-26 14:43:24

Or another way to put it is that a shell is a very lightweight and fast notebook

Breck Yunits 2022-09-26 14:45:03

If I could only have one, I'd go for the speed, footprint, robustness, and accessibility of a shell. it would be fun to look at an infographic of shells and repls and notebooks, showing what's similar and what's different

Breck Yunits 2022-09-26 14:45:51

(so I have nothing to add really, but definitely following as its a way to look at these 3 important UIs I havent thought of before)

Kartik Agaram 2022-09-26 19:42:19

One project I still think about a lot: github.com/akavel/up

Konrad Hinsen 2022-09-27 06:04:05

Notebook vs. shell: (1) different visual presentation, with notebooks emphasizing history, (2) most notebooks support graphical output display.

Shell vs. REPL: what we call "shell" is both a REPL and a language designed for a REPL interface to the OS (plus OS scripting).

I have seen many attempts to replace the shell by some other language's REPL, by providing a more concise interface to OS services in that other language. LISPers seem particularly tempted by this.

Kartik Agaram 2022-09-27 06:08:35

I'd say the critical property of a shell is the ability to run programs written in a variety of languages. It's not just a syntax for an interpreted language but the ability to load arbitrary code from a PATH and give it whatever runtime its shebang/etc. says.

Joakim Ahnfelt-RΓΈnne 2022-09-27 06:21:15

I'm intrigued by this question, and I've been working on a prototype: github.com/topshell-language/topshell

Breck Yunits 2022-09-27 15:46:09

Did someone here make this: youtube.com/watch?v=qGOIt0xh0dw?

πŸŽ₯ 6gu.nz demo

Joakim Ahnfelt-RΓΈnne 2022-09-27 16:14:41

Incredible stuff! I especially like that calculations involving variables automatically become functions. Very elegant. And the table lookup is also very natural.

Patrick Flor 2022-09-27 16:21:13

"converting temperature between degrees censible and degrees freedom" πŸ˜† that's a new one to me.

Breck Yunits 2022-09-27 16:34:01

@Patrick Flor that's the line that got me to watch until the end

Mariano Guerra 2022-09-27 17:32:42

"Love means never having to say VLOOKUP"

Arvind Thyagarajan 2022-09-27 17:41:08

great enhancements between the two videos -- another thing that might be super helpful is a preview of the signature, so when I am at distance(... in my formula edit bar below I can see what it expects -- perhaps a fill in the blanks (typed holes) approach?

Gregor 2022-09-27 16:18:53

A very status-quo question to inform my near-future-of-coding project (Tofu). How many keystrokes does this transformation take in your preferred editor? How natural/flowy does your mental model feel while making these changes?

twitter.com/watware/status/1574778141234659336

🐦 Gregor: How many keystrokes does this take in your editor?

I count 17 in my editor extension (Tofu), which seems close to optimal:

2x ⇧ + ↑ (extend selection) ? (surround with ternary) "π•šπ•€β„π•šπ•˜π•™π•₯" 2x β†Ή " + "𝕃𝔼𝔽𝕋" β†Ή ⇧ + ↑ "π•‘π•£π•–π•§π•Šπ•₯𝕒𝕣π•₯" 2x ⇧ + ↑ βŒ₯ + ↑ (unwrap)

Tweet Thumbnail