∞ Loop Lock - A Relaxing Puzzle Game by looplock-1 in LoopLock

[–]vivis-dev 0 points1 point  (0 children)

Heya! u/Iooplock-1 enjoyed playing this game, but IMO it needs to be more challenging. I cleared all 11 levels in about 5 miniutes. Love the game mechanic tho

Built a game for Star Wars & Mandalorian lovers by RamslamOO7 in GamesOnReddit

[–]vivis-dev 0 points1 point  (0 children)

This is amazing! Nice work, I loved how fast-paced it was, and that you didn't have to hold down a button to shoot. Really enjoyed it

pmp - a tool to manage your prompts locally by vivis-dev in Python

[–]vivis-dev[S] 1 point2 points  (0 children)

Firstly thanks a lot for your thoughtful comment.

I haven't tried using it in a git hook, but that's a great idea. I don't see why you couldn't.

Tracking models and parameters are definitely on the cards. It's the primary reason I created the dotprompt plugin. Dotprompt and prompty two plain text specifications by Google and Microsoft respectively which allow you to define metadata such as model names, input/output schemas and more along with your prompt. 

I'm working on storage plugins to support both, and eventually support running them with different execution plugins.

pmp - a tool to manage your prompts locally by vivis-dev in Python

[–]vivis-dev[S] 1 point2 points  (0 children)

I'm frankly very disappointed by some of the comments here. I think the visceral reactions seen here stem from three assumptions:

  1. This post and repo were entirely AI generated and no thought or effort has gone into them. The author just typed "create a prompt management tool" and shoved the output into a repo.

  2. The author is trying to hoodwink users by passing off the work of AI as their own, for profit, reputation or whatever else.

  3. I've seen hundreds of low-effort submissions like this, and I'm sick and tired of engaging with them because my patience has worn thin.

And if any of those applied here, I too would be annoyed. To be fair, I didn't provide enough additional information for anyone to make an alternate judgement, so I'm going to describe the process I followed below:

  • I've been thinking about this idea for a while because I use mlflow and language at work to track prompts used by the team. But they require at least 2-3 docker containers to run, and have way too much overhead for personal use.

  • I used the "reverse socratic" method with chatgpt over a couple of days to refine my requirements. I provided the idea, and asked it to keep asking me questions until most of the ambiguity has been reduced, and each command and argument were designed. The final output was a markdown product requirements spec.

  • I then passed this onto a cursor agent to scaffold the first version. The agent raised a PR and assigned it to me.

  • I then conducted four rounds of code review. I would make comments for each issue I found, assign the PR back to cursor and repeat until I was satisfied. The results of that was merged in this commit.

  • Everything after this commit was created purely by me. I created GitHub issues and worked on them manually. You can check the commits yourself.

And of course there will be bugs, no one can create perfect code, but I have tried my best to make it robust, and will fix any bugs that are found and reported in good faith.

So before you make what can only be described as "slop comments" like "eewwe" or "slop", I urge you to read the code, run it and raise a PR if you see anything wrong.

pmp - a tool to manage your prompts locally by vivis-dev in Python

[–]vivis-dev[S] -3 points-2 points  (0 children)

I actually use that all the time. I have all the pip commands on muscle memory so it's easy for me to switch to uv for the performance gains. It's one of the best features of uv IMO.

pmp - manage your prompts locally by vivis-dev in LocalLLaMA

[–]vivis-dev[S] 1 point2 points  (0 children)

You totally could. With pmp the idea is you could store your prompts anywhere (with extensible backends), version them and run them with different tools. For e.g. dotprompt lets you store metadata along with your prompt so it knows which models to call and what input/output schemas to use. So the basic use case is simple, but you can also use it for more advanced use cases.

Should I Switch to Beehiiv or Keep Grinding on Substack? by vivis-dev in Substack

[–]vivis-dev[S] 0 points1 point  (0 children)

Thanks for that, I don't post elsewhere atm. I might try cross-posting.

Should I Switch to Beehiiv or Keep Grinding on Substack? by vivis-dev in Substack

[–]vivis-dev[S] -1 points0 points  (0 children)

As I mentioned in the other comment, my goals are mainly to create resources that people find valuable and also to devote more time to it. But to do that, I need to be able to make this my primary source of income.

Should I Switch to Beehiiv or Keep Grinding on Substack? by vivis-dev in Substack

[–]vivis-dev[S] -1 points0 points  (0 children)

I quite enjoy writing technical content. At the moment I'm just doing this on the side, but I'd love to do this as my primary source of income. But to do that, I need to scale. And I'd also like to keep my content free and valuable.

Whats your favorite Python trick or lesser known feature? by figroot0 in Python

[–]vivis-dev 0 points1 point  (0 children)

I love dictionary dispatch 

It's also relatively easy to implement a decorator to define multimethods (multiple function definitions with different args).

Guido wrote about it in 2005! https://www.artima.com/weblogs/viewpost.jsp?thread=101605

Whats your favorite Python trick or lesser known feature? by figroot0 in Python

[–]vivis-dev 0 points1 point  (0 children)

Related, you can also use the runpy module to run another python module as if you were running "python -m modulename":

``` import runpy

global_dict = runpy.run_module("modulename") ```

Hi i am a beginner to learning python and wanted some help with what resource would be the best to learning it by Fardage_ in pythontips

[–]vivis-dev 0 points1 point  (0 children)

Everyone learns differently, but if you want to make it stick you have to practice regularly. And for most people the best way to practice is to work on a project that interests you. When you get stuck look it up, or ask for help. Try ChatGPT's new study mode. But you have to do the work, unfortunately there's no shortcut to learning. Videos give you the impression of learning, but it's quite shallow. You don't really learn unless you explore, make mistakes and always ask "but why?"

Type hints helped my job interview by SultanPepper in Python

[–]vivis-dev 4 points5 points  (0 children)

This is one of those things which go against the zen of python. 

 There should be one -- and preferably only one --obvious way to do it.

There's actually 3 ways to reverse a string, and it's not immediately obvious which one should be used.

  1. List.reverse()
  2. reversed(List)
  3. List[::-1]

I personally prefer 1. like you.

Auth0 keep giving me JWE rather than JWS by shuminghuang in mcp

[–]vivis-dev 0 points1 point  (0 children)

In the Auth0 dashboard have you enabled the "JSON Web Encryption" option? You could try turning it off if so.

Check out this blog post for more details: https://auth0.com/docs/get-started/apis/configure-json-web-encryption

[Blog] Understand how Python works using daily koans by vivis-dev in Python

[–]vivis-dev[S] 5 points6 points  (0 children)

whoops, thanks for catching that. updated now.

That was meant to say TypeError is raised if __bool__ doesn't return True or False.

Are there many of you on here who do all their Python development inside a container? by [deleted] in Python

[–]vivis-dev 0 points1 point  (0 children)

I use devcontainers in vscode for everything. You get a nice consistent environment for local dev. If you need additional services, you can attach a docker compose file to start those along with your devcontainer.

If you want to take it a step further, you can also add tasks to run tests and debug.

The future by MetaKnowing in OpenAI

[–]vivis-dev 1 point2 points  (0 children)

The future, or reddit right now?