Live data from Hacker News

Reahl – A Python-only web framework

reahl.org

61–70 of 108 posts

Re: Reahl – A Python-only web framework

#61

Earlier quoted context omitted.

But you're using this code in any application you make, so you can't use it commercially.. AGPL isn't made with libraries in mind...

> But you're using this code in any application you make, so you can't use it commercially. AGPL puts no restrictions on commercial usage, as far as I am aware. > AGPL isn't made with libraries in mind... It works perfectly well with libraries.

I have always disliked the “GPL doesn’t prohibit commercial use” argument. You know well why it isn’t practical to use for commercial purposes. You basically make any project using it into an unlimited full featured free trial.

Re: Reahl – A Python-only web framework

#62

Earlier quoted context omitted.

But you're using this code in any application you make, so you can't use it commercially.. AGPL isn't made with libraries in mind...

If there were commercial restrictions then it wouldn't be a free software licence. You're free to use the software for any purpose.

And you are forced to give it away for free if asked to.

Re: Reahl – A Python-only web framework

#63

I feel bad about projects like these, I really do. I'm sure a lot of effort have been put in and it probably satisfies what OP wants to do. But in the end, no one serious would ever consider using it.

Yeah, we've been there before with other libraries (GWT and others). It never works well.

Re: Reahl – A Python-only web framework

#65
post #64

You took a declarative language (HTML) and mad it imperative (Python). Why is that a good thing?

I guess it is mostly the subjective comfortableness of python (and the capacity of throwing prototypes for a team who has only python skills).

In my experience all these frameworks end up lacking at some point and becoming leaky abstractions sooner than later. I wish they would work because all the front end technologies require lots of training and skill in order to produce a production ready UI.

Re: Reahl – A Python-only web framework

#68

Earlier quoted context omitted.

> But you're using this code in any application you make, so you can't use it commercially. AGPL puts no restrictions on commercial usage, as far as I am aware. > AGPL isn't made with libraries in mind... It works perfectly well with libraries.

I have always disliked the “GPL doesn’t prohibit commercial use” argument. You know well why it isn’t practical to use for commercial purposes. You basically make any project using it into an unlimited full featured free trial.

> I have always disliked the “GPL doesn’t prohibit commercial use” argument. You know well why it isn’t practical to use for commercial purposes. You basically make any project using it into an unlimited full featured free trial.

I don't get it. What would be so wrong about making your source code available to everyone (including your competitors)? Remember, if your source code is AGPL and someone uses it, their source code is also AGPL and they must make their changes available to their users.

If you deliver real value to your customers, the fact that your source code is publicly available should be a plus point for your customers.

Re: Reahl – A Python-only web framework

#69
post #64

You took a declarative language (HTML) and mad it imperative (Python). Why is that a good thing?

I've been thinking about this sort of thing a lot recently in terms of our heavy use of Troposphere[1] which is a Python abstraction over AWS CloudFormation and how much better that abstraction is than just writing HTML (in the case of this library) or JSON/YAML (in the case of CloudFormation) directly.

Ultimately, for me, it comes down to what makes sometimes complicated declarative code easier to reason about, read and understand - it's a simple as that.

Some things are just _easier_ to write when you've got the power of a Turing-complete language with a decent standard library behind you; if for example you want to dump out a sorted list and then be able to easily update it later, or print a list of links alongside a hash of the contents of their targets.

I guess if you're building a simple website, anything like this tool could be overkill and you'd risk spending more time setting things up - and maintaining it in the future - than you'd be likely to save by using the tool in the first place. But for more complicated output having more tools to use lets you be arguably more declarative; you just change the input data to generate the desired output. You describe and allow automation of the _transition_ from input data to the desired end point.

I could definitely see how libraries like this would be tremendously useful for generating HTML. As it happens for our AWS infrastructure generation we enforce the use of Troposphere everywhere, because in that case the cost of setting up and maintaining it is essentially just copy-pasting an existing Makefile.

[1] https://github.com/cloudtools/troposphere/

Re: Reahl – A Python-only web framework

#70

Quite similar to Plotly Dash, but a worse license. https://plot.ly/products/dash/ Dash is awesome for early stage , production ready prototyping.

With „worse“ you mean what exactly? Probably just „not fitting my personal needs and ideas“? That doesn’t make something generally worse... or can you tell me how it’s bad for me?
Post reply on HN