News for hackers. Stuff that matters.
Re:Wikipedia Haiku by kazinator on Sunday May 29, 2022 @09:55PM (#31554785)
Could a haiku be written for Lisp?

Wow, yes; turns out we can write a working map function in TXR Lisp as a haiku:

  (defun map (f x)
    (if (null x)
      nil 
      (cons [f (car x)] (map f (cdr x)))))
I.e.

  (defun map (f x)
    (if (null x) nil (cons [f (car
                                   x)] (map f (cdr x)))))

i.e.

  de-fun map eff ex
  if null ex nil cons f car
  ex map eff k'dr ex

Comprehensive regression test suite:

  4> [map succ nil]
  nil
  5> [map succ '(1 2 3)]
  (2 3 4)
Re:Wikipedia Haiku by 8bitsrule on Friday May 27, 2022 @07:12PM (#31535990)
alas this falls short

of the state of the art in

quality haiku

Re:Wikipedia Haiku by totetsu on Sunday May 29, 2022 @10:25AM (#31549370)
Now someone make one for Hacker news. What was that library that decomps words into syllables again..
Re:Wikipedia Haiku by kazinator on Sunday May 29, 2022 @09:48PM (#31554738)
What's that library

For splitting up words into

Syllables again?

Re:Wikipedia Haiku by prattatx on Sunday May 29, 2022 @10:54AM (#31549603)
Several from that bot are great UX haiku.
Re:Wikipedia Haiku by pkdpic on Sunday May 29, 2022 @10:49AM (#31549558)
Im wondering if

this was just a webscraper

or perhaps ai

Re:Wikipedia Haiku by savolai on Sunday May 29, 2022 @11:33AM (#31549936)
The first mastodon

page I really wanted

to follow