#pyramid

/

      • blaflamme
        +1
      • amr_
        how do you I can approach the problem asynchronously?
      • raydeo
        multiple requests from the client right... one to start the job and then later some way to tell the client the job is done
      • Lcaracol joined the channel
      • amr_
        so you mean that i can't compile more than on code for different users at a time ?
      • one#
      • dowwie
        [redacted]
      • [redacted]
      • blaflamme
        dowwie howdy
      • dowwie
        [redacted]
      • blaflamme
        dowwie yeah... too much work on my plate atm
      • jstoiko joined the channel
      • dowwie
        [redacted]
      • blaflamme
        dowwie problem is how to make a relevant demo
      • amr_
        Michael, r u still there :) ?
      • raydeo
        amr_: sure you can... the stuff I described is "best practice" regardless of which framework you use
      • bochecha has quit
      • amr_
        how do u think i can implement an intrpreter like that : codepad.org?
      • conan_the_destro joined the channel
      • bochecha joined the channel
      • bochecha has quit
      • otter768 joined the channel
      • raydeo
        well anything that's executing random code on my servers is a dangerous/complicated game
      • bochecha joined the channel
      • the least of your concerns there should be the web framework
      • amr_ has quit
      • sadly it looks like codepad is executing in containers with no network access :(
      • I can't run my bitcoin miner on it :(
      • bochecha has quit
      • amr_ joined the channel
      • amr_
        soryy my connectio disconnected
      • bochecha_ joined the channel
      • bochecha_ is now known as bochecha
      • how do you think i benefit from performance of pyramid in this project? why it's said that it's the fastest among all py frameworks
      • dowwie
        [redacted]
      • raydeo
        dowwie: not actually :-)
      • evilbungle has quit
      • amr_
        I read that reddit faces scalability issues when they weren on django, and they had to go with pyramid to solve that
      • dowwie
        [redacted]
      • [redacted]
      • amr_
        sorry for typos
      • yes they go with it
      • dowwie
        [redacted]
      • blaflamme
        reddit was on webpy and then pylons, when were they on django?
      • raydeo
        reddit went from lisp to pylons
      • dowwie
        [redacted]
      • raydeo
        err lisp to webpy to pylons I guess
      • blaflamme
        right, I meant just the python part
      • amr_
      • dowwie
        [redacted]
      • uranther
        what does 'python setup.py build' do? Can I use this to deploy my pyramid app?
      • bochecha has quit
      • raydeo
        dowwie: reddit doesn't use pyramid
      • mejymejy_ has quit
      • dowwie
        [redacted]
      • blaflamme
        they say: Used the Pylons (Django was too slow)
      • raydeo
        they use an old version of pylons
      • blaflamme
        they never use in prod django to my knowledge
      • raydeo
        completely tweaked... hardly pylons anymore
      • blaflamme
        yeah right
      • rodfersou has quit
      • pylons was used as a base
      • dowwie
        [redacted]
      • blaflamme
      • dowwie
        [redacted]
      • blaflamme
        last commit 16 minutes ago
      • but the commit says 2 hours ago :P
      • so it looks active
      • still uses the pylons controller approach with @validate decorator
      • bochecha joined the channel
      • funny to look at this, remember pre-pyramid time
      • amr_
        so guys If i have to take the decision whther it's pyramid or django, what shall i do?
      • blaflamme
        the one you know more
      • and feel more confortable
      • raydeo
        the right answer is to hire blaflamme
      • blaflamme
        no, hire raydeo
      • I only do what he's saying anyways :P
      • dowwie
        [redacted]
      • [redacted]
      • [redacted]
      • raydeo
        kazoo is a python binding to zookeeper
      • written by benbangert
      • amr_
        flask is micro-framework!!!!
      • dowwie
        [redacted]
      • [redacted]
      • [redacted]
      • [redacted]
      • raydeo
        they are probably using it for leader selection
      • cguardia
        amr_: first thing to do is to get much more clearer objectives than "need great performance". From what you say Dajngo is not a good option, because you'd end up fighting the parts of the framework that you don't use. Next, is that compiling code idea even workable? Write a proof of concept of what you need to do, use Pyramid, or Flask. See which one you like best
      • bduncan has quit
      • jpenny
        its not so much that we don't want to do your homework for you. It more that we can't. Only you know your skills and objectives. And we are lousy salesmen.
      • cguardia
        You know, there are intermediate steps between 1. I need a web app, 2. For StackOverflow level audiences with great performance.
      • amr_
        @cguardia how much time do I need to be into pyramid, for someone who comes from django background ?
      • cguardia
        amr_: what's important is Python background. A good Python dev can work well with both
      • amr_
        great
      • what are these intermediate steps you mentioned, sorry for the inconvinience
      • jpenny
        how comfortable are you with the python ecosystem? Pyramid (and flask) are much more about integration with other stuff that is already available externally to the projects.
      • pldz has quit
      • But, look at the tutorials and the narrative doc. The docs are pretty good.
      • areski joined the channel
      • amr_
        yes i found it really good, i'm just a little afraid to not going in depth as quick as i think, as I have to make progress with my grad. project
      • thank u all for help and support, i really admire this community
      • jpenny
        In depth questions will usually get answers here (usually of the 3 guys, 5 answer variety, but ...). It is the overview questions that are hard.
      • dowwie
        [redacted]
      • [redacted]
      • amr_
        #dowwie you're doing it right :D
      • amr_ has quit
      • kamalgill joined the channel
      • mejymejy joined the channel
      • Charlie_X
        I doubt he'll be back.
      • He just wants to install shit and have it work: Django/Plone with high performance and easy to customise…
      • cguardia
        Aw, he's gone, I was working out the intermediate steps on my head
      • jpenny
        It is unusual to hear that the docs are not sufficiently in depth, or that they take too long to get there.
      • bochecha has quit
      • Charlie_X
        It's understandable: wanting to have something working ASAP but being forced to think about things like storage.
      • cguardia
        jpenny: not from one who wants to get to "how to handle SO level visitors" on page 2, after the installation
      • Charlie_X
        We all know that the best modern websites and apps don't need storage. They have magic pixie dust!
      • zepolen has quit
      • mejymejy has quit
      • dowwie
        [redacted]
      • [redacted]
      • tomeff joined the channel
      • teix has quit
      • nmix joined the channel
      • plamut has quit
      • Pumukel has quit
      • Ergo joined the channel
      • Ergo
        dstufft: ping
      • uralbash: ping
      • Charlie_X
        dowwie: asset light strategies only get you so far but they are indeed currently very à la mode.
      • otter768 joined the channel
      • areski joined the channel
      • jpenny
        cguardia, maybe. But, no one person can handle SO levels of traffic. No one can even plan for SO traffic. You have to do it when you start seeing the problems.
      • blaflamme
        at least he's optimistic about his project success :)
      • Ergo
        jpenny: i think you are being too pessimistic about handling part
      • cguardia
        jpenny: yes, that was my point when I mentioned "intermediate steps". It's counterproductive to worry about that so early. Lots of wasted time looking for the "best", "fastest" framework
      • blaflamme: they all are
      • dstufft
        Ergo: hi
      • Ergo
        dstufft: did you find the time test paginate?
      • dstufft
        Ergo: nope, let me do it now
      • Ergo: master branch riht?
      • Ergo
        yup
      • nmix has quit
      • dstufft
        Ergo: so it raises an error, but I can work around it. Basically https://github.com/Pylons/paginate/blob/master/... the boolean on self.collection calls len(). It might be worthwhile to check for page < 1 first, but I can also just override the __bool__ method
      • after overiding __bool__ in my wrapper class, it seems to be working fine
      • Ergo
        dstufft: well i think the boolean is not necessary
      • but original author for some weird reason tests if page is 0 is list is emty
      • ok maybe i should do len() then