Andy

joined 2 years ago
MODERATOR OF
[–] Andy 1 points 4 months ago (4 children)

I've never used Hy. Does it offer any concatenative-style interaction?

[–] Andy 6 points 4 months ago

I suggest trying this one for Zsh, over the more common one: https://github.com/zdharma-continuum/fast-syntax-highlighting

3
submitted 4 months ago by Andy to c/concatenative
3
submitted 4 months ago by Andy to c/concatenative
4
submitted 4 months ago by Andy to c/concatenative
[–] Andy 1 points 4 months ago

As someone else said, setting less' jump value is helpful.

Another tool I use, mostly for the zshall manpage, is https://github.com/kristopolous/mansnip

4
submitted 4 months ago by Andy to c/concatenative
2
Magic Forest | Re: Factor (re.factorcode.org)
submitted 5 months ago by Andy to c/concatenative
 
7
Man or Boy | Re: Factor (re.factorcode.org)
submitted 5 months ago by Andy to c/concatenative
[–] Andy 2 points 5 months ago (5 children)

Thanks, yes, I use nox and github actions for automated environments and testing in my own projects, and tox instead of nox when it's someone else's project. But for ad hoc, local and interactive multiple environments, I don't.

[–] Andy 1 points 5 months ago

If it didn’t bring something more to the table, besides speed, no one would care

I'm literally saying its speed in certain operations makes an appreciable difference in my workflows, especially when operating on tens of venvs at a time. I don't know why you want to fight me on my own experience.

I'm not telling anyone who doesn't want to use uv to do so. Someone asked about motivation, and I shared mine.

[–] Andy 2 points 5 months ago (7 children)

The convention

That's one convention. I don't like it, I prefer to keep my venvs elsewhere. One reason is that it makes it simpler to maintain multiple venvs for a single project, using a different Python version for each, if I ever want to. It shouldn't matter to anyone else, as it's my environment, not some aspect of the shared repo. If I ever needed it there for some reason, I could always ln -s $VIRTUAL_ENV .venv.

Learn pyenv

I have used pyenv. It's fine. These days I use mise instead, which I prefer. But neither of them dictate how I create and store venvs.

Shell scripts within Python packages is depreciated

I don't understand if what you're referencing relates to my comment.

[–] Andy 1 points 5 months ago (2 children)

I have a pip-tools wrapper thing that now optionally uses uv instead. Aside from doing the pip-tools things faster, the main advantage I've found, and what really motivated me to support and recommend uv with it, is that uv creates new venvs MUCH faster than python's venv module, which is really annoyingly slow for that operation.

[–] Andy 2 points 5 months ago (9 children)

I use my own Zsh project (zpy) to manage venvs stored like ~/.local/share/venvs/HASH-OF-PROJECT-PATH/venv, so use zpy's vpy function to launch a script with its associated Python executable ad-hoc, or add a full path shebang to the script with zpy's vpyshebang function.

vpy and vpyshebang in the docs

If anyone else is a Zsh fan and has any questions, I'm more than happy to answer or demo.

 

I'm posting this mostly for the new hacker news discussion: https://news.ycombinator.com/item?id=40736174

[–] Andy 1 points 5 months ago
4
F: Functional False (www.nsl.com)
submitted 5 months ago* (last edited 5 months ago) by Andy to c/concatenative
 

F is a pure functional concatenative language originally designed as an extension of False. F contains the list-operations of K3 and the dip combinator of Joy. Floating-point and symbolic datatypes are supported. One-time assignment is enforced in syntax. A theory of function-valence and -charge is outlined. F also contains a general continuation primitive $, and the pattern sublanguage of XY. G is a variant of F in which the K3 adverbs are implemented as primitives.

Discussion on lobsters: https://lobste.rs/s/m9xv5y/f_functional_false

[–] Andy 1 points 5 months ago

From the author, on reddit:

Made a little mistake in there: you can create FDs with higher numbers using eg. exec {fd}<>pipe and they'll generate numbers above 10, plus the variables'll be better for scripting.

 

This is not my own content!

[–] Andy 7 points 5 months ago (1 children)

CLI flow: run command, print output below

TUI flow: navigate and interact with a layout that updates in place

[–] Andy 1 points 5 months ago

If you haven't checked them out you might be interested in aconfmgr or pacdef.

view more: ‹ prev next ›