04 Nov 25

Second, there are two simple things you can do to make Coconut produce faster Python: compile with –no-tco and compile with a –target specification for the exact version of Python you want to run your code on. Passing –target helps Coconut optimize the compiled code for the Python version you want, and, though Tail Call Optimization is useful, it will usually significantly slow down functions that use it, so disabling it will often provide a major performance boost

It’s not really an optimization then.
That can’t be what the Great Quux had in mind.

by 2097 3 months ago
Tags:

19 Oct 25

Python applies for a comedy award.

With the introduction of PyPI (née Cheeseshop), setuptools, and later pip, it became simple and straightforward to download and install packages.

Python packages are a convoluted venv hell to install. I need therapy every time I’ve installed or upgraded a Python package.

by 2097 3 months ago

12 Aug 24


Here’s an issue we were talking about on Libera Chat today.

As a quick and dirty heroin fix I copied over a setup.py from an older version (bless you, git, for honoring the ancestors’ bones) in order to build.

by 2097 1 year ago
Tags:

27 Jun 24

Linkbudz coindicentally had a bunch of camera links just as I decided to get one (that won’t arrive until January). I’ll save this one for later.

It’s a richer transformation matrix than the value based tone curves I love so much.

by 2097 1 year ago

27 Apr 24

OK, det verkar vara fixat från och med 3.8. Gillar den här lösningen.

Alla andra lösningar på den där sidan suger.

by 2097 1 year ago
Tags:

Seriöst?!

Svenska: “Vi har världens dåligaste språk.”
Python: “Håll min öl.”

by 2097 1 year ago
Tags:

11 Feb 24

Wow! This ended up working klockrent with a Ren’py game I got years ago in one of those social causes bundles on itch. I don’t have a Mac so I can’t compile & sideload stuff on my own for iPad so having a friend with Xcode helps tremendously. (I should set up a Hackintosh maybe, if that’s even possible 2024.) It also sucks that it also only works for a year.

by 2097 2 years ago

06 Feb 24

PieFed is lemmy/kbin clone written in Python with Flask:

by 2097 2 years ago

04 Feb 24

Q: Can Bear Blog be self-hosted?

A: Bear Blog has been built as a platform and not as an individual blog generator. It is more like Substack than Hugo. Due to this it isn’t possible to individually self-host a Bear Blog.

But that wasn’t the question, which was: can other instances of the platform be spun up?

I don’t know for sure but it does seem that way. It’s MIT licensed & it seems to be all there, caddy files and all. IDK.

So far, stumbling over a blog on Bear has been a heck of a lot less painful than stumbling over one on say, Medium. And I am grateful that there are alternatives to asking people to self host generated static files.

In the long run all “up-and-coming” sites usually are super nice with RSS & low-weight & interoperability & free icecream but what matters is whether that lasts. That said, Medium sucked from day one and this seems awesome several years in, so 🤷🏻‍♀️

by 2097 2 years ago

28 Dec 23

When you write a module in C’Dent, you can use it in a dozen different programming languages. For instance, you could write a module in Python and use it in JavaScript, or you could write a module in JavaScript and use it in Perl 6, Ruby or Java.

What a trip.

This is of limited use since it’s for logic, not for API stuff, and most apps write their own logic instead of relying on modules for logic, but I’ll have to try to remember that this exists for things that do rely on logic.

One example that does come to mind is an infix expression parser library that takes strings as input and returns numbers. Something like that could work with C’Dent.

Under “next steps” it says:

Add variables and assignments

Conclusion: completely useless for now without further hacking & patching.

by 2097 2 years ago

11 Dec 23

Aaron on how he wrote web.py:

I imagined how things should work and then I made that happen. Sometimes making things just work takes a lot of code. Sometimes it only takes a little.

by 2097 2 years ago


30 Nov 23

Patchwork might be something to keep in mind as an opportunity to install later on if I get overwhelmed by patches. Right now it’d be a complete YAGNI. Also it’s Django.

I like the idea: it doesn’t intrude with the mailing list workflow at all, it’s just an extra “view” of the patches.

by 2097 2 years ago

12 Jun 23

“At a glance, this should help fpm users, I think, and fpm should mark things as this new “externally managed” category (pending some code changes to fpm, I assume)”

by 2097 2 years ago
Tags:

The gist seems to be that pip will be less inclined to clobberly delete stuff from dpkg, and that’s a good thing. It “tries to steer us towards venvs” which I’m not into compared to just making .deb files but hopefully there will be slightly fewer clashes. 🤞🏻

by 2097 2 years ago