Skip to main content



What if—and this is perhaps crazy—instead of giving me "AI" features, you gave me a usable, well documented API, so I could add my own automation features?



Oh, this bottle of coconut water has "no added sugar"; I wonder if it's okay for my diabetes?

*checks the macros*

(It's roughly equivalent to a can of coke.)

*drinks it anyway*



A question for the #lisp folx:
What, if anything, is the difference between #'(lambda ...) and just plain (lambda ...)?

They seem functionally equivalent to me.

#lisp
in reply to Jonathan Lamothe

Yes, functionally equivalent. (lambda …) was a late addition to #CommonLisp to make it more compatible with #ISLisp
in reply to Jonathan Lamothe

Seemingly plain (lambda () ...) is a macro that expands to (function (lambda () ...)). #'(lambda () ...) uses a reader macro to expand to the same (function (lambda () ...)).

clhs.lisp.se/Body/m_lambda.htm

Function is a special operator that returns a function. It takes either a function name or a lambda expression. The second case is what is happening here.

clhs.lisp.se/Body/s_fn.htm#fun…

A lambda expression is a list of the symbol lambda, a lambda list, and a body.

clhs.lisp.se/Body/26_glo_l.htm…



I just cleared my cookies and cache in Chromium and somehow stayed logged into Google. This is somehow both shocking and also not shocking at all.


I've been taking a bunch of tests to qualify for a transcription job. They're not easy and I need a perfect score to pass. I finally failed one of the tests but managed to pass it on the retry.

They're really picky about their style guide. Fortunately, it basically amounts to syntax rules and I've been dealing with compilers that are equally picky about syntax for decades.

It also helps that all throughout my schooling my mother worked at the local university proofreading research scientists' papers and she insisted on proofreafing all my essays too.

I never thought I'd end up being happy about that.

in reply to Jonathan Lamothe

Now I'm annoyed. Apart from that one hiccup, I aced the transcription parts (which are supposed to be the "hard" part) only to fail the last short section of the exam. Now I have to wait two days before I can try again.


Just booked an appointment with my doctor to renew my #ADHD meds again. Now it's time to play my favourite game: is he going to fight me on this prescription again?
#ADHD


Yes Doctor, I'm over a half hour late with my meds, but you don't understand: there's a cat on me.

Judy Anderson reshared this.




It turns out that turning around on four hours sleep a night is not a sustainable strategy.


You may not think me very impressive, but I'll have you know that I'm a successful restauranteur in an obscure text-based multi-user virtual reality.
#LambdaMOO






Got my hands on a #shortwave radio, but the fact that I live in a giant concrete box doesn't seem to be helping my reception. Seeing what I can do about that.

Are there any broadcasts that are worth catching that I'd be able to get in Southern Ontario?

Kevin Davy reshared this.



So now that she's eating "real" food again, we took some of the curry we've been making lately to my mother. I was very happy to learn that she enjoyed it. Mind you, we're competing with hospital food, so it's not like the bar is terribly high.


I find the notion of an "off-grid" YouTuber to be... confusing.


elisp
God, my tab completion function is a hacky mess:
(defun lambdamoo-tab-complete ()
  "Complete user input using text from the buffer"
  (interactive)
  (when (memq (char-before) '(?  ?\r ?\n ?\t ?\v))
    (user-error "Point must follow non-whitespace character"))
  (let (replace-start
        (replace-end (point))
        replace-text found-pos found-text)
    (save-excursion
      (backward-word)
      (setq replace-start (point)
            replace-text (buffer-substring replace-start replace-end))
      (when (or (null lambdamoo--search-text)
                (not (string-prefix-p lambdamoo--search-text replace-text t)))
        (setq-local lambdamoo--search-text replace-text)
        (set-marker lambdamoo--found-point (point)))
      (goto-char lambdamoo--found-point)
      (unless
          (setq found-pos
                (re-search-backward
                 (concat "\\b" (regexp-quote lambdamoo--search-text))
                 (point-min) t))
        (setq-local lambdamoo--found-point (make-marker))
        (user-error "No match found"))
      (set-marker lambdamoo--found-point found-pos)
      (forward-word)
      (setq found-text (buffer-substring found-pos (point))))
    (delete-region replace-start replace-end)
    (insert found-text)))

#emacs #lisp #moo #mud #LambdaMOO

reshared this

in reply to Jonathan Lamothe

elisp

@Omar Antolín Actually, looking more closely at it, it might just do the trick.

I love it when I spend hours re-writing code that essentially already exists. ;)

in reply to Jonathan Lamothe

elisp

In the end, I wound up just binding tab to dabbrev-expand. 🙃

It might seem like I wasted a bunch of time writing that, but at least I learned a bunch along the way.

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.