« first day (2403 days earlier)      last day (2552 days later) » 

user7104802
12:04 PM
hi guys
 
hello
 
12:28 PM
hello from the otherside.
hahahaha, that flag… hilarious
> How fool you are man, just because of one post, how can u banned someone? don't your mother giving u food at home? beggar
hahahahahaha
 
:D
 
what kind of insult is that?
 
Doesn't your mother give you food at home bro
 
@Gordon must be some regional thing
 
It's an indian thing.
 
12:32 PM
sounds like a roundabout way to call someone "bastard"
 
Ugh dat API
@return array|bool|Attachment[]
 
@tereško That's "it's a french thing"
 
@PeeHaa oxymoron
dunno, look at mnapoli's thing
I have never tried to do anything with imap because every time I go anywhere near email I get this overwhelming urge to kill
 
@DaveRandom mnapoli uses horde too iirc
 
Anonymous
and now jeeves is on a watch list
 
12:48 PM
11 messages moved to Trash
 
I will never learn how to use this command properly :(
but it's not my fault. who would expect remove 6 to remove 11 messages? who?
 
Anonymous
back off, it works perfectly.
 
Anonymous
@Gordon it removes his last 6 messages along with their commands. Why would you want to leave the commands?
 
because I asked to remove the last 6 messages
 
Anonymous
go away.
 
12:52 PM
Is a command not a message?
 
thenextweb.com/insider/2017/05/15/… this is next-level shitty behaviour
 
Anonymous
@Jeeves you ok?
 
@JayIsTooCommon I'm good what about you?
 
Anonymous
that was sloow
 
Anonymous
!!wotd
 
12:53 PM
Luddite: someone who is opposed or resistant to new technologies or technological change.
 
Anonymous
@Gordon ^
 
> 1. Anything that is in the world when you’re born is normal and ordinary and is just a natural part of the way the world works.
2. Anything that's invented between when you’re fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it.
3. Anything invented after you're thirty-five is against the natural order of things.”
 
Anonymous
:P
 
but apart from that: when I say six, I mean six and not 11. go away with your stinking assumptions of what I want. I asked for six explicitly. not six with something. but six.
 
Anonymous
sshhhh
 
12:56 PM
@JayIsTooCommon don't your mother giving u food at home?
 
Anonymous
that's just offensive.
 
@JayIsTooCommon what, your mother's cooking?
 
Anonymous
rude.
 
Anonymous
o/ felix
 
1:12 PM
yo. Is it me or is your skin growing thinner by the week @JayIsTooCommon? Soon you'll be telling us to actually answer laravel questions.
(ps I love you)
 
Anonymous
I'm very thick skinned, i'm mostly being sarcastic or kidding :P
 
@JayIsTooCommon obvious from how you implemented remove. because you must be kidding! :P
 
Anonymous
Flagged.
 
@FélixGagnon-Grenier He does have quite a thick skin, in fact it accounts for 40% of his height
 
@JayIsTooCommon get some food
 
Anonymous
1:19 PM
are you calling me fat??
 
No I'm calling you small vertically retarded, very badly
 
Anonymous
lol
 
Anonymous
Dec 1 '16 at 15:11, by JayIsTooCommon
@DaveRandom I'm not small, you're just weirdly tall
 
s/ly tall//
 
Anonymous
:B
 
1:24 PM
Heh. :D
 
@DaveRandom or you need to extension to group tabs ... or vivaldi
 
:P
 
in SO Close Vote Reviewers, Jan 11 at 19:48, by JAL
now I can open all of the Chrome tabs
 
1:37 PM
@FélixGagnon-Grenier Such Docs drama :(
 
yeah...
I mean, am I just not understanding what they are saying @Machavity? For one, I would mostly burn chaining, but let's say we play, what they want is to force a custom type return. As far as I can tell, it's possible.
 
@FélixGagnon-Grenier Honestly, I've lost track of what he's asking for now. One of them is throwing around words and I'm not sure he knows what they mean
I think they're trying to warn against an edge case with Interfaces but, with enforced return types, I think you're right that it's moot
 
1:55 PM
I think they're not quite clear on what they are actually trying to do, the more I think about it. You can very well implement method chaining over an interface if that's your wish, but pre php7 there is nothing an interface can actually do about chaining.
 
Yeah, I reread it and it still doesn't need a warning. If you choose to chain in 5.6 or earlier, interfaces can't influence that at all. Yes, it could be confusing, but that's why you add comments in your code
 
2:13 PM
unlink ignores verify_peer – #74598
 
O_O
doing it wrong
 
\o
 
2:20 PM
\o/
 
o7
 
p7
 
mine goes to 11
 
I insist ... 4
 
2:27 PM
I prefer to rate things on a scale of 12 to 11, where the numbers are arranged as though on the face of a clock
 
if you insist then. 4 it will be, gentleman.
 
user7714918
Whats is the purpose of the getRepositry() method in Symfony PHP?
 
doesn't matter, current topic is 4, or some other number ...
 
8
 
2:34 PM
looks efficient ...
 
#wannacry
 
#shouldHavePatched
 
2:50 PM
Seems it was patched with no kill switch for another round.
 
@Ekin In fact it seems it's just a jump around without a recompile.
 
ahhh, the ever elusive kill-kill-switch-switch :P
 
democratizing classical music, one hockey player at a time
 
3:10 PM
@FélixGagnon-Grenier classical music is a product of white male patriarchy and it has to be destroyed to decolonize the society
 
lol. perfect
 
(there is probably several scientific publications about it)
 
also evidenced by me being prominently at the front of the orchestra, while the women are behind (and obviously, this has nothing to do with skill, it should be 50/50) all the while wearing that dreaded patriarchy inducing hockey apparel.
How could I.
 
@kelunik I don't write C yet, but this is funny :)
 
@Jimbo "funny" would not be the word I would choose to describe it
 
3:28 PM
I have to go for a few hours, but left y'all with a nice drama from docs. Please handle this responsibly.
... and explain to the guy what's the difference between implementation and interface definition...
 
good morning
 
Anonymous
@Tiffany Sorry, I was out. Do you still need it?
 
Anonymous
3:44 PM
It needs a little update probably gist.github.com/samayo/428beedaec52f54436db
 
Anonymous
@Orangepill morning
 
@samayo I'm at work now, so I grabbed it. I sent it to my boyfriend over IM for safekeeping. Cause I'm lazy like that.
I could just email it to myself but meh
Thanks though :)
 
Anonymous
Or you just check your 'starred' gists
 
Anonymous
It'll be there since you are the only on who starred it
 
Oh yeah. I forgot about that. :$
 
4:05 PM
mornign
 
Anonymous
yo poop
 
jayman
 
Anonymous
Damn it!! I pushed a website for religion and religious people, where among other things people can add a name & location of nearby churches.
 
Anonymous
I pushed the site with a dummy data in database, and one of the churches listed was name "Church of Batman in Angola"
6
 
Anonymous
/i'm going to hell for this
 
4:15 PM
:D
brilliant
 
Anonymous
4:32 PM
lol
 
@bwoebi I'm around if you wanted to chat about the stream package.
 
@Trowski I think the current solution suggested by @kelunik is fine
@Trowski I am though mildly annoyed that we essentially end up having two different APIs for iterating
@Trowski more basically: that we have two different incompatible interfaces
 
@bwoebi Modifying Message also adds another layer in Aerys for bodies, which I'm not thrilled about.
 
@bwoebi True, but I think it's better to have them separated.
 
@Trowski right
 
4:37 PM
@bwoebi Right, but one is for sets in general and one is specifically for bytes, so I'm ok with that.
 
@Trowski Please stop microoptimizing everything.
 
What about a ByteStream\read(Iterator $it): Promise function instead?
which will then consume the fundamental Iterator functions?
that way it's just one interface
 
An iterator providing the byte chunks is a pure implementation detail.
 
@kelunik It's not about performance, but about the layering … Every layer adds some complexity.
 
Right. How Aerys creates it's bodies is an implementation detail we could change.
 
4:38 PM
@bwoebi I don't want any InputStream to be an Iterator.
 
@kelunik well, an InputStream is an Interator, inherently.
And an Iterator is an InputStream.
 
@bwoebi The complexity isn't an issue. All these classes are simple enough to easily understand them.
 
Iterator is fundamentally just another name for InputStream
 
@kelunik Being that it happens for every request, performance is a big consideration. That being said, I don't think one small layer here is going to matter much.
 
@bwoebi An InputStream provides chunks of bytes, an iterator should usually provide meaningful objects / iteration items.
 
4:40 PM
@bwoebi Sort of how string is a special case of array.
 
@Trowski sort of, yes.
 
@Trowski It's one small layer. And response bodies aren't the bottleneck.
 
@kelunik my point is: I'd like to avoid layering as much as possible.
 
@kelunik Definitely not. Most requests don't even have a body.
 
Also: people generally will interact with a Message at the application level, not mess with inputstream or iterator
please, what's actually bad about ByteStream\read(Iterator $it): Promise?
 
4:46 PM
@bwoebi What's the advantage of that? Before doing that we could just use the iterator API directly.
 
The advantage is that you decouple it. Now everything is an Iterator and can use Iterator APIs, without conversions.
 
@bwoebi Decouple?
 
@kelunik yes, you decouple the Iterator from what it iterates over
It's not a string iterator, but just an Iterator.
If we happen to have generic iterator functions, they can just interact with the Iterator.
 
@bwoebi We have them, but most generic iterator functions do not apply to readable byte streams.
 
@kelunik most, yes. Some may do though.
 
4:52 PM
I think I'd be more likely to agree with you if PHP had generics, but without them, InputStream is way cleaner IMO.
And I totally dislike having OutputStream, but no InputStream.
@Trowski Are you fine with the byte-stream PR? Could you merge that?
 
@kelunik essentially, Emitter == OutputStream though
I feel like it would be a great idea to unify the APIs and not segregate things whether they're now string data streams or not
 
@bwoebi Kind of, but not really.
 
@kelunik yeah, emitter is like a pipe() call where you return the input stream to caller instead of being given the output stream by the caller and have no control about where the input stream goes to.
it's a special case of outputstream, to put it that way
In general, I imagine having a special class with the public API being just emit(), complete() and fail() … and the private (i.e. controlled by the class returning that class) API is then the interface of Iterator.
basically inverse responsibility of current Emitter
that is what OutputStream currently is.
So, @Trowski before going with the separation mess, I'd really like to consider unification on both levels (input (iterator) and output (emitter))
 
Why have fail on the interface when we just decided to remove close from *Stream?
And what are your naming proposals?
I'm a bit tired of changing all the things...
 
5:08 PM
@kelunik yeah, indeed, we shouldn't have fail() on the interface.
@kelunik says the one who changed all the things in amp… // let's not argue about that now.
 
If there are going to be separate interfaces for byte-streams, I don't think using the same method names makes sense. What we have now makes a lot of sense.
 
@Trowski I'm talking about not using separate interfaces
 
^ I fully agree with that and would just go with that for now. (what Aaron said)
@bwoebi I don't see any reason to type hint Emitter anywhere except for byte streams.
 
@kelunik well, essentially, if we'd do it purely, we'd have to construct an Emitter ourselves and pass Emitter->iterate() to the output stream
 
wat?
 
5:19 PM
evening room
 
@bwoebi I get what you mean since fundamentally Emitter and OutputStream are the same thing, but strings and arrays are usually treated in differently, and people think about them differently. I think it makes sense to have an interface that is devoted specifically to strings.
 
@Trowski It makes some degree of sense, I'm quite skeptical about it though. I wouldn't now try to change it at that stage, but when we're working on a better API some day, we should consider changing that.
 
I'm sure node struggled with this problem as well, yet they have separate APIs for byte-streams.
 
I'd like to ignite the thoughts about restructuring it, but now is the wrong time to change it. Go with what we have now; we can revisit that later and toy with it.
It would be too much of exploring new ways right now.
 
@bwoebi Sure, I'm always willing to revisit these things down the road, especially if we find something is cumbersome.
@bwoebi Exactly. At this point I think we have some pretty nice APIs. We should be trying to update and stabilize all the various packages so we can write docs and promote Amp.
 
5:26 PM
@Trowski I'm expecting it to be cumbersome in some ways. It's an acceptable API though.
 
On an unrelated note… who decided that disallowing pasting into certain fields (in this case a bank routing number) somehow made things more secure.
Instead lets make the user type the routing number twice.
 
static void php_concurrent_execute(zend_execute_data *execute_data) {
	int ret = SUCCESS;

	while (1) {
		if (EG(timed_out)) {
			zend_timeout(0);
		}

		if (ret == SUCCESS && execute_data) {
			ret = zend_vm_call_opcode_handler(execute_data);

			if (ret < SUCCESS) {
				if (!CCG(top)) {
					return;
				}
				execute_data = NULL;
			}
		}

		if (CCG(top)) {
			swapcontext(&CCG(vm), &CCG(top)->ctx);

			if (CCG(vmret) < SUCCESS && ret < SUCCESS) {
				return;
			}
		}
	}
}
looks quite tidy now ... partly broken still though ...
you have to ignore nesting, it wasn't me ...
<?php
$function[] = function() use($i) {
	for ($i = 0; $i < 29; $i++) {
		echo "BA" . $i . "\n";
	}
};

$concurrent[] = concurrent($function[0]);


for ($i = 0; $i < 10; $i++) {
	echo "FF" . $i . "\n";
}



var_dump($function);
?>
BA0
FF0
BA1
FF1
BA2
FF2
BA3
FF3
BA4
FF4
BA5
FF5
BA6
FF6
BA7
FF7
BA8
FF8
BA9
FF9
BA10
array(1) {
  [0]=>
  object(Closure)#1 (1) {
    ["static"]=>
    array(1) {
      ["i"]=>
      NULL
    }
  }
}

BA11
BA12
BA13
BA14
BA15
BA16
BA17
BA18
BA19
BA20
BA21
BA22
BA23
BA24
BA25
BA26
BA27
BA28
sorry for walls-o-text
 
@JoeWatkins did you make echo yield?
I'm thrilled :o)
 
@Trowski Instead of having error detection mechanisms inside the number...
 
yes, and no ...
 
5:34 PM
@kelunik well, the user could do two mistakes… ………
@JoeWatkins hm?
 
I can't get words out ...
 
@JoeWatkins well, code will tell too :-)
 
well I thought it did ... there's a swapcontext in the vm main loop
 
@JoeWatkins yeah, but I don't know when CCG(top) will be set?
 
@bwoebi Have more parity bits...
 
5:39 PM
@kelunik I don't think routing numbers have any sort of verification. However, some sites will look up the associated bank and ask if that looks correct (this one of course did not do that).
 
CCG(top) is linked list (at the moment) of concurrent calls in progress, it's a call stack (zend_execute_data*) <- currently there are modifications to zend_execute_data struct, but only so I could get the plan right ... I hopefully don't need to modify source code ...
 
@kelunik Heh, was just about to click merge. :-D
 
I got the rest of this week off work, due to minor surgery tomorrow afternoon ... so I should have a few days to get something I can put on github and you can play with ... I've totally got the hang of this context switching business ...
 
@Trowski That would be pretty stupid. IBAN does have such a mechanism. en.wikipedia.org/wiki/…
 
and then you can tell me it's all wrong ...
oh also, you have to suggest an api
 
5:44 PM
@JoeWatkins yeah, but you only want to actually swapcontext if there is a blocking op pending …?
 
@kelunik Turns out there is a check digit: en.wikipedia.org/wiki/Routing_transit_number
 
php: src/unix/core.c:876: uv__io_stop: Assertion `loop->watchers[w->fd] == w' failed.
Abgebrochen (Speicherabzug geschrieben)
^ Yay, segfault @bwoebi
While executing Artax' tests.
 
@kelunik Hopefully this commit will take care of that. I'm surprised that warning isn't always issued… /cc @bwoebi
 
@JoeWatkins well, new Concurrent(), Concurrent::yield() (static method) and Concurrent->continue() (method on the object), I guess, as fundamental API?
 
I haven't got any good ideas re api, I'm just focusing on the engine stuff for now ...
 
5:48 PM
@Trowski it isn't?
@JoeWatkins essentially, the API is just these three functions
 
@bwoebi If it was I would expect tests to fail.
 
there is already a way to perform co-operative multi-tasking, so I'm a little confused by the suggestion ?
 
@JoeWatkins the point is that you can natively backup a whole context and not have to pass down coroutine contexts manually everywhere
@Joe or am I misunderstanding you?
I'd really like to see what you've done - a private repo is fine too
 
We have also deflate support now, not only gzip. \o/
 
not to criticize your code, but to see what you've done, mainly @Joe
 
5:53 PM
@Trowski Tests pass without that warning now, but not sure if case by that commit.
 
@kelunik I guess you've also pulled some other commit?
 
@bwoebi @Trowski Do git clone amphp/byte-stream && cd byte-stream && make => works. Do git checkout HEAD^ && make and it fails with that assertion error.
Guess it only happens if exceptions are thrown in specific places.
 
@kelunik Still?
 
Yes.
 
I only just got to complete execution and shutdown without segfaults, and it still faults when you do anything complicated ... let me work on it a while longer ...
 
5:57 PM
How you all doing?
 
maybe you could think about what criteria we could use for pre-emption, at the moment it's dumb but works (tm), I'm unsure how you could determine analytically that an operation is blocking ... in a non stupid way ...
 
@JoeWatkins Please without any preemption.
 
@kelunik I'm not seeing that issue. However I haven't updated the uv extension in a while, so maybe that's it.
 
@JoeWatkins well, you'd make all streams non-blocking (internally) and yield then (if it's marked blocking by the user)
 
@kelunik Nope, fresh compile of the uv extension and it seems to work fine.
 
6:02 PM
@Trowski Did you git checkout HEAD^?
 
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - friendsofphp/php-cs-fixer v2.3.1 requires php ^5.6 || >=7.0 <7.2 -> your PHP version (7.2.0-dev) does not satisfy that requirement.
    - friendsofphp/php-cs-fixer v2.3.0 requires php ^5.6 || >=7.0 <7.2 -> your PHP version (7.2.0-dev) does not satisfy that requirement.
    - friendsofphp/php-cs-fixer 2.3.x-dev requires php ^5.6 || >=7.0 <7.2 -> your PHP version (7.2.0-dev) does not satisfy that requirement.
omg…
(--ignore-platform-reqs to the rescue… but …)
 
@bwoebi Yeah… and we already tried getting them to remove <7.2.
@kelunik Yep.
 
@bwoebi You have to pass it when running as well...
@Trowski Sorry, artax, not byte-stream.
 
@kelunik running what?
 
6:04 PM
@kelunik oh…
 
@bwoebi php-cs-fixer
 
not intending to run that anyway
 
@bwoebi Just type make before commit, it'll fix everything. :P
 
@kelunik Which branch? 3.x?
 
@kelunik I'm not keen of scripts changing my code…
 
6:06 PM
@Trowski yes
@bwoebi It shows you the diff and didn't do any stupid things yet.
 
Error: Call to undefined function idn_to_ascii()
sigh
I'm out
 
weeks ago you suggested me a local version control which was windows-OS based. Are you remember? @tereško
 
@tereško Are you here?
 
6:22 PM
 
@tereško thx buddy !
 
@Charlie is there any particular reason why you pinging me?
 
I'm the guy that was here yesterday talking to you about the oop and procedural..
@tereško I'm changing my project to oop and I got a question for you if you can help me out. I don't think this deserves a question in stackoverflow. I think the chat could help me out better
 
@tereško @tereško Just one thing, are you sure this link is the one you gave me already? as far as I recall the old one has an image of galaxy in the background
 
how do you handle pivot table data in entities? for instance, if you had "users" and "subscriptions" and "user_subscriptions" that included subscribed_at, how would you represent that in code?
 
6:27 PM
@bwoebi No way around that. :P
 
@kelunik In that case I will block 3.x.
 
@bwoebi What?!
 
for example, if i were to load: $subscriptions = $user->subscriptions() where would be a good place to contain that information, since it isn't strictly part of the user or the subscription itself... do you create UserSubscription extends Subscription that contains that additional info, or something else?
 
I'm dead serious about that. Requiring ext/intl is a blocker for me. @kelunik
 
@bwoebi Why?
 
6:30 PM
@kelunik Amp must be runnable with the default extensions.
Everything else requiring exts (like uv, intl or whatever) must be optional.
 
@bwoebi Amp is runnable and it's a bundled extension.
 
@kelunik (With Amp I mean all projects of amphp)
 
@bwoebi packagist.org/packages/league/uri has that requirement as well.
 
@kelunik It's bundled but not installed by default.
I do only distinguish between: installed by default or not.
I don't care about it being bundled or whatever.
 
fwiw, i have a similar problem with league/uri... i wanted to use it, but not ext/intl is not available on our servers and we can't add it
 
6:33 PM
@bwoebi We can also throw exceptions on IDNs.
 
@kelunik I'm fine with that.
 
@bwoebi But we need to change the public suffix list in the repository for that...
 
@kelunik you can easily convert it locally, or with a tiny script, when updates are needed
 
@bwoebi Ideally it would be fetched and cached dynamically.
 
Did anyone heard about this ransomware malware?
 
6:41 PM
@Charlie sure, ask away
@Shafizadeh hmm ... lemme check
 
@kelunik ideally...
Ideally all extensions would be always available when needed…
 
@tereško So basically you have a class "User". You instaciate it in test.php: "$user = new User($login);". You would like to do in testB.php: "$user->getLogin();". I saw online you had to "include('test.php')". That is cool. It worked wonders. But I'm having a problem with a more complex problem.
 
@Shafizadeh they might have changed the design, since I last time linked you to that page ~6 months ago
 
@tereško I have login-exec.php: "$user = new User($login, $password); $user->loginIntoWebsite();". At page profile I'll make the "include('login-exec');" but it gives me the error "Cannot declare class x, because the name is already in use in bla bla bla"
any hint? I have been looking for 2 hours to a solution but with no luck
 
@bwoebi I don't agree with that. Just the base components.
 
6:46 PM
@Charlie are you using an autoloader?
because it look like you are trying to include the file, which defines User class, twice
 
@kelunik A http dispatcher is pretty basic. If you talk about something like twitter stream API, well, then I may agree.
 
@tereško I have a file called "includeClasses.php" that include all the classes in my project.
I have erased the "include(<allClassesPath>);" in my login-exec.php and it's not giving any errors anymore. I'll try to print some values to make sure everythign is working correctly
 
can you give me the full error message?
without "bla bla"
 
"Fatal error: Cannot declare class Identifier, because the name is already in use in C:\xampPhp7\htdocs\easyrifPOO\lib\Classes\Identifier.php on line 11"
 
Anonymous
it can't get simpler than that
 
6:51 PM
@Charlie search your project for "Identifier"
you should see two file, that contain "class Identifier"
or you are somehow including that php file twice
 
parse_url allows bad characters in the common name – #74599
 
!!dad
 
What did the officer molecule say to the suspect molecule? I've got my ion you
 
@tereško facepalm. User is a child of Identifier. User includes Identifier. No need to include Identifier in includeAllClasses.php. If that makes any sense to you
 
@kelunik an option would be to simply polyfill idn_to_ascii if not available? (RFC 3492)
 

« first day (2403 days earlier)      last day (2552 days later) »