« first day (3049 days earlier)      last day (1913 days later) » 
00:00 - 17:0017:00 - 00:00

12:12 AM
@LeviMorrison I'm happy with that. :) Thanks
 
12:53 AM
@JoeWatkins I'm getting a warning: assignment from incompatible pointer type, but I can't see why. It matches as far as I can tell. Built on current 7.4 branch. Could you take a look please? github.com/php-decimal/ext-decimal/tree/php-7.4
It's the changes to the object handler signatures.
 
Evening, chaps.
 
@rtheunissen they are v8 changes, fixed ... lxr is out of date ...
 
Ohhh right right. Thanks <3
 
fixed lxr too, will take a while to update
/me sleeps
nn all
 
1:16 AM
nn
 
1:31 AM
@JoeWatkins (go sleep but fwiw 7.4 write_property returns a zval*, 7.3 is void)
 
1:45 AM
Hi
is their is someone here ?
 
1:57 AM
@rtheunissen Where is the API document?
 
it's on the 2.0 branch, not the copy-on-write proof of concept branch. Will delete that at some point.
 
Thanks.
 
2:13 AM
@LeviMorrison still a few @todo left to resolve in there actually. Maybe a decent starting point though, and we can test and demo it to see where there are gaps or bad decisions?
Maybe some up with some examples of how to achieve certain transformations or algorithms.
 
I have some odds and ends right now, like adding a count_elements handler.
I still don't like all the hyper-focused interfaces.
I also don't think you can implement all Set operations with the current interface, as they all depend on how identity is determined, which is not part of the interface.
 
Give me some specifics and we can hash it out.
We can combine some interfaces for sure, like SortableKeys can be merged into Sortable maybe. None of the others seem hyper-focused to me.
Identity and equality is defined by the engine.
 
@rtheunissen Yeah, I think that's pretty useless in current PHP...
 
But still defined.. I don't think we should try to redefine it here. It should be solved at the language level. Otherwise ever structure should accept a comparator, OR we have a Comparable interface in ext-ds which it honours internally but I want to avoid that if possible.
My current best foot forward is == for objects, === for everything else.
 
I agree is kinda sucks right now. Comparator<T> would be the best, imo, but...
@rtheunissen As determined by... which arg?
 
2:26 AM
I want to propose a Comparable RFC based on this branch: github.com/php/php-src/compare/…
No arg, it's just the internal ds "is_equal" consideration.
I don't know though.. should we consider strict types? ><
I like the idea of being strict only, regardless of strict types.
 
Can we just ignore these structures for our initial draft?
lol
 
Which?
 
Anything which needs Compare/Hash.
 
So.. map, set, bst, heap, priority queue.. ^^
 
Classes: Vector, Deque. Interfaces: Stack, Queue.
It's some plumbing, and we should have a more traditional deque impl, methinks.
 
2:33 AM
The best we can do is define a comparison policy and try to solve equality/identity at the language level. == for objects, === would be the safest imo.
Yeah totally, I'd like to see how it compares. Linking pages together rather than reallocating a single circular buffer, right? One contiguous buffer is much easier to refcount and set as gc though.
 
If you don't share, there's no need to refcount the "pages".
 
Why wouldn't you share though? If we want it to be traversable it must be shared.
Iterator invalidation etc.
 
The pages as a whole are shared, not as individual units.
Well, need to do family stuff for a bit. I pushed my commit that adds the Vector's count handler.
 
Thanks. I don't intend on adding to the cw branch - it was just to test the copy-on-write stuff.
2.0 will be the working branch.
Me too - laters. I think we can try the alternative deque implementation, but I suspect that reallocation of a contiguous buffer will be no worse than a linked page implementation for N less than some sensibly realistic upper bound.
I <3 circular buffers..
 
3:33 AM
We could do a bench-off between implementations.. sounds productive. ^^
- push, pop, shift, unshift N
- iterate over N
- create and destroy many instances
 
3:47 AM
I think we should ditch the Allocation class. It's just noise this early on, not sure if we need it at all ever.
 
4:09 AM
@DanLugg I have still done nothing.
 
4:32 AM
@rtheunissen So what specifically are you guys working on at the moment?
 
@StatikStasis Levi and I are collaborating on a data structure extension (v2.0 of ext-ds) and I'm also working on releasing v2.0 of ext-decimal.
@LeviMorrison Rust impl details a ring buffer for their deque. doc.rust-lang.org/std/collections/struct.VecDeque.html
 
@rtheunissen Ah- nice! I wasn't sure if you were both working on internals too or a separate project.
 
Many moving parts really. :)
 
5:07 AM
@rtheunissen Just finished looking through the draft... I can see- many moving parts- lots to do.
@rtheunissen Wow! Sorry for multiple pings- last one- I didn't know you lived in New Zealand. I have always wanted to travel there to visit the sights and... to visit where The Shire! You ever been there?
 
5:32 AM
I'm actually living in San Diego now but it's very recent. :) The shire is real and is pretty cool but the south island / Rohan and Gondor parts are way cooler.
 
@Tiffany Sorry- I'm late. I was off Monday and with so much talk on internals lately I miss a lot. So sorry to hear about the employment situation. 10 years is a long time.
@rtheunissen Nice! My two kids were out of school Monday (ages 5 and 16) and we actually made it a Hobbit Day. We watched the extended versions of all 3 Hobbit movies and the first and second LoTR. We've do it every so often. Was my daughter's first time.
@Tiffany Do your best to stay positive- something better is always available. Sometimes without being freed to find it you'll never take the risks needed.
Time to crash - 12:37am here. Night all.
 
 
1 hour later…
6:44 AM
\o
 
o/
 
7:13 AM
\o/
@LeviMorrison I have removed:
- PriorityQueue (php-ds userland implementation should be easy based on heap)
- Allocation (this seemed cool but is a distraction at this stage)
- SortableKeys (maps sort by key only, can look up value of each key in o(1) if needed)

Ref: https://github.com/php-ds/ext-ds/commit/38c0e1d13662fc96ce8f25f809886524bc843bf3
Oh and no more static from, constructor is now iterable $iter = null
Actually scratch that... also removing:
- TreeTraversal interface (methods now just part of BST - I think that is okay)
- No more `iterable $iter = null` constructors because push/add is variadic

Ref: https://github.com/php-ds/ext-ds/commit/90c80ceba6f6f98a295257756145d4f3ed516f00
So much nicer now. The heap update method is something to review though please. We would need something like that to support updating priorities in the pqueue.
Might be worth consider BST for pqueue internals because update would be O(log n) rather than O(n), but create would be O(n log n) with a BST vs O(n) with a heap. Will have to benchmark.. but for now we can just provide BST and heap and leave pqueue to userland.
:| Actually.. because we are trying to avoid exposing inefficient operations.. I have removed update from heap because the callable and O(n) is ugly. We can provide 2 pqueue implementations later on (in userland).. one based on BST which can update priorities (no duplicate keys though), and one based on Heap which can not update priorities (but can have duplicate keys).
 
7:47 AM
morning
 
Morning o/
@NikiC could you please confirm whether this was what you had in mind re: internal copy-on-write using a zend_object for the refcounted data store? github.com/php-ds/ext-ds/blob/cw/src/vector.c#L37
No urgency though :)
 
8:00 AM
obsequious marked by or exhibiting a fawning attentiveness
 
8:54 AM
@rtheunissen Looks about right :)
@rtheunissen to save on some indirection, you might want to use struct hack for the buffer data
assuming that the buffer object is never directly exposed (apart from gc, where you can manually unregister it), you should be able to reallocate it
But that's just optimization :)
 
if you document this somehow, all the DDD younglings will start writing half their application code in C so that they get immutable value objects ;)
 
@NikiC never exposed (see the class name ^^). I'll look into struct hack, I did think about it but thought keep it simple for proof of concept. Thanks for taking a look. :)
 
@beberlei every few versions we could toggle between php 4 & 5 object passing semantics
 
&$yesPlease!
 
Keep in mind that this won't affect the object's passing semantics. It is only to share allocations and support reliable iterators. The objects are not actually immutable.
Should be mostly invisible to the user..
(if it works ><)
 
9:17 AM
@beberlei though seriously if they were reintroduced today as structs it'd be a reasonable feature.. just hard to get people on board because the idea sounds too much like a joke
 
Hi, Any possibilities to implement mpm worker in windows apache to run multiple PHP threads..?
 
@Paul i do like the c# distinction between classes and structs
but it would require either readonly or get/set accessors to make them really immutable
its not a battle I would die for getting this into php :)
 
you don't need them to be really immutable, you just need to get rid of spooky action at a distance
 
test msg first time
 
@NikiC how do I reallocate the buffer data then? assignment to expression with array type
 
9:25 AM
@rtheunissen you reallocate the whole buffer object
 
Or do I reallocate the entire obj?
Nice nice, thanks.
 
It's a shame that the buffer data can't be alongside the outer object, because we're allocating two objects everytime. No way we could have a zend_object data in the outer (vector in this case) rather than the zval? We only need the zval because the get_gc handler requires that we set the zval**. Not sure if that makes sense..
 
@NikiC are you the one to poke to get access to close PRs etc on GH so I don't have to use that half broken tool at qa?
 
@Kalle What's your GH name?
 
9:38 AM
@NikiC KalleZ
 
@Kalle done
 
@NikiC You are a gentleman, I'll owe you a beer ^^
 
@rtheunissen You'll also have to drop the root from gc, in case it was registered
@rtheunissen GC_REMOVE_FROM_BUFFER
 
@beberlei ...
<?php
/* overload must exist before function it is overloading */
function fooOverload($foo, $a, $b) {
   $start = microtime(true);

   $retval = $foo($a, $b);

   printf("Foo took %.8f seconds\n", microtime(true) - $start);

   return $retval;
}

function foo($a, $b) {
   return $a + $b;
}

var_dump(foo(1,2));
?>
when the jit comes, you can write the tooling in php and have it be ~as fast as writing it in C, only a billion percent easier to actually write ...
[foo]
function=fooOverload
(gdb) r
Starting program: /opt/bin/php test.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Foo took 0.00001597 seconds
int(3)
[Inferior 1 (process 22141) exited normally]
 
9:49 AM
@JoeWatkins you are right, thats possible, and would actually show users the instrumentation in backtraces which is nice as well :)
 
I'm going to finish it anyway, intend to use the tool to replace uopz in the future ...
 
but then extensions should have a way of shipping php code :-D
 
you have one, it's called composer, right ?
you don't modify the extension, or ship it, you depend on it as a toolkit ...
 
most of our customres have applications that don't use composer, or not strictly require it, our current deployment workflow is "here have this extension, restart your php, and the magic happens"
 
well you could modify it because open, or you could write an extension that relies on it ...
but it's a zend extenison and you're not super familiar with that, so I wouldn't recommend it ... it doesn't use normal ini, or module globals, or any module, or any user functions ... it's a magic thing configured by itself ... it's also less than 300 lines of code at the moment, probably the simplest version of this sort of thing I've ever written, I'd prefer if it stayed that way ...
take the ideas and run with them if it suits you ... I'm going to get as far as method overloading and internals, then stop ... I know you need more than that ... so whatever ... you don't have to listen to my words :)
 
10:06 AM
@JoeWatkins i have leveled up considerably since collaborating with you on this. i will research much more in the next weeks/months and will look which way is the best
@JoeWatkins regarding FCALL_BEGIN
did we find out nobody is actually using it at all?
 
we found out xdebug wasn't using it ... but it's not useful pre 7.4
so it's not surprising ...
it may be useful for some sort of profiling, but not a useful one, it can't know what the args are going to be pre 7.4 ... so you can't use it for profiling, you can't use it for instrumentation, it was useless
in addition, there was not a way to enable extended fcalls on their own, and enabling extended stmt/fcall kills perf very badly ...
doing it now in the vm is not great either, but dmitry is going to fix it at least for the jit ... that's what I've got my eye on, not really vm ... it doesn't make sense to write tooling in PHP unless the tools are compiled themselves ...
begin/end are still not useful for profiling, specifically end is not really useful, you can do it, but it's really complicated ...
and you can't determine return value internally either ... the only reasonable way I see is handing over to userland, and that only makes sense if userland code is executing on the cpu ...
 
10:31 AM
@Kalle it wasn't smart to ask dmitry what to do, now we can't use the ffi early in a reasonable way, it has a fixed version number for the rest of this year so we can't tell how broken it is ... not smart at all ...
 
Yo
 
@JoeWatkins You can always assume it's the newest?
Doesn't really make sense to cater to old pre-release versions
 
it makes sense to be able to depend on a version we know works, versions are meant to mean something, and for the rest of this year it doesn't mean anything ... that's not useful, I dunno why you don't see that ... it's going to change and the version isn't, what makes sense about that ?
 
10:47 AM
Very urgent/important question!
How are you guys doing?
 
@JoeWatkins well he is the maintainer of the extension, I'm not saying what he did was correct but involving him in the debate is how it should have been. I do agree that if there is a dispute about the versioning then he should at least be reasonable enough to listen to the feedback
Blindly merging it was a bad move, no doubt just saying he should have taken part of the conversation
 
this was not a change that required his input at all, it was a packaging decision ...
crappy behaviour that you invited, and should have expected, of course if you ask him to make a decision (which you did), he's going to do whatever is easiest for him ... nevermind what it means for anyone trying to use it ...
 
I don't think that kind of behavior should be expected by anyone
 
well it looks to me like a request for a decision, no mention of giving an opinion or weighing in ... like him being the maintainer of the extension gives him the final call, I'm sorry but it doesn't, we weren't allowed to do whatever we wanted to phpdbg, why is different for him ? when we tried to change phpdbg we were told it doesn't matter who wrote it, it's part of core php, very loudly, by everyone ...
this is why zend treat php as their pet project, because everyone allows and expects it, and even invites it ...
 
11:06 AM
to me it didn't look like an invitation to do that at all.. you're pissed and you should be, you just got a spectacularly passive-aggressive "fuck you", but don't blame anyone for it except the person who delivered it
 
I cc'ed him to keep him included in the conversation as he is listed as the extension maintainer, not to force any decision because I honestly do not care if its 7.4.0 now or 0.1.0, but if you are changing something in an extension which someone else maintains should at least have the respect to notify whoever deals with it that something is intended to be changed, at least I think that is fair. Him being the extension does not give him the final call, you can see how Derick felt when the change happened to the auto detection of date.timezone, but he had to accept it because it was in the c
 
sorry, I do blame him ... sorry ...
I'd rather go back to code than think about it for another minute, or have an argument on internals about it, we all have more important stuff to do ... I'm just tired of the way zend behave, I didn't mean to lash out at you, that's not me ... sorry ...
 
It is cool Joe, I don't blame you
and I agree that the way Zend have been pushing things towards PHP in the later years, is a bit wrong imho. and it is curious how many that comes out of their "hide" to vote when RFCs that is Zend proposed comes to a vote, like Andi to name one
 
people come out of nowhere on all kinds of rfcs.. whatever their reasons are are their own
 
Naturally, but notice the volume for participation is generally higher for any Zend proposed RFC or where Zeev voices his opinion strongly in either direction, just ... interesting
 
11:16 AM
he voiced his opinion strongly on the narrow margins rfc and it's at 30-2
 
Yop guys :) Any good FTP Client for mac ? (I do not especially like FileZilla)
 
Which is good as it shows a turning tide @Paul
 
what "tide"?
 
@Paul he also voiced his opinion that it wasn't a legitimate vote ...
 
Hi, I'm using CoDa 2
as ftp also
(sftp)
 
11:24 AM
@Kalle @bwoebi did that one (wiki.php.net/rfc/date.timezone_warning_removal). Certainly his largest contribution to PHP :P
 
@JoeWatkins that kind of shit is an actual problem.. this fretting over who steps up to vote and why isn't far from it either
 
@Pietro I've read it's cool but ain't this solution expensive ?
 
well in general I like when people come out of the woodwork to vote, in general it means they care ... but at the same time, when ex/employees of zend come out to vote on things they haven't been involved in the conversation on, and just happen to vote zeevs way, it's a bit much to assume innocence ...
 
@NikiC most certainly!
 
o/
 
11:29 AM
that's indistinguishable from zeev having 5 votes to everyone elses one, isn't it ?
 
@JoeWatkins I totally agree there, which is the point I was trying to get at
 
@Baldráni uh, just found out it's a paid software :) I have it on my work mac e found it already installed/bought . Sorry :)
 
I know, it's my cup of tea to ask it here,.. but anyone anyone here has some skills in settings Goals for Google Analytics?
 
@JoeWatkins I prefer Z's approach in claiming illegitimacy directly over your passive weasel words trying to sow doubt over legitimacy without having the guts to say it
 
@Baldráni Check out Cyberduck also :)
 
11:31 AM
Shots fired
 
well whatever the reason, they are legitimate, if all the employees of zend want to vote one way then we can't stop them ...
 
@JoeWatkins unless you believe he's rigging the polls, actually entering votes in other people's names, then there is a huge difference
 
but it's not exactly innocent, we get accused of the same thing, and have never engaged in such behaviour ... and as far as I know not even two people have any sort of agreement that they will all vote one way ... do I think zend have such an agreement, yes probably, but we can't do anything about it ...
 
if you had evidence of an agreement like that, or any other improper behavior (e.g. zend pressuring employees to vote a certain way), there is something you could do about it - present it publicly on internals
 
I doubt anyone would give me evidence, but I've been watching a fair number of years now, and I can observe for myself what is happening ... and really, I don't think we could do anything about it, from their perspective it's perfectly fine, just a strategy to get the work zend does merged, or push php in a way that's conducive to their business goals ... I don't think we can have policy against it, but it can still annoy me, it still gives z more power than he's deserving of ...
 
11:40 AM
just as others observe what is happening and accuse people here of impropriety
 
not precisely the same, everyone here is an active contributor mostly ... they are actually involved in the discussion, involved in writing the code a lot of the time ... that's not the same as someone or some people who used to work for zend years ago coming out to vote and happening to agree with zend, having not been involved in the discussion, or php at all, for many years ...
 
you have no idea what discussion they're involved in, it doesn't all happen on list.. again, just like here
 
well it would be interesting to look at the public data, votes, I think they will show that we are in no sort of collusion, and that zend probably are ... but again, there's nothing actually wrong with that ... it just annoys me because it results in one person effectively having more power than everyone else ...
 
yes, it would be interesting to look at any kind of evidence instead of riding only on antipathy
 
I don't say it without evidence, while I can't provide numbers or a signed contract, nor is itt based on feelings, but observation ...
conversely when we are accused of it, it cannot be based on observations, because we do not in fact not vote the same way on everything
 
11:59 AM
I think they're cherry-picking observations that satisfy their biases and I think you are too
and I don't think anyone is doing it on purpose
 
now that all zend engineers are leaving, what "zend" is becomes less and less obvious anyways, Perforce just acquired RogueWave, so maybe it becomes even less relevant
literally the only question is, how is paying dmitrys salary in the future
 
12:19 PM
you could hire him for tideways
 
@StatikStasis yeah, I'm trying. Certainly not easy, but not as bad as I thought. I have a plan that I'm in the process of enacting. I'm just afraid of any sudden expenses.
 
@Gordon i just hired 2 new people, don't have much left over at the end of the month to pay another person :-)
 
@beberlei that's why you hire people. so that they increase the leftovers ;)
 
not happening overnight though :-)
 
hello
does Type Juggling increases the performance of comparisons statements
as in
$n = [1, 2, 3, 4, 5, 6, 7, 8 ,9, 10, . . . .];
foreach ($n as $i){
var_dump((int) $i > 0);
}
or does just using a simple $i > 0 faster because it doesn't convert the number's string?
 
12:44 PM
$i is already an int in this case, so it would basically just try to cast it to something it already is, even if $i was "42", then it shouldn't matter as the > operator would auto convert it prior to comparison (and I'm certain OpCache would optimize such stuff out).

To answer whether it is better to pass an integer or let PHP auto convert, I guess @NikiC would be the one to almost tell you in his sleep how many more cycles each does ^^
 
so there is no actual need to use it even if the $n variables were in quotes as strings and it would only add extra steps in the process?
 
Kalles-MBP:superapi kallesommernielsen$ php -r '$n = ["0", "1", "2", "3", "4"]; foreach($n as $i){ printf("Comparing %d to 0: %s%s", $i, ($i > 0 ? "true" : "false"), PHP_EOL); }'
Comparing 0 to 0: false
Comparing 1 to 0: true
Comparing 2 to 0: true
Comparing 3 to 0: true
Comparing 4 to 0: true
PHP is generally nice enough to help you along the way due to PHP's typing system, there are of course some operators which may behave differently if you pass an incorrect type to it (I think notably bitwise operators)
 
understood
 
@Tiffany Expect them- they will come. It's only worse mentally if you don't expect them. But expect to get through them.
 
1:32 PM
Hi My stackoverflow question got 2 answers, they are totally different answers but both totally relevent. What item should i choose to be the 'answer'?
 
1:45 PM
Who has the better username? I'd go with that one.
...And you should always provide a link so no one has to hunt down your question you're referring to.
 
I want to randomly generate URL links which redirect to a particular site.
I want to hide my original website domain name by the site where I want to redirect..
 
2:02 PM
That doesn't sound dodgy
 
Do the randomly generated links link to a spinning wheel game where I can win a free iPad or iPhone- when I was just trying to read an article?
Very dodgy...
 
2:16 PM
@NikiC I found a typo in the Consistent Type Errors RFC. "can additional specify" should be "can specify additional".
 
@TheodoreBrown or can additionally specify
:D
 
morns
 
@Jimbo That's a possibility, but I think "can specify additional" makes slightly more sense in context.
 
@TheodoreBrown Fixed, thanks
(Using @Jimbo's variant)
@ircmaxell can you point to the main code there?
Not seeing where the printf call actually happens in the asm
@ircmaxell oh, nevermind
@ircmaxell I do wonder though, if this is for JIT code, why the PLT?
 
2:53 PM
@NikiC this isn't JIT
I am building an AOT compiler first for a subset of PHP (simpler to parse, no zval, etc)
The will build the main JIT compiler in that language
 
@ircmaxell Ohhh
So you're building an AOT compiler, so that the JIT compiler is AOTd and can then JIT faster?
You're crazy
 
I am crazy, thank you
And precisely what I am trying to do :)
 
@NikiC what is a root / how might something get registered? GC_REMOVE_FROM_BUFFER where exactly? Sorry have no idea. Will attempt to read closer.
 
@rtheunissen when you reallocate, you need to GC_REMOVE_FROM_BUFFER the old object
To make sure that you don't leave behind a dangling pointer in the gc root buffer
@ircmaxell That was a compliment, of course :P
 
Well, otherwise how do you bootstrap the compiler? Without this AOT support, it would need zend running under
 
3:05 PM
@ircmaxell Well yes, but won't you need that anyway?
It's not like you're going to reimplement the whole stdlib
 
Not in C... But the goal would be in PHP
The only cases for native code there is the type specific functions...
 
I think meta will be making me have a nervous breakdown soon. We are slowly, but surely, going into the realm, already occupied by twitter, where accuracy doesn't mean anything, and people use any word they want for any meaning they think.
 
Part of the reason, is that I want to try to generate more specific code, less dynamic...
 
@ircmaxell That's a lot more ambitious than "just" a JIT though
I think it would be much better to start with something that can still call into Zend for the parts it doesn't support
 
3:25 PM
Well, I would still need the VM, no? Or are you suggesting I try to manipulate the op_arrays themselves and reuse the zend vm?
 
3:38 PM
@rtheunissen Oy, the Deque can't implement Stack and Queue if we have send/poll.
 
and or or?
It polls via shift.
 
But what if the Deque is currently being used as a Stack?
 
It only implements queue.
 
... then it isn't double ended, really, it's just a queue.
 
I think I see what you're saying though.. give me an example?
But you would never use it as a stack.
 
3:41 PM
Of course you would, a deque is an optimal stack lol
 
But vector uses less memory.
 
It's actually better than a vector, because in a vector when you hit the current capacity you have to reallocate and move everything. Deques do not (at least the linked-mini-deque kinds don't).
@rtheunissen Only marginally.
 
Jury still out on whether that impl is better in practice.
I think having deque implement queue is okay, but would be happy with a queue based on deque and have deque not implement either, and not send/poll either. send/poll should follow iteration order though right? How does that work for vector implementing stack then?
Maybe neither should.. back to square one
 
@rtheunissen As I suggested last time, the vector does not implement Stack.
Not sure on naming, but we could have Stack and Queue interfaces, and then LinkedStack and LinkedQueue implementations which internally use a deque.
 
I was considering Stack and Interfaces/Stack
 
3:53 PM
Not a fan -- normally you'd want things to use the interface name for all boundary conditions, right?
Maybe you are one of those people who use Ds\Interfaces\Stack; everything up at the top.
 
interface WinkWinkNudgeNudge {
    public function in($sayNoMore);
    public function out($sayNoMore);
}
 
@NikiC my main concern with binding to Zend, is that either 1) I am bound to their data structures or 2) am bound to the performance cost of translating back and forth for every call in/out.
and binding to their data structures is going to be very non-trivial, since PHP doesn't have a way to express a lot of those constructs (further complicating any code that touches those structures)
 
4:14 PM
@LeviMorrison I do use everything at the top usually. Not a fan of the suggestion either though so nvm. I like stack and queue as interfaces that also define some behaviour (Eg poll is pop etc), is just a matter of naming. LinkedX is.. not quite right. DequeQueue haha
 
Well, "linked" would be correct. It's just that a linked node doesn't hold only 1 value, it can hold X values.
X is determined partially by the optimal allocation size. Not sure if the zend memory manager stuff exposes that.
 
posted on February 20, 2019 by CommitStrip

 
Hey, I'd like to raise a discussion about the PHP-7.4 branch be the default in GitHub. I see a lot of PR been open against the master, instead of that one. Should be in internals@?
 
It's a bit of an implementation leak though. I'd rather DefaultStack or SequenceStack but not sure.
 
@rtheunissen Heh, if there isn't any implementation leak, how do you differentiate between all the impls? :)
 
4:20 PM
@GabrielCaruso irccloud.com/irc/efnet/channel/php.pecl first probably...
 
@Danack Thank you
 
@LeviMorrison you got me again 😂
 
Hey. Any pro docker to help me on a little thing ?
 
@Baldráni I'm not a pro, but just ask and someone might know.
 
It might be trivial but it's not the first time I got stuck on this.
I want to work with a wordpress (don't blame me I don't choose the client) in local so I've started with a basic docker-compose which use the wordpress img on docker hub and a db.
Only thing I miss is how do I copy ma volume on local too (as well as in my container) so I can edit them from my local and not in my container ?
 
4:24 PM
I really like having vec and deq implement stack and queue. :<
 
Or not as well by the way. I'm not sure on this one.
version: '3.3'

services:
   db:
     image: mysql:5.7
     volumes:
       - db_data:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: somewordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress

   wordpress:
     depends_on:
       - db
     image: wordpress:latest
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_USER: wordpress
       WORDPRESS_DB_PASSWORD: wordpress
So you've got an idea
 
And neither should send/poll.
Can always create a container that polls a stack.
 
If such a container exists, then Vector does not need to implement Stack; just use the container.
 
volumes:
      - .:/var/www
 
Or polls a queue. If you want to poll a deque as a stack, you could wrap it in a container that does that.
 
4:27 PM
Simple as that @Danack :) ?
 
@Baldráni or wherever wordspress is expecting the files to be
yep.
 
@LeviMorrison do you have any references for send/poll, something we can base this on or draw from?
 
but in the wordpress entry, not the top-level volumes entry.
 
Yep 'allright
I guess I'm loosing everything if rebuilding ?
 
Unless Deque impl stack as well but neither send/poll, requiring an adapter.
 
4:29 PM
no....
 
Beautifull =)
Thanks a lot I'll try this out right away
 
well, only files you edited by hand inside the container that aren't mapped in from the outside.
 
--build is not enough ?
I have to delete my container ?
Okay never mind
I just had to down first
Ty ! <3
Ho and since I'm there, I dont know how to expose my db to Sequel Pro
Add something like
expose:
 - "3600:3600"
?
 
Looks like this page deserves a little bit of love wiki.php.net/todo/backlog
 
@rtheunissen No. I can't find any standard libraries which do this, which is annoying because you have to create your own adapters.
Or they call it push/pop regardless of what it does. I think C++ does this.
 
4:37 PM
Lets implement where it makes clear sense, and provide adapters for interfaces. I'll adjust a bit send you a diff. I think this has potential..
Naming this interface though ><
Transferable?
I'll go with that for now but is not final at all.
 
@Baldráni ports
ports:
  - "3306:3306"
 
@rtheunissen It definitely has an order, but the order is structure dependent.
OrderedCollection?
 
Maybe Sequence wasn't named very well?
I want to reserve collection for iterator things.
 
OrderedDataStructure? Teehee
 
OrderedThing. How do you feel about a userland "extension" of the ext? Like a contrib package. Because there are a few things here that do not benefit much from being internal.
final class StackTransfer { ... eh
Deque implementing both Stack and Queue introduces ambiguity in first() and last(). Should we change that to front() and back() ?
 
4:46 PM
Stacks/Queues don't have first/last. Where is the ambiguity?
 
peek()
 
We already got rid of that one? A queue can't have it if you want to support a parallel queue with the Queue interface.
 
Anyone familiar with pagination in laravel 4.2 ?
0
Q: Laravel 4 pagination links empty page

divHelper11I have a query returning hundreds of database records. As I am trying to paginate it using Laravel 4.2 method. Links are showing and they direct me to search-view?page=1 and so on, but the links open empty pages with no results. Only the first page contains results. When I am trying to show the...

 
We did yes, I was just reevaluating that decision for a second.
@LeviMorrison BST poll removes root - okay or nah?
ie. follows inorder
        public function poll(int $n = 1): Traversable {
            foreach ($this->inorder() as $value) {
                if (!$n--) {
                    return;
                }

                $this->remove($value);
                yield $value;
            }
        }
 
@divHelper11 you would almost be better off asking at lhttps://larachat.co/
 
4:57 PM
I hate it when I come into a room intending to do something very specific, and completely forget what it was...
 
@Tiffany Maybe reply to something specific?
 
@rtheunissen poll is inherently destructive. However, I'd argue that BSTs do not have any inherent order.
Wait, BSTs do. I meant just binary trees.
 
@rtheunissen it was something I was intending to do in meatspace. I think I remembered what it was, but I'm not sure if there was something else. Oh well. I have errands to run.
 
a BST would remove the smallest node, not the root, yes?
 
00:00 - 17:0017:00 - 00:00

« first day (3049 days earlier)      last day (1913 days later) »