This week's topic is quite programming heavy, sorry to all non programmers doggirl-gloom

https://xkcd.com/312/

yap

LISP stands for LISt Processing and was invented by John McCarthy, who was looking computation with symbols and recursive functions in the 1960s.

John McCarthy was the son of immigrant Communists (members of the CPUSA), but after witnessing the failed counter-revolution in Prague in 1968, he himself became a Republican lenin-dont-laugh.

A Lisp program consist of a few basic building blocks:

  • Symbols - basically text without whitespace, for example: +, hello123, if, nil, etc.
  • Numbers, Strings, etc.
  • Cons cells - a Pair, denoted as (cons 1 2) or dotted (1 . 2)
  • Lists - a linked list of Cons cells with the final element being the symbol nil.
    • (list 1 2 3) is the same as (1 . (2 . (3 . nil))).

As you may have noticed, cons and list are inside the parentheses, thats because a function call like f(x,y) is written instead as (f x y). This is called a Symbolic expression and all Lisp code looks like this.

(+ 1 (* 2 3) 4)
;; multiply 2 times 3 => (+ 1 6 4)
;; add 1 6 and 4      => 11

;; the names 'car' and 'cdr' are ancient relics from some assembly instructions
;; basically first and second element of a cons cell
;; or head and tail of a list
(car (cons 1 2)) ;; => 1
(cdr (cons 1 2)) ;; => 2

This in turn means that any code can be turned into a list, so that it can be modified like data. I think thats quite neat and unique among programming languages (it even has a fancy word: this property is called homoiconicity).

Functions that operate on code are called macros.

;; generate a function 'name' that adds 'value' to the input
(defmacro defun-adder (name value) 
  (list 'defun name (list 'x) (list '+ 'x value)))
 
(defun-adder plus5 5)
;; define the function plus5(x) as x + 5 
;; => (defun plus5 (x) (+ x 5)))

(plus5 10) ;; => 15

To make sure the interpreter does not try to evaluate a symbol, it needs to be "quoted". Since this comes up quite often, it gets the shortcut of ' at the beginning.

Theyre much nicer to work with than for example macros in C:

#define PI 3.14159265

this C macro just searches and replaces the string PI in the C source code before compilation and theres lots of ways to mess up, for example

#define DOUBLE(x) x + x

if x is a function call that does something else, like printing, then that message will appear twice. Operator prescedence is also not considered: DOUBLE(1) * 3 will expand to 1 + 1 * 3, so 4 not 6 like one would expect.

The last thing I want to yap about is Lisp1 vs Lisp2. This refers to the amount of namespaces any programming language has. if functions and variables are allowed have same names, then there needs to be a namespace for each.

for example in CL:

(defvar x 1)
(defun x () (+ 1 1))

x   ;; variable      => 1
(x) ;; function call => 2

is perfectly fine, while in other languages like Python or C or Scheme this wouldnt work.

Shoutout to respected comrades lilypad and sodium_nitride who are also true Lisp patriots.


___ Join our public Matrix server! https://rentry.co/tracha#tracha-rooms ___

As a reminder, please do not discuss current struggle sessions in the mega. We want this to be a little oasis for all of us and the best way to do that is not to feed into existing conflict on the site. Also, be sure to properly give content warnings and put sensitive subjects behind proper spoiler tags. It's for the mental health of not just your comrades, but yourself as well.

Here is a screenshot of where to find the spoiler button.

spoiler

Common Lisp Logo, an alien holding a flag with the word LISP on it

top 50 comments

sorted by: hot top controversial new old
[–] [M] 6 points 3 weeks ago* (last edited 3 weeks ago) (1 child)

HELLO THIS IS THE MEGA SIGN UP POST/LIST POST

if you have a preferred week please tell me

SwitchyandWitchy* (10/05 - 10/11)
Eco* (10/12 - 10/18)
LoveSupreme* (10/19 - 10/25)
Shaleesh* (10/26 - 11/1)
Ceres (11/2 - 11/8)
Disaster_of_Passion* (11/9 - 11/15)
Carcharodonna* (11/16 - 11/22)
BountifulEggnog* (11/23 - 11/29)
sodium_nitride* (11/30 - 12/6)
GenderIsOpSec* (12/7 - 12/13)

Shaleesh* (12/21 - 12/27)

​ * after name denotes someone who has posted before and will be skipped by first-time posters

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 30 points 1 month ago* (last edited 4 weeks ago) (11 children)

    I finally got hrt :3

    (Edit: Today I have consumed hrt for the first time :3)

  • source
  • hideshow 11 child comments
  • load more comments (5 replies)
    [–] 29 points 1 month ago (1 child)
  • [–] 26 points 1 month ago

    It's official

    I really genuinely fucking resent my parents and cannot stand talking to them at all

    This was the natural end point of being in the closet for so long and there is no reconciliation. I refuse to even allow reconciliation to happen. I don't care if it is possible for them to change in the future or what, but I do not forgive them and that's my choice.

  • source
  • [–] 25 points 3 weeks ago (2 children)

    CWFellow trans woman I knew took her own life. Last thing I said to her was please stick around…fuck this shit fuck everyone who fails us I want to scream and rip and tear apart every inch of this awful machine that turns human lives into piles of bones and hollow fucking memories . Not the first time and I know it won’t be the last and all I can feel is disgust and rage.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 25 points 4 weeks ago (5 children)

    It's been an entire year on estradiol for me.

  • source
  • hideshow 5 child comments
  • load more comments (5 replies)
    [–] 24 points 1 month ago (2 children)
    load more comments (2 replies)
    [+] 23 points 1 month ago* (last edited 3 weeks ago) (2 children)
    load more comments (2 replies)
    [+] 23 points 1 month ago (1 child)
    load more comments (1 reply)
    [–] 22 points 3 weeks ago (10 children)

    My wife years ago: “You should talk to your guy friends about what you’re feeling to compare your experiences”

    Me: “Okay. Hey guys have you ever thought about not being a man?”

    My friends (massive eggs): “Yeah pretty often. That’s normal.”

    Me: “Thanks this did not help”

  • source
  • hideshow 10 child comments
  • load more comments (2 replies)
    [–] 22 points 3 weeks ago (2 children)

    I had a girl over, Ive seen her a few times for dates and stuff. She brought soup! We played cod zombies, she'd never done it. She turned to me with complete sincerity and asked "how do I do a headshot" and with all my might I stifled my laughter and said "you shoot them in the head"

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 22 points 3 weeks ago*

    What is this feeling of going from cis ally to like, card carrying member

    It's like I see all of... us 🙊... In this new warmer fuzzy light

    cat-trans

  • source
  • [–] 22 points 1 month ago (5 children)

    what if we had 20 traa pins on the front page and nothing else

  • source
  • hideshow 5 child comments
  • load more comments (4 replies)
    [–] 21 points 1 month ago (1 child)

    New mega, everyone will know I'm a puppy

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 21 points 4 weeks ago (2 children)

    Finally shaved my beard. I feel...okay? My face could be better, but it doesn't fill me with despair or any strong negative feelings. What makes me feel less okay is my mom's first reaction was to say I look like my birth father. Him being a horrible person aside, I don't think it's unreasonable to say that if the first thing out of your mouth when supporting a trans woman to tell her she looks like a man, you're doing a poor job of being supportive.

    Personal dramaHopefully I'm just getting too in my own head, but I'm stuck worrying she's being performative rather than truly supportive. When I came out her telling me she supports me was immediately followed by asking me to borrow money. I lent it to her under the agreement that we'd go through all the streaming services she's paying for and whatever else she's subscribed to and cancel whatever isn't being used. That still hasn't happened. When I asked to look at her rings she spent several minutes looking for them because she didn't know where they were and then told me I can't have any of them. After she told me I looked like my dad, she used my dead name several times when trying to comfort me and didn't use my chosen name once. She barely ever refers to be as a girl (partially for safety reasons, but still). The subscription agreement we made came up and she screamed over me when I suggested piracy or canceling all but one and rotating every month and then she stormed off.

  • source
  • hideshow 2 child comments
  • load more comments (1 reply)
    [–] [S] 21 points 1 month ago (5 children)
    load more comments (5 replies)
    [–] 21 points 1 month ago (2 children)

    Did my injection today. Two days late. But. I did it.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 21 points 3 weeks ago (2 children)

    I had such a peak trans comedy interaction at the hospital just now. I was examined by a doctor there for an upcoming eye surgery and she started asking me all kinds of questions about my medical history and stuff like that, and then she asked me what meds I'm taking:

    Me: "Well, hormone blockers, estradiol and progesterone" takes a breath and then lists the rest of the meds I'm taking

    Doc: "And why do you take those hormone blockers? Do you have any tumors?"

    Me: "Uhh... I have testicles" kobeni-sweat

    Doc: marcille-stare

    Cis people are so oblivious lol. And lately I also started using my deeper voice again, so I sounded more masc than fem, so I'm really surprised my passing is that good (not that I give a single shit about it, but still good to know)

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 20 points 4 weeks ago* (last edited 4 weeks ago) (5 children)

    I had the most pleasantly suprising counseling appointment today. He was quite young and still in training to become a clinical psychologist so our session was recorded... which didn't bother me as much as I would have thought.

    but like he was a cishet white dude who like... actually made me feel seen and heard as a transgender woman. Hes done his research and he didnt do that "oh well because of my privlege I could never really know" cop out bullshit. The look of genuine empathy on his face when I told him I had spent 13 years in the closet was extremely suprising, in a good way.

    I got to talk about a lot and I think that I've really been going through a lot recently.

    Is it bad that he initally wanted to start me on weekly appointments?

    Addendum:

    removed on account of morning-after cringe

  • source
  • hideshow 5 child comments
  • load more comments (5 replies)
    [–] 20 points 1 month ago

    cw:genocide (not of trans people)

    Reverend insanity's premise of a guy using buddhist/daoist logic to justify slavery and genocide is funny until you realise that irl buddhist priests have literally done the same thing against the Rohingya people.

    At the end of the day, buddhism is a real object and not some sort of exotic mystical thing. Real life is always messy and complicated.

  • source
  • [+] 19 points 4 weeks ago* (last edited 3 weeks ago) (2 children)
  • [–] 19 points 1 month ago (2 children)

    So many trans authors have discussed that transmisogyny is the intersection or synthesis of misogyny and homophobia. And I've been reflecting that I think there's an interesting opposing force that many of the cis women in my life treat me positively both as a woman and like a gay best friend.

    It's both held at the same time, it's not a good force, but it's a benevolent one. I get empathy and respect as a woman, but also my love life, my expressions, my vibe in general still provokes entertainment and delight in the way a gay male friends would. I think it's interesting.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 19 points 3 weeks ago (1 child)

    Reading Time, 2013 - Vicente Romero Redondo

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 18 points 3 weeks ago

    I went to change my pronouns and discovered my previous pronouns had disappeared and reset to “none / use name”? I use an app so I never noticed.

    Anyway no longer undecided, new pronouns who dis

  • source
  • [–] 18 points 4 weeks ago (8 children)

    I went out dressed fem to a store to buy some nice women’s jeans. Biggest exterior excursion yet as girlmode. (Okay, like first real excursion. Previously I just went outside while made up to take out the trash lol)

    Kind of scary feeling but ultimately fine. I had a lot of makeup on but my facial hair is still sort of evident as a discolouration even after shaving and makeup. I was also wearing a wig as my current hair is short and thinning (I realy hope hrt will help fix this, but who knows. I have an hrt intake appointment in 2 weeks and I hope to discuss that then.)

    I was wearing a favourite vintage pullover and leggings and thought I looked kinda cute. My figure is not bad even for someone pre-hrt as I do a lot of cycling and I guess I have a bigger bum and shapely legs. It was in the biggest mall in the city and people in the store were nice, I am absolutely sure I was clocky af and got the vibe about that esp considering the aforementioned face stuff and ugh.. voice things but I got in there and got out and feel good about the clothes I bought. The jeans make my butt look nice and i can wear them boy or girl mode

    I look forward to being less conspicuous, really do. Getting my face blasted with lasers again this Thursday, wish me luck

  • source
  • hideshow 8 child comments
  • load more comments (8 replies)
    [–] 18 points 4 weeks ago (3 children)
    load more comments (3 replies)
    [–] 18 points 1 month ago (3 children)
    load more comments (3 replies)
    [–] 17 points 1 month ago (4 children)

    i dont think theres anything better in the world than waking up with my wife

    certified wifeguy, im pretty sure marx said this was praxis

  • source
  • hideshow 4 child comments
  • load more comments (4 replies)
    [–] 17 points 1 month ago
    [–] 17 points 3 weeks ago (1 child)

    Bone marrow registry called me today, I'm a close enough match for a patient that they want to take some blood for transplant viability tests.

    When the person that called me asked about my medical history I mentioned my HRT and asked if it might affect my eligibility to donate, so I had to wait on hold while she fetched someone who'd know.

    Cue another awkward pronoun talk with another medical expert.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 17 points 3 weeks ago

    New sweater so comf

  • source
  • [–] 17 points 3 weeks ago* (last edited 3 weeks ago)

    I've been on hrt for a whole year now :) despite still being kinda miserable sometimes things have gotten a lot better. Mentally too.

    body stuffSurprised how much my body hair has been reduced. I wouldn't hate a little more reduction though. Have tits and like them more than I anticipated. Need bigger. Getting a bit worried about my boymode tbh. Skin is way clearer. Some sexual changes which I liked more than I expected.

    Not sure what else to talk about. Hope year two goes better. Probably going to be out for my second hrtversary.

  • source
  • [–] 17 points 1 month ago (2 children)
    load more comments (2 replies)
    [–] 17 points 3 weeks ago (7 children)

    I took a few pictures of myself today and enjoyed it.

    It..... It was fun!

    (Joyful giggling.)

  • source
  • hideshow 7 child comments
  • load more comments (7 replies)
    [–] 17 points 3 weeks ago (4 children)

    This world is not gay enough

  • source
  • hideshow 4 child comments
  • load more comments (4 replies)
    [–] 17 points 3 weeks ago (5 children)

    Types of women you can get bit by and the effect it has on you

    Nuclear woman: SRS + breast enhancement mutation

    Chemical woman: permanent E buff

    Guerella woman: Stealth + passing powers

    Biological woman: Ability to make viral trans memes

    Any questions?

  • source
  • hideshow 5 child comments
  • load more comments (5 replies)
    [–] 17 points 1 month ago (14 children)

    New mega, now I have to make a bunch more posts to have any hope of trans people in my replies

  • source
  • hideshow 14 child comments
  • load more comments (14 replies)
    [–] 17 points 1 month ago (3 children)
    load more comments (3 replies)
    [–] 17 points 1 month ago (18 children)
  • load more comments (16 replies)
    load more comments
    view more: next ›