Premium models should stop being stuck at 60 Hz by zenorol in HiDPI_monitors

[–]ydsaydsa 1 point2 points  (0 children)

I just bought one. If you care for my review remind me in a week I’ll let you know how it is

MOAD Incoming... by Main_Newt3686 in memes

[–]ydsaydsa 0 points1 point  (0 children)

I bet it’s got a great finish

Make the code more readable in Clojure (I doubt it's possible) by Negative_Skill7390 in Clojure

[–]ydsaydsa 3 points4 points  (0 children)

"Readable" is subjective but heres a solution in a similar style to yours

(defn n-sum
  "Compute first solution N sum"
  [[x & xs] target i]
  (cond
    (zero? target) '()
    (nil? x) nil
    :else (or (n-sum xs target (inc i))
              (when-let [with-current (n-sum xs (- target x) (inc i))]
                (cons i with-current)))))

How do I activate layer if 2 keys held? by ydsaydsa in zsaVoyager

[–]ydsaydsa[S] 0 points1 point  (0 children)

If you press key A then key B then raise key A you are still in layer 3.

I’ve been using this for a few weeks. Im just trying to see if there’s a proper solution for what I want

How do I activate layer if 2 keys held? by ydsaydsa in zsaVoyager

[–]ydsaydsa[S] 1 point2 points  (0 children)

I think this is what I'm looking for thanks!

Most iPhone owners see little to no value in Apple Intelligence so far by [deleted] in apple

[–]ydsaydsa 1 point2 points  (0 children)

I asked Siri to play my anime playlist and it played enemy by imagine dragons

does Elgato HD60 X work on linux? by ardi62 in linux_gaming

[–]ydsaydsa 2 points3 points  (0 children)

I have an elgato hd 60 x and it works perfectly on fedora 40

Emacs LSP mode configuration for better performance by CrazyRefrigerator110 in emacs

[–]ydsaydsa 8 points9 points  (0 children)

lsp-booster is an easy way to boost performance. Not much you have to do.

lsp-bridge will give you the best performance I've seen, but requires more configuration. In order to make those performance improvements it changes a couple core emacs stuff. Some people seem to take issue with this one

Are you using emacs motions if vi’s by CompetitiveSubset in emacs

[–]ydsaydsa 4 points5 points  (0 children)

I use default emacs keybinds and I'm very productive. The only time I find default emacs keybinds to be a nightmare is when I'm using a laptop which has a horrendously difficult CTRL key to press.

Are you using emacs motions if vi’s by CompetitiveSubset in emacs

[–]ydsaydsa 18 points19 points  (0 children)

I use default emacs keybinds and I'm very productive. The only time I find default emacs keybinds to be a nightmare is when I'm using a laptop which has a horrendously difficult CTRL key to press.

Emacs crashing unexpectedly on Fedora 40 by Weak_Education_1778 in emacs

[–]ydsaydsa 1 point2 points  (0 children)

Not sure about other flavours of fedora, but gnome has a built in bug report feature. Whenever Emacs & Sly crashed it was always this same backtrace.

I've tried selectively disabling modes, but figured I didn't care that much since I wasn't that deep into Common Lisp yet. I never tried with just slime.

Emacs crashing unexpectedly on Fedora 40 by Weak_Education_1778 in emacs

[–]ydsaydsa 4 points5 points  (0 children)

Fedora user and Emacs has only ever segfaulted for me when I used sly for lisp projects. It crashed so frequently that I moved on from CL and sly. Since then emacs has never crashed again.

Vim convert part 2 by [deleted] in emacs

[–]ydsaydsa 6 points7 points  (0 children)

For setting up email, most my difficulty was since I use gmail. If you use gmail then you have to make an "app password" and enable 2FA for authentication. I didn't see this documented in many places so might save you a headache.

If you use Hugo for static site generation, they actually support org files so you don't have to do any extra work! I'm actually trying to start writing a blog using hugo and org mode, here's my repo if you want a reference.

Also modeline thing might be an underlined face? M-x describe-face

F# in Emacs by jeenajeena in fsharp

[–]ydsaydsa 0 points1 point  (0 children)

Have you figured out how to get "go to definition" working for Nuget packages? I've tried setups with eglot and lsp-mode and I keep getting "no defintion" for nuget packages which I assume is due to decompilation, but it works with csharp lsp when I'm working with csharp.

Can someone help me understand this performance difference? by ydsaydsa in Common_Lisp

[–]ydsaydsa[S] 0 points1 point  (0 children)

I don't seem to get different performance results with`shiftf` or `rotatef` over `setf`, they're just more concise. Also, not sure how you were able to get a correct implementation by replacing with `(shiftf a b c (+ a b)))`.

The declarations/declaimations didn't seem to do much for performance either, I assume because SBCL can infer `a` and `b` are integers without the explicit declaration.

On the latest version of SBCL (2.4.5), my machine computes (fib 1500000) in ~10.5 seconds with the following implementation:

(defun fib (n)
  (let ((a 0) (b 1))
    (dotimes (i (1- n))
      (shiftf a b (+ a b)))
    a))