无需安装即可从 USB 记忆棒使用编程语言

发布于 2024-07-10 06:25:50 字数 151 浏览 4 评论 0原文

我正在寻找一种具有基本数学支持和文件 IO 的语言的编译器或解释器,可以直接从 Linux 或 Windows 中的记忆棒执行。 基本数据结构和排序/搜索的内置功能将是一个优势。

(我读过有关可移动p​​ython,但它只支持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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

轻许诺言 2024-07-17 06:25:50

不确定其他语言有什么问题,但我很确定 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.

方觉久 2024-07-17 06:25:50

有一个名为 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.

[浮城] 2024-07-17 06:25:50

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.

心舞飞扬 2024-07-17 06:25:50

不确定它是否仍然适用于当前版本,但我有一个古老的 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.

策马西风 2024-07-17 06:25:50

如果你能忍受TCL,就很难打败tclkit

If you can tolerate TCL, it's hard to beat a tclkit

七颜 2024-07-17 06:25:50

TCC(Tiny C 编译器)是一个非常小的包中 C 的完整实现。 您甚至可以用 C 语言编写 shell 脚本:

#!/usr/local/bin/tcc -run
#include <stdio.h>

int main() 
{
    printf("Hello World\n");
    return 0;
}

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:

#!/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.

寂寞清仓 2024-07-17 06:25:50

我已经用 Ruby 做到了这一点。 效果很好。

I've done exactly that with Ruby. Worked well.

幽蝶幻影 2024-07-17 06:25:50

我参加这个聚会已经迟到了,但我想无论如何我都会参加。

我目前有一个 Windows 可用的 USB 记忆棒,上面安装了以下内容(适用于 Windows):

语言

  • Java
  • Erlang
  • Fantom
  • Groovy
  • Haskell
  • jacl(基于 JVM 的 Tcl)
  • JavaFX
  • JRuby(基于 JVM 的 Ruby)
  • Jython (基于 JVM 的 Python)
  • NASM
  • Nice
  • pnuts
  • Rexx
  • Scala
  • SISC(基于 JVM 的方案)
  • Sleep
  • Tcl
  • Prolog
  • gawk(通过 GnuWin32 和 MinGW/MSys)
  • jawk(基于 JVM 的 AWK)
  • ANTLR
  • Clojure
  • JBasic(基于 JVM 的 BASIC)
  • Tuprolog(基于 JVM ) Prolog)
  • Rhino(基于 JVM 的 Javascript)
  • YASM
  • Lua
  • Kahlua(基于 JVM 的 Lua)
  • C(通过 GnuWin32 和 MinGW/MSys)
  • C++(通过 GnuWin32 和 MinGW/MSys)
  • Fortran77(通过 GnuWin32 和 MinGW/MSys)
  • Ada(通过 GnuWin32 和MinGW/MSys)

编程工具

  • jEdit(基于 JVM 的程序员编辑器)
  • Ant(基于 JVM 的构建工具)
  • Maven 2(基于 JVM 的构建工具)
  • vi(通过 GnuWin32 和 MinGW/MSys)
  • Vim
  • CMake
  • gmake (通过 GnuWin32 和 MinGW/MSys)
  • Leiningen
  • Subversion
  • Fossil
  • ANTLRworks
  • ctags/etags

Geek Toys

  • 所有 SIMH 模拟器,如果可用的话还带有网络
  • 多个操作系统、实用程序等

以及关键库中的数十个演员,以及 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

  • 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)

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

Geek Toys

  • All SIMH emulators, with networking if available
  • Several operating systems, utilities, etc. for same

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.

带上头具痛哭 2024-07-17 06:25:50

http://smallbasic.sourceforge.net/

可在任何地方运行(甚至是手机)并拥有您需要的一切。

http://smallbasic.sourceforge.net/

Runs anywhere (even mobiles) and has everything you need.

梦途 2024-07-17 06:25:50

您可以使用 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 ;).

孤芳又自赏 2024-07-17 06:25:50

为什么不是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文