新语言有什么用处 - 寻找越位者的用例

发布于 2024-10-04 18:34:01 字数 254 浏览 3 评论 0原文

今天,我的一位同事展示了我称之为计算机科学的有趣部分。由于缺乏更好的词,他创建了一个“系统”,称为Offsider。演讲结束后,我留下了一个棘手的想法:这必须有某种优先级。

它感觉就像一个基于对象的 shell,如 python,在创建时即时对对象进行酸洗,感觉就像基于 php 文件的会话。任何人都可以对此做出任何明确的相似之处吗?它的合理用例是什么?

One of my colleagues today demonstrated what I could call an interesting piece of Computer Science. He has created a "system" for lack of a better word called Offsider. After the presentation I was left with a niggling thought that this must have some sort of precedence.

It feels like an object based shell like python with instant pickling of the objects on creation in what feels like a php file based sessions. Can anyone draw any well established parallels to this ? What would be reasonable use cases for it ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

只怪假的太真实 2024-10-11 18:34:03

几个相似之处:

  • “一切都是消息传递”首先由 Smalltalk 完成(而且仍然是最好的) .

  • 许多年前,Dave Hanson 和 Chris Fraser 尝试过一项实验,基本上说“语言就是操作系统”。 (它没有成功。)你同事的建议听起来像是“让我们与现有的操作系​​统对话,就好像它是一种面向对象的语言一样”。

在我看来,区分 Unix 的主要思想是

  • 一切都是文件
  • 许多文件是文本
  • 文件可以通过使用标准输入和标准输出的程序进行管道传输

我不知道如何通过在其之上分层对象来改进该模型。对象不适合现有的 Unix 模型,因此您最终将创建一组使用对象模型的全新程序。此时,您不妨只使用世界上众多优秀的面向对象编程语言中的一种,或者如果您想要多种语言,则可以使用许多糟糕的互操作性工具(例如 CORBA)中的一种。

A couple of parallels:

  • "Everything is message passing" was done first (and still best) by Smalltalk.

  • Many years ago Dave Hanson and Chris Fraser tried an experiment that basically said "the language is the operating system." (It didn't go anywhere.) Your colleague's proposal smells like "let's talk to the existing operating system as if it were an object-oriented language".

In my mind, the main ideas that distinguish Unix are

  • Everything is a file
  • Many files are text
  • Files can be piped through programs using standard input and standard output

I don't see how this model is improved by layering objects on top of it. Objects don't fit the existing Unix model, so you're going to wind up creating an entirely new set of programs that use the object model. At this point you may as well just use one of the many fine object-oriented programming languages in the world, or if you want more than one, one of the many awful interoperability tools like CORBA.

菊凝晚露 2024-10-11 18:34:03

我认为这是另一种深奥的编程语言,编写了很多语言,但大多数语言编写的却很少,它们

通常有一些有趣的功能,但没有人很确定如何在此基础上进行构建

i think it's another one of those esoteric programming languages so many are written but so little is written in most of them

they normally have some interesting feature but no one is quite sure how to build on that

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