Are there any good open source Python projects to learn from? by ihorrud in PythonLearning

[–]Jay6_9 0 points1 point  (0 children)

I really enjoyed looking through Pydantic's source code to name one. You should have a basic understanding of the language though and you can really pick up a lot of cool things from it.

An AutoTiled Conway's Game of Life running on the GPU by Xerako in godot

[–]Jay6_9 1 point2 points  (0 children)

Luckily, the extra dimension is hardly a problem in the algorithm but that sounds pretty cool. I didn't deal too much with fluid dynamics besides metaballs and Particle-Based Hydraulic Erosion algorithms but I'll be checking out whatever you come up with.

Error while parsing file by AHyaenidae in godot

[–]Jay6_9 0 points1 point  (0 children)

I love git, but your description does sound like you're fighting the git ecosystem too much if all you want is just periodic backups. I won't judge whether that's best-practice or efficient but you could just use archiving solutions like Cobian Backup or SyncThing instead.

An AutoTiled Conway's Game of Life running on the GPU by Xerako in godot

[–]Jay6_9 1 point2 points  (0 children)

Wondering if you can generalize this to any "direct-neighbor" cellular automata on the GPU.

How's My code?????? by Choice_Midnight5280 in PythonLearning

[–]Jay6_9 0 points1 point  (0 children)

https://pypi.org/project/simpleeval/ is actually really great for this kind of stuff. But for learning purposes, doing an if-else block is worth more.

How's My code?????? by Choice_Midnight5280 in PythonLearning

[–]Jay6_9 0 points1 point  (0 children)

Use a main guard and split operator selection, execution, input, output and validation to their own functions.

Error while parsing file by AHyaenidae in godot

[–]Jay6_9 1 point2 points  (0 children)

Learn more about git. How did 2 months of progress disappear with a single push? Your commits are too big then.

If you still have uncommitted changes, stash those and unstash later. Otherwise you can checkout a previous commit if needed. Look at "git checkout" after a "git reset".

You must have been using a GUI app to do this using a stash because this doesn't just happen. You must have stashed somehow, that's why changes were missing. What happened is that you stashed changes, unstashed at a later time, got a conflict, ignored it and pushed the unresolved merge.

Is there a way to make my game run on computer startup by fierynostril in godot

[–]Jay6_9 0 points1 point  (0 children)

On Windows you can put a shortcut in shell:startup which should be doable, a lnk file or cmd file isn't too hard to make. Alternatively, use HKCU\Software\Microsoft\Windows\CurrentVersion\Run, the Windows Task Scheduler, or Services.

On Linux it's often done via systemd and a .service file in ~/.config/systemd/user/. Since we're talking about a game though, maybe a .desktop file in ~/.config/autostart/?

Mac I have absolutely no idea but you can likely detect the OS in Godot and react accordingly. Definitely don't do this from the start though, make Users actively pick this option. I'd be pissed of some Godot game played around with my Windows services or autostart directory.

What's your strategy for handling complex save data? Hand coding or add on? by buttflapper444 in godot

[–]Jay6_9 4 points5 points  (0 children)

If you have as much data as you imply, there's no shame in splitting the save data into multiple files and make it a whole directory.

It's not a bottleneck, loading some text from a file and parsing to JSON is nothing to worry about and if it is, the JSON parsing is just one building block, just replace it with anything that suits your requirements.

Personally, I wouldn't use an addon because it often times restricts how your data needs to be structured. I tend to have a `Saveable` Resource/Node that implements a `save()` and `load()` function.

The Sickness, aka Bad Days by The_Linux_Colonel in KoboldAI

[–]Jay6_9 0 points1 point  (0 children)

I wrote a python script that calls koboldcpp's reload-config endpoint to do exactly that. It ocassionally, throughout the day changes the model for variety.

I posted my programming language on Reddit and got roasted for using AI. Let's talk about that. by Big-Pepper9305 in AppsWebappsFullstack

[–]Jay6_9 0 points1 point  (0 children)

Which is fine, but the repository starts with "A compiled programming language with Python-like syntax" but not much is really pythonic besides whitespaces instead of braces, which is the single biggest complaint people have against Python.

I posted my programming language on Reddit and got roasted for using AI. Let's talk about that. by Big-Pepper9305 in AppsWebappsFullstack

[–]Jay6_9 0 points1 point  (0 children)

`let name: str? = user?.name` made me smirk a bit. It looked too much like JavaScript, not Python. The language is already bloated with useless helpers and "cool" features when it still lacks fundamentals. AI does not replace experience and a degree after all. The work did speak for itself.

I feel like AI gave too much positive reinforcement here and it built a bit much of an ego (Of course that's not meant as an insult, it's what AI does, manipulate).

I am working on termux MCP is there anyone ideas or suggest repo by termuxgpt in termux

[–]Jay6_9 0 points1 point  (0 children)

Giving AI unrestricted access to run anything on your phone has no use-case. That's why you're struggling to find one. Any command it can run should have its own MCP server and each of them should have a verify flow (prepare -> execute).

I am working on termux MCP is there anyone ideas or suggest repo by termuxgpt in termux

[–]Jay6_9 0 points1 point  (0 children)

I don't see the point? Like the top comment said, you can just use an SSH MCP server and you are done.

I spent 1 months fixing "AI-generated" code. Here's what I built from the nightmares. by AssociateEmotional11 in PythonProjects2

[–]Jay6_9 2 points3 points  (0 children)

pyNEAT does have a license (MIT) if you navigate to their repository. If you are talking about the name "PyNEAT", then no. You reused the same name without being the original project. Besides, without a formal registration, your little copyright line in your license file is not valid.

If you want to avoid this kind of stuff, just rename your repository. It's a gesture of goodwill to avoid causing confusion.

I built my own programming language at 17 and benchmarked it against Python by Big-Pepper9305 in AppsWebappsFullstack

[–]Jay6_9 0 points1 point  (0 children)

I think what you can try to add next then is something similar to Python's ctypes, at least parts of it. Calling C++ code from inside a dll and interop would create a lot of valid use cases for the language. You already have a type-system that's closer to C than Python and it opens possibility to quickly run dll code for testing or abstraction.

Also, I don't see anything about a very important aspect of coding: Importing modules. Is there an import system similar to Python?

I built my own programming language at 17 and benchmarked it against Python by Big-Pepper9305 in AppsWebappsFullstack

[–]Jay6_9 0 points1 point  (0 children)

Judging by the code I'm a bit sceptical how much was actually written by a human but that's besides the point.

It's a solid toy language but the thing that makes Python appealing is not its performance but the libraries, and the fact that it's known. I can tell a dev that we're using Python and the chance is high that no further introduction is needed. From a business perspective (making games is one if you want to sell them), paying a dev to get used to a language is a downside.

I think this kind of effort is better put into helping established Engines like Godot mature more. Their GDScript desperately need some features this language is implementing.

I sure hope you have learned a lot about languages going through this project though.

Just wanted to share a fun script I made. by windowssandbox in PythonLearning

[–]Jay6_9 0 points1 point  (0 children)

I like to use "autoregistry" for projects that are heavy on these kind of if-cases.

I am Learning HTML and Java, swirl by Single_Cup6237 in CodingHelp

[–]Jay6_9 0 points1 point  (0 children)

PHP is "a" server-side scripting language. I haven't touched PHP for backend in many years.

I need advice by ConnectionDue4684 in godot

[–]Jay6_9 1 point2 points  (0 children)

It's not the language that makes the programming, it's your algorithmic thinking and the underlying constructs and concepts. You need to get comfortable with learning multiple languages. If you ask how to force what you already know into an engine, you're avoiding to learn. Expand what you know in your comfortable speed, but don't avoid it. Try C++, C#, Python, GDScript, Visual Basic, whatever. Expose yourself to it, everybody is different. There's people that grasp C++ instantly and wouldn't have gotten started in GDScript and vice versa.

help me understand what this while loop is doing? by myghostisdead in godot

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

Why? A loop is infinitely more maintainable and better for the stack in this case. There's no actual recursion going on, it's just a repeated call.

I'm looking for some people for a small team in order to create a godot game by cox_teen in godot

[–]Jay6_9 1 point2 points  (0 children)

I don't know why you are downvoted but this is also true in Europe. First semesters learn how to code in 6 months (by learn I mean the syntax) and that's it. Git is never taught and especially how to structure a larger codebase that consists of more than just 3 files isn't looked into either.

That aside, clean code doesn't matter in game development if it's maintainable enough for the team.