LOGO目前的状况如何? (编程语言)

发布于 2024-08-03 05:37:11 字数 1456 浏览 6 评论 0原文

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

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

发布评论

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

评论(4

傾旎 2024-08-10 05:37:11

查看 NetLogo,这是一个现代的多龟徽标,允许编程模拟、动画和游戏。请参阅 http://ccl.northwestern.edu/netlogo/models/ 了解您的示例可以建造。 http://groups.yahoo.com/group/netlogo-users 有一个活跃的用户社区/

Logo 用户的数量远不及 Java 和 Python 等流行主流语言的用户数量,但它的数量足够大,足以实现可行和自我维持。

另请参阅 http://www.tiobe.com/index.php/paperinfo /tpci/Logo.html

(注:我是 NetLogo 的首席开发人员)

Check out NetLogo, a modern multi-turtle Logo that allows programming simulations, animations, and games. See http://ccl.northwestern.edu/netlogo/models/ for samples of what you can build. There is an active user community at http://groups.yahoo.com/group/netlogo-users/

The number of Logo users out there isn't anywhere near as large as it is for popular, mainstream languages like Java and Python, but it's large enough to be viable and self-sustaining.

see also http://www.tiobe.com/index.php/paperinfo/tpci/Logo.html

(note: I am the lead developer of NetLogo)

风追烟花雨 2024-08-10 05:37:11

Logo 是我最早使用的语言之一,尽管只是用于绘图。我们的课程基于绘制简单的几何形状(多边形)和简单的图片(例如房子、汽车)——对于年轻的程序员孩子来说非常有趣!

turtle 是 Logo 的 使用 Tk 在 Python 中绘制海龟图形。它是标准库的一部分,因此如果您安装了 Python,您就可以重温过去的美好时光:

import turtle

for i in range(100):
    turtle.forward(i)
    turtle.left(15)

既有面向对象的接口,也有过程接口。它仍然非常有趣。

Logo was one of the first languages I ever used, although only for drawing. Our classes were based on drawing simple geometric shapes (polygons), and simple pictures (e.g. a house, a car) - very interesting to a young programmer-child!

turtle is a modern implementation of Logo's turtle graphics in Python using Tk. It's part of the standard library, so if you have a Python install you can relive the good old days:

import turtle

for i in range(100):
    turtle.forward(i)
    turtle.left(15)

There are both object-oriented and procedural interfaces. It's still surprisingly fun.

别想她 2024-08-10 05:37:11

是的,我知道。现在这种语言
有点古色古香,但我得到了一些温暖
和舒适的回忆,当我
记住了这门有趣的语言
从我的历史来看。对于一个青少年回来
然后,就很有趣了!

哎呀,你一定老了!

开玩笑……我确实认为维基百科上的所有信息仍然准确。

我也确实认为这是一种死语言(或者至少应该是)。至于关于其他经历过它的专家的问题……我认为它从来都不是一种真正使用过的语言。也许在学校有一点,但我仍然认为有一些更好的选择,所以我认为使用 LOGO 编写代码的人一定很少。祝你好运。


查了一下,它似乎在大学里仍然被大量使用 机器人编程

Yeah, I know. Nowadays this language
is a bit antique but I got some warm
and comfortable memories when I
remembered this interesting language
from my history. For a teenager back
then, it was fun!

Geez, you must be old!

Just kidding … I do think all the information on Wikipedia is still accurate.

I also do think it is a dead language (or that it should be at least). As for the question about other experts who experienced it … I don't think it ever was a really used language. Maybe a bit at school, but still I think there's some better alternatives, so I think people who got to code using LOGO must be rare. Good luck with that.


After looking it up, it does seem like it was still used quite a bit in university for robotic programming.

后eg是否自 2024-08-10 05:37:11

您可能想看看 Kojo。它与LOGO非常相似,都是用Scala实现的。

以下是 Kojo 的一些示例代码:

clear()
setAnimationDelay(100)
setPenColor(blue)
left(45)
repeat (4) {
    forward(200)
    right()
}
repeat (4) {
    repeat (4) {
         forward(50)
         right()
    }
    penUp()
    forward(50)
    right()
    forward(50)
    left()
    penDown
}
penUp()
home()

以及一些屏幕截图...

替代文字

替代文本

You might want to have a look at Kojo. It's quite similar to LOGO and is implemented in Scala.

Here is some sample code from Kojo:

clear()
setAnimationDelay(100)
setPenColor(blue)
left(45)
repeat (4) {
    forward(200)
    right()
}
repeat (4) {
    repeat (4) {
         forward(50)
         right()
    }
    penUp()
    forward(50)
    right()
    forward(50)
    left()
    penDown
}
penUp()
home()

And some screenshots...

alt text

alt text

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