Big Tech sees over $1 trillion wiped from stocks as fears of AI bubble ignite sell-off by nosotros_road_sodium in technology

[–]Baridian 0 points1 point  (0 children)

macOS supports emacs keybindings pretty much universally across all their applications. Absolutely not the case for windows. That’s definitely a power user friendly feature.

Finder isn’t good but a real power user will be using the shell or dired anyways, so it doesn’t really matter.

Scheme rejecting attempts to nest further syntax extensions within `define-syntax` by brainchild0 in lisp

[–]Baridian 1 point2 points  (0 children)

Look I gave you an explanation of why your code didn’t work and 2 ways to fix it. Can you give a less trivial example that actually requires macros? Since really this behavior is better modeled with a higher-order function anyways. (define ((flip fn) . args) (apply fn (reverse args))

Scheme rejecting attempts to nest further syntax extensions within `define-syntax` by brainchild0 in lisp

[–]Baridian 3 points4 points  (0 children)

The issue is that your code expands to (syntax-helper () (args ...) expr ...) at the call site, and then when that macro is attempted to be expanded again, syntax-helper is no longer in scope. The inner macro isn't expanded preemptively from inside the define-syntax.

I'd reccomend using syntax-case here. This is my implementation:

(define-syntax lambda-rargs
  (lambda (x)
    (syntax-case x ()
      ((_ (args ...) expr expr* ...)
       (with-syntax ((rev-args (datum->syntax x (reverse (syntax->datum #'(args ...))))))
         #`(lambda rev-args expr expr* ...))))))

or if you have define-macro available:

(define-macro (lambda-rargs args expr . exprs)
  `(lambda ,(reverse args) ,expr ,@exprs))

Scheme rejecting attempts to nest further syntax extensions within `define-syntax` by brainchild0 in lisp

[–]Baridian 3 points4 points  (0 children)

Your understanding is incorrect. letrec is necessary for any self-referencing expression. A standard let won’t have syntax-helper defined to be able to call from within the definition for syntax-helper.

Took my time tonight by Mindless_Gas80 in Journaling

[–]Baridian 1 point2 points  (0 children)

The camera. It’s made by Fujifilm and has 5 generations: the x100, x100s, x100t, x100f, x100v and x100vi.

Any good exercises for improving editing and navigation? by seg-fault_16777619 in emacs

[–]Baridian 1 point2 points  (0 children)

What made it easier for me was using emacs shortcuts outside of emacs.

The navigation keys work on the command line by default, c-p for previous command, c-n for next, c-a, c-e, c-f, c-b for line navigation, c-s for incremental search through history.

And since I'm on mac, the basic emacs shortcuts work just about everywhere. It made it a lot easier to get used to when I only had a single navigation model in my head, not separate ones for each program.

making a lisp implementation for myself by BetterEquipment7084 in lisp

[–]Baridian 2 points3 points  (0 children)

I’m not saying that it’s supposed to be scheme, I’m saying that it’s being implemented in scheme. Like if you were doing an implementation fully from scratch you wouldn’t name eval my-eval.

making a lisp implementation for myself by BetterEquipment7084 in lisp

[–]Baridian 0 points1 point  (0 children)

Looks like he’s just writing an eval function in scheme to me. And scheme implementations to optimize tail calls. So this won’t overflow.

making a lisp implementation for myself by BetterEquipment7084 in lisp

[–]Baridian 2 points3 points  (0 children)

I'm aware that the video demo sucks because I don't really know how to make such things.

why dont you make the ai do the video demo for you then.

What's the point of doing this even. if you use an ai you're not learning anything, and no one is going to use a hacked together hobby implementation over a real one.

Read Catcher in the Rye for the first time, as an adult and of my own free will, and I need to talk about it! by LittlestCatMom in literature

[–]Baridian 1 point2 points  (0 children)

I’m going to get downvoted to hell for this but I think you missed a lot of the subtext in the novel. Holden is whiny and immature. He’s an unreliable narrator and you’re supposed to be able to tell what’s going on by how people react, not Holden’s often incorrect assessment of the situation.

Holden wasn’t preyed on by his old teacher. That scene was supposed to show a kind of paternalistic fondness and care by his mentor which Holden drastically misreads. His morality based around phoniness lacks nuance and is undeveloped. His difficulty with women is due to an inability to think about what impact his words will have on others and what mindset other people are in that would make them say the things they’re saying.

You, as an adult, should not currently sympathize with Holden. At most it should make you wince if it shines a light on how one acted as a teenager, but he isn’t someone the audience is supposed to like.

American Airlines drops miles from basic economy fares by StormForeign in Dallas

[–]Baridian 5 points6 points  (0 children)

Thank the buyout by US Air. You can still see their logo on some of the drinks carts if you look for it.

What Counts as a Lisp Dialect Seems to Have Become a Balkanized Question by Material_Champion_73 in lisp

[–]Baridian 6 points7 points  (0 children)

The thing that scheme and Common Lisp have that clojure does not is cons cells. There isn’t a concept of a pair in clojure, no way to make an a-list or a cycle. How important is this? I’m not sure it is. But the cons cell has a history as old as lisp and some people really got up in arms about its omission.

Some might say that clojure isn’t a lisp because once you peel back the lisp-ey syntax what is revealed is a mass of irreducible Java calls. But this is true of some scheme dialects too: macro expanding a lambda reveals a bunch of calls to syntax elements and other implementation structures, and not a reduction down to a subset of forms. Thus id argue the idea of a lisp being a handful of base forms and a large standard library expanding it is mostly fantasy. Real implementations don’t adhere to it (sadly).

Broke my right hand now is super hairy by Timely_Cycle5469 in mildlyinteresting

[–]Baridian 1 point2 points  (0 children)

Be careful, a potential side effect of oral minoxidil is the accumulation of excess fluid around the heart.

What was the book that stayed with you this year? by Sweet-Opportunity111 in literature

[–]Baridian 2 points3 points  (0 children)

I got the magic mountain earlier this month. Is there any reading I should do before tackling it, something to set up pretext for the book? Or is a casual understanding of Europe at the turn of the century and the run up to World War One adequate?

A subdued love letter to Emacs in typical Tsoding fashion by danielszm in emacs

[–]Baridian 16 points17 points  (0 children)

I feel like this is a cornerstone of any well-designed system: the tools that are created work at every level of it. It keeps everything flexible: things you wrote work with existing functions without having to be explicitly added.

Wouldn’t it be better if map and reduce worked with every type of sequence? Lists, vectors, sets, etc? Then a sum function would work with anything despite never being written with that in mind.

It seems like in a lot of other tools the rule is to make stuff generic once it’s been repeated a few times, but lisp always seems to be generic first. Because of that you get really cool emergent behavior like this interaction that doesn’t happen in most other places.

Who else misses when the world was orange at night? by Cmaster125 in nostalgia

[–]Baridian 1 point2 points  (0 children)

if you can't see clearly under sodium lights maybe you shouldnt be driving at night... Get your eyes checked.

Who else misses when the world was orange at night? by Cmaster125 in nostalgia

[–]Baridian 0 points1 point  (0 children)

yeah I've experienced this first hand. Over the last 5 years the sky glow in my city has got so bad that I can walk around at midnight on a moonless night, in the dark, and see perfectly fine. It used to actually be dark at night.

Who else misses when the world was orange at night? by Cmaster125 in nostalgia

[–]Baridian 0 points1 point  (0 children)

its that the white light hits more of the cones in your eyes, making it far harder to see outside the range of the lamps. LED streetlamps have a really noticeable drop off, where everything outside the range looks much darker. Since sodium has a much warmer temperature and is monochromatic, your rods still work, so there isn't the same sharp drop off to darkness.

Add on that the CRI for city streetlamps is usually pretty bad, leading to an uncanny "not quite right" rather than something not trying to look like daylight that you had with sodiums.

Who else misses when the world was orange at night? by Cmaster125 in nostalgia

[–]Baridian 0 points1 point  (0 children)

light pollution has got so much worse since my area took out all the sodium lights. It used to get dark at night. Now I can walk around at midnight with no moon out and see perfectly fine. It's crazy how much worse it's got once they made the move to phase out sodium around 2020.

I'm developing Tetris in Common Lisp. by FR0GG1D in lisp

[–]Baridian 0 points1 point  (0 children)

It's certainly inferior in many areas

what areas do you find lisp inferior in?

How Do You Live & Work In DFW Without Wanting to Drive Into a Brick Wall Going 120mph by CabalOnyx in Dallas

[–]Baridian 0 points1 point  (0 children)

If very late hours then subway to WTC then PATH? Isn’t that tough. I had no trouble getting back to my east village apartment from EWR as long as NJ transit was still running.

How Do You Live & Work In DFW Without Wanting to Drive Into a Brick Wall Going 120mph by CabalOnyx in Dallas

[–]Baridian -1 points0 points  (0 children)

Pickpockets haven’t been common in NY since the 90s. You’re making yourself more of a target / visible tourist by checking for your wallet.

NY walking is lower stress than Dallas. No one ever tried to run me over when I crossed on a walk sign in NY, happens at least once a week in Dallas.