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.
我正在寻找具有基本数学支持和文件IO的语言的编译器或解释器,它可以直接从Linux或Windows中的记忆棒执行。内置的基本数据结构和排序/搜索功能将是一个优势。
(I've read about movable python, but it only supports windows)
(我读过有关可移动的python,但它只支持windows)
Thank you
11 个解决方案
#1
Not sure what are the issues there for the other languages, but I am pretty sure that Lua will work fine on such environment.
不确定其他语言有什么问题,但我很确定Lua在这样的环境下可以正常工作。
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.
它非常适合您的要求:基本I / O,数学函数,出色的数据结构(全部基于数字和关联数组,具有任何类型的键/值,允许最复杂的操作)。额外奖励:当你开始挖掘时,非常简单易学(至少是基础),可读性和强大。它开始有许多有用的库,套接字,正则表达式和解析器,GUI等。
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.
它只是一个单独的二进制文件,没有安装,没有注册表访问,没有文件访问(超出读取二进制和脚本!),如果没有请求,完全透明:它经常用于嵌入式系统,通常是内存受限,在罗姆斯等
#2
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.
有一个叫做Movable Python的python发行版就是为了做到这一点而设计的。它可能会做你想要的。此外,MinGW / MSYS将在Windows上运行,除了将文件放在目录树中之外没有注册表项或其他安装 - 您需要做的就是在路径中设置相关目录,这可以在批处理文件中完成。
#3
The Java JDK easily fits on a stick, and does not require installation; You can install it to a PC first and then just copy the install directory to the stick. I presume you can do the same for the Linux JDK.
Java JDK很容易适应棒,不需要安装;您可以先将它安装到PC上,然后将安装目录复制到操作杆上。我认为你可以为Linux JDK做同样的事情。
And there's a ton of good text editors that don't require installation.
并且有大量优秀的文本编辑器不需要安装。
#4
Not sure if it still applies to current versions, but I have an ancient perl.exe
(version 5.001, from 1994 or 1995) that still works perfectly fine as a no-installation single executable.
不确定它是否仍然适用于当前版本,但我有一个古老的perl.exe(版本5.001,从1994年或1995年)仍然可以完美地作为无安装的单个可执行文件。
#6
TCC (the Tiny C Compiler) is a full implementation of C in a really small package. You can even write shell scripts in C:
TCC(Tiny C编译器)是一个非常小的包中的C的完整实现。你甚至可以在C中编写shell脚本:
#!/usr/local/bin/tcc -run
#include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}
TCC is available for any Unix-like platform, and also for Windows.
TCC适用于任何类Unix平台,也适用于Windows。
#7
I've done exactly that with Ruby. Worked well.
我用Ruby完成了这一切。工作得很好。
#8
I'm way late for this party, but I thought I'd weigh in anyway.
我参加这个派对的时间已经很晚了,但我觉得无论如何我都要权衡。
I currently have a Windows-usable USB stick with the following installed on it (for Windows):
我目前有一个Windows可用的USB记忆棒,其上安装了以下内容(适用于Windows):
Languages
- Java
- Erlang
- Fantom
- Groovy
- Haskell
- jacl (JVM-based Tcl)
- JavaFX
- JRuby (JVM-based Ruby)
- Jython (JVM-based Python)
- NASM
- nice
- pnuts
- Rexx
- Scala
- SISC (JVM-based Scheme)
- Sleep
- Tcl
- Prolog
- gawk (via GnuWin32 and MinGW/MSys)
- jawk (JVM-based AWK)
- ANTLR
- Clojure
- JBasic (JVM-based BASIC)
- Tuprolog (JVM-based Prolog)
- Rhino (JVM-based Javascript)
- YASM
- Lua
- Kahlua (JVM-based Lua)
- C (via GnuWin32 and MinGW/MSys)
- C++ (via GnuWin32 and MinGW/MSys)
- Fortran77 (via GnuWin32 and MinGW/MSys)
- Ada (via GnuWin32 and MinGW/MSys)
jacl(基于JVM的Tcl)
JRuby(基于JVM的Ruby)
Jython(基于JVM的Python)
SISC(基于JVM的方案)
gawk(通过GnuWin32和MinGW / MSys)
jawk(基于JVM的AWK)
JBasic(基于JVM的BASIC)
Tuprolog(基于JVM的Prolog)
Rhino(基于JVM的Javascript)
Kahlua(基于JVM的Lua)
C(通过GnuWin32和MinGW / MSys)
C ++(通过GnuWin32和MinGW / MSys)
Fortran77(通过GnuWin32和MinGW / MSys)
Ada(通过GnuWin32和MinGW / MSys)
Programming Tools
- jEdit (JVM-based programmer's editor)
- Ant (JVM-based build tool)
- Maven 2 (JVM-based build tool)
- vi (via GnuWin32 and MinGW/MSys)
- Vim
- CMake
- gmake (via GnuWin32 and MinGW/MSys)
- Leiningen
- Subversion
- Fossil
- ANTLRworks
- ctags/etags
jEdit(基于JVM的程序员编辑)
Ant(基于JVM的构建工具)
Maven 2(基于JVM的构建工具)
vi(通过GnuWin32和MinGW / MSys)
gmake(通过GnuWin32和MinGW / MSys)
Geek Toys
- All SIMH emulators, with networking if available
- Several operating systems, utilities, etc. for same
所有SIMH仿真器,如果有可用的网络
几个操作系统,实用程序等
And a cast of dozens in key libraries, plus the Geronimo application server.
并且在关键库中加入了数十个,以及Geronimo应用程序服务器。
Yes, this is a single USB stick, and I probably missed an item here or there while making this list. It's amazing what you can run off of a USB stick these days.
是的,这是一个单独的USB记忆棒,我可能在制作此列表时在这里或那里错过了一个项目。这些天你可以用USB记忆棒运行它真是太神奇了。
#9
http://smallbasic.sourceforge.net/
Runs anywhere (even mobiles) and has everything you need.
在任何地方运行(甚至是手机)并拥有您需要的一切。
#10
You could use DevCpp, it comes with Mingw 3.x or CodeLite (Mingw 4.x) for C/C++. For Pascal you can use DevPas, for Python web development try InstantDjango or better yet Web2py (very nice indeed!), for Ruby you have InstanRails, for Perl you got a complete enviroment (even a C compiler!) with StrawberryPerl. You could install cygwin on the USB drive. There are a lot more options out there. Interested in a LISP like portable/cross-platform and little language? Try newlisp (its a gem!). Also you could run almost anything (linux or windows based) on a portable VM under Portable VirtualBox/VMplayer or QEmu with a performance tax ;).
你可以使用DevCpp,它带有Mingw 3.x或CodeLite(Mingw 4.x)用于C / C ++。对于Pascal,您可以使用DevPas,对于Python Web开发尝试InstantDjango或者更好的Web2py(确实非常好!),对于Ruby,您有InstanRails,对于Perl,您使用StrawberryPerl获得了完整的环境(甚至是C编译器!)。您可以在USB驱动器上安装cygwin。那里有很多选择。对便携式/跨平台和小语言等LISP感兴趣?试试newlisp(它的宝石!)。此外,您可以在Portable VirtualBox / VMplayer或QEmu下的可移植虚拟机上运行几乎任何东西(基于Linux或基于Windows),并具有性能税;)。
#11
Why not C++? You can statically link in any external librarys assuming there lisence allows it, and you won't have any external dependencies.
为什么不用C ++?您可以在任何外部库中静态链接,假设有lisence允许它,并且您将不会有任何外部依赖项。
#1
Not sure what are the issues there for the other languages, but I am pretty sure that Lua will work fine on such environment.
不确定其他语言有什么问题,但我很确定Lua在这样的环境下可以正常工作。
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.
它非常适合您的要求:基本I / O,数学函数,出色的数据结构(全部基于数字和关联数组,具有任何类型的键/值,允许最复杂的操作)。额外奖励:当你开始挖掘时,非常简单易学(至少是基础),可读性和强大。它开始有许多有用的库,套接字,正则表达式和解析器,GUI等。
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.
它只是一个单独的二进制文件,没有安装,没有注册表访问,没有文件访问(超出读取二进制和脚本!),如果没有请求,完全透明:它经常用于嵌入式系统,通常是内存受限,在罗姆斯等
#2
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.
有一个叫做Movable Python的python发行版就是为了做到这一点而设计的。它可能会做你想要的。此外,MinGW / MSYS将在Windows上运行,除了将文件放在目录树中之外没有注册表项或其他安装 - 您需要做的就是在路径中设置相关目录,这可以在批处理文件中完成。
#3
The Java JDK easily fits on a stick, and does not require installation; You can install it to a PC first and then just copy the install directory to the stick. I presume you can do the same for the Linux JDK.
Java JDK很容易适应棒,不需要安装;您可以先将它安装到PC上,然后将安装目录复制到操作杆上。我认为你可以为Linux JDK做同样的事情。
And there's a ton of good text editors that don't require installation.
并且有大量优秀的文本编辑器不需要安装。
#4
Not sure if it still applies to current versions, but I have an ancient perl.exe
(version 5.001, from 1994 or 1995) that still works perfectly fine as a no-installation single executable.
不确定它是否仍然适用于当前版本,但我有一个古老的perl.exe(版本5.001,从1994年或1995年)仍然可以完美地作为无安装的单个可执行文件。
#5
#6
TCC (the Tiny C Compiler) is a full implementation of C in a really small package. You can even write shell scripts in C:
TCC(Tiny C编译器)是一个非常小的包中的C的完整实现。你甚至可以在C中编写shell脚本:
#!/usr/local/bin/tcc -run
#include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}
TCC is available for any Unix-like platform, and also for Windows.
TCC适用于任何类Unix平台,也适用于Windows。
#7
I've done exactly that with Ruby. Worked well.
我用Ruby完成了这一切。工作得很好。
#8
I'm way late for this party, but I thought I'd weigh in anyway.
我参加这个派对的时间已经很晚了,但我觉得无论如何我都要权衡。
I currently have a Windows-usable USB stick with the following installed on it (for Windows):
我目前有一个Windows可用的USB记忆棒,其上安装了以下内容(适用于Windows):
Languages
- Java
- Erlang
- Fantom
- Groovy
- Haskell
- jacl (JVM-based Tcl)
- JavaFX
- JRuby (JVM-based Ruby)
- Jython (JVM-based Python)
- NASM
- nice
- pnuts
- Rexx
- Scala
- SISC (JVM-based Scheme)
- Sleep
- Tcl
- Prolog
- gawk (via GnuWin32 and MinGW/MSys)
- jawk (JVM-based AWK)
- ANTLR
- Clojure
- JBasic (JVM-based BASIC)
- Tuprolog (JVM-based Prolog)
- Rhino (JVM-based Javascript)
- YASM
- Lua
- Kahlua (JVM-based Lua)
- C (via GnuWin32 and MinGW/MSys)
- C++ (via GnuWin32 and MinGW/MSys)
- Fortran77 (via GnuWin32 and MinGW/MSys)
- Ada (via GnuWin32 and MinGW/MSys)
jacl(基于JVM的Tcl)
JRuby(基于JVM的Ruby)
Jython(基于JVM的Python)
SISC(基于JVM的方案)
gawk(通过GnuWin32和MinGW / MSys)
jawk(基于JVM的AWK)
JBasic(基于JVM的BASIC)
Tuprolog(基于JVM的Prolog)
Rhino(基于JVM的Javascript)
Kahlua(基于JVM的Lua)
C(通过GnuWin32和MinGW / MSys)
C ++(通过GnuWin32和MinGW / MSys)
Fortran77(通过GnuWin32和MinGW / MSys)
Ada(通过GnuWin32和MinGW / MSys)
Programming Tools
- jEdit (JVM-based programmer's editor)
- Ant (JVM-based build tool)
- Maven 2 (JVM-based build tool)
- vi (via GnuWin32 and MinGW/MSys)
- Vim
- CMake
- gmake (via GnuWin32 and MinGW/MSys)
- Leiningen
- Subversion
- Fossil
- ANTLRworks
- ctags/etags
jEdit(基于JVM的程序员编辑)
Ant(基于JVM的构建工具)
Maven 2(基于JVM的构建工具)
vi(通过GnuWin32和MinGW / MSys)
gmake(通过GnuWin32和MinGW / MSys)
Geek Toys
- All SIMH emulators, with networking if available
- Several operating systems, utilities, etc. for same
所有SIMH仿真器,如果有可用的网络
几个操作系统,实用程序等
And a cast of dozens in key libraries, plus the Geronimo application server.
并且在关键库中加入了数十个,以及Geronimo应用程序服务器。
Yes, this is a single USB stick, and I probably missed an item here or there while making this list. It's amazing what you can run off of a USB stick these days.
是的,这是一个单独的USB记忆棒,我可能在制作此列表时在这里或那里错过了一个项目。这些天你可以用USB记忆棒运行它真是太神奇了。
#9
http://smallbasic.sourceforge.net/
Runs anywhere (even mobiles) and has everything you need.
在任何地方运行(甚至是手机)并拥有您需要的一切。
#10
You could use DevCpp, it comes with Mingw 3.x or CodeLite (Mingw 4.x) for C/C++. For Pascal you can use DevPas, for Python web development try InstantDjango or better yet Web2py (very nice indeed!), for Ruby you have InstanRails, for Perl you got a complete enviroment (even a C compiler!) with StrawberryPerl. You could install cygwin on the USB drive. There are a lot more options out there. Interested in a LISP like portable/cross-platform and little language? Try newlisp (its a gem!). Also you could run almost anything (linux or windows based) on a portable VM under Portable VirtualBox/VMplayer or QEmu with a performance tax ;).
你可以使用DevCpp,它带有Mingw 3.x或CodeLite(Mingw 4.x)用于C / C ++。对于Pascal,您可以使用DevPas,对于Python Web开发尝试InstantDjango或者更好的Web2py(确实非常好!),对于Ruby,您有InstanRails,对于Perl,您使用StrawberryPerl获得了完整的环境(甚至是C编译器!)。您可以在USB驱动器上安装cygwin。那里有很多选择。对便携式/跨平台和小语言等LISP感兴趣?试试newlisp(它的宝石!)。此外,您可以在Portable VirtualBox / VMplayer或QEmu下的可移植虚拟机上运行几乎任何东西(基于Linux或基于Windows),并具有性能税;)。
#11
Why not C++? You can statically link in any external librarys assuming there lisence allows it, and you won't have any external dependencies.
为什么不用C ++?您可以在任何外部库中静态链接,假设有lisence允许它,并且您将不会有任何外部依赖项。