24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions
https://www.bitecode.dev/
Email: contact at bitecode.dev
comment 5y ago · link · parent
comment 5y ago · link · parent
Also, it doesn't give you easy "finally" and "else" clauses.
And "except *" calls the same handler for single and multi-errors, so for most cases, you avoid code duplication.
Plus, having a natural way to deal with this make the code easier to scan, not to forget IDE already have good support for a try/except, and wrapping things in it.
It's 100% a win.
comment 5y ago · link · parent
- they cannot make you end up any place in the code, only up the stack.
- going up in the stack, it leads to the destruction of any frame in the way.
- the exception object carries metadata about the origin and propagation.
- calling code can subscribe to the event and act on it. Handling is decoupled from raising.
- calling code can interrupt (in multiple spots) or stop the propagation.
comment 5y ago · link · parent
But it's for a rewrite, so:
- you can use the most modern language features. Python 3.9 is less dense than Python 2.7 (E.G: a silly 2.7 example would be https://0bin.net/paste/xpnCov-3#3s2AgDReXpeqG4knegGwdnYNi523... which is 37 lines, the equivalent in 3.9 is https://0bin.net/paste/b4DVZIS5#372LGWNLBJfDUNQGAMsDlJPNlkVy..., down to 25 lines). Also note that it's not just less lines, but way shorter, yet clearer, lines. Something LoC fails to take in consideration.
- you can use the most modern stack. E.G: fastapi is less dense than flask as soon as you use data validation, plus it adds typing for free.
- you know very well the problem to solve so you get it right the first time.
comment 5y ago · link · parent
Which apparently internet people have a hard time to handle.
I have parties at home with feminists and machists, cryto speculators and communists, vegan meditators and frat guys bbq body builders, atheist hedonists and muslim minimalists, yet they manage to have fun together.
When I read such title I can't help but thinking "what are they, 5 years old?".
comment 5y ago · link · parent
The guy had no insights into language design before creating python.
He also has Mark Shannon, has the entire MS team available on the phone if needed (including the .net team, with stellar JIT), time and a good brain.
> As mentioned elsewhere in the thread he really has egg on his face after denying Python's performance problems for so many years.
He spent 20 years maintaining a project with minimal resources, so you have to make hard choices on what to work with. Perfs were not the objective of Python, and for the majority of the use cases of the time, it didn't matter much.
Now that more important things are sorted out, like unicode handling, and that Python 3 is a smooth running project, he is been given the opportunity and resources to work on the problem, so he does.
Good for us.
Honestly, for me perfs are still NOT a priority, I'd rather him work on bootstraping, but I'm glad and excited that something good will come out of this.
comment 5y ago · link · parent
He always delivers. That's a trademark.
So yes, it's a big deal. It means something will come out of it no matter what, in opposition to everything that happened before.
comment 5y ago · link · parent
comment 5y ago · link · parent
When you like a tech, knowing people are brewing improved perfs on it is kinky. On Python, the motto has always been "it's fast enough", "if you want perfs, don't use python", "C extensions will solve this", "we don't want to make the main implementation complicated", "python dynamism and GIL make it a hard problem", etc.
So in the python world, it's particularly big news, especially given that previous attempts (gilectomy, unladen swallow, first pyston...) all died.
comment 5y ago · link · parent
https://en.wikipedia.org/wiki/Mark_Shannon_(actor)
That mark shannon:
https://github.com/markshannon
He tried to do hotpy in 2011, and trigger the idea of FAT byte code which I believed inspired the FAT python attempt of Victor Stinner.
Now stinner is working on Hpy, dropbox on pyston, instagram on cinder, and pyjion just got a release.
Looks like Python is going to get faster one way or another.
comment 5y ago · link · parent
Unfortunately, I think the wrong it has the potential to do to the human as a specie outbalances it by an order of magnitude.
It's useless to worry though, we are a careless race, we will use it no matter what, and we will hurt yourself in the process. I just hope it will not be too much.
comment 5y ago · link · parent
But I'm dreading that people will start doing it on sane persons that just want an upgrade.
I've read enough Sci-Fy to have a list of 1000 ways it can end badly, and we only need one.
People are dumb enough to get phished by email, gov is spying on any phone, pirates manage to access to nuclear plant, and you want to connect your brain to a network?