ccrraaiigg / caffeine

Livecode the Web!
https://caffeine.js.org
MIT License
126 stars 6 forks source link

Commandline/scripting usability #23

Open timrowledge opened 5 years ago

timrowledge commented 5 years ago

It would be nice to have the ability to run a system as a commandline command - or even as the shell. We have plenty of options for ways to achieve that. This issue is a brief explanation of one use case showing what would be wanted.

Background: an online discussion about how to calculate the 4784969th fibonacci number using various languages. Obviously most languages were dead-text languages where one would simply in a command shell run myLanguageThing fibonacciCalc.myLanguageExtension or similar. Much debate about implementations of effective fibonacci calculations ensued, some of it very interesting ( See https://www.raspberrypi.org/forums/viewtopic.php?f=62&t=227343 later pages around 70+ for example) but with a great deal of ridicule of Smalltalk once I joined the discussion; some people really don't like the idea of not-dead-text-files. I did eventually start to persuade them somewhat though. So to try to illustrate things in Smalltalk I produced a simple cs file to implement a fast fibonacci, run it, time it, print the answer(s) to stdout and quit.

Several interesting issues came up

One intersting option that might be useful is to