screwtape on Nostr: nprofile1q…657a8 Ugh, it's 10x slower than this loop facility one. (defun ...
Published at
2024-11-17 02:51:00Event JSON
{
"id": "8d7bb3132c950085468c21b33fe6c72cab1c99dbc3482c0f0274fc5ecbea59ec",
"pubkey": "9e9c58006890e3e31e306e20518f236965f1d8ee97640175d74afb88769a7c4d",
"created_at": 1731811860,
"kind": 1,
"tags": [
[
"p",
"783317181c74e1e0d61fc2824fce3e1c93796ab2c3da91cc636085af81cae11f",
"wss://relay.mostr.pub"
],
[
"p",
"f6ae3ed1d24fbd518747925873096c56d6ac82f0a40fd5e33332794119e3530b",
"wss://relay.mostr.pub"
],
[
"e",
"dbbaae990265347930ef47a23ec9fdc2be58ee80ccb26625251faf0d7aaf39f7",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.sdf.org/users/screwtape/statuses/113496022111086255",
"activitypub"
]
],
"content": "nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq0qe3wxquwns7p4slc2pyln37rjfhj64jc0dfrnrrvzz6lqw2uy0sl657a8 \nUgh, it's 10x slower than this loop facility one.\n(defun loopfizz-of (no)\n(let ((res (loop :repeat (1+ no)\n:for x :from 0 :by 1 :for y := '0 :then y :for z := '0 :then z\n:when (eql x y) :do (incf y 3)\n:When (eql x z) :do (incf z 5)\n:finally (return (list x (decf y 3) (decf z 5))))))\n\t\t (cond ((and (= (car res) (cadr res)) (= (car res) (caddr res))) '(fizz buzz))\n\t\t\t ((= (car res) (cadr res)) '(fizz)) ((= (car res) (caddr res)) '(buzz))\n\t\t\t (:otherwise (butlast res 2)))))",
"sig": "5b86c7adc20186f4cba60cfeebd039859e94165c10343b588f838485661bd69aeedea5c24c3fe42f782d671a5c88e0d02dd6044463ee1df1683a497632e6b44a"
}