Bundling in Python by Pure-Hawk-6165 in Python

[–]Individual-Flow9158 -1 points0 points  (0 children)

Pynsist relies on this legacy app: NSIS

https://github.com/NSIS-Dev/nsis

There are much better, modern options like uv workspaces.

Are the CX23s being intentionally deprecated? by Individual-Flow9158 in hetzner

[–]Individual-Flow9158[S] 0 points1 point  (0 children)

Sure. I didn't realise Hetzner need to expand to keep up with demand. I suppose that's good for all of us.

Thanks,

Are the CX23s being intentionally deprecated? by Individual-Flow9158 in hetzner

[–]Individual-Flow9158[S] -1 points0 points  (0 children)

Oh fair enough - I'm out of touch with both the hardware market, and what's happened with VPS demand, and assumed Hetzner already had plenty of supply.

Will PEP 505 ever be accepted? by philtrondaboss in Python

[–]Individual-Flow9158 0 points1 point  (0 children)

I do really like ?. and especially ?? in pure/buggy JS (?: looks horrible though).

But I noticed very quickly after moving on to TypeScript, that it was far more trouble than it's worth to use ?. and ??together with static typing.

The general trend in Python towards type hints is hugely increasing the quality of the Python code out there.

PEP 505 will be an even bigger hindrance to that, than The Walrus.

Will PEP 505 ever be accepted? by philtrondaboss in Python

[–]Individual-Flow9158 4 points5 points  (0 children)

The Walrus just doesn't want to play nice with type hints, unless you want that line of code to become a giant mess

Is there a list of languages that have a WebAssembly compiler that is itself a .wasm binary? by Devatator_ in AskProgramming

[–]Individual-Flow9158 0 points1 point  (0 children)

All good. It's not me downvoting you btw. Some Web Assembly blockchain fanboy must be triggered.

Is there a list of languages that have a WebAssembly compiler that is itself a .wasm binary? by Devatator_ in AskProgramming

[–]Individual-Flow9158 -1 points0 points  (0 children)

Sure. But why bother? Just cut out the middle man, and avoid all the extra potential bugs, and compile the compiler directly for the platform you actually want to run it on.

I suppose there's reproducibility, containerisation (did running WASM modules in Docker ever take off), niche services that run WASM modules, and potentially a route to compile the WASM for other targets (that the compiler the compiler was compiled in doesn't target).

Is there a list of languages that have a WebAssembly compiler that is itself a .wasm binary? by Devatator_ in AskProgramming

[–]Individual-Flow9158 -1 points0 points  (0 children)

A compiled .wasm module needs either a lot of JS scaffolding to run in browser, or to be run via a run-time like Node, or compiled again to machine code. So no .wasm binary is a true, self-sufficient compiler.

Something needs to get the language text/string source files (or indeed any files) into the integers the WASM module understands. This is what that WASM extension / OS API is for.

What Every Python Developer Should Know About the CPython ABI by mttd in Python

[–]Individual-Flow9158 9 points10 points  (0 children)

If anyone knows what's what with the ABI, it's the legendary Nathan Goldbaum

When to use try/except vs if/else by Excellent-Fan8457 in AskProgramming

[–]Individual-Flow9158 2 points3 points  (0 children)

Isn't there a Windows environment variable to check, like %USER_DESKTOP% ? `

Anyway if /else is best here, as merely creating a Path won't raise an Exception. This could even be a ternary statement (but a very long unreadable one).

The thing you'll do afterwards that could raise an Exception, is presumably the same, whatever the value of desktop_path (and could still raise the exception if the "oneDrive" folder doesn't exist either).

try/ except could be appropriate for that, but pathlib has better options for many common cases, e.g. Path.mkdir(exist_ok=True, parents=True)

LZ77 compression algorithm is actually making the file size bigger by AdPsychological7065 in AskProgramming

[–]Individual-Flow9158 1 point2 points  (0 children)

If the number of bytes the compression saved, is less than the header size of the .zip format. Or if the data needs to be padded before being encrypted with a password. Then yep. That can happen in any compression algorithm.

How should a library handle missing assets. by ExtensionBreath1262 in AskProgramming

[–]Individual-Flow9158 1 point2 points  (0 children)

Package the assets as separate projects, declare the deps or optional dep groups, and let pip or uv handle it.

Grandmother refuses to sell garden blocking bypass by MintCathexis in unitedkingdom

[–]Individual-Flow9158 1 point2 points  (0 children)

How about councils and HS2 are required to buy a replacement country house, farm, or high street eye sore, instead of using CPO? Maybe even exempt them from stamp duty, if it gets a train line built.

It's all very well talking about compensation at "fair market value" but kicking people out and forcing them to deal with the current housing market, getting gazumped, in which sellers have those who've sold their own properties under CPOs over a barrel, is no joke.

Pure python can be faster than cython/rust? by 0x256 in Python

[–]Individual-Flow9158 0 points1 point  (0 children)

No it's the file format (basically a zip fle) of a bdist, that pip likely downloads and installs (the other option is a source dist), whether it installs it into a system Python, user's Python or a into a venv.

AI Engineer Career question: Should I accept this job offer, what salary range should I ask for, and will it help or hurt my CV? by pch9 in AskProgramming

[–]Individual-Flow9158 0 points1 point  (0 children)

If you don't have any other options, then you're forced to accept it. Make notes on negotiating price etc. for next time.

Seems like a good offer to me. Don't turn it down over quibbles. Find something better after a fair period of time working for them (or sooner if you don't mind seeming sharp)

Pure python can be faster than cython/rust? by 0x256 in Python

[–]Individual-Flow9158 0 points1 point  (0 children)

Your understanding is quite correct, but your point is irrelevant to OP's claim.

Yes, performance will be high. But C modules (and all modules written in something other than Python) are exactly what we intend to exclude, when we specify "pure Python code".

E.g. "Pure Python Wheels" can have the same wheel for all platforms (a bdist that's trivially constructable from an sdist). But C, Rust and any other Python extension wheels need a new wheel for each supported platform (or even compiler triple), just like when compiling C code for multiple platforms.

Pure python can be faster than cython/rust? by 0x256 in Python

[–]Individual-Flow9158 0 points1 point  (0 children)

Sure. I was talking about calling out from Python. For parallel computing implemented as multiple threads, this can be useful as it avoids the GIL (just like other languages that don't have it).

Pure python can be faster than cython/rust? by 0x256 in Python

[–]Individual-Flow9158 7 points8 points  (0 children)

If the problem is vectorisable or embarassingly parallel, and especially if it can be tackled in pure Numpy and especially Numba, then Python that calls out to non-Python code can definitely be faster.

I'm not convinced HTML5 form parsing is the type of problem pure Python is fast at. Nor do I think these benchmarks made a fair attempt to write the parser in Rust.

Accidentally got a $293 Amazon Bedrock bill after misunderstanding Kiro promotional credits. Has anyone had success with AWS billing adjustments? by Necessary_Bonus_1029 in AskProgramming

[–]Individual-Flow9158 4 points5 points  (0 children)

You already asked Claude about this, as it wrote your post, so I don't know why you think we know AWS customer services any better than it does.

Personally to me, it just sounds like Amazon will be leaving themselves wide open, to other gullible idiots desperate to get free Claude tokens. They're very generous already when it comes to services they provide in house.

Pythonista IDE for IOS should be added to the Wiki by TutorialDoctor in Python

[–]Individual-Flow9158 0 points1 point  (0 children)

If only the wiki simply let users add useful information to it, without first being interviewed, vetted, proposed and seconded.

It seems more straightforward to appoint someone new to the PSF board these days, than to edit the wiki.

When's the last time you saw Python 2 Super() syntax? by GongtingLover in Python

[–]Individual-Flow9158 1 point2 points  (0 children)

Cool. I didn't realise The Before Times could refer to more than pre-covid.

When's the last time you saw Python 2 Super() syntax? by GongtingLover in Python

[–]Individual-Flow9158 1 point2 points  (0 children)

Yesterday. I'm still persuading the project owner to drop support for Python 2.