de en es fr nl pl pt sv

snaking

OMI Physics Extension for glTF

Mike

I had Claude code up an OMI Physics package using Numpy. It's up on pypi as omi_physics. This follows the OMI extensions to glTF pretty closely to create an engine with the common features you need. It's not trying to be real-world physics, it's just a game engine style simulation. The core is...

PyVRML97 2.3.4b1

Mike

Continuing on with the Open Source work. PyVRML97 2.3.4b1 is almost all build and CI process updates. There are a few minor fixes for modern Python's where bool can't be used as a list index and a change for NumPy 2.x array comparison failures. This beta is mostly just so that we can pull it from...

PyOpenGL 4.0.0a1

Mike

I've been trying to make some time for Open Source projects again. I've been using LLMs for much of the coding because the vast bulk of it at this point is just grunt work. First up is PyOpenGL. The tests the LLM produced turned up a bunch of bugs in the core that have lain dormant for years...

Interesting Memory Leak with Python 3.12 for PyOpenGL-accelerate

Mike

So I'm currently trying to figure out why the PyOpenGL 3.12 test suite is failing. There's a particular test that looks for VBO memory leakage and it looks loosely like this:for i in range(100): create_a_vbo_and_delete_it() calculate_total_process_memory() assert_no_leak()which shouldn't...

Ubuntu 22.04 Python 3.12 pip is broken

Mike

It seems that we've removed an entry point that pip 22.0 uses from Python 3.12. That means that you need to install pip from get-pip.py on Ubuntu LTS python3.12. However even with that done and tox supposedly configured to use pip 23.2.1 in its virtualenvs, I still wind up with pip 22.0 in the...

PyOpenGL 3.1.7 Building Now

Mike

So I spent some of the Victoria Day weekend on PyOpenGL. Biggest changes are: * got cibuildwheel running on github actions so that we can get a matrix of (manylinux) wheels built for accelerate* automated upload from github actions to pypi* investigate the egl regressions; so far all of them seem...

Weird regressions in EGL setups

Mike

So trying to spend a bit of my vacation going through PyOpenGL issues. So far the biggest issues are all EGL related, with the one currently stumping me is that we do not seem to be able to do an eglMakeCurrent (getting an EGL_BAD_ACCESS) even though the context/view is only ever accessed from the...

Potions with Custom Effects

Mike

In Pycraft, I figured out the Potions-with-custom-effects, the problem being that Bukkit's PotionEffectType doesn't actually implement the keyed interface, but instead has its own .values() call, so needs a whole special handler. The code for creating potion with custom effects looks like:...

Finally Got Potions (ItemMeta) and Signs (BlockState) working

Mike

So one of the long-standing requests from the boys has been that we have the ability to create potions from Pycraft's in-game REPL. Today I finally got that working, mostly because I finally decided that there was room for a reference pattern to make the whole thing easier. By way of background,...

Creating some Pycraft Videos

Mike

Pycraft has remained relatively obscure. It lets you write (very close to) Python code in the minecraft chat window to perform magic that's written in Python code on the backend. I thought maybe a few demos showing what you can do with the code might serve to interest a few others in playing with...

Python Version Support Ideas

Mike

As a general rule, I don't like to just stop supporting Python releases just for the sake of deprecation. I try to be relatively wide in the set of Python's I'll support for my libraries, with my current general rule being 2.7, 3.6+ . Why those? Well, 2.7 is still on RHEL/Centos for another year...

Cleaning up the PyOpenGL Demos

Mike

Spent a bit of my second-last-day-of-vacation cleaning up the PyOpenGL Demos so that they run with current Python 3.10, PyOpenGL, numpy and PIL and can be installed as a package rather than only being usable via a git checkout. There were a few bits of bit-rot, mostly around ctypes no longer...

Go Lang Impressions after 2 Months

Mike

So for work I've needed to learn GoLang, which I'd always before picked up, kicked the tires and said "meh" on. A few months now of working with it pretty-much-daily have upped the "meh" quite a bit. To be clear, I'd choose Go over raw C, but I'd likely pick modern C++ over Go. Channels and...

Django Field Rename Migrations and Test Cases

Mike

Is there some trick to running Django test cases when you've got a RenameField later in the migration-stack? I feel like this has to be some obvious thing I'm missing... With a migration (say 0058_big_restructure.py) which does this: migrations.RenameField(...