TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Perl Poetry Generators in 256 Characters

62 点作者 raldu超过 1 年前

4 条评论

peter_l_downs超过 1 年前
Great to see this here. Nick is a fascinating artist and a wonderful teacher. I highly encourage you to play around with constrained net&#x2F;programmatic art, it can be a lot of fun and the results can be surprisingly cool. Here’s a piece I made as an exercise for his class! <a href="https:&#x2F;&#x2F;freezine.xyz&#x2F;montfort&#x2F;program1.0&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;freezine.xyz&#x2F;montfort&#x2F;program1.0&#x2F;</a>
thewakalix超过 1 年前
the tobs<p><pre><code> mons at pats taws to mims cant at coes cabs of tash ras of monk </code></pre> the coke<p><pre><code> pall no cock cast of cosh mams on cang hash of cobs </code></pre> the bule<p><pre><code> coat of bums dick to cats</code></pre>
评论 #38680330 未加载
评论 #38680059 未加载
RodgerTheGreat超过 1 年前
Had a go at translating the first generator into Lil[0]. Not quite as terse as the Perl version, but not terrible:<p><pre><code> on b x do list random[extract list value by floor index&#x2F;2 from x] end on w do list b[&quot;cococacamamadebapabohamolaburatamihopodito&quot;], b[&quot;estsnslldsckregspsstedbsnelengkemsattewsntarshnknd&quot;] end on l do &quot;\n\n %s %s %s&quot; format w[],b[&quot;attoonnoof&quot;],w[] end sys.seed:sys.now print[&quot;the %s%s&quot; w[] l@range 1+random[9]] </code></pre> Selecting bigrams is rather awkward, and I have to explicitly seed the random number generator, as it is deterministic by default.<p>[0] <a href="https:&#x2F;&#x2F;beyondloom.com&#x2F;tools&#x2F;trylil.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;beyondloom.com&#x2F;tools&#x2F;trylil.html</a>
einpoklum超过 1 年前
1980s-grade ChatGPT ?
评论 #38681638 未加载