Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Desperately need help with threaded socket

by BrowserUk (Pope)
on Jan 21, 2015 at 00:25 UTC ( #1113961=note: print w/replies, xml ) Need Help??


in reply to Desperately need help with threaded socket

The requirement for the parent to be able to thread and then pass a message to the broker from a thread is non-negotiable.

There's nothing to say. You've forbidden the solution. Good luck, cos you're gonna need it.

Expanded version; You are trying to mix a badly implemented; grossly inadequate; fundamentally flawed; green threads f*** up implementation; with, proper, tested, functionally flawed, but functional, useful, consistent, simple-to-use, threading. You deserve what you get.

Sounds harsh, but... there is no solution to willful stupidity.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
  • Comment on Re: Desperately need help with threaded socket

Replies are listed 'Best First'.
Re^2: Desperately need help with threaded socket
by 5haun (Scribe) on Jan 21, 2015 at 00:57 UTC
    Ok. Now that we have the deserved "smell the roses because it's reality" comment out of the way, are there any out-of-the-box ideas? I can think of switching to TCP messaging for one (each thread listens on its own port - slow but an option). Is there anything faster?

      Hhmmm... Has anyone tried to do something like this using ZeroMQ?

      The ZeroMQ Request-Reply Broker pattern seems like it would fit my problem's requirement, particularly if I added a Queue Proxy. Each parent thread could be a client (I have control over the API the parent threads use to talk to the broker).

Re^2: Desperately need help with threaded socket
by sundialsvc4 (Abbot) on Jan 22, 2015 at 02:04 UTC

    C’mon, Brother ... can’t we do better than a comment such as this?   Your comment, “you’ve forbidden the solution,” says nothing-at-all with regards to what you consider “the solution” to be.   And then, in italics, you frankly seem to be nothing but rude.   (If I downvoted, I would have ... but I didn’t, and I won’t.)

    So, why not try again?   (He did, after all, title his post, “Desperately need help ...”)

    Shaun made it pretty darned clear, in the final paragraph of the post, that his hands are tied, by “a couple of users who introduced the [we must pay close attention to the phrase, ‘non-negotiable’, whenever it is used by Users Powers That Be.ô] requirement.”

    Shaun poses a very fair question:   what can he do, now, in this technical situation that is obviously both “not to his liking” and “contrary to his original, clean design?”   If he truly is “technically hosed,” then he’s obviously going to need some sort of counter-argument that he can then club the couple of users with take back to the forthcoming political negotiations.   And, everyone involved is going to need clarity about the pros and cons.

    Instead of putting him on the barbeque and then walking away ... what can we you tell him to do?   I think that you, in particular, have an exceptionally clear “bit of clarity” to offer to in this sort of situation.   I think that you are an expert whose insights will be particularly valuable here.   Therefore, “Please?”

      And that's why you are not and never will be a "victim of cyber-bullying". You actively seek out abuse.

      (Ps. There are specialist sites that cater to your kind.)


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
      In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

      Címon, Brother ... canít we do better than a comment such as this?

      You have no credibility, your opinion isn't valued, and your input is unwanted -- shut up you troll

        The difference between you and me ... is that I sign my name.   Proudly.   Your downvotes will arrive.   So will your upvotes.

        Meanwhile ... “I digress.”

        Our desperate Brother ... “desperately” needs answers ... not a criticism, either of his present situation nor of his clients.   The original post is purely technical, and I think that this is the only sort of reply it should now receive.   We have all been here.   (If it were not so, our jobs would be easy ...)   The original program worked ... new requirements have been imposed ... and Shaun is desperate.   And, well, “we’re just not giving Shaun what he asked for, nor what he needs right now.”

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1113961]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2019-07-20 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?