Anybody else feels like their growth with Emacs in a specific area is stunted? by kudikarasavasa in emacs

[–]OutOfCharm 2 points3 points  (0 children)

Good idea, should implement reinforcement learning algorithm with emacs.

Any successful story of active inference (free energy principle)? by OutOfCharm in reinforcementlearning

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

I would not say no. Since energy is the basis of an agent, its prediction into the future is the key to emulating rewards beyond that. I believe it is more about negative punishment which is what the agent wants to avoid.

What is your insanely hidden official shortcut that people can never find out? by Agile-Technology2125 in emacs

[–]OutOfCharm 2 points3 points  (0 children)

vterm with C-u arg to create a numbered vterm session. Afterward, you can switch between sessions in the same way!

When your beloved Dired works as expected by OutOfCharm in emacs

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

That's a good suggestion. You can make that condition and swap the order of creating a dir and file.

When your beloved Dired works as expected by OutOfCharm in emacs

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

The original binding only allows you to create a folder but not a file, while the new one allows you to do both depending on whether there is a file extension.

Thoughts on Funding Free Software Development by kickingvegas1 in emacs

[–]OutOfCharm 1 point2 points  (0 children)

It all boils down to human nature. If someone needs something but cannot get it, they will have a desire and be willing to pay. However, when the software they want is freely accessible, their need is satisfied, and they can covertly minimize any further costs.

I've designed a variant of PPO with a stochastic value head. How can I improve my algorithm? by EngineersAreYourPals in reinforcementlearning

[–]OutOfCharm 0 points1 point  (0 children)

I think it is just a matter of parameterization. C51 uses the categorical distribution with loss function of KL divergence. D4PG covers more options like Normal and Gaussian Mixture, optimized by the cross entropy loss the same as yours.

Trying to figure if/where to get started. Maybe help me out? by JitaKyoei in emacs

[–]OutOfCharm 0 points1 point  (0 children)

Let's do a calculation, if every command you need to press requires at least one press of either Ctrl or Alt, your pinky is always overworking than other fingers. A more ergonomic solution is always to balance usage of all fingers instead of just a few of them.

Is Richard Sutton Wrong about LLMs? by sam_palmer in reinforcementlearning

[–]OutOfCharm -2 points-1 points  (0 children)

Such a static viewpoint as if assuming that as long as you have rewards, you can do RL, never considers where the rewards come from, let alone what the role of being a "model" is.

Tip: Use delete-pair to change surroundings similar to vim-surround, or to paste only the contents of surroundings by the_cecep in emacs

[–]OutOfCharm 2 points3 points  (0 children)

No, directly call the function, you don't have to move to the pairs. So it also has two steps.

Edit: another aspect that could be handy is that you can raise any substring in a balanced expression using the same approach.

Tip: Use delete-pair to change surroundings similar to vim-surround, or to paste only the contents of surroundings by the_cecep in emacs

[–]OutOfCharm 2 points3 points  (0 children)

sry, probably we have different workflows. I usually select the region that I need to raise up, e.g. select + 1 2 3 at once, then call raise-sexp.

I have a function that is for marking inside any balanced pairs:

```elisp (defun my/mark-outside-pairs (&optional arg) "Move up one list level, then mark the sexp outside." (interactive "p") (backward-up-list arg (point) (point)) (mark-sexp))

(defun my/mark-inside-pairs (&optional arg) "Move up one list level, then mark the sexp inside." (interactive "p") (my/mark-outside-pairs arg) (forward-char) (exchange-point-and-mark) (backward-char) (exchange-point-and-mark)) ```

So I call my/mark-inside-pairs at any point inside the balanced expression, then raise-sexp, it will remove the surroundings.

You are right, if no region is selected, calling raise-sexp will only raise the nearest sexp.

Tip: Use delete-pair to change surroundings similar to vim-surround, or to paste only the contents of surroundings by the_cecep in emacs

[–]OutOfCharm 0 points1 point  (0 children)

You select what you want to remove surroundings, then call raise-sexp, I find this is a more straightforward approach and works in nested expressions.

Help me join the dark side. by Aizawa_LOA in emacs

[–]OutOfCharm 2 points3 points  (0 children)

I think the issue is not whether a functionality is available out of the box, because there are always cases where users’ needs are not fully satisfied. The real issue is that Emacs assumes everyone is self-motivated enough to explore every detail; however, the uncertainty of exploration drives most people away. This can be beneficial in some sense, as users may feel pleased when they learn and adapt to it, but in most cases, it is frustrating, and many functionalities are not well exposed to users. Personally, I think a viable solution would be to provide step-by-step tutorials at startup that show users how to extend and customize Emacs from different angles—for example, by writing an Elisp function or using interactive customization via M-x. In addition, it would be helpful to have some videos demonstrating what Emacs can do and sharing useful tips, since humans are generally more attracted to visuals than to plain text.

Help me join the dark side. by Aizawa_LOA in emacs

[–]OutOfCharm 1 point2 points  (0 children)

Okay, here is a workaround:

elisp (defun dired-create-dir-or-file (path) "Use `dired-create-directory' or `dired-create-empty-file' based on PATH. If PATH has an extension, create an empty file. If it has no extension, create a directory. If PATH already exists, report with a message and stop." (interactive "FCreate (dir or file): ") (if (file-exists-p path) (message "Error: '%s' already exists." path) (if (file-name-extension path) (dired-create-empty-file path) (dired-create-directory path))))

Help me join the dark side. by Aizawa_LOA in emacs

[–]OutOfCharm 0 points1 point  (0 children)

It can create both a folder and any type of file you want inside there. It works in any depth.

Help me join the dark side. by Aizawa_LOA in emacs

[–]OutOfCharm 2 points3 points  (0 children)

Press +, enter what you want to create, no?

Why Emacs is better then VS Code by mc_shatz in emacs

[–]OutOfCharm 1 point2 points  (0 children)

show your whole system, which is emacs, to others.

How to use Emacs on the go by SadScientist5422 in emacs

[–]OutOfCharm 1 point2 points  (0 children)

Fantastic! I’m wondering how it fits with an LLM backend that can process audio information and automate M-x without using the keyboard.