Universal compiler that runs Java, Ruby, C++, and Python in a single VM

2021-03-16 Thread James Lu
It's called Oracle's Truffle. Truffle runs all those languages with an autogenerated JIT. This is my response to the neos drama. -- https://mail.python.org/mailman/listinfo/python-list

Python subinterpreters with separate GILs

2021-02-10 Thread James Lu
Directly removing the Global Interpreter Lock (GIL) would break a lot of libraries that implicitly assume it is there. What if Python had "realms" that each had separate GILs? The "realms" (not sure if "subinterpreter" is the correct term here) could share objects. -- https://mail.python.org/mail

A library that converts a type-annotated function into a webpage with HTML forms?

2020-09-30 Thread James Lu
Is there a python library available that converts a type-annotated Python function into a webpage with HTML forms? Something like: def foo(name: str, times: int): return f"Hello {name}!" * times serve_from(foo, host="0.0.0.0", port=3000) Turning into a server that serves something like thi

Re: Front end

2020-01-01 Thread James Lu
I would use software like Airtable. You set the columns, Airtable produces a type-checked form. Every spreadsheet also comes with its own API, so you can exfiltrate the data programmatically easily. On Sat, Dec 28, 2019, 10:36 L A Smit wrote: > Hi > > Don't know if this is the correct subject bu

A more

2019-11-14 Thread James Lu
Where do I go to find a more complete specification for Python? I want to learn about common semi-internal language features used by popular libraries, because I am reimplementing Python. The reference guide says: > While I am trying to be as precise as possible, I chose to use English > rather t

Re: uses both shell and python codes in one script.

2019-10-03 Thread James Lu
I would use IPython as a scripting language. It has a slow startup time though. On Thu, Oct 3, 2019 at 9:59 AM Chris Angelico wrote: > On Thu, Oct 3, 2019 at 11:41 PM Hongyi Zhao wrote: > > > > On Thu, 03 Oct 2019 23:12:45 +1000, Chris Angelico wrote: > > > > > > > Seems fine. Most of the code

RunPy (was py2bat (was: How do I make a Python .bat executable file?))

2012-06-08 Thread James Lu
no way just use py2exe 1.download it and python 2.make a setup file with this replacing ? with python file name: from setuptools import setup setup(app=['Tic-Tac-Toe easy.py']) james a intermediate child programmer -- http://mail.python.org/mailman/listinfo/python-list