EUREKAR
Eurekar·TOP
捕捉真实世界的英语信号
24信息来源
13,689精选文章
168单词卡片
18照片图片
全部8,612口语2,157题库9,066免费1,238帖子4,786新闻6,454外刊291Cards168图片18

Why did it fall into obscurity?

它为什么没落了?

4chan /g/ · Anonymous · 2026-09-10 16:07 · 84 帖 · 原文 ↗

← 上一篇返回列表下一篇 →
#1 Why did it fall into obscurity? / 它为什么没落了?
Anonymous · 2026-09-10 16:07

Why did it fall into obscurity?

它为什么没落了?

图片: https://i.4cdn.org/g/1789056421479494.jpg

#2 No.109782044
Anonymous · 2026-09-10 16:08

python

#3 No.109782080
Anonymous · 2026-09-10 16:14

>>109782036

Perl 6 was the duke nukem 3d of languages. Delayed for 20 years, and when it finally came out, it was an entirely different language. In the meantime, ruby and python took its niche.

Perl 6 是语言界的《毁灭公爵 3D》:跳票 20 年,出来时已是完全不同的语言。 meanwhile Ruby 和 Python 占了它的生态位。

#4 No.109782110
Anonymous · 2026-09-10 16:18

>>109782036

Obscurity? I use AI to port everyone's Rust to Perl.

冷门?我用 AI 把所有人的 Rust 代码移植成 Perl。

#5 No.109782259
Anonymous · 2026-09-10 16:40

>>109782036

US invaded the middle east and the camel population took a hit. This is the dame reason ocaml is relatively obscure.

美国入侵中东,骆驼数量锐减,OCaml 相对冷门也是同一个原因(骆驼梗)。

#6 No.109782274
Anonymous · 2026-09-10 16:41

>>109782036

Looks like Ocaml

看着像 OCaml

#7 No.109782287
Anonymous · 2026-09-10 16:43

>>109782036

>>ö<<

#8 No.109782416
Anonymous · 2026-09-10 17:00

>>109782036

Probably because Larry Wall is a devout Christian and is therefore unfathomably based. This society tries to destroy any semblance of good especially when it relates to their coming control mechanism (computers and/or AI).

大概因为 Larry Wall 是虔诚的基督徒,所以靠谱得让人难以理解。这个社会拼命想毁掉一切美好,尤其是跟他们即将到来的控制手段(计算机和/或 AI)相关的东西。

#9 No.109782763
Anonymous · 2026-09-10 17:59

because people are niggers

因为人都是黑鬼

#10 No.109782774
Anonymous · 2026-09-10 18:01

>>109782044

sad but true fpbp

sad but true,首帖说得太对了

#11 No.109782781
Anonymous · 2026-09-10 18:02

>>109782763

EPBP

#12 No.109782783
Anonymous · 2026-09-10 18:02

>>109782763

fair a tony minority are not niggers or mentally dfeective though

公道讲,还是有一小撮人既不是黑鬼也不是智障的

#13 No.109782811
Anonymous · 2026-09-10 18:06

>>109782036

It's not compatible with modern programmers.

它跟现代程序员合不来。

Too many glyphs and obscure quirks within quirks to remember.

符号太多,冷门怪癖里还套着怪癖,根本记不住。

Perl code is also rarely portable between systems because, whoops, turns out that nice "built in" feature you were using was actually a CPAN module your OS preinstalled, while others may not.

Perl 代码也很少能跨系统移植,因为——哎呀——你用的那个“内置”功能其实是你系统预装的 CPAN 模块,别的系统上未必有。

It's a good language but the only thing it has over python nowadays is "It's on more (very simple, minimalistic) systems".

它是门好语言,但如今相比 Python 唯一的优势就是“装在更多(非常简单、极简的)系统上”。

And a much better CLI experience which is what I think you should still learn it for. It's like a more powerful grep / sed/ awk built into one tool, so you only have to learn one obscure syntax and function names. And it's more consistent than those tools between different unix-likes.

还有命令行体验好得多,我觉得这才是你该学它的理由。它就像一个更强大的 grep/sed/awk 三合一,你只需要学一套冷门语法和函数名,而且在不同的类 Unix 系统之间比那几个工具更一致。

#14 No.109782866
Anonymous · 2026-09-10 18:12

>>109782110

Based

>>109782080

Pretty much this. Larry could never quite get things over the hump and he let too much community faggotry derail the process. It also didn't help that his two right hand men came to hate each other, with one of them being convicted of several felonies (though they were later forgiven).

差不多就是这个原因。Larry 始终没能把事情推过坎,还放任太多社区里的瞎折腾把进程带偏。他的两个左膀右臂后来也互相仇视,其中一个还被判了好几项重罪(虽然后来被原谅了)。

#15 No.109783097
Anonymous · 2026-09-10 18:41

>>109782866

>over the hump

>始终没能推过坎

图片: https://i.4cdn.org/g/1789065701944560.jpg

#16 No.109783202
Anonymous · 2026-09-10 18:55

>>109782080

I use raku now for some things, it’s one of the best languages ever made for getting shit done. Maybe *the* best.

我现在有些活儿用 Raku 干,论把事情干成它是有史以来最好的语言之一。说不定就是最好的。

It has a huge performance problem though, both in startup and in execution. I think python might actually be faster—and that’s saying something. They’re definitely in the same tier, perfomance wise. Which is to say: Terrible.

不过它有个严重的性能问题,启动和执行都慢。我觉得 Python 可能实际更快——这已经很说明问题了。性能上俩人妥妥同一档,也就是:烂。

#17 No.109783248
Anonymous · 2026-09-10 19:00

Perl is comfy. Was the second programming language I learned when I started playing around with computers as a kid. Picked up a book on it from the library and started messing around with regexes and text manipulation and shit. It was my main "personal" language for a while, until I found Ruby, which is just as expressive and flexible, but much more comfy in syntax and ecosystem.

Perl 很舒服。是我小时候刚玩电脑时学的第二门语言。从图书馆借了本书,就开始捣鼓正则和文本处理什么的。有段时间它一直是我的“个人”主力语言,直到我发现了 Ruby——表现力和灵活性一样强,但语法和生态舒服得多。

#18 No.109785386
Anonymous · 2026-09-10 23:18

>>109782036

i get paid six figures to write perl lol

我写 Perl 拿六位数年薪 哈哈

#19 No.109785413
Anonymous · 2026-09-10 23:23

>>109782044

This.

Python also killed Ruby which is a much bigger tragedy imo

Python 还顺手弄死了 Ruby,在我看来这才是更大的悲剧

#20 No.109785467
Anonymous · 2026-09-10 23:33

>>109782866

Randal did nothing wrong

Randal 无罪

#21 No.109785618
Anonymous · 2026-09-10 23:58

>>109785413

wasn't ruby one trick pony (rails) eaten alive by node.js? nobody used it for literally anything else

Ruby 不是就只会 Rails 一招、被 Node.js 生吞了吗?别的领域真没人用它

#22 No.109785628
Anonymous · 2026-09-11 00:00

Can't be Python. It's still not production ready. Still cares about spacing.

不可能是 Python。它至今没有生产就绪,还惦记着缩进呢。

#23 No.109785640
Anonymous · 2026-09-11 00:02

>>109782036

>Why shit language get trashed on?

>为什么烂语言被喷?

Gee I don't know anon, maybe because they suck?

哎呀老哥我不知道啊,可能因为它们就是烂?

#24 No.109785644
Anonymous · 2026-09-11 00:02

>>109785386

thank god ai will replace you and your fake job

感谢上帝,AI 会取代你和你那份假工作

#25 No.109785758
Anonymous · 2026-09-11 00:18

>>109785618

ruby is a general purpose scripting language. It could be used for any of the random ops scripts that are currently being written in python/js/go, but it got overtaken by python and fell into obscurity. I think the primary reason is that the ruby community started out japanese-first (poorly translated docs and japanese forums etc) while python was english-first. Then python took data science and node took web and that was gg.

Ruby 是通用脚本语言,那些现在用 Python/JS/Go 写的杂七杂八运维脚本它本来都能写,但被 Python 抢了风头然后淡出视野。我觉得主要原因是最初 Ruby 社区日语优先(文档翻译得稀烂、论坛全是日语之类),而 Python 是英语优先。之后 Python 拿下了数据科学、Node 拿下了 Web,游戏结束。

#26 No.109785804
Anonymous · 2026-09-11 00:26

>>109782080

For what purpose? Doesn't perl 5 have all the features one can need? Why the need for change?

图啥呢?Perl 5 的功能还不够用吗?为什么要改?

#27 No.109786092
the-runtime-guy · 2026-09-11 01:07

>>109785758

Python is better architected, it has Zen. for example, it had safety guard against threading model, that was only recently removed.

Python 架构更好,有 The Zen(Python之禅)。比如它对线程模型做过安全防护,直到最近才移除。

Perl/Ruby are just full gas no breaks into the chaos, just go to https://github.com/ruby/ruby it looks like a junkyard - an huge list of files mish-mashed into a big pile.

there anyone can confirm that idea "Worse is Better" is a cow poop. The order and The structure prevails. simple as that. obviously everything goes into obscurity, entropy is defeated by quitting updoot cycle.

有没有人来确认一下“Worse is Better(更差就是更好)”就是一坨牛屎。秩序和结构才能胜出,就这么简单。显然一切都在走向湮没,熵靠退出“点赞更新循环”来被打败。

图片: https://i.4cdn.org/g/1789088821714178.jpg

#28 No.109786175
Anonymous · 2026-09-11 01:19

>>109786092

>GIL is actually a good thing

>GIL 其实是件好事

People have been actively hating this "feature" of python for 20 years.

20 年来大家一直在主动痛恨 Python 的这个“特性”。

>but I need to be physically prevented from doing bad things!

>但我需要被物理阻止才能不做坏事!

That's a personal problem.

那是你个人的问题。

#29 No.109786208
Anonymous · 2026-09-11 01:24

>>109785467

He didn't deserve to be convicted of multiple felonies but he did act like a retarded toddler throwing a temper tantrum over his advice not being taken. We don't let people burn down houses to prove how vulnerable they are to being burnt down.

他不该被判好几项重罪,但他的做法确实像个智障幼童,因为建议没人采纳就撒泼打滚。我们不会允许别人为了证明房子烧起来多容易就把房子点了。

#30 No.109786292
the-runtime-guy · 2026-09-11 01:35

>>109786175

>People have been

>大家一直在

doesnt matter. "people" came to a wrong (the same) "solution" that was constrained for 20 years. i didnt say GIL was good btw, you have hallucinations.

这不重要。“人们”在 20 年的束缚下得出了同一个错误“答案”。顺便我没说 GIL 好,是你幻觉了。

better solution appeared in JS btw, thats why its even more popular, though its kinda haptic and also fading

顺便 JS 出现了更好的方案,这也是它更流行的原因,虽然它手感不咋地而且也在衰落

#31 No.109786316
Anonymous · 2026-09-11 01:39

>>109786208

Oh, randy is who you’re talking about, lol.

哦,你说的是 Randy 啊,哈哈。

The goat.

Goat(史上最佳)。

#32 No.109786549
Anonymous · 2026-09-11 02:17

>>109782036

Because it's overgrown shell scripting for text parsing that is good at cgi and server scripting, and we have better solutions than that.

因为它就是过度 grown 的文本解析 shell 脚本,擅长 CGI 和服务器脚本,而我们有比这更好的方案了。

Python and node can do much more, and sh scripts are lighter. You can write both parser, and the server itself in python, and then a 3d game. Perl is almost dsl.

Python 和 Node 能做的事多得多,sh 脚本又更轻量。解析器和服务器本身你都能用 Python 写,然后还能写个 3D 游戏。Perl 几乎算 DSL(领域专用语言)。

图片: https://i.4cdn.org/g/1789093043780977.gif

#33 No.109786733
Anonymous · 2026-09-11 02:46

>>109782811

>It's not compatible with modern programmers.

>它跟现代程序员合不来。

>Too many glyphs and obscure quirks within quirks to remember.

>符号太多,怪癖里套怪癖记不住。

what planet do you live on

你活在哪个星球上

#34 No.109786753
Anonymous · 2026-09-11 02:48

>>109786092

ruby and perl are literally the antithesis of "worse is better" you fucking moron

Ruby 和 Perl 简直就是“更差就是更好”的反面,你这个蠢货

#35 No.109787350
Anonymous · 2026-09-11 04:33

>>109785758

>>109785618

remember "chef"? this was a devops/config management tool written in ruby

还记得 Chef 吗?一个用 Ruby 写的 DevOps/配置管理工具

#36 No.109787363
Anonymous · 2026-09-11 04:35

>>109785804

People didn't like the way Perl 5 did OOP. It was pretty janky.

大家不喜欢 Perl 5 做 OOP 的方式,确实很蹩脚。

#37 No.109787364
Anonymous · 2026-09-11 04:36

>>109782036

>My code? Idiomatic

>我的代码?地道

>My types? Dynamic

>我的类型?动态

>My programmers? Felons

>我的程序员?重罪犯

Oh yeah it's perl time

哦耶,Perl 时间到

#38 No.109787509
the-runtime-guy · 2026-09-11 05:01

>>109786753

Perl didnt even get to GNUnix shell scripting, it failed to replace bash/sh and there is no PID 1 init system in either Ruby (hello Oligarchy linux) or Perl. they are failures at general purpose.

Perl 连 GNU/Unix 的 shell 脚本这关都没过,没能取代 bash/sh,Ruby 和 Perl 里也都没有 PID 1 的 init 系统(你好,寡头 Linux)。它们在通用领域就是失败者。

i only saw Perl as a dependency to Git or alike, sorta primodal slime.. wanna Ruby?, git clone ruby repo dude! oh you need Git? oh downlooo this Perl thing then, thats how it sticks.

我只把 Perl 当 Git 之类东西的依赖看,算是原始的黏液……想要 Ruby?老兄 git clone 一下 ruby 仓库!哦你需要 Git?那先把这个叫 Perl 的玩意儿下一下,就是这么黏住的。

#39 No.109787969
Anonymous · 2026-09-11 06:29

>>109782036

whats the best language to do sysadmin stuff now? i hate python

现在做系统管理用什么语言最好?我讨厌 Python

#40 No.109788005
Anonymous · 2026-09-11 06:36

>>109787969

Bash for tiny things, python for small-to-medium things, go for medium-to-large things.

小事用 Bash,中小事用 Python,中大事用 Go。

#41 No.109788038
Anonymous · 2026-09-11 06:44

>>109787969

Honestly, perl 5 is still extremely good in the sysadmin and text wrangling space (which are the same thing often). It is also on every single server you'll ever encounter and extremely fast.

说实话,Perl 5 在系统管理和文本整理领域(这俩经常是一回事)依然极其出色。而且你碰到的每台服务器上都有它,还非常快。

#42 No.109789794
Anonymous · 2026-09-11 13:12

>>109787969

Shell scripting

Shell 脚本

#43 No.109789799
Anonymous · 2026-09-11 13:14

>>109787969

OpenWrt uses lua for a lot of stuff. Python is still the GOAT imo.

OpenWrt 很多地方用 Lua。Python 在我看来依然是 Goat(史上最佳)。

#44 No.109789824
Anonymous · 2026-09-11 13:19

Stagnant development. Python stole its thunder with its active development.

开发停滞。Python 靠活跃开发抢走了它的风头。

#45 No.109791017
Anonymous · 2026-09-11 16:16

I use perl to scrape

我用 Perl 写爬虫

#!/usr/bin/sh

# usage: 4dl.sh URL | aria2c -i -

(代码:# 用法: 4dl.sh URL | aria2c -i -,shell 注释加管道)

IFS='/'

set -- $1

(代码:set -- $1,shell 参数重设)

curl -sSL "[https://a.4cdn.org](https://a.4cdn.org)/$4/thread/$6.json" | perl -lne 'print "[https://i.4cdn.org/'"](https://i.4cdn.org/'")$4"'/$3$2'"\n out=\$1\$2"'" while(m/filename":"(.*?)","ext":"(.*?)".*?"tim":(.*?),/g)'

#46 No.109791033
Anonymous · 2026-09-11 16:19

>>109782080

>duke nukem 3d

>毁灭公爵 3D

You're thinking of Duke Nukem Forever, not 3D. Fucking zoomers...

你想说的是《毁灭公爵:永远》,不是 3D。该死的 Z 世代……

#47 No.109791044
Anonymous · 2026-09-11 16:20

>>109789799

Hyprland is also moving to Lua for scripting.

Hyprland 也在把脚本层迁到 Lua。

#48 No.109791364
Anonymous · 2026-09-11 17:04

Oldfag here, Perl died because its niche (routine sysadmin custom scripting tasks) doesn't exist anymore.

老登路过:Perl 之所以死了,是因为它的生态位(日常系统管理定制脚本任务)已经不存在了。

#49 No.109791441
Anonymous · 2026-09-11 17:16

Tranny creator

创造者是变性人

LUA is a better single pass scripting language

Lua 是更好的单遍脚本语言

Python is a better multipage language

Python 是更好的多页语言

#50 No.109791486
Anonymous · 2026-09-11 17:21

>>109791033

sorry man i never played the duke games

不好意思老兄我没玩过毁灭公爵系列

#51 No.109791499
Anonymous · 2026-09-11 17:23

That was the first book on computers I ever read and I didn’t understand jack shit.

那是我读的第一本电脑书,我当时完全没看懂。

#52 No.109792074
Anonymous · 2026-09-11 18:41

>>109782036

I remember someone said python was dead, simply because they didn't see social media marketing for a couple of month...

我记得有人因为一两个月没看到社交媒体营销,就说 Python 死了……

Most languages simply exist, c++ and python are atypical having 10x books released each year and lets not forget rust with even regards the linux kernel as pr-stunt.

大多数语言就是安安静静地存在着,C++ 和 Python 属于异类,每年出的书是别人的十倍,更别忘了 Rust,连 Linux 内核都视作公关噱头。

#53 No.109792413
Anonymous · 2026-09-11 19:31

>>109782044

I remember perl was the shit back in the late 90s early 00s. I was writing scripts interning at a studio in perl. Their whole 3d rendering pipeline was glued with perl.

我记得 90 年代末 2000 年代初 Perl 牛得很。我在工作室实习时用 Perl 写脚本,他们整个 3D 渲染管线都是用 Perl 黏起来的。

Really it was google pushing the shit out of python. It's too bad since the perl regular expressions were the best. Python re is so cumbersome.

说到底是 Google 疯狂推销 Python。挺可惜的,因为 Perl 的正则是最棒的。Python 的 re 实在太笨重。

#54 No.109792988
Anonymous · 2026-09-11 20:46

>>109792413

>Python re is so cumbersome.

>Python 的 re 太笨重。

they have a module for perl re

他们有个模块支持 Perl 正则

#55 No.109794241
Anonymous · 2026-09-11 23:37

>>109785644

i work in an industry that cannot allow ai to write or ship code. i'll be fine :)

我所在的行业不允许 AI 写代码或上线代码。我会没事的 :)

#56 No.109795704
Anonymous · 2026-09-12 04:17

>>109785386

>i get paid six figures to write perl

>我写 Perl 拿六位数

>>109794241

>an industry that cannot allow ai to write or ship code

>一个不允许 AI 写代码或上线代码的行业

Might you be able to elaborate?

能展开说说吗?

#57 No.109795955
Anonymous · 2026-09-12 05:12

>>109791364

> replaced by

>被取代的

What?

Perl fell out of favour for me, because I do everything in sh.

我这边 Perl 失宠是因为我全用 sh 干活。

Things that are too complicated for sh, I do in awk.

sh 搞不定的复杂玩意儿我用 awk。

If it’s going to be a struggle in awk, then I resort to Perl

如果 awk 里也费劲,那就轮到 Perl 上了

#58 No.109797898
Anonymous · 2026-09-12 12:25

>>109782036

i wonder

我在想

sub load_users {

(代码:sub load_users {,Perl 子程序定义)

my ($fh, $wanted) = @_;

my %users;

(代码:my %users;,声明哈希变量)

while (<$fh>) {

next if /^\s*(?:#|$)/;

(代码:next if /^\s*(?:#|$)/;,跳过空行和注释行)

chomp;

my ($name, $flags, $email) = split /\s*:\s*/, $_, 3;

next unless defined $name && length $name;

next if $wanted && !grep { $_ eq $name } @$wanted;

$users{lc $name} = {

email => $email =~ s/^\s+|\s+$//gr,

active => $flags =~ /\bactive\b/i ? 1 : 0,

roles => [

(代码:roles => [,字段 roles 赋值为数组)

map { lc }

(代码:map { lc },映射转小写)

grep { length }

(代码:grep { length },过滤非空项)

split /,\s*/, $flags

],

};

}

return wantarray ? %users : \%users;

(代码:return wantarray ? %users : \%users;,按上下文返回哈希或其引用)

}

#59 No.109798323
Anonymous · 2026-09-12 13:30

>>109782080

>duke nukem 3d

>毁灭公爵 3D

dumbass bitch

蠢货贱人

you can tell this zoomer watched a youtube essay on the topic

一看就知道这 Z 世代是看了个 YouTube 视频解说过来的

#60 No.109798389
Anonymous · 2026-09-12 13:42

with perl (You) press less buttons for same result

用 Perl(你)按更少的键得到同样的结果

图片: https://i.4cdn.org/g/1789220550238454.png

#61 No.109798636
Anonymous · 2026-09-12 14:27

>>109798323

im actually older than you, i just misremembered.

我其实比你大,我只是记岔了。

#62 No.109798665
Anonymous · 2026-09-12 14:32

>>109782036

>@

Scared nocoders shitless

吓得不会写码的运营层尿裤子

Yes tech is that stupid

是的,科技圈就是这么蠢

People who don't code decide popular languages by their *potential*

不写代码的人按*潜力*决定流行的语言

#63 No.109798737
Anonymous · 2026-09-12 14:43

>>109782044

and php for web

Web 用 PHP

#64 No.109798844
Anonymous · 2026-09-12 15:03

>>109787364

图片: https://i.4cdn.org/g/1789225399799509.png

#65 No.109799320
Anonymous · 2026-09-12 16:04

>>109797898

looks kinda soulful to me. the warts are definitely noticeable, though

我觉得还挺有灵魂的。当然那些毛刺确实明显

#66 No.109799356
Anonymous · 2026-09-12 16:09

>>109782036

in syntax as intricate as C++, in speed as sluggish as Python.

语法复杂如 C++,速度迟缓如 Python。

#67 No.109799481
the-runtime-guy · 2026-09-12 16:20

>>109797898

now we know what is ZigRust is based upon

这下我们知道 ZigRust 是照着什么长出来的了

图片: https://i.4cdn.org/g/1789230059646708.jpg

#68 No.109799513
Anonymous · 2026-09-12 16:24

>>109797898

Replace ! with not and && with and for maximum sovl

把 ! 换成 not、&& 换成 and,灵魂拉满

#69 No.109799642
the-runtime-guy · 2026-09-12 16:38

>>109799481

On the path to ZigguRakuRust https://github.com/Raku/problem-solving/blob/main/solutions/language/Path-to-Raku.md

i dont get it, there was 15 years of development and still the rename happens after release to create more problems.

我不懂,15 年的开发都做了什么,改名还要放在发布之后来做,徒增问题。

imo the path of upgrade should start with API/library, but they do "the language" simply because it is the same monolith or megalith

我觉得升级路径应该从 API/库开始,但他们非要动“语言本身”,就因为它是同一块巨石。

#70 No.109800074
Anonymous · 2026-09-12 17:31

>>109799356

>syntax as intricate as C++

>语法复杂如 C++

May the gods bless my day by making such retards die

愿众神保佑我的一天,让这种智障都死掉

#71 No.109802529
Anonymous · 2026-09-12 23:04

>>109799513

>maximum sovl

>灵魂拉满

*maximum faggotry

*基佬味拉满

#72 No.109802788
the-runtime-guy · 2026-09-12 23:40

> "There's more than one way to do it" (TMTOWTDI)

>「做事的方法不止一种」(TMTOWTDI)

equivalent to

等价于

> "Worse is Better"

>「更差就是更好」

thus, the Python with

于是,Python 带着

> "There should be one— and preferably only one —obvious way to do it."

>「应该有一种——最好只有一种——显而易见的做事方式。」

that is

也就是

> "Better is Better"

>「更好就是更好」

prevails

#73 No.109803559
Anonymous · 2026-09-13 01:45

>>109797898

it looks like

看起来像

def load_users(fh, wanted):

(代码:def load_users(fh, wanted):,Python 函数定义)

users = {}

(代码:users = {},初始化空字典)

with open(fh, "r") as f:

(代码:with open(fh, "r") as f:,打开文件)

for line in f.readlines():

(代码:for line in f.readlines():,逐行遍历)

if re.match(r'^\s*$', line) or re.match(r'^\s*?#', line):

(代码:if re.match(...),跳过空行和注释行的正则判断)

continue

name, flag, email = [x.strip() for x in line.split(":")][:3]

(代码:name, flag, email = [x.strip() ...],按冒号拆行取前三字段)

if name and not name in wanted:

(代码:if name and not name in wanted:,过滤不在目标名单里的名字)

continue

flags = [x.lower().strip() for x in flag.split(":")]

(代码:flags = [x.lower().strip() ...],拆分并转小写标志位)

users[name.lower()] = {

(代码:users[name.lower()] = {,往字典写入用户记录)

"email" : email,

(代码:"email" : email,,写入邮箱字段)

"active" : "active" in flags,

(代码:"active" : "active" in flags,,判断激活标志)

"roles" : flags

(代码:"roles" : flags,写入角色字段)

}

return users

(代码:return users,返回字典)

#74 No.109803719
Anonymous · 2026-09-13 02:21

>>109785413

I'm so glad Python defeated Ruby. Ruby is effectively equivalent to Pyhon on pure productivity and comes with all the same core downsides/tradeoffs as Python (eg shit performance, dodgy ecosystem, etc.). But it was a massive fad and had a ton of programmers pouring energy into it with very mixed results. People easily swayed by trends and fads got on the ruby bandwagon and had a big party for 4-5 years. They got a lot accomplished on pure enthusiasm and brute force, despite lacking common sense or robust knowledge of computer science.

我特别庆幸 Python 打败了 Ruby。Ruby 在纯生产力上和 Python 基本等价,核心缺点/取舍也一样(比如稀烂的性能、鱼龙混杂的生态等等)。但它当年是一阵巨大的潮流,大量程序员往里面灌能量,结果好坏参半。容易被潮流带着走的人上了 Ruby 的车,热闹了四五年。靠着热情和蛮力确实干成了不少事,尽管他们既缺乏常识也缺乏扎实的计算机科学功底。

As soon as new trends came along, all the coffee shop hipsters abandoned Ruby for the next fad. Meanwhile, Python was always there. Steady, reliable, chugging away, getting important but unsexy work done, gaining traction slowly year after year.

新潮流一来,咖啡馆里的时髦精立刻抛弃 Ruby 去追下一个风口。与此同时,Python 一直都在。稳定、可靠、闷头干活,做着重要但不性感的工作,一年又一年慢慢积蓄势能。

>>109786092

>Perl/Ruby are just full gas no breaks into the chaos

>Perl/Ruby 就是全程油门不踩刹车冲进混乱里

This is true too. But in its heydey, Perl was the clear winner in the scripting space and nothing else came close. Perl had some wacky ideas and mistakes that doomed it in the end, but still got a lot of the scripting fundamentals right at a time when no one else did. I still know people using Perl.

这也是事实。但在鼎盛时期,Perl 是脚本领域无可争议的赢家,别的没一个能打。Perl 有些古怪的想法和失误最终葬送了它,但在没人做对的年代,它把脚本的基本功做对了很多。我现在还认识在用 Perl 的人。

>>109786092

>anyone can confirm that idea "Worse is Better" is a cow poop. The order and The structure prevails. simple as that. obviously everything goes into obscurity, entropy is defeated by quitting updoot cycle.

>有没有人来确认一下“Worse is Better”就是一坨牛屎。秩序和结构才能胜出,就这么简单。显然一切都在走向湮没,熵靠退出“点赞更新循环”来被打败。

Don't really agree with this, though. Javascript is chaotic as hell and has prevailed anyway.

不过这点我不太同意。JavaScript 乱得要死,照样活到了最后。

>>109787969

If you hate Python you can just use Ruby. It's more or less equivalent in terms of productivity and nobody gives a shit what scripting language you use. You can also try Babashka which is a Clojure runtime that uses graalvm to get around the slow JVM startup time.

如果你讨厌 Python,直接用 Ruby 就行。生产力上它俩差不多,而且没人在乎你用什么脚本语言。也可以试试 Babashka,一个用 GraalVM 绕过 JVM 慢启动的 Clojure 运行时。

>>109792413

>Really it was google pushing the shit out of python.

>说到底是 Google 疯狂推销 Python。

Google just gave a little more energy to the same steady trend that had been going for years.

Google 只是给一个已经持续多年的稳定趋势又添了一把火。

#75 No.109803786
Anonymous · 2026-09-13 02:38

>>109799320

Perl is absolutely soulful. But it can also be a massive pain in the ass, with a high cognitive load required to use compared its main competitors. (A big downside in the scripting niche)

Perl 绝对有灵魂。但它也可能是个巨大的麻烦,跟主要竞品比认知负担很高。(这在脚本生态位是个大减分项)

#76 No.109803906
Anonymous · 2026-09-13 03:04

>>109803719

The appeal of Ruby was almost entirely because of why's charisma in the webcomic era and because its competition at the time wasn't Python but PHP, and my late nan would've ran rings round PHP. Few stuck with it long enough to realise it didn't solve any problems and wasn't that different to other toy languages.

Ruby 当年的吸引力几乎全靠漫画时代 _why 的个人魅力,还有它当时的对手不是 Python 而是 PHP——我过世的外婆都能把 PHP 按在地上摩擦。没几个人坚持到足够久去发现它什么问题都没解决,跟其他玩具语言也没多大区别。

#77 No.109804263
Anonymous · 2026-09-13 04:31

>>109782036

I wrote my first perl CGI script and its the crappiest buggiest piece of shit Ive written yet

我写了人生第一个 Perl CGI 脚本,是我至今写过最烂、bug 最多的垃圾

I have to keep FTPing onto the server to fix it

我得不停地 FTP 连上服务器去修它

It feels more footgun-ey than C

感觉比 C 还容易踩脚

skill issue or language issue?

是技术问题还是语言问题?

#78 No.109805005
Anonymous · 2026-09-13 07:28

>>109804263

How retarded do you have to be to fuck up a CGI script. The ease with which you can do that is what made perl popular in the first place

得智障到什么程度才能把 CGI 脚本搞砸?CGI 简单到能随便搞砸,这才是 Perl 当年流行的原因

#79 No.109805018
Anonymous · 2026-09-13 07:32

>>109782036

Security issues?

安全问题?

I'm not sure of the specifics but I do remember reading that you shouldn't use it for everything.

具体记不清了,但我记得读过说不该拿它干所有事。

But, that said, it's by far the easiest and most problem free script lang I've learned and used. I don't know what it did differently to bash, python, shell, powershell, javascript, c++, etc but I remember enjoying using Perl unlike those other ones.

话虽如此,它是我学过用过的脚本语言里最容易上手、问题最少的。我不知道它跟 bash、Python、shell、PowerShell、JavaScript、C++ 这些比到底做对了什么,但我记得用 Perl 是享受,用那些都是受罪。

#80 No.109805023
Anonymous · 2026-09-13 07:33

>>109786549

Yeah but py has esoteric crap that happens far too often for me.

但 Python 有太多玄学破事,出现频率高得离谱。

And it's buggy.

而且 bug 多。

Perl just seems to work for me.

Perl 对我来说就是能用。

#81 No.109805047
Anonymous · 2026-09-13 07:38

>>109805018

>enjoying using Perl

>享受用 Perl

A lot of it is thanks to a community that actually enjoys programming in of itself rather than doing it for some corposlop

很大程度要归功于一个真心享受编程本身的社区,而不是为了给大公司打黑工

#82 No.109805097
Anonymous · 2026-09-13 07:45

>>109797898

I know we're all 150+ IQ here but the fact that this code cannot be easily parsed by skimming past it is the reason Perl lost.

我知道我们这儿人均 150+ 智商,但这段代码没法靠扫一眼就解析明白,这就是 Perl 输掉的原因。

#83 No.109805130
Anonymous · 2026-09-13 07:51

>>109805047

I will admit that a lot of that was to do with amazing community and forums with tips and help. But that was a few years ago. I don't know if it's still like that.

我得承认那确实离不开神奇的社区和满是干货的论坛。但那是几年前的事了,不知道现在还是不是那样。

Bash and Python's docs are pretty lousy huh. C++ has better docs than it in my opinion. Older versions that is. Don't know about newer versions. Bash is an absolute nightmare to look up things on.

Bash 和 Python 的文档都挺烂的哈。C++ 的文档都比它们好——我是说老版本。新版不知道。Bash 查起东西来绝对是噩梦。

Good clear concise documentation and helpful forums are super important huh.

清晰简明的文档加上给力的论坛实在太重要了哈。

I was actually cooking my linux vms with Perl when I was more actively doing that.

我在更勤快玩 Linux 虚拟机的那些年,就用 Perl 把虚拟机玩炸过。

#84 No.109805675
Anonymous · 2026-09-13 09:27

>>109805097

>t. pythonjeet

>t. Python 印度佬

← 上一篇返回列表下一篇 →

(如果你觉得这篇文章有启发,可以点击这里付费