Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OK Programming language from USB stick with no installation

I'm looking for a compiler or interpreter for a language with basic math support and File IO which can be executed directly from a memorystick in either Linux or Windows. Built in functionality for basic datastructures and sorting/searching would be a plus.

(I've read about movable python, but it only supports windows)

Thank you

like image 292
tovare Avatar asked Dec 20 '08 21:12

tovare


2 Answers

Not sure what are the issues there for the other languages, but I am pretty sure that Lua will work fine on such environment.

It is perfect for your requirements: basic I/O, math functions, excellent data structures (all based on numeric and associative array, with any kind of key/values, allowing the most complex operations).
Bonus: very simple to learn (for the bases, at least), readable, and powerful when you start to dig. And it starts to have a number of useful libraries, sockets, regexes and parsers, GUI, etc.

It is just a single binary file, no install at all, no registry access, no file access (beyond reading the binary and script!) if not requested, totally transparent: it is often used in embedded system, often memory constrained, on Roms, etc.

like image 129
PhiLho Avatar answered Jan 01 '23 22:01

PhiLho


There is a python distribution called Movable Python which is designed to do exactly that. It might do what you want. Also, MinGW/MSYS will run on Windows with no registry entries or other installation beyond placing the files in a directory tree - all you need to do is set up the relevant directories in the path, which can be done in a batch file.

like image 40
ConcernedOfTunbridgeWells Avatar answered Jan 01 '23 21:01

ConcernedOfTunbridgeWells