Re:Brython – A Python 3 implementation for client-side web p...
by red_hare on Monday July 06, 2020 @04:21PM
(#23752294)
To be clear, I love Beam. It runs all of my startups stream and batch processing.
I just think the Java API's version...
pipeline = pipeline
.apply("FirstTransform, MyFirstParDo())
.apply("SecondTransform, MySecondParDo())
is much clearer than the Python version... pipeline = (
pipeline
| "FirstTransform" >> MyFirstParDo()
| "SecondTransform" >> MySecondParDo()
)
Re:Brython – A Python 3 implementation for client-side web p...
by pyuser583 on Monday July 06, 2020 @11:20PM
(#23755371)
Agreed. I prefer the Java version, for a number of reasons. Scio is even better. But the bitwise operations make sense python wise.
Re:Brython – A Python 3 implementation for client-side web p...
by pushingice on Monday July 06, 2020 @10:20AM
(#23748147)
This is because it started out as a Google project.
There is an internal time-series framework there called Monarch that does the same thing for composing operations.
Re:Brython – A Python 3 implementation for client-side web p...
by heavyset_go on Monday July 06, 2020 @11:37AM
(#23749021)
I have to agree with this sentiment.
The bitwise operation dunder methods have no definition outside of integers. So they’re basically freebies to do what you want with.
Honestly I think the Apache Beam API makes a lot of sense.