Re:The P programming language
by wybiral on Sunday October 09, 2016 @06:37PM
(#12673954)
What is the support for streams like in P?
[ Parent
| on HN ]
I can't tell if this question is intended to be a joke or not, but either way i'm in support of it.
Where's the flush method?
Re:The P programming language
by DonaldFisk on Sunday October 09, 2016 @07:21PM
(#12674108)
It could be useful for solving the Urinal Problem:
Re:The P programming language
by nickpsecurity on Sunday October 09, 2016 @08:21PM
(#12674311)
It was amusing when my government teacher explained the urinal problem to women in the class in a discussion on "man laws." He first asked where they would go in a four, urinal situation if there was nobody present, a person at urinal 1, and people at 1 and 3. The men and women had very, different answers that were pretty consistent within each gender. The women always asked, "Well what do you do if 1 and 3 are taken if 2 and 4 aren't an option?" Every guy but me effectively said, "Try not to piss yourself until 1 or 3 become available."
"Nick, you aren't weirded out by people sneaking a peek?"
"Nah, my protocol is different. It recognizes root cause is them looking at what they don't need to. If I notice this, I'll simply remind them they should turn away from me before I turn something toward them. Not my eyes either. Most rational and irrational people will avoid that outcome to maintain what dignity they can when exiting a bathroom."
The guys got a kick out of that solution but chose not to upgrade their protocol. Their loss. ;)
I hear it starts out strong but once your code reaches an advanced age it starts to putter out.
I didn't see anything in the manual about streams. If they do, I'm sure they'll be fine as long as you don't cross them.
Some say, streams are difficult to produce.
Re:The P programming language
by pfarnsworth on Sunday October 09, 2016 @07:16PM
(#12674096)
Only if another stream producer is in close proximity.