« first day (2266 days earlier)      last day (2681 days later) » 

ThW
9:00 PM
@RootBearFloat Yes, most of the changes are on the engine level actually
a lot of the extension api stuff has changed
 
user6438501
@Thw ty for that. i saw in the Jeeves source there are 'Promises' in the sense of code calling 'resolves' ... is this achieved via a plugin? or supported by defult now?
 
@bwoebi travis-ci.org/amphp/loop/jobs/187552900 Delay timer getting out of order.
 
@RootBearFloat the async stuff people are talking about is all done in userland. It works currently on PHP 5.6 as well as 7.
 
Doesn't happen on 7+, we have other issues there :-P travis-ci.org/amphp/loop/jobs/187552902
 
user6438501
@Danack is it not true async then? i'd imagine. was never able to understand then how async is reached
 
9:05 PM
(even though not requiring 7 for new projects is dumb.)
@RootBearFloat It is true async - at least as much as say Node is true async.
 
user6438501
well i'd say Node is true async
 
user6438501
single thread, I/O non-blocking, event loop
 
ThW
Promises are a pattern for async programming (not necessarily async execution). On the basic level is a pattern for a condition of an expected result. It is more (nesting and stuff).
 
@RootBearFloat you can have the same thing on php 5.6 or php 7.
 
9:07 PM
@RootBearFloat yes that - amphp.org.
 
ThW
@RootBearFloat It is not.
 
user6438501
i just don't understand how those user level async libs work. is there an actual interrupt made?
 
ThW
node itself is not async, but non blocking i/o is a sane way to handle async processes
 
user6438501
how is the async function tracked for a response
 
@Trowski oh, damn … I wanted to test weak types … and forgot that I can't use them there unconditionally
 
9:09 PM
@RootBearFloat When you connect to a socket yourself, you can tell the socket to be sync or async.
If you tell it to be async, then your code continues running and you have to periodically check back to see if the socket has new data for you.
 
ThW
that is what the event loop handles, you source is still sync (so it should be small and put work away in separate processes)
 
The various Async PHP libraries are tooling on top of that to make it nicer to control the "periodically check for new data" part.
 
@Danack there is no magic!
 
user6438501
ahhhh, so it isnt an interrupt driven model, in this case, the caller is checking back for a asnwer?
 
Right. No interrupts. Just your code being well-behaved enough to check open connections from time to time to see if there's new input to work with.
Everything else is just syntactic sugar to make "well-behaved" easier to write, read, and understand.
 
ThW
9:11 PM
@RootBearFloat kind of, the event loop has a lot of optimizations for it
 
user6438501
we are talking about the PHP event loop now ay?
 
@Crell you could say that the waiting of kqueue/select syscalls are interrupted when new data arrives.
 
That's also why CPU-bound tasks benefit less from this style of async, since they're not going to be sitting around waiting anyway.
 
@RootBearFloat there's no "PHP event loop"
 
9:12 PM
@Crell that's somewhat not true
 
user6438501
lol yea so that's why i dont understand. i assumed this was somehow included in zend or something
 
there are multiple PHP libraries providing an event loop
it's something even you can do!
 
user6438501
muh muh meee?
 
@Crell What did you do with the chat now?
 
9:13 PM
@RootBearFloat no, in zend the required primitives are included (non blocking streams, stream_select() etc.)
 
user6438501
@Crell well yeah now there's an extra scheduled event to check on one of the previous functions, rather than being implictly told/interrupted
 
@bwoebi How so? It may still benefit, but an IO-bound task is going to benefit more from a non-blocking IO model. :-)
 
ThW
@FlorianMargaine most basic would be stream_select()
 
@Crell still wrong. The only benefit is to secondary tasks also running on the server or less power consumption.
ah okay
 
@kelunik Set it to debug mode so that I didn't have to figure out how to hook it up to Redis. :-) It works fine now.
@bwoebi Wait, are you arguing there's more benefit than I am, or less? :-)
 
9:15 PM
@RootBearFloat Feel free to join. We suck though :-)
But mostly it;s @Ekin who sucks. I'm great and do all the things
 
@Crell It depends. If you go with the philosophy, one server, one task (e.g. webserver) it doesn't matter. (except your power bill maybe)
 
:P shuddup at least I haven't blew us up both with 2 c4s... (yet)
 
@Crell You could also just set -w 1 in the command line options. :-)
 
:D
 
ThW
if you have some hardware (arduino, gpio), non blocking i/o keeps you sane
 
user6438501
9:17 PM
@PeeHaa haha okay, can you hook me up with some stuff if i join so im not a lowly fresh spawn?
 
user6438501
and @Ekin blow him and loot him, we'll start our own clan
 
user6438501
:p haha
 
:D
 
ThW
:-)
 
@kelunik Eh. It works to show that Aerys runs on Platform.sh. That's the important part. Optimizing the application is the customer's job. ;-)
 
9:17 PM
@RootBearFloat Sorry. @Ekin just gave away our base
 
user6438501
lmao
 
lol! no
you weren't even there <_<
 
@ThW what keeps you sane there is mostly the usage of select() rather than O_NONBLOCK itself.
 
I thought I told you to defend it
gees
 
@Crell I'm not familiar with Platform.sh, but you could add a full version very easily I think by using services: redis, no?
 
9:18 PM
btw a little birdy told me the server we are on is going to get wiped soonish @RootBearFloat
So at least everybody is a fresh spawn \o/
 
@PeeHaa wtf?
 
Adding the Redis server, yes. Connecting to it, I didn't want to bother looking into it. I just used the basic tutorial on the front page and then tweaked the code to pull the host and port information from environment variables.
 
@bwoebi What? You never wipe?
eeeeeeew
 
yeah they keep saying that since like 2hrs though @PeeHaa
 
@Crell there's something called "multithreaded IO", which is something that you can do well on SSDs, especially when put on top of NVM Express buses. I heard 3x or 4x speed improvements.
 
ThW
9:19 PM
@bwoebi I implemented threads before that, it wasn't fun.
 
If you'd like to trick it out, though, I'd be happy to give you access to the repo. :-)
 
yeah, ask away if you want a Platform.sh project to run examples on, I can provide that
 
@Crell I think I'll add Redis to it once Amp v2 is out.
 
Sounds good. Let me know when and we'll give you the necessary access.
 
btw is "Platform.sh" meant to be pronounced like you're completely drunk?
 
9:22 PM
@FlorianMargaine seriously? AFAIK it's just the opposite?
 
@Danack no... more like you're part snake
 
I don't know, but if that gives you an excuse to drink, then sure
@bwoebi that's what I remember reading
 
user6438501
@PeeHaa @PeeHaa oh well sounds like a great time for me to start then! after i finish this one project i'm one, i'm free for the next week. ya'll play the new civ at all? let me find my steam un too. i believe it's "bulldawg2525 or robbb2525". might be better to send me yours and il find u lol :p
 
@FlorianMargaine could you please find it again?
 
@RootBearFloat coolio
maybe we can get @JayIsTooCommon being a nerd again too
 
user6438501
9:23 PM
yeahh the more the merrier! i would love a nice big fun game of civ
 
user6438501
and we can solve php problems in the meantime // work on a joint project. im good at selling things
 
user6438501
is anyone interested in the search of finding the assange insurance file decryption keys?
 
user6438501
i hear they are hidden in the blockchain somewhere
 
user6438501
9:26 PM
a dangerous mission though. rumor is that as soon as u find the key, a nsa program called X|<score will insta kill ur computer
 
user6438501
|< = K
 
user6438501
/starts a revolution just for the lols
 
@bwoebi from what I read, multithreaded read() are much faster on SSDs on top of NVMe
 
any of u experienced in crm/ad server orders?
 
user6438501
^i have experience working with CRMs and a few ad servcies
 
user6438501
9:28 PM
CRMs - Zoho (my current project), Insightly, and HubSpot
 
@FlorianMargaine the main gain is in random access (i.e. many different smaller reads), multithreaded read of the same big thing isn't really faster
 
have u created php apps of this sort?
 
user6438501
Ad - TapJoy
@MujnoiGyulaTamas
 
I am having a brain fart, and i'm interested in opinions
 
user6438501
sure, most of my work is integrations based, building solutions for ecommerce businesses
 
user6438501
9:29 PM
worked with manyyy platforms
 
user6438501
woo, bigcomm, shopify, volusion, sparkpay, magento
 
user6438501
xCart
 
my client needs to generate orders and he wants to even edit the order after creating it
 
@bwoebi yes, seek/read heavy code
 
user6438501
@MujnoiGyulaTamas is he on an ecommerce platform? or orders on a CRM?
 
9:31 PM
I wanted to write a database that took advantage of that exactly
 
it's a custom app i wrote
0
Q: Editing generated cosumptions for each supplier

Mujnoi Gyula TamasWell it's 2 days before new year and I can't get my head to work properly. So I'm asking this question as the lazy man. I'm more interested in ideas then implementations, altho examples are welcomed as well. I am working on a CRM project for a client. In this CRM you have records of suppliers, c...

 
@FlorianMargaine past tense? :-P
 
user6438501
also, im looking for help on a really cool project i have called Bouncr - its an AWS/Node+Python based app that does Photo ID verifications for online eCig stores
 
it's a long read
 
user6438501
@MujnoiGyulaTamas im not too big into reading. wanna summarize for me
 
9:32 PM
storing read-only files + write-ahead logs + in-memory db. almost-lockless in-memory reads, falling back to reading these read-only files using binary search with seek/read to find missing data, the whole thing being a multithreaded server
 
basicly after he creates the order i need to edit it, but if i edit some data all the order needs to be edited/regenerated
 
SSD + NVMe is a dream for this kind of db
this thing taught me about seqlocks.
 
user6438501
@MujnoiGyulaTamas are you saying if you edit ONE order, then ALL must be modified?
 
user6438501
or just the ONE order?
Is it critical to save the previous data? instead of implementing your own MySQL Db and then being responsible for the admin, i'd say just create invoices
 
@RootBea new order -> select client/brand in date range -> add multiple suppliers -> generate consumptions for each supplier for each month
after save -> edit date range ->consumptions change (problem1)
if supplier is deleted consumptions change, but not deleting the invoiced consumtion is a must ( probme2)
 
user6438501
9:36 PM
@MujnoiGyulaTamas sounds like a situation where one would need to become very well versed with the project background
 
@RootBearFloat yes, if the order is change in some way other datas may be changed as well
 
user6438501
I can offer a courtesy 30-45 min consult to discuss it, perhaps throw ya some ideas during that
 
@RootBearFloat this is why i sad it's a long read for the question i posted :)
Copypasta
Now when ever a new order is generated, we calculate the number of months between the starting and ending date, ex from 2017-01-15 till 2017-03-27 there are 3 months. After this is done we generate for each supplier consumption details for the 3 months, X amount of page view for Y amount of days in a month. So all is fine and dandy up till here. The punch is than I also need to edit the order, and changing the starting date or ending date, will render my consumptions invalid, thus the need to regenerate the consumptions, but wait theres more... I only need to regenerate the consum
 
user6438501
1-844-445-7873 x700 - toll free number, i can get you one specific for your country if u need
 
user6438501
if you call ask for Rob
 
9:38 PM
i'm outside of us
europe
 
user6438501
where in europe
 
@FlorianMargaine seeks are still quite expensive - and you can only trigger the seek after the previous read is done… you maybe can do more ops per second, but there's still significant latency then
 
user6438501
 
Anonymous
@PeeHaa aye, though I am into command and conquer ATM. It's the only single player game I can play without a mental breakdown :). Did you play with @Ekin?
 
user6438501
9:46 PM
@JayIsTooCommon dudeee which C&C?
 
user6438501
zero hour was my absolute favorite ever
 
I haven't played C&C in years
Generals
 
@bwoebi seeks are basically free on SSDs, no?
 
@JayIsTooCommon yeah
 
Anonymous
@RootBearFloat zero hour :) played generals too much :p
 
9:47 PM
@FlorianMargaine seeks themselves yes, requesting many individual small reads at non-deterministic offsets still has quite a cost
 
user6438501
yeah zero hours is much needed upgrade to generals
 
user6438501
how are you playing?
 
did you all ever play starcraft?
 
user6438501
would love to play with u. i can get my brother online with us too
 
user6438501
@rabbitguy never got into starcraft, although my one good friend is big into it
 
user6438501
9:48 PM
im on a mac, i still need to re-isntall windows. i just had the motherboard and HDD replaced for free as part of a recall
 
user6438501
on the 2011 mac book pro recall
 
nice
free hardware is always a good thing
 
user6438501
yeah man its practicaly a brand new computer
 
user6438501
would have costed $800 normally
 
user6438501
im not ready to purcahse a new mac until the next next gen processors come out
 
Anonymous
9:49 PM
@PeeHaa you prefer me right?
 
I haven't upgraded my home pc in quite a while
 
user6438501
which i think are dude very soon
 
but I don't ever touch it when I get home
I'm on a computer all day at work
 
user6438501
im about to get a nice gaming PC just for games and keep it hooked up to my bigass tv
 
I did that at one point... had my computer connected to two monitors and my tv in my room
I ended up not doing that after a bit...
bcz, tbh, a pc is just too loud to use as an entertainment center
 
Anonymous
9:51 PM
@PeeHaa I just don't want you to fall for anyone else in my absence
 
user6438501
@JayIsTooCommon if he really loves you he'll come back
 
They did it. They actually turned 2016 in a horror movie. https://t.co/kykslqSSzv
 
@JayIsTooCommon It's hard man. She is a pretty amazing black dude
 
user6438501
" She is a pretty amazing black dude" ..?
 
It's true :P
 
9:54 PM
lol
 
Wes
look what i found
 
lol
 
Wes
user image
5
jeeves' sketch
 
user6438501
dad^??
 
Wes
:B
 
9:54 PM
Holy smokes
That's gotta be worth money
 
user6438501
my dads the best at hide and seek
 
user6438501
"you can come out now pops!"
 
Wes
@PeeHaa :B
 
anyone familiar with codeception
 
@meda That's like when you echo out javascript from php right which in turn makes an ajax request?
 
Anonymous
9:56 PM
@Wes can you draw me next? <3
 
user6438501
codeception its like inception, but being caught in an infinite recursive loop
 
user6438501
@Wes draw me like one of your french girls pls
 
user6438501
just pls make me look hot
 
@PeeHaa yes something like that lol
@RootBearFloat what do you mean
 
massive paint skills btw
 
user6438501
10:00 PM
@meda just a joke, like from the movie 'Inception'
 
user6438501
with my fav actor - Leo
 
If someone can tell me how to setup phpBrowser, I have not been able too
@RootBearFloat haha
actually have you used it
or behat
 
Wes
@JayIsTooCommon sketchtoy.com/67772444
 
@Wes hahahahahah
 
Anonymous
10:07 PM
@PeeHaa @Wes Thanks <3
 
Wes
your bald :B
 
!!uptime
 
@bwoebi I have been running for 5 days, 8 hours, 5 minutes and 13 seconds, since 2016-12-24 14:04:26
 
@Wes oh, turbo coffee destruction
 
@Wes jeeves needs a portrait command :-)
 
10:25 PM
Does anyone know how to persuade graphviz to use a more circular layout, rather than having a single seriously long edge?
oh wow....it has different command line binaries for the different layout options.
Now I just need to be able to name things in a way that isn't terrible.
 
I've found Graphviz to be about as maddening as it is awesome.
 
user6438501
@MujnoiGyulaTamas rob@surerob.com
 
> circo draws graphs using a circular layout (see Six and Tollis, GD ’99 and ALENEX ’99, and Kaufmann
and Wiese, GD ’02.) The tool identifies biconnected components and draws the nodes of the component on
a circle. The block-cutpoint tree is then laid out using a recursive radial algorithm. Edge crossings within a
circle are minimized by placing as many edges on the circle’s perimeter as possible. In particular, if the
component is outerplanar, the component will have a planar layout. If a node belongs to multiple non-trivial
 
starcraft???? yes pls :D
 
user6438501
@PeeHaa @Ekin what are y'all steam ID's? i'll add you later on tn? then hopefully we can start pwning sum nubs
 
11:02 PM
@Trowski The … the … the loop wrapper functions DISAPPEARED! *sobs* … // all fine, but somehow I'm a bit nostalgic now :-D
 
@bwoebi I had a love/hate relationship with them… they were convenient, but somewhat magical.
 
Anonymous
@Gordon yep, Motel looks like a goer. Thank you :)
 
11:39 PM
acc 0
exec 189
There's some resource with handle 0 which we try to activate… weird.
 
where is it set on windows, that the default extension dir is: C:\php\ext\?
basically, where is says that php's base dir is C:\php?
I see only include path in the php.ini
was it some environment variable?
... ehh, fuck it
just added the absolute path
 
11:55 PM
@Trowski found the Uv issue… github.com/amphp/loop/commit/…
Btw. you are allowed to facepalm hard now @Trowski
 

« first day (2266 days earlier)      last day (2681 days later) »