我可以从 USB 闪存驱动器编码和编译哪些编程语言?
我喜欢在大学的计算机实验室(Windows 环境)编程。 不幸的是,实验室有 IDE 和 IDE。 特定学期教授的课程的编译器,通常归结为 C、C++ 和 Java。 我正处在一个可以尝试多种不同语言的阶段。 我希望能够从我的闪存驱动器中进行操作。
我还在考虑脚本语言(如可移植的 Python)或可能需要其他程序的语言/框架/运行时(PHP 需要整个网络堆栈)。
我可以使用哪些语言和工具(脚本化即可!)进行编码和编译,而无需在实验室计算机上安装任何内容,并且可以从 USB 闪存驱动器运行和保存?
I like to program at my college's computer labs (a Windows environment). Unfortunately, the labs have IDEs & compilers for classes being taught that particular semester, which usually comes down to C, C++, and Java. I'm at a point where it's good for me to play around with a lot of different languages. I'd like to be able to do with from my flash drive.
I am also considering scripting languages (like portable Python) or languages/frameworks/runtimes that may require other programs (PHP needs a whole web stack).
What languages and tools can I use (scripted is OK!) to code and compile without having to install anything on the lab computers, and can be run from and saved on a USB flash drive?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(13)
在任何操作系统上运行的任何东西...
资格:QEMU 虚拟器是一种相当典型的 PC 模拟器具有非常独特的功能,它可以运行而无需安装程序的帮助来设置其环境。 因此,您可以使用您选择的编程工具、针对您选择的操作系统以及 QEMU 可执行文件在 USB 驱动器上创建 VM 映像,然后就可以了。
也就是说,QEMU 的 Windows 端口似乎已被放弃,其最新版本 0.9 .1,是狗慢。
您也许可以获得另一个具有更好性能的模拟器来工作,但据我所知,这并不支持开箱即用。
这种设置有一些优点,因为无论您坐在哪台计算机上,您将运行的环境实际上都是您自己的。
Anything that runs on any operating system...
Qualification: the QEMU virtualizer is a fairly typical sort of PC emulator with the very unique feature that it can run without the help of an installer to set up it's environment. Thus you can create a VM image on your USB drive with the programming tools of your choice, for the operating system of your choice, and along side that, the QEMU executable, and you're set.
That said, the Windows port of QEMU appears to be abandoned, and its latest, 0.9.1, is dog slow.
You might be able to get another emulator with better performance to work, but this isn't supported out of the box, as far as i'm aware.
This kind of setup has some advantages, since the environment you'll be running is really your own, no matter which computer you happen to be sitting in front of.
你可以尝试便携式Python。
you can try Portable Python.
Javascript。 可以在任何地方使用 浏览器 和文本编辑器(在您的情况下为记事本)。
Javascript. Works everywhere with a browser and a text editor (in your case, Notepad).
您可以从 USB 闪存驱动器运行 XAMPP。 如果您需要 IDE,您也可以将 eclipse 放在您的闪存驱动器上。
You can run XAMPP from a USB flash drive. And if you need an IDE, you can put eclipse on your flash drive, too.
您看过 DevC++ Portable 吗? 此外,Portable Python 加上 Notepad++ 等便携式编辑器将为您提供相当不错的设置。
Have you looked at DevC++ Portable? Also, Portable Python plus a portable editor like Notepad++ will give you a fairly sweet setup.
Eclipse 很好,因为它不需要安装 - 只需将 eclipse 目录复制到您想要的任何位置即可。 如果 java 对你来说太无聊了,安装 scala 插件会让你大吃一惊。
Eclipse is nice because it requires no install - just copy the eclipse directory to wherever you want it. If java is too boring for you, install the scala plugin and blow your mind away.
只要您可以安装您的库和编译器(或解释器),任何语言都可以完成。
Any language can be done provided you can fit your libraries and compiler (or interpreter) on it.
Quick Basic 可在闪存驱动器上运行...
Quick Basic works off of a flash drive...
Strawberry Perl Portable 将为您提供 Perl。
Strawberry Perl Portable will give you Perl.
您可以通过安装名为“tclkit”的单文件发行版来对 Tcl/Tk 进行编程。 您甚至可以将多个平台的 tclkit 放在单个驱动器上,这样您就可以从同一驱动器在 Windows、Mac 或大多数 UNIX 机器上进行开发。
对于每个平台,只需安装单个可执行文件即可获得 tcl/tk 的完整实现(包括所有 GUI 组件)。
You can program Tcl/Tk by installing the single file distribution called "tclkit". You can even put tclkits for multiple platforms on a single drive so you can develop on windows, the mac or most unix boxes from the same drive.
For each platform there's nothing to install but the single executable to get a full implementation of tcl/tk including all of the GUI components.
AutoHotkey 适用于 Windows。
emacs 及其 elisp 也是可移植的。
AutoHotkey is good for windows.
emacs with its elisp is portable as well.
Clojure 的可移植性令人印象深刻,它只需要一个 JVM(你的大学机器应该有,因为你提到它们用于Java 开发)
转到下载,获取最新版本(当前
1.0.0
),提取它并从命令行运行:..然后您将进入 Clojure REPL。
您可以使用以下命令运行保存为文本文件(名为
myscript.clj
)的脚本:Clojure is impressively portable, it just requires a JVM (which your college machines should have, since you mention they're used for Java development)
Go to the downloads, get the latest release (currently
1.0.0
), extract it and run from the command line:..and you'll get dropped to the Clojure REPL.
You can run a script, saved as a text file (named
myscript.clj
) with:您可以使用 Groovy。 使用 JVM 工作...
You can use Groovy. Works using JVM ...