« first day (3048 days earlier)      last day (1900 days later) » 
00:00 - 19:0019:00 - 00:00

12:04 AM
I wonder how much php-src test time is spent printing out "SKIP Test..."
 
    $ctxt = gcc_jit_context_acquire();
    gcc_jit_context_set_bool_option($ctxt, GCC_JIT_BOOL_OPTION_DEBUGINFO, 1);
    $void_type = gcc_jit_context_get_type($ctxt, GCC_JIT_TYPE_VOID);
    $const_char_ptr_type = gcc_jit_context_get_type($ctxt, GCC_JIT_TYPE_CONST_CHAR_PTR);

    $param_name = gcc_jit_context_new_param($ctxt, null, $const_char_ptr_type, "name");

    $func = gcc_jit_context_new_function(
        $ctxt,
        NULL,
        GCC_JIT_FUNCTION_EXPORTED,
        $void_type,
        "some_func",
And hello world is running :)
using the FFI I can generate an executable. The only thing I can't do (yet) is call that code inside of PHP (jit) because it doesn't have access to call functions (smartly disabled in FFI)
 
@pmmaga We dont manage the Jenkins server and arent allowed.
 
12:22 AM
I don't want to ping unnecessarily, but can someone tell me if this is a safe assumption?

It's a number type immutable object that creates a new instance to store the result (c = a + b). The assumption I'm making is that an instance with a refcount of 1 can be used to store the result, avoiding the need to create a new instance. This is for cases like `$c = Number::valueOf($a)->add($b);` . https://github.com/php-decimal/ext-decimal/blob/2.0/src/decimal.c#L390
 
Hi phpers, do any of you have any recommendations for an IDE?
 
phpstorm
 
PHPStorm.
 
thanks was just looking at that
i hope ur evening are bug free! :)
 
1:16 AM
$result = gcc_jit_context_compile($ctxt);
$void = gcc_jit_result_get_code($result, 'some_func');
$cb = getFFI()->new('void(*)(char*)');
FFI::memcpy(FFI::addr($cb), FFI::addr($void->getData()), FFI::sizeof($cb));
$cb("World");
HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
 
you're a wacky dude, you know that?
 
I take that as a compliment :D
and since this is using GCC under the hood, can compile this code with -O3
 
1:39 AM
@ircmaxell what is the problem you are trying to solve?
 
building a jit compiler in php for php
 
2:03 AM
I'm sending email using the php mail function but my messages are being sent to a spam inbox
or being marked as spam by gmail.
How can I avoid this?
 
Use a trusted smtp server.
 
sounds expensive
 
Could use the Gmail one but is limited to (I think) 1000 a day or something.
There are others, but ymmv
Sendgrid etc
 
Anyone use DomainKeys?
 
2:29 AM
@JustinKaz I did a long time ago when I tried to run my own email server but it was a lot of work and spam was very hard to avoid.
 
Im looking to create a Mailing service that accepts a payload (attachments included), anyone know how or have references to set up headers to receive such a payload?
 
2:43 AM
@JustinKaz Probably the most important thing is to make sure the IP sending the email is listed in the SPF record for the domain.
Then use something like SwiftMailer to send the message.
Don't use the built-in mail function yourself, it has too many pitfalls.
 
@Trowski That's what i'm doing. Thank you!
@Paul Thank you!
 
you're welcome
 
3:20 AM
Well, I'm going to have to find a new job now.
No choice in the matter. It sucks, but I fucked up so it's my fault.
I'll have lots of time to contribute to open source...
@ircmaxell the next step in PHPPHP?
 
@Tiffany :( you okay?
 
@Paul I've had better days, but I'm trying to focus on what I'll need to do. I can't change the past.
I'll have to hit up the unemployment office tomorrow morning.
 
that's rough. glad you're already looking forward
 
Part that sucks the most is no more coverage for my mental treatment or medications, I'm going to have ration them out or try to get a coupon from the manufacturer that will hopefully bring the cost to a manageable price. One of them costs around 300 USD without insurance.
 
no other aid in your state? nothing like medi-cal?
 
3:32 AM
There is, but from what I understand, the coverage sucks, I don't know if my medications will be covered and pretty sure the place I'm going to for treatment won't take it. If I end up incapable without therapy I'll have to figure out what options I have, if that point is reached.
 
oh, on open source stuff, if you're looking for a task I know of one file in particular that could use your recent experience refactoring old crufty cruft ... (once nikic is done mucking with it)
 
I'll need to spend some time polishing and modernizing my skills, taking the online classes I've been putting off, and just working on stuff that I can put on a resume.
> One function to rule them all, one function to find them, one function to bring them all and in the darkness bind them.
Lol
 
I'm sorry I brought this upon you, Frodo. I'm sorry that you must have to carry this burden.
 
I will say, after working there for over ten years, it feels really weird not having to go to work tomorrow... or the next day... or the next day... or next week...
 
yeah it gets in ya. it's part of your life, part of home.
 
3:45 AM
Yup :/ I have to make an appointment to get my stuff in my office, I've put a ton of nerdy stuff in there.
 
 
1 hour later…
5:14 AM
moin
 
5:25 AM
o/
 
6:07 AM
static int zend_real_jit_func(zend_op_array *op_array, zend_script *script, const zend_op *rt_opline)
old habbits ...
 
6:38 AM
o/
 
hi guys
how are you folks ?
 
7:03 AM
posted on February 12, 2019

posted on February 19, 2019

 
7:16 AM
As a Web Developer, I build my web application from scratch very often.

Should I need to know how to penetrate test my website and ensure Google Search Engine don't index some pages like administrator dashboard and etc.

Or I should engage some pen test expert to do it for me?
 
7:39 AM
@Trowski is there any benefit to 7.1 apart from :void?
Or is it more about a pragmatic decision?
 
@beberlei we may be getting profiler/debug support in the jit ...
 
@JoeWatkins Dmitry said something?
 
@JoeWatkins where does one need to lurk to get this insider information you have ;-)
 
in my inbox
 
quote?
 
7:44 AM
I suggested splitting ZEND_COMPILE_EXTENDED_INFO into ZEND_COMPILE_EXTENDED_STMT and ZEND_COMPILE_EXTENDED_FCALL, profilers use FCALL, debuggers use INFO/STMT|FCALL, dmitry will fix the jit so it calls the handlers, which looks like a case of removing a couple of lines
it's not the best, but it's a way that will definitely work and doesn't require setting executor, and this stuff is already mostly there, it makes sense to use it ...
 
hm
 
the reason profilers don't use INFO is because of all the extra STMT mostly, so it's a definite improvement there ...
 
8:00 AM
emote to give expression to emotion especially in acting
 
I wonder why jeeves isn't posting bugsnet stuff anymore
 
/me waves
 
9:08 AM
@JoeWatkins pls push all branches together
 
sorry forgot about master
oh you already done it
ta
 
9:44 AM
@JoeWatkins how would you time a fucntion call? it looks like the FCALL handler is only called at the beginning
ah wrong, sorry
just seeing its called in zend_do_extended_fcall_begin() and zend_do_extended_fcall_end()
soo, i can write an AST walker, that injects ZEND_EXT_FCALL_BEGIN and ZEND_EXT_FCALL_END at specific functions that I want to instrument. or i can set the compiler_options to have the compiler generate the opcodes for every userland call
 
!!rfcs
 
@beberlei you can't use an ast walker for this
as you don't know at compile time which function is going to be called (usually)
So you only really get the option of always inserting them
 
10:07 AM
@NikiC i don'T need to know which functions get called, i have a list of functions that if they are called, i want to track them, like "Symfony\Component\Kernel\HttpKernel::handle" && ::handleException. if they don'T get called thats ok too
 
@beberlei You can't determine that statically though
Especially if the call is not "Foo::bar()" but "$foo->bar()"
 
this extension here does that via a lookup: github.com/GoogleCloudPlatform/…
aaah, its b filename though, not by class + method
 
@JoeWatkins @beberlei A general problem with FCALL_BEGIN/END is that it only works for calls from the VM. You're going to miss dynamic calls
 
oooh :-/
that would be everything happening through zend_call_function()?
 
yes
Of course the semantics could be changed, and the corresponding handlers could be hooked in there as well
Just that it doesn't work that way right now
 
10:12 AM
right now instrumentation through zend_execute hooks works, so that is ok, just wrapping my head around how it will be with JIT and trying to get an idea if we could come up with new hooks that work everywhere to be used for timing/tracing etc
joe has been helping me understand what is all available underneath zend_execute, it is quite a lot of different ways to get at information
 
@JoeWatkins Keep a stash of emergency gifts so that you can quickly respond with a gift in case you forgot/didn't have time to get anything
 
I hate recursion.
 
@Jimbo I'm tempted to edit that and make it a reply of itself.
 
Here's what I did about that in 2013: stackoverflow.com/questions/14125922/…
xD
 
10:35 AM
@NikiC I'll look at that ... another problem is generators, but I have no ideas there yet
@NikiC dmitry won't like me putting additional branches around here ?
 
@JoeWatkins might be okay
that code is slow anyway :P
 
yeah, true
 
10:59 AM
Morgen
 
@NikiC removing static linkage on the fcall handlers is okay ? don't want to duplicate it ?
 
:)
 
12:04 PM
Morning
 
@Tiffany so what happened yesterday?
also: good moinin
 
@ircmaxell I fucked up, lapse of judgement coupled with impatience. Nothing broke but the damage is done. I learned my lesson.
I'll be spending the next 30 or so days working on my skillset so I can try for a midlevel dev job instead of having to start at junior
 
12:21 PM
@JoeWatkins Is the ext/ffi api still expected to change before 7.4.0?
 
re
 
@NikiC I was thinking to finalize the 7.4 deprecation rfc soon and move on with it. Did you hear back regarding the CLASS part?
 
@Kalle I didn't contact him yet ^^
 
@Tiffany Sounds like a silly response to me, the damage is already done, the company will pay for the damages regardless, and it's not likely you will repeat such a mistake in the future
vOv
 
12:33 PM
@NikiC roger ^^
@NikiC would be nice to also rid PHP of the setlocale() stuff too at one point
or just limit it to sapi/cli
 
@MadaraUchiha "damage is done" = breach of trust, at least that's how I interpreted it.
 
@Tiffany Was it a breach of trust or an honest mistake?
You don't have to answer that here
But there's a difference between "I accidentally dropped the DB" and "I accidentally dropped the DB then tried to cover it up"
I wouldn't fire someone over the former.
Wait, you were there for 10 years?
As a PHP dev?
 
12:50 PM
I did do PHP development but I wasn't good at it, plus did other stuff.
On the bright side, I don't have to worry about Windows/IIS anymore :D
 
@Tiffany You worked with PHP for longer than I have.
 
@Tiffany did they let you go? or did you quit?
@NikiC I really hope so
 
@ircmaxell forced to resign
@MadaraUchiha I didn't start with PHP, worked with classic ASP before that. Only started with PHP in like 2012-2013ish
 
@Tiffany That's still more cumulative time than me, FWIW
Your next place (in my opinion) should be one where you are not the sole dev on some single project, but one where the product is still under evolution (i.e. not just maintenance) and you have other people (hopefully people more experienced than you are) to help you learn and grow.
Also, "forced to resign"? is that a US thing?
 
@Tiffany sorry to hear that :(
 
12:55 PM
@MadaraUchiha yes, that's where I'd like to work as well.
 
@Tiffany where are you based?
 
@beberlei Illinois, US, though I'm willing to move anywhere within the states.
 
@ircmaxell Anything in particular that needs changing?
 
@NikiC so
what I've found out is this:
there is no debug info. At all.
 
I have no attachments to this area.
 
12:58 PM
if you pass an incompatible type, it doesn't even tell you which parameter number failed
types are compared by pointer value, not type name
as the type name is lost in parsing
so there's no way to say "what's the name of this type"
there's also no way to list symbols it knows about (which may not strictly be needed, but would be nice)
I meant to reach out to Dmitry today to ask about that info
should I hit list instead?
 
PHP is the best
 
@ircmaxell Do you plan to also work on this yourself (on the implementation side)?
 
no
I would make some attempts, if PHP passed a CoC. But this parser is using a different tool than I've ever seen, so even if I wanted to try, I wouldn't really know where to begin. I "could" PR the "which parameter number failed", but other than that...
 
@ircmaxell It probably makes sense to reach out to dmitry about individual points first, he might fix them quickly
 
@MadaraUchiha are you on discord?
 
1:03 PM
yeah, I don't want to raise it as "this api sucks", because 1) want to be more constructive, and 2) it can all be rectified pretty easily (assuming the parser details aren't fubar)
but in the current state, I'd not use it by hand without a code-generator doing it for me (like github.com/ircmaxell/libgccffi/blob/master/lib/CodeGen.php)
 
doesn't snake case have any place in PHP ?
 
@Tiffany I am
 
@Shafizadeh possibly for array keys
 
@Shafizadeh I think snake case violates PSR, but what matters is the code style your organization requires and following that
 
ah, what about variable name? or class/method/property name?
 
1:06 PM
camelCase usually
 
I see, ok thx
 
@Tiffany Madara Uchiha#0635
 
yeah I somewhat read that before
 
@NikiC emailed Dmitry.. Will let you know if I hear back
 
1:19 PM
What does CURLOPT_POSTFIELDS option in curl do to the request? How can I do the same thing in postman?
I am assuming its not just body data or query params
 
the same is strange, it is the body
 
Well can u spot a difference between this i.imgur.com/7HMcBGp.png and this PHP curl? i.imgur.com/7FlszbY.png
Because the javascript one says {error: 'err_not_filled_query'} probably something wrong with the data
 
$cb2 = function(string $arg) {
    printf("Hello %s\n", $arg);
};
// About 12% slower than a pre-compiled function for the same argument, even with the massive overhead of libffi
 
1:39 PM
@ircmaxell Not sure I follow
What are you comparing this with?
 
line 63
comparing $cb("World") with $cb2("World") shows $cb is about 12% faster...
(over a few hundred thousand runs)
 
@ircmaxell That doesn't sound like much
 
@NikiC considering CB is a native php closure, and cb2 is a call to c extension which needs to reconfigure the args and pass to the ffi lib
Dmitry said the process is slow, about a 2x overhead to a normal function call
it's within error for a normal function call: cb2("World") vs $cb("World")
 
@ircmaxell You are comparing with a closure though. That has a type hint, and an inner function call
 
I'm getting about the same speedup vs a normal function
function cb2(string $arg) {
    printf("Hello %s\n", $arg);
}
 
1:53 PM
@NikiC it should be able too, and the version should be able to change with it
I fell asleep on my desk ...
 
@NikiC removing the type hint in PHP brings the gain down to about 5-7%
Note: this does not take into account the overhead of compilation
 
can I use your brain a minute please nikita ?
from the vm, the begin handler is invoked before args are sent, that seems problematic, the next problem is that the handler is invoked with execute_data as the arg, call frame is at ex(call), from zend_call_function there is no execute data, so have to invoke with call directly ...
I need to change the handlers to send ex(call) from the vm, so that dynamic/vm behaviour is the same, don't I ?
and I would like to move begin in the vm (compile) to after args are sent, so that everything makes sense ?
 
2:09 PM
both sound reasonable to me
 
okay good
 
@JoeWatkins though I'm not sure who is going to use this...
 
to reproduce php zts errors from customers its probably required to compile php against apache multithreaded, compared to just running it as php-fpm with zts? its so tedious to setup :)
 
@NikiC I know why it's hard to use today, it doesn't make any sense and is missing things
if it works, and is compatible with the jit, even if a little slower than setting loop, then I will use it, to keep the vm stackless
it's still not a replacement for everything, but I'm not aiming for that, just something useful and compatible with jit that doesn't change characteristics of execute_ex
 
2:37 PM
morns
 
o/
 
2:49 PM
\o
 
Me to ISP customer service: My modem reboots itself at inconvenient times, can we stop that?.
ISP customer service: Have you tried rebooting the modem when that happens?
 
@Danack You probably gave that guy a panic attack. All tier three tech support is is teaching someone to say "reboot" and giving them a phone.
 
@Danack Did you try rebooting the reboot?
 
lol
 
2:58 PM
it is very annoying. I know that virgin media have spent a huge amount of money on equipment that provides nice remote logging information to anyone who looks at those logs. That's what the last engineer who came out to me said, and told me that visit was stupid and that their support people could see the exact info he was looking at.
 
@Danack "Virgin Media" sounds like a euphemism for porn.
 
@NikiC quick question: what are the possible values for semValue in PHPParser? Are they always ints? or strings? or arrays?
 
@ircmaxell anything really
Probably something like null|bool|int|float|string|array|PhpParser\Node
 
how does C handle that?
 
@ircmaxell What C? ^^
 
3:26 PM
yacc generated parsers in C
 
@ircmaxell In bison, it's done via %type annotations: github.com/php/php-src/blob/master/Zend/…
PHP uses ast/str/num, which are part of a union
And each ast node is annotated with which type it has as the semval
And destruction logic is specified in %destructor: github.com/php/php-src/blob/master/Zend/…
 
ah, via a union
hmmm...
 
@ircmaxell If you don't have native support for this, then a tagged union would also do
 
@rtheunissen What's the value in only accepting closures?
@rtheunissen My experiments with tree structures in PHP is that they were way, way too slow to be of value.
Maybe moving that to core would improve it enough, but I'm skeptical that these structures are essential.
 
Tests failed : 1578
This will be fun
 
3:32 PM
so, could do something like:
$this->semValue->%t = $this->semStack[$stackPos]->%t;
(assuming semValue as a class tagged union)
 
:sad face:
the ext stuff is not fit for purpose, either that, or I misunderstand their purpose ...
 
@ircmaxell yeah
 
though how to handle the RHS macro:
#semval(%n) $stackPos-(%l-%n)
#semval(%n,%t) $stackPos-(%l-%n)
 
you want enter to pass the call frame being entered, and end to pass the call frame being left, but it can't, because it's gone already by the time the end handler is invoked ... so it's just "a callback" ...
you can't access the return value, you can't very well tell what frame in end is going to be entered next ...
they're pretty useless really, they are just callbacks and you have to figure out what is going on ... the oldest extension we have, xdebug is making assumptions that are not true, that's why it's missing data, because they're not well defined ...
what a mess ... and dmitry won't let me do enter/leave ...
```
<?php
function one() {
	return two();
}
function two() {
	return three();
}
function three() {
	throw new Exception();
}

one();
?>
```


Does this:


```
entering one
entering two
entering three
entering __construct
leaving __construct
leaving three
leaving two
leaving one

Fatal error: Uncaught Exception in /opt/src/php-src/test.php:9
Stack trace:
#0 /opt/src/php-src/test.php(6): three()
#1 /opt/src/php-src/test.php(3): two()
#2 /opt/src/php-src/test.php(12): one()
#3 {main}
  thrown in /opt/src/php-src/test.php on line 9
this is what you need, and it cannot be done ...
the only thing that's really useful is the enter one, but it can't be used for a profiler because you can't tell when leave happens, at least not without doing a bunch of hard work that is prone to error ...
and even if you can detect it, the useful stuff from the frame is gone, free'd ...
so :sadface: I yield to the awful history inside /Zend ....
 
3:56 PM
After reading this I realised that mysqli stands for "My SQL Injection" (:
 
4:06 PM
@JoeWatkins hm :-(
 
4:24 PM
what you may do is push the call frame to a stack on enter, and pop the stack on leave, but it's not really very nice
 
This is a complete shot in the dark but does anyone have experience with docusign's api?
I can't get the damn thing to authorize
 
4:37 PM
I never thought of secret sharding. That's interesting.
 
@Danack They pretty much have a script they go by based on the responses I get when calling into our ISP for some issue. I've tried to head off some of the questions by telling them all of the things I have done and they still take me right back through it... which is why the case for robotics taking over some of these jobs is so easy to make for some because we have basically trained people to quit thinking in many job capacities.
Too late- we read it. =P
 
Hahahaha.
 
4:53 PM
@beberlei I'm still going to try to do all I can, but they're not going to be what we really want in all cases ... making them useful for some cases is as far as I can go I think ...
 
Guys, which one is correct?
- We touched a new record.
- We hit a new record.
- We got a new record.
- We arrived to a new record.
Or I don't know, probably "We achieved a new record" ..
 
@Shafizadeh hit or achieved are both fine
 
Ah I see, thx
 
@NikiC can you approve that pr please when you have a minute ...
 
5:12 PM
:(
@PeeHaa Fixit fixit fixit fixit
 
@JoeWatkins For reference: github.com/xdebug/xdebug/blob/… xdebug doesn't use the begin/end handlers
 
I vaguely remember asking derick about why that was, and he said they don't behave in a useful way, it was years ago though, I'd have to ask him again why ... at least nothing I'm doing can break xdebug in that case ...
 
@JoeWatkins I don't get this message .. what's the point exactly?
 
@NikiC I wonder where the missing data is though ... when pcov sets opcode handlers like it does, it also misses data ... not completely sure what's going on there ...
also I like how dmitry said that a 15% decrease in performance wasn't that significant ... I lol'd ...
if anyone else made something 15% worse, he wouldn't allow it ...
 
5:28 PM
> I've opened the vote on the wiki.php.net/rfc/consistent_type_errors RFC.
 
he won't allow me to insert a couple of branches to avoid all this mess ... but whatever, I don't understand his views on performance sometimes ...
 
@JoeWatkins I thought you were only going to use the first letter of names now due to indexing. I only mention this because it will give me a laugh during the day when you say "I like when the D does this" or "I like when the D does that." I have the humor of a 14 year old.
 
@JoeWatkins 15% for what? :)
 
@JoeWatkins well, which data is missing? ^^
 
5:32 PM
@beberlei dmitry wanted me to drop the vm loop in pcov in favour of setting all opcode handlers like xdebug does, but it made the perf 15% worse (without collecting any actual coverage, that's just loop vs handler perf impact), and it also missed data ...
 
ah yeah :(
 
@NikiC I didn't look, we ran it on a huge test suite last night and got about the same result, 9 minutes (loop) vs 12 minutes (handlers), and it was missing data ... didn't seem like it was worth investigating, but dmitry insisted on seeing the patch because interesting ...
 
@JoeWatkins it would be good to at least know why data is missing
because that seems pretty weird
 
yeah it does, it didn't happen on the suites I ran, php-parser results were exactly the same ... I'll do it again myself tonight, was busy with other things last night and @Trowski did them for me, I done them again this morning but didn't keep logs, just verified that there was a significant difference in perf before sending dmitry the patch ...
@StatikStasis dmitry doesn't really search the internet for gossip, and wouldn't care if he did ...
 
You mean he is not petty? That's good too I guess... but doesn't create any jokes.
 
5:47 PM
I just misread something really simple and think I'll quit looking at code for today ...
 
6:09 PM
I just moved out of my chair for the first time in 14 hours ... I hurt ...
and there's shit all over my desk, and I'm so thirsty I cant talk properly ...
oh, wife said I have moved ... I don't remember moving ...
what do you think that person is trying to do ?
 
6:25 PM
How do I access just Activated from this array?

array (size=1)
  0 =>
    object(stdClass)[267]
      public 'activated' => int 0
I get 500 error doing $result['activated'] or $result->activated;
The above I got from doing a var_dump
 
@LeviMorrison It would prevent being able to use internal functions like intval for the callback. The caller should own the callback and I think a closure is more likely to enforce that (even if only partially).
@LeviMorrison I'd like to at least try a decent internal implementation. If the benchmarks show that you could just sort an array-based structure faster or otherwise provide no value.. we axe.
@JBower ($result[0])->activated?
 
@rtheunissen Yess that one did it thanks!! :)
When there are keys and objects together at the same time I get confused lol
 
Just have to step through it one piece at a time. :)
 
yep :)
 
@LeviMorrison on the tree/sortedset... sorting a mutable set is O(nlogn), and insertion into a tree is O(log n) for all n so also O(nlogn). But creating a mutable set is O(n)... and you can't tell that it is sorted at any point, so might sort when already sorted. I think some sorted structure is essential.. will just have to see how it stacks up performance-wise.
Thinking red-black but open to suggestion.
 
6:36 PM
@rtheunissen Closure::fromCallable could negate any of that.
 
But it would be deliberate.
 
If you have n things, and you insert into a tree those n things, you are paying about O(n log n).
 
I don't know how else to solve this without typed callables, which may never even land.
 
If you put them into a vector, you are paying about O(n).
 
But then you have to sort the vector.
 
6:38 PM
True, but my experience is that the O(n log n) part of insertion was quite high, and the O(n) insertion on a vector is quite fast.
 
Won't know until we try it. :) Userland implementations would have a massive overhead for the pointers between nodes.
 
Yes, the userland impl definitely is too slow to have any value.
 
Wouldn't even consider something like that. I'd like to make an attempt and see what we get. For science. :p
 
Lastly, you have to take into account the number of calls to the comparable, which has an enormous cost.
 
Maybe tree create vs vector create + sort.
If it's a scalar set you wouldn't need the callable at all, but we could compare invocations between sorting a vector and creating a tree?
 
6:42 PM
It's a starting point, but the callable is important too.
 
Benchmarks will be interesting...
For sure.
Have you looked at the copy on write poc?
 
Briefly.
@rtheunissen I assume the vector.h header is sparse only for being lazy sake?
 
Yeah this is just to get the mechanics of it working.
 
Also, why does it include buffer.h?
 
DS_VECTOR_BUFFER
Probably doesn't need to.
I wrote it pretty quickly.
 
6:45 PM
Nothing in the header needs it, right?
 
Correct, I'll remove.
 
@rtheunissen I can do it if you want.
Need to cut my teeth on this at some point anyway.
What version(s) of php-src does this target?
 
Already done, but yeah commit anything you want, I think I added you.
7.3.1
 
@rtheunissen What flags for php-src do you typically build with?
 
Because of:
- https://bugs.php.net/bug.php?id=77275
- https://bugs.php.net/bug.php?id=63217&edit=3
I just use phpbrew install 7.3.1 as 7.3-dev +default +debug, not sure what the flags are but can find out for you?
 
6:50 PM
@rtheunissen It should be in php-config.
 
Which key or the entire thing?
configure_options maybe?
 
@rtheunissen Yeah.
 
Seems to only be --disable-all followed by some enables, nothing unusual.
'--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-json' '--enable-debug' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-opcache'
 
00:00 - 19:0019:00 - 00:00

« first day (3048 days earlier)      last day (1900 days later) »