« first day (3074 days earlier)      last day (1890 days later) » 
00:00 - 12:0012:00 - 23:00

12:05 AM
@ircmaxell but tbh I think if you want to go down the performance route you're better off with llvm ir than libgccjit :-/
libgccjit is nice as long as you don't have extra needs like that
 
@bwoebi likely. Libgccjit is nice in the aspect that it has GCC's full optimizer. And it supports all architectures that gcc supports.
And the thought of binding llvm via ffi makes me shutter
 
yeah agree
@ircmaxell though once you have done it you have it and don't need to care about it again
 
Cannot preview or submit new note – #77755
 
@bwoebi oh the interface itself I generate via FFIMe.
 
no, mapping it to sane classes I mean
 
12:14 AM
What would that design look like?
 
I don't know. Haven't given it any thought nor do I have had direct exposure to the llvm functions yet except from the occasional sight in some other code
I just know that these are much more flexible and do provide possibilities in that regard… that's about all I know
You'll have to evaluate that for yourself, cannot help you there :-/
/me is off to bed - good night!
 
12:29 AM
Hehehehe, thanks! Good night
 
Trying to remember - I've sometimes seen variable validation occur in a class constructor - if I need to validate that input has been POSTed, should I do that in a separate method? Part of me is saying yes, I should, but I'm trying to remember what the difference is between the validation I've seen done in class constructors in the past.
 
12:45 AM
it depends on the use case really, size of site, framework if any etc. But POSTed data would surely be tied to a specific method anyway so not sure the constructor should care at this point? Either way, it would probably be suited to a separate class being called, like a service. Then the validation can be re-used elsewhere by calling the same validation class, otherwise that validation is tied to your controller.
 
I don't use a framework, and I'm trying to keep it that way.
In my mind, constructors should only be used for dependency injection and that's it.
 
1:01 AM
I guess it depends on the validation. I presume your controller initially shows a form, and then takes the POSTed data and does things with it? If so validating in the constructor is not ideal as you'll have to start checking in the constructor if you have posted data to validate, etc.
This is not really (generally speaking) the best place for such code. If it's a small site then just add a new private method in the controller and the main method can call it.
 
Wes
what do you mean with "input has been POSTed"? means request method is POST?
 
1:27 AM
@Wes input that comes from a form
I can do client-side validation, but that can be worked around, which is why I want to do some basic server-side validation on top of
@James that makes sense
 
Wes
the request method is checked in the controllers
 
1:52 AM
@Tiffany I try to avoid validation in constructors, do it in a "named constructor" instead (i.e. static function createFooFromBar($bar)). If you put it in the ctor itself - directly or indirectly - then you cannot create an instance without passing through said logic, thus you end up with "leaky" unit tests. From the callers PoV there's no functional difference between new Foo($bar) and Foo::fromBar($bar) (both are coupled to concrete Foo), the latter gives you flexibility for testing
 
Wes
Hello, Dave.
 
@Wes You're my wife now.
 
Wes
i don't get the reference :B
league of gentlemen?
 
yeh, but you can watch all the clips you like and you still won't get it, it's "comedy" based on pure weirdness (as least that particular ref is)
 
Wes
indeed i didn't get a thing :B
 
1:59 AM
it's basically a ridiculously niche inside joke taking the piss out the landlord of a pub that mark gatiss and steve pemberton (I think?) used to drink in 20+ years ago, and somehow it made it onto TV
I was never a huge fan of that show in general, but for some reason that bit is really well known
 
Wes
lol
happy st. patrick day btw... i noticed stuff getting suddenly overwhelmingly green...
 
@Tiffany it depends on the use case obv, but in general I like to have a FooFormData class (where Foo is a sensible name for the specific form) and do try { $formData = FooFormData::fromFormSubmission($_POST); $someBusinessObj->doStuffWith($formData); } catch (NoMaekSenseException $e) { /* probably HTTP 400 */ } in the controller method
encapsulate the form validation in a class specific to the data structure of the form
 
PCRE2 Replacement String Conditional – #77756
 
@DaveRandom I picked the wrong week to quit amphetamines
 
<lloyd-bridges.png>
 
Wes
2:08 AM
you guys are harder to decode lately
 
@Wes if you haven't seen Airplane! go and watch it right now
you will 100% definitely like it
 
Wes
i did watch it, just not in english... must be amazing
jokes based on language are disappointing
there is no shirley...
 
it's actually pretty mediocre, but still a cult classic
@Wes see that's objectively a pretty weak joke (imo) but it works so well in there
Roger Roger - We have clearance Clarence - what's our vector Victor?
 
Wes
lol
 
I went (by total coincidence) to see Weird Al live about a week after Leslie Nielsen died, the gig was amazing in general but in between songs while they are doing set/costume changes they showed random clips of stuff weird al has been involved with, one of which was the bit from the Naked Gun where frank gets off the plane and things the press are there for him but weird al is behind him, that got a standing ovation for like a solid minute
vibe-wise probably the best gig I have ever been to, with the possible exceptions of the Stone Roses first reunion gig and/or RATM closing Leeds after Killing In The Name got to #1 in about 2008
 
2:19 AM
@DaveRandom it has the most laughs per minute of any comedy
by one study, it's objectively the funniest movie
 
Wes
i should rewatch naked gun as well
could not like that humor... unless it was a translation problem
 
@Tiffany that I cannot sensibly answer without more thought, also I'd have to qualify that as "movie" because I'm pretty certain that Arrested Development would outdo it on that front
 
Wes
but ratm live must've been wild
 
@DaveRandom when Weird Al was single in the 80s, he used to take dates to see Naked Gun, and he'd wear the same shirt
his date would do a doubletake
@DaveRandom debatable because understanding Arrested Development's humor requires a certain level of IQ... Airplane does not
yes, I went /r/iamverysmart, but it's true... a lot of the jokes in Arrested Development go over people's heads
granted, anything with Tobias Funke isn't hard to figure out
 
@Wes actually somehow ended up seeing them twice (also download 2010), fucking excellent both times, not least because I had resigned myself to never seeing them and then suddenly they were back
ditto the stone roses tbh, although I realise that has a much narrower appeal :-P
 
2:24 AM
@DaveRandom youtube.com/watch?v=XTvORn_2B7I (source of Weird Al and Naked Gun story)
 
@Tiffany well I was going to but couldn't be arsed typing, the thing about arrested development is that the laughs-per-minute is relatively low the first time around, it's only now I have watched like 20 times or whatever that I "get" it to that degree
 
yeah
 
I don't know if it requires intelligence necessarily, but you certainly need to be paying attention, and there are so many callbacks that you simply cannot possibly get the first (or second) time around
 
in terms of comedy and "first time watching," Parks and Rec is better
...excluding the first season
 
Parks and Rec and Always Sunny are my two favourite "current" US comedy shows
that said, are they still making parks and rec?
 
2:29 AM
@Wes but yes, what Dave said, a lot of Airplane!'s humor probably can't translate well into another language because a lot of plays on English slang, grammar and homophones
@DaveRandom no :(
 
also the orville is in my top 10 tv shows ever but I can't really classify that
 
but "The Good Place" is supposed to be pretty good and by the same guy
 
Wes
must sound ridiculous but one of the best concerts i've been to was green day
such an underrated band
 
not ridiculous at all, agree 100%, seen them 4 times and would happily pay to do it again
 
I suppose I'm going to make myself a cup of tea and bug you with questions @DaveRandom ... I need to make myself work on this
 
2:31 AM
@Wes also (possibly more contentiously) Blink 182 was one of the best gigs I have ever been to, but in about 2002
 
Wes
basically all tunes they made are memorable, and billie joe is really amazing live
 
@Wes not sure that's even true tbh, I don't know many people who "don't like" green day at all
I listened to Nimrod all the way through within the last week (tues maybe?)
 
@NikiC would love to hear your thoughts on error handling and libgccjit vs llvm... Should I start an LLVM wrapper?
 
Ugh right yeh I did actually come here for a reason, I forgot about that :-P
 
Wes
@DaveRandom people think they are just teen music... which is true... but was my teenage years also :D
nothing wrong about that
most disappointing concert you've been to?
 
2:36 AM
@Wes ooh interesting, let me brain dump and then I will think about that
 
Wes
i had a lot of expectations for iron maiden... wasn't great... i think they missed some instrumentation, like speakers or something. also not good singing from bruce
and they played only new tunes... was disappointing af
around 2010
but perhaps the most disappointing is the one i don't remember
because i was too drunk...
limp bizkit....
 
one band I won't see live is Mastodon
 
Wes
i slept in a field
 
which is depressing because I love their music, but their live albums suck ass
 
So escapeshellarg() is basically useless on Windows, all it really does is strip things instead of escaping them. I now (finally after like 10 years) understand how to escape shell args on Windows, and I can implement it for PHP pretty easily, so I'd like some feedback on this general idea:
1. Add $flags arg to escapeshellarg() (details to follow when I have clarified them in my own head)
2. Change exec()/shell_exec()/system()/proc_open()/popen()/<others?> to accept an array of strings as the $command, which are automatically escaped as appropriate to the OS/invocation method
(2) being the one I'm more interested in
thoughts?
feels a bit like hidden magic, but sensible hidden magic
 
2:40 AM
@DaveRandom whatsapp, last question I sent
 
@Wes smashing pumpkins ~6 years ago, the gig was basically a masturbatory aid for billy corgan, played like 2 songs anyone knew (and I mean anyone, the rest were B-sides, new songs or just plain randomness)
 
Wes
i hated when they don't play classics
i think people would reasonably accept 50% new 50% classics songs, even if the new songs are horrid
for example the iron maiden didn't play the classics until the very end, and because audience invoked them
a band i would like to see live is white stripes
i mean this looks wild youtube.com/watch?v=YzPjwPudy3k
 
3:01 AM
Evening, lads!
 
Wes
and would like to attend a underworld concert... or prodigy
or crystal method...
yo statik
also daft punk tho :B
 
Lots of EDM there.
 
@Wes can't remember who it was annoyingly, but someone was talking to me recently about a band who deal with that by having a tribute band open for them
 
Wes
fav green day song?
@DaveRandom ew
so the tribute band plays the old tunes?
 
so the band want to play the new stuff (which is fine and makes sense), the tribute band play the old stuff that people want to hear
 
Wes
3:05 AM
bleh
 
depends how good the tribute is
@Wes definitely missed the boat on the latter :-P
 
Wes
yeah sad
 
I don't think I have the stamina for either of those anyway, not any more
 
Basket Case and When I Come Around @Wes though you were not asking me. =P
 
@Wes seen them twice, first time was epic, 2nd time was not great but festival so kind of to be expected
 
Wes
3:07 AM
@DaveRandom youtube.com/watch?v=xem30f6bzkA u sure? :B
 
I mean I would need an E at least
 
I liked Blink 182 also.
 
Wes
it's 90% substances, 10% prodigy :D
 
@DaveRandom E had a huge impact not only on the music- but many of the crapholes I went and played at or heard someone spinning at. You had to be high to be there and enjoy it.
 
I did, certainly. There are some people who can do it straight, but I am not one of them :-P
those days are long gone though
that's a game for the <30s (mostly <25s)
 
Wes
3:10 AM
:B yeah
 
@Wes still considering this btw :-P
 
@DaveRandom I quit at 19.
 
I really really really like nice guys finish last but I don't want to call it favourite without thinking more :-P
 
Wes
surprisingly, mine is a recent one
 
I will say my fav is prob from nimrod
not even 100% on that though
@Wes recent stuff is decent, it's like a totally different band though
not necessarily in a bad way
I don't actually know what I think about that
 
3:15 AM
I miss their original punk days.
 
"punk"
(it's not bad but it's not really punk)
 
LOL- you sound like my friend from back then.
 
Wes
lol
 
@StatikStasis I haven't seen them live for years but I have seen clips of recent(ish) gigs on youtube and I think they still can and do carry that vibe pretty well
 
3:18 AM
He liked Basket Case when it first came out - but once it was commercially a hit- it became "ok."
Never saw them live.
 
@StatikStasis punk as I understand it is music made by assholes, largely for assholes
 
like the sex pistols - which is unlistenable nonsense, it's just children being angry with instruments in the vague direction of microphones
 
I loved the 90s.
 
you're quite definitely not alone :-P
 
Wes
3:22 AM
the sex pistols are antimusic... btw youtube.com/watch?v=8eEpyxoNkwk this is good stuff lol
 
Such a great time in my life- didn't make the best decisions by any means. But- Music was great, computer tech innovation, programming, websites, video games- oh man so many great games and systems and just a great time for them. So much happened then.
 
@Wes sort of semi-related to this, one of the best gigs I ever went to was Basement Jaxx, which I only went to because my 8.999999mths pregnant neighbour gave me free tickets about an hr before the gig
@StatikStasis O A S I S
 
Of course some undone memories too- some bullying - man middle school just seems to suck for a lot of people.
 
but then, I am a manc :-P
 
@DaveRandom They were good. And The Verve.
Nirvana.
I never was big into Radiohead like so many others
 
3:26 AM
OK so I am about to get lynched but... I am not generally a fan of Nirvana
 
Almost anything out of Seattle was great during that time.
@DaveRandom lol- Everyone has different tastes.
 
they did some good stuff but they are in the Jeff Buckley category of being put on way too high a pedestal
I mean seriously. It's OK to be happy occasionally.
so I'm told, anyway
 
I always thought Beck was very weird... humorous at times - but just weird.
 
Wes
this is the music i listened to as a kid (title: someone killed spider man :B) youtube.com/watch?v=5Y7RM8VeXJk damn the feelings
 
I loved No Doubt
I liked Alanis too- even her ironic song which wasn't ironic. It was all still great.
 
3:29 AM
@StatikStasis yeh I have mates like that... I bet he would be the worst person in the pub. The kind of guy who talks too close and way to intense and doesn't give you any conversational openings to go for a piss/to the bar
 
Wes
do new generations have music representing their generation? all new "artists" come and go...
 
like someone on cocaine, only less interesting
 
@StatikStasis I have a bit of a thing for female vocals and I love her voice a lot
 
Wes
F1 live youtube.com/watch?v=jMyZbz_mm5I time for me to prepare F1 food
 
3:30 AM
@Wes It feels that way to me too. Maybe I am just disconnected- but I hear so many people who like music of other generations better than their own. Their is a lot of crap now.
 
I went to see En Vogue live a couple of years ago (2016?) and they were surprisingly good, ditto All Saints
I mean, surprisingly good considering how much time has passed
 
@DaveRandom That's me. In fact in EDM music I always liked female vocals or violins. If it had one of those then chances increased that I would like it. Bitter Seeet Symphony was such an awesome tune with that orchestra behind it.
 
it sort of drags a bit though, most of the verve does tbh, a lot of their songs should be a minute shorter at least
although the last track off urban hymns I seem to remember being excellent
 
I have a wide range of stuff I like. Like- I loved Mariah Carey in the 90s. I still love Sarah McLachlan.
 
@StatikStasis do you know Neko Case? I feel like you would like her
 
3:35 AM
Although Sarah McLachlan was someone I listened to riding in my vehicle after I would have a girl break up with me and I would listen to her and cry and have a pity party... yeah... lol.
@DaveRandom never heard of her
 
hang on let me find a good taster track
@StatikStasis OK so this is kind of Jefferson Airplane-esque with maybe a bit of Yeah Yeah Yeahs open.spotify.com/track/6FYHQjYn94MWVaEKNQ0p0t
but she has quite a range of styles
 
K- checking it out.
 
YES! I love her voice. She has one of those voices that can translate to some trance song very well.
I used to love Blues Traveler too.
 
brb googling :-P
(and smoking)
 
3:47 AM
You guys up late or up early?
11:47PM here.
 
to be brutally honest my life in general is an absolute shitshow atm in a wide variety of ways, sleep patterns are towards the bottom of my list of concerns
 
@DaveRandom @Trowski @bwoebi in particular, and @ircmaxell if you have any opinions
 
@DaveRandom #2 sounds more challenging. I like it. So you had an epiphany on how to fix?
 
implementation is trivial, userland API is what I need opinions on
 
3:56 AM
And why is life in crapper. Job thing still?
 
@StatikStasis sort of, actually I just finally stumbled across the right blog post
 
Nice!
I've never developed an api for anything before. I would like to do that one day.
 
@StatikStasis tl;dr head utterly fucked, essentially full scale burnout of the kind that cannot be fixed by a holiday... full story is complicated and ongoing but those are the headlines
 
Gotcha! Hoping things return to normal for you.
 
it's broadly under control though, was doing seriously badly for a bit but (I think) has at least levelled off
 
4:00 AM
That's GREAT news!
 
it's basically an LHC-scale vicious circle. awesome :-P
 
I wish I could design something that I could work on the rest of my life improving without the corporate push to increase by this much each year- or perform these objectives by this date. I know I need deadlines to be productive- I just want to be working on something that's my own.
Not sure what I want exists for very long- or if it does it is very rare.
 
@StatikStasis so I guess my main question/concern is... is it intuitive that passing an array will be automagically escaped? (given that basically nothing else in PHP works like that afaik)
and also: what should happen to members of the array that aren't strings? my gut is cast in weak mode/TypeError in strict mode
 
I don't see anything wrong with it nyself- but I also don't follow all of the hard rules - and if it violates one of them I am not aware of it nor would I care if there isn't an alternative.
 
Wes
@DaveRandom this explains that one time i fought against exec
on windows...
 
4:07 AM
@Wes userland solution, as long as it's passed directly to CreateProcess() github.com/amphp/process/commit/…
 
Wes
ugh
 
proc_open() with bypass_shell=false (i.e. passing through cmd.exe) is it's own special set of weirdness
but don't do that anyway
 
Guys- I'm dosing in and out here in the bed while reading. I've got to crash. Good chatting with you this evening. Have an awesome Sunday. Look forward to seeing how this turns out @DaveRandom
 
Wes
\o
 
4:19 AM
guys, in this:
>>> HEAD
code snippet one
======
code snippet two
>>>>>>> branch/name
which one is the new version of the code? either "one" or "two" ?
 
@Wes ftr "passed directly to CreateProcess()" covers (afaik) every program execution mechanism except the aforementioned scenario. Also worth noting (and should be documented) is that the input string is always treated as UTF-8, converted to LPWSTR and used to create an explicitly unicode env for the child (note the ...W() suffix)
 
Wes
@Shafizadeh depends on whether the head is ahead or the branch is
 
so basically, fuck escapeshellarg(), use that logic and always pass bypass_shell=true
(I am going to try to fix escapeshellarg() though)
 
Wes
that sounds nice
 
I mean it is currently safe but it isn't lossless
 
Wes
4:23 AM
i don't remember what i was doing but i ended writing a .bat and executing it
 
This is the reason that the amp windows process wrapper exe takes the child command line from stdin, although that was still broken until the linked commit, but it works now, and also handles unicode correctly throughout so it now works with non-ascii paths
in general the best way to pass data losslessly and efficiently is via a pipe of some kind though (and that's true everywhere)
 
Wes
i was doing something really trivial with php, like php vendor/bin/bla ...
 
I have an idea that will massively improve performance for the process wrapper but it's a huge job and I just don't have the mental capacity atm
 
Wes
somehow parameters didn't reach php
but if i tried the same thing from command line, manually, it worked fine
 
cmd isn't a good testbed, irritatingly
it's essentially a really insane preprocessor and it is seriously unintuitive
and to make things a little more exciting, the batch processor works differently to the repl :-P
 
4:29 AM
@Shafizadeh The head is the state of the branch you are mergin unto. branch/name is the branch that is being merged.
 
@Wes using which php function, out of interest?
 
Wes
i tried both exec and shell_exec
 
ok well they are identical
as is system()
 
Wes
why there is 3? :B
 
the only difference is in the way PHP handles the data related to the child
 
Wes
4:31 AM
also i tried the `
 
backticks are 100% identical to shell_exec()
and should never be used ever (imho)
 
+1000000000
 
ah I see, thx @FélixGagnon-Grenier cc @Wes
 
Wes
i meant that you can merge into head an old branch, if you want to...
... right?
@DaveRandom people did not like it
i made the error of mentioning unicode @DaveRandom and they were all like NO WHAT UNICODE THERE IS NO SUCH THING LA LA LA LA LA
true story
 
4:42 AM
@Wes try again for 8, and tell me when you are doing it so I can bitch slap some people on internals if necessary
 
Wes
never mention unicode on internals
 
in the context of program execution in PHP, everything must always be UTF-8
it's what POSIX expects and it's how the windows code handles it
I now have a very good understanding of both the underlying APIs and the PHP code around them and I'm debating the idea of creating an RFC for a Process class to provide a better API but still not sure if it's worth the effort to argue about it
I also have a bunch of ideas to make the amp process wrapper way better but it's a lot of work and I don't have the mental capacity atm
I think I figured out what the limiting factor on number of child procs is, basically it's too many threads, and I now understand how to run the wrapper in a single thread, but it requires a total redesign
so yeh if anyone wants a fun win32 vc project... :-P
 
 
1 hour later…
6:06 AM
Mornings all
 
6:19 AM
Yay, JIT + parallel is awesome. youtube.com/watch?v=Vn-ih5MREsY
2
 
6:35 AM
ha, that's cool
 
hello
this is a question on git, although git is not this chat
in my pc, the command, git master, gives error
git: 'master' is not a git command. See 'git --help'.
 
What are you trying to do?
 
i am learning how to use git. i first did git init, then git add git commit three times. then went back to second commit using git checkout
now i needed to use git master
following this tutorial : youtube.com/watch?v=_OZVJpLHUaI
 
If you didn't switch branches you are still on master
master is a branch, not a tag or a commit
Do git status
 
it says head detached
how can i see the tree
 
6:42 AM
ah
git checkout master
First command is always git and second command after that is always the actual git command you want to run
 
`Previous HEAD position was a0674f8 two
Switched to branch 'master'`
oh i guess this was what i needed, to go to last commit
 
 
1 hour later…
8:00 AM
smithereens fragments, bits
 
8:50 AM
@bwoebi in case you were wondering what I was looking at doing that distracted me ... I want to extend the libphptrace library to be useful for a debugger, both in and out of jit ... my basic idea is this:
do {
    if (ptrace(PTRACE_SINGLESTEP, target, ...) != SUCCESS)
        break;

    waitpid(target, ...);

    /* check status */
} while (%r15 of target != next || /* platform with ZEND_VM_IP_GLOBAL_REG */
         cex->opline != next       /* other platforms */)
mac also supports single step trace, it's not quite that simple because opline+1 may not be the next instruction, have to detect possible branches from EX(opline) ...
where the hybrid vm is used, we may also set breakpoints as 0xCC, but I haven't quite figured out how to catch that in the tracer ...
I think a special form of ptrace(ATTACH, ...)
and we get the reg info for free in jit mode, ptrace can do that too ...
and libasm (part of elfutils, which is already dependency) seems to have enough disasm stuff to achieve setting break in jit'd code, and if it doesn't llvm certainly does ...
tl;dr I'm reading a million things ...
 
Support for HEIC / HEIF EXIF – #77757
 
@JoeWatkins what exactly are you intending to achieve here?
 
phpdbg will never be able to debug jit'd code
it can't even execute it
 
I mean within the code sample
do you want to programmatically single step the target process?
 
single step at vm level
but more generally be able to set breakpoints in the target, in opcode and machine code ... it's just single step is like the very minimum a debugger needs to be able to do, that and set breakpoints ...
it's awfully wasteful to do it this way, I'm aware of that ... but I haven't managed to think up another way, there's no TRACE_CONT until 0xHEX ... so we have to make one up ...
 
9:04 AM
@JoeWatkins well, that's where you use 0xcc, yea
 
I haven't quite figured out how to catch that in the tracer, ptrace seems to be focused around syscalls
oh
you set 0xCC and then send CONT and do wait
that's much easier ...
 
yeah, the tracer gets notified about the signal before the tracee is
PTRACE_restart and such … you'll just have to pay attention to forward all other signals to the tracee
 
yeah in general the thing needs work on signals, wait _WALL is not necessarily correct everywhere ...
 
 
1 hour later…
\o/ ___|'__.--, ~( > {c .` | |__| ,= | /_/_| |_|\_\ J($x) => $x **2
 
10:46 AM
Hello guys
can anybody tell me what exactly is Pheanstalk and how it works.. I googled it but didn't get right description ..
 
@Exception you probably want to read up on beanstalkd - pheanstalk is just the library in php that talks to beanstalk
 
@beberlei okay..
 
@Exception it is a job queue, but you can think of it as a database that gives very specific read access only. we use it so that web requests write jobs to beanstalkd and then worker scripts that are long running pick one job at a time from the queue and process them
the workers essentially ask the beanstalk server (is there a new task for me? then give it to me so that i can process it)
 
is the result of sorting arrays including NAN undefined in php? the docs don't say something about NAN and sorting. (or I've overseen it)
 
@beberlei okay.. so suppose beanstalkd is already installed over project and whenever requests comes then after apache it will reach to beanstalkd and then eventually to actual code. is that you want to tell?
 
10:56 AM
@kuh-chan the problem is that the sorting of nans to themselves is undefined (the <=> comparison is always == 1, which propagates when there are mutliple nans in an array
 
@Exception i don't really understand your question, but that probably means I explained it badly. If you have PHP running in Apache, then it will probably use Pheanstalk "putInTube" method to write jobs into Beanstalkd. Then these jobs must be processed by someone, usually a worker php script that calls Phenastalks "reserve" method to get "the next" job.
 
@beberlei your explanation is good. But I am not able to fully understand it properly until and unless I get any example. This term are also new to me - worker php script.
 
@Exception you can run PHP on the command line, "php myscript.php". If you run such a script with systemd or supervisord indefinately without stopping, I call it a worker. It has an endless neverending loop: while ($task = $pheanstalk->reserve()) { // process } . and reserve waits until the next task is available.
 
okay .. that was easy to understand.. thanks
 
essentially you have PHP running in Apache and PHP running as CLi script. Web server writes tasks to beanstalkd, worker processes them. Its similar to a cronjob running in the background, but it doesn't get triggered on a timer like cron, but whenever a new job is created
very common use cases are expensive operations such as sending e-mail or resizing images
you don't want your user to wait for them to complete
 
11:04 AM
yes thats correct but if I am putting all my operations in queue then until and unless my first job is completed, how can I get the output of job number 2 as I immediately require job no 2s data?
 
you can put them in different tubes and have different workers process them.
essentially you can have a "priority" tube were only the important things are written to, and then the unimportant ones don't block them
 
okay.. this is cool..
 
then have two workers running in the background one for the important jobs, one for everything else
also you can have multiple workers process the same tube, if you need parallelism. we run about 20 workers in parallel in our product
 
that is great.. is there any good document for this ?
 
i wouldn't know sorry :-( its a lot of implicit knowledge
if you read the beanstalk protocol then you may get an idea for different use cases
 
00:00 - 12:0012:00 - 23:00

« first day (3074 days earlier)      last day (1890 days later) »