News for hackers. Stuff that matters.
Re:Pyjion – A Python JIT Compiler by ggrrhh_ta on Tuesday November 09, 2021 @03:44PM (#29167211)
Sorry, but "names aren't unique" does not even begin to define uniqueness - "from ... import X" imports and X; great; should it replace an "X" in a different encoding in the local namespace, or not?

I can tell you it has to do with iterators, and maybe someone will comment on what that is.

Re:Pyjion – A Python JIT Compiler by ggrrhh_ta on Tuesday November 09, 2021 @03:56PM (#29167357)
I mean... I had not even yet heard the talk that others have pointed you to (from Armin Ronacher); after having gone several times down the rabbit hole of looking at what the interpreter is doing in specific scenarios (and I like lots of things, at the language level, that python does, the terseness and expresiveness that it brings) I also think that python is a very complex language under a soft-looking skin.
Re:Pyjion – A Python JIT Compiler by pjmlp on Wednesday November 10, 2021 @01:59AM (#29171905)
I follow Python since 1.6, and occasionally use it for portable scripting when on UNIX platforms (PowerShell on Win), and many aren't really aware that Python is Ada/C++ level of complexity, even if on the first contact seems like the new BASIC.

Besides the nuances of how everything is executed, there are occasionally breaking changes between minor language revisions.

You cannot just pick up a random Python script and be sure it still behaves the same way across all minor revisions.

Re:Pyjion – A Python JIT Compiler by joshuamorton on Tuesday November 09, 2021 @04:36PM (#29167811)
By names aren't unique, I mean with respect to "encoding", everything is the same. It seems like you're using "encoding" to mean something it doesn't? Do you just mean like "value"?

> I can tell you it has to do with iterators, and maybe someone will comment on what that is.

This sounds like you don't know what it is.

Re:Pyjion – A Python JIT Compiler by webmaven on Tuesday November 09, 2021 @09:17PM (#29170354)
> By names aren't unique, I mean with respect to "encoding", everything is the same. It seems like you're using "encoding" to mean something it doesn't? Do you just mean like "value"?

I think the GP means character encodings.

So the intent here is to ask whether (for example) a foo defined in a ISO 8859-1 encoded file is overidden by a foo imported from a Windows-1256 encoded file.

Re:Pyjion – A Python JIT Compiler by joshuamorton on Wednesday November 10, 2021 @04:40PM (#29181271)
> I think the GP means character encodings.

Then the link I posted answers their question. Names aren't unique in how encodings are handled. Files are decoded and canonicalized as a unicode string. If the identifiers are the same after canonicalization, then yes they are equivalent. If they aren't, then they aren't.

Re:Pyjion – A Python JIT Compiler by webmaven on Thursday November 11, 2021 @11:27AM (#29189781)
Ah, I misunderstood what you meant by "aren't unique". I would have phrased that as "names aren't treated differently", or something similar.