Skip to content

Some Thoughts

Albert Wang edited this page Apr 28, 2017 · 1 revision

Just some random thoughts.

#__ Although this framework starts as almost a joke which I told myself, "Hey, let me write a framework to learn HTTP2 and coroutine in the same time", I now think some valuable parts exists in this framework.

0. Learning

I am writing this framework for the sake of learning. Of course it will be amazing if many people eventually use this framework in production, but I don't really mind if nobody uses in production.

It's not meant to replace any existing technologies and also writing a production level framework is a huge engineering task which can not completed by me alone. I merely have just used Python for 2 years and been using Python intensively for 1 year.

But, by writing this framework, I will become a much better developer.

Actually, I hope my users do this too. Just clone this project and start to hack it. It's fun.

1. HTTP2

If, HTTP2 will become mainstream, then a HTTP2 built-in framework will be useful. However, I am not doing WSIG at all. I don't even know what are the WSIG interfaces. I am not sure if we will have a HTTP2 standard interface in Python community in the near future. Again, I have very little knowledge and experience in Web. I don't even know if what I am doing is funny or ridiculous for some other people.

2. Async Programming. I mean, Coroutine Programming.

If you care about performance and concurrency, you should start to care about coroutine. But, to be honest, sync code is not that but. Actually, what I want is to provide end users a super clean API so that they don't even bother to think about async. Is it possible?

3. Replaceable Framework Parts

H2 is amazing. It is a network protocol library which doesn't do IO. Does that sounds crazy? But yeah!!!!!!!!

That's the library I am looking for. This is the right way to write protocol libraries. A protocol is at its core offline, it's just a belief of that the remote should be. It should not actually do IO.

If you are writing a letter to your friend, do you send the letter to your friend by your self? Of course not!

If you send the letter by running to his home, why do you want to write a letter at the first place?!

Clone this wiki locally