无需安装即可从 USB 记忆棒使用编程语言
我正在寻找一种具有基本数学支持和文件 IO 的语言的编译器或解释器,可以直接从 Linux 或 Windows 中的记忆棒执行。 基本数据结构和排序/搜索的内置功能将是一个优势。
(我读过有关可移动python,但它只支持windows)
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
不确定其他语言有什么问题,但我很确定 Lua 在这样的环境中可以正常工作。
它非常适合您的要求:基本 I/O、数学函数、出色的数据结构(全部基于数字和关联数组,具有任何类型的键/值,允许最复杂的操作)。
优点:学习起来非常简单(至少对于基础来说),可读性强,并且当你开始挖掘时功能强大。 它开始有许多有用的库、套接字、正则表达式和解析器、GUI 等。
它只是一个二进制文件,根本不需要安装,没有注册表访问,没有文件访问(除了读取二进制文件和脚本!)如果没有要求,完全透明:它通常用于嵌入式系统,通常内存受限,在 ROM 等上。
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.
有一个名为 Movable Python 的 Python 发行版,它的设计正是为了做到这一点。 它可能会做你想做的事。 此外,MinGW/MSYS 将在 Windows 上运行,无需注册表项或除了将文件放置在目录中之外的其他安装树 - 您所需要做的就是在路径中设置相关目录,这可以在批处理文件中完成。
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.
Java JDK 可以轻松安装在棍子上,并且不需要安装; 您可以先将其安装到 PC,然后将安装目录复制到棒中。 我想你也可以对 Linux JDK 做同样的事情。
还有大量不需要安装的优秀文本编辑器。
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.
And there's a ton of good text editors that don't require installation.
不确定它是否仍然适用于当前版本,但我有一个古老的
perl.exe
(版本 5.001,来自 1994 年或 1995 年),它仍然可以作为无需安装的单个可执行文件完美运行。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.如果你能忍受TCL,就很难打败tclkit
If you can tolerate TCL, it's hard to beat a tclkit
TCC(Tiny C 编译器)是一个非常小的包中 C 的完整实现。 您甚至可以用 C 语言编写 shell 脚本:
TCC 可用于任何类 Unix 平台,也可用于 Windows。
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 is available for any Unix-like platform, and also for Windows.
我已经用 Ruby 做到了这一点。 效果很好。
I've done exactly that with Ruby. Worked well.
我参加这个聚会已经迟到了,但我想无论如何我都会参加。
我目前有一个 Windows 可用的 USB 记忆棒,上面安装了以下内容(适用于 Windows):
语言
编程工具
Geek Toys
以及关键库中的数十个演员,以及 Geronimo 应用服务器。
是的,这是一个 USB 记忆棒,我在制作此列表时可能漏掉了某个项目。 如今,您可以通过 USB 记忆棒来运行,这真是太神奇了。
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):
Languages
Programming Tools
Geek Toys
And a cast of dozens in key libraries, plus the Geronimo application server.
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.
http://smallbasic.sourceforge.net/
可在任何地方运行(甚至是手机)并拥有您需要的一切。
http://smallbasic.sourceforge.net/
Runs anywhere (even mobiles) and has everything you need.
您可以使用 DevCpp,它附带用于 C/C++ 的 Mingw 3.x 或 CodeLite (Mingw 4.x)。 对于 Pascal,您可以使用 DevPas,对于 Python Web 开发,请尝试 InstantDjango 或更好的 Web2py(确实非常好!),对于 Ruby,您可以使用 InstanRails,对于 Perl,您可以使用 StrawberryPerl 获得完整的环境(甚至是 C 编译器!)。 您可以在 USB 驱动器上安装 cygwin。 还有很多选择。 对像可移植/跨平台和小语言这样的 LISP 感兴趣? 尝试 newlisp (它是一个宝石!)。 此外,您还可以在便携式 VirtualBox/VMplayer 或 QEmu 下的便携式 VM 上运行几乎任何内容(基于 Linux 或 Windows),但需要支付性能税;)。
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 ;).
为什么不是 C++? 您可以静态链接任何外部库(假设许可允许),并且您不会有任何外部依赖项。
Why not C++? You can statically link in any external librarys assuming there lisence allows it, and you won't have any external dependencies.