how autistic am i - /g/ (#105740574) [Archived: 689 hours ago]

Anonymous
6/29/2025, 6:50:01 AM No.105740574
Screen Shot 2025-06-29 at 12.48.57 AM
Screen Shot 2025-06-29 at 12.48.57 AM
md5: db94f3d83f3231b201499dfe17cb55ff🔍
i wanted to write poetry in python so i turned 460,000 english words into lambda functions. see picrel

now(i(can(write(like(this)))))
Replies: >>105740589 >>105740765 >>105742366 >>105742669 >>105742954 >>105743083 >>105743415 >>105743663 >>105743970
Anonymous
6/29/2025, 6:52:35 AM No.105740589
>>105740574 (OP)
whoops those aren't lambda functions lmao my bad

i knew that
Anonymous
6/29/2025, 7:14:20 AM No.105740685
Why would you do this?
Replies: >>105740694 >>105740777
OS MASTER !JORDAN./os
6/29/2025, 7:15:51 AM No.105740694
>>105740685
why(not(that(is(the(power(of(lambda))))))))
Replies: >>105743453 >>105743569
Anonymous
6/29/2025, 7:21:02 AM No.105740722
>how autistic am i
>still uses vscode
>still uses python
nah, m8, you're fine, there are much worse cases.
Anonymous
6/29/2025, 7:22:27 AM No.105740729
You're not autistic, you're just retarded.
Replies: >>105740842
Anonymous
6/29/2025, 7:28:41 AM No.105740756
not only that you would stilll need to pass an arg to the function that gets evaluated first.
Replies: >>105740832
Anonymous
6/29/2025, 7:31:07 AM No.105740765
>>105740574 (OP)
not very much desu. if you want to be peak autism you would do it in assembly
Anonymous
6/29/2025, 7:34:54 AM No.105740777
permuted-poems
permuted-poems
md5: f92334b5f5bcd61392260902b767181b🔍
>>105740685
Brion Gysin made poetry with programming. So why not OP? He could do it all again in Haskell, mess around with `flip`, $, and . and thus generate novel permutations
Replies: >>105741894
Anonymous
6/29/2025, 7:47:45 AM No.105740832
>>105740756
oh i just use a blank string for the last argument
Anonymous
6/29/2025, 7:49:52 AM No.105740842
>>105740729
because(poetry(is_(cool(''))))
Anonymous
6/29/2025, 10:59:26 AM No.105741894
>>105740777
>poetry
>random assortment of words
Replies: >>105742311
Anonymous
6/29/2025, 12:11:11 PM No.105742311
>>105741894
what? you've never been kicked by a habit that you're trying to kick?
https://www.youtube.com/watch?v=rL-jdlTvRkk
Anonymous
6/29/2025, 12:23:03 PM No.105742366
pepeQuestionMark
pepeQuestionMark
md5: 7f2ed546c7e887feddb8bdbb4d78f8a6🔍
>>105740574 (OP)
why don't you just write in lisp instead?
Anonymous
6/29/2025, 1:20:53 PM No.105742669
>>105740574 (OP)
Neat but why not use lisp?
Anonymous
6/29/2025, 2:09:37 PM No.105742954
>>105740574 (OP)
anon you know you can you dynamically define a function for each word at runtime, instead of actually writing each definition in a file
Replies: >>105743006
Anonymous
6/29/2025, 2:19:57 PM No.105743006
>>105742954
This

```python
import __main__

with open('/usr/share/dict/words') as f:
words = f.read().split('\n')

print_ = print

for w in words:
__main__.__dict__[w] = (
lambda w = w:
lambda s = '': f'{w} {s}'
)(w)

print_(hello(world(good(bye()))))
```
Replies: >>105743037 >>105743434
Anonymous
6/29/2025, 2:26:36 PM No.105743037
>>105743006
Woops

import __main__

with open('/usr/share/dict/words') as f:
words = f.read().split('\n')

print_ = print

for w in words:
__main__.__dict__[w] = (
lambda w = w:
lambda s = '': f'{w} {s}'
)(w)

print_(hello(world(good(bye()))))
Anonymous
6/29/2025, 2:38:30 PM No.105743083
>>105740574 (OP)
>he didn't use lisp for this
sigh.
Anonymous
6/29/2025, 3:38:09 PM No.105743415
>>105740574 (OP)

The brackets are ugly.

```
class PoetryWriter(object):

def __init__(self):
self.all_words = []

def __getattr__(self, item):
if '_' in item:
item = item.replace('_', '')
self.all_words.append(item)
return self

def __enter__(self):
return self

def __exit__(self, exc_type, exc_val, exc_tb):
print(' '.join(self.all_words))

poetry_writer = PoetryWriter()

with poetry_writer as _:
_.in_.the.garden.of.error.you.prune.the.right.flowers.yet.plant.the.wrong.seeds._. \
In.the.ballet.of.folly.you.pirouette.with_.grace.but.always.step.on.your.partners.toes
```

in the garden of error you prune the right flowers yet plant the wrong seeds In the ballet of folly you pirouette with grace but always step on your partners toes
Replies: >>105743434
Anonymous
6/29/2025, 3:39:58 PM No.105743434
>>105743006
>>105743415

Someone tell me how to do code blocks i am retarded in a different way.
Replies: >>105743467
Anonymous
6/29/2025, 3:42:35 PM No.105743453
>>105740694
how do you handle "()" in text then?
Anonymous
6/29/2025, 3:44:08 PM No.105743467
>>105743434
Ctrl+W
Anonymous
6/29/2025, 3:51:56 PM No.105743519
kill yourselves you wastes of oxygen
Replies: >>105743555
Anonymous
6/29/2025, 3:55:20 PM No.105743555
>>105743519
shut up fagget
Anonymous
6/29/2025, 3:57:28 PM No.105743569
>>105740694
Just learn Scala. You would be able to write like this:

why not that is the power of lambda
Anonymous
6/29/2025, 4:08:58 PM No.105743663
>>105740574 (OP)
A smarter impl would have some sort of meta-function that, on occurrence of an undefined function, defines a generic function that concatenates the function name with its input.
But cool idea anyway. I think.

Lua can do this easily (not pictured: workaround for already defined globals/keywords).
setmetatable(_G, { __index = function(_, k)
return function(s)
return k .. " " .. (s or "")
end
end })

print(now(you(can(write(like(this(too())))))))
Anonymous
6/29/2025, 4:38:11 PM No.105743928
Why would you use poetry when it's been deprecated by uv, which is written in rust
Replies: >>105746947
Anonymous
6/29/2025, 4:42:47 PM No.105743970
>>105740574 (OP)
that's embarrassing. you could have just used reflection.
Anonymous
6/29/2025, 10:05:19 PM No.105746947
>>105743928
It would only save me an average of one second a month at most (it made no difference in CI according to my tests, but YMMV). That's worth it to not have the Rust "community" opinions infesting the system.