Re: [Python-ideas] Operator as first class citizens -- like in scala -- or yet another new operator?

2019-05-23 Thread Steven D'Aprano
On Thu, May 23, 2019 at 06:23:31PM +0200, Yanghao Hua wrote: > Is this (<== and ==>) something can be made into CPython? If it goes into CPython, eventually every other Python needs to do the same. Of course it *could* be put into Python, but you haven't given sufficient justification for why

Re: [Python-ideas] Add GraalPython to the list of Python implementations

2019-05-23 Thread Chris Angelico
On Fri, May 24, 2019 at 6:01 AM James Lu wrote: > > https://github.com/graalvm/graalpython > https://www.python.org/download/alternatives/ > > GraalPython is an implementation on the Truffle VM, by Oracle Labs. The > Truffle > VM gives Python high-performance interoperability with other

[Python-ideas] Add GraalPython to the list of Python implementations

2019-05-23 Thread James Lu
https://github.com/graalvm/graalpython https://www.python.org/download/alternatives/ GraalPython is an implementation on the Truffle VM, by Oracle Labs. The Truffle VM gives Python high-performance interoperability with other languages- including JVM, LLVM, Ruby, and JavaScript. The Truffle VM is

Re: [Python-ideas] Operator as first class citizens -- like in scala -- or yet another new operator?

2019-05-23 Thread Yanghao Hua
On Thu, May 23, 2019 at 4:49 AM Ricky Teachey wrote: > > Can I offer an alternative suggestion? > > How about these arrow operators, which despite being 3 characters, look > pretty nice, and are not currently valid python: > > a <== b <== c > a ==> b ==> c > > Perhaps __larrow__ and __rarrow__

Re: [Python-ideas] Operator as first class citizens -- like in scala -- or yet another new operator?

2019-05-23 Thread Yanghao Hua
> I think the idea for using the left arrow is a non-starter, since it's > already valid Python syntax to write > > x <- 3 > > today. ("-" being a unary operator and all). > > That said, I would be really happy to have a clean way to write HDL in > Python, so good luck! Time to check out MyHDL...