« first day (3613 days earlier)      last day (1340 days later) » 

3:35 AM
Is there anyone I could pay to get proper namespace support for gen_stub.php in for PHP 8.0? I looked at the code and I just don't have the heart for it right now to do it myself.
Proper entails at least these things:
- use needs to be supported or explicitly not supported yet (meaning if use Foo\Bar is present it needs to either be supported or explicitly fail saying it's not yet supported).
- Tests in ext/zend_test
- The explicit root namespace e.g. namespace {} should be supported too.
 
4:20 AM
Ugh, fun, fun, fun:
Parse /Users/levi.morrison/Projects/iterable/iterable/iterable.stub.php to generate /Users/levi.morrison/Projects/iterable/iterable/iterable_arginfo.h
/usr/local/src/php/8.0/Zend/zend_alloc.c:473:73: runtime error: left shift of 250 by 24 places cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/src/php/8.0/Zend/zend_alloc.c:473:73 in
sh: wget: command not found
 
4:43 AM
configure error ・ Compile Failure ・ #80064
 
 
4 hours later…
8:36 AM
PHP 7.4 Snaps Problem ・ *General Issues ・ #80065
 
 
1 hour later…
9:37 AM
morns
 
 
1 hour later…
cmb
10:49 AM
@NikiC I just noticed that this broke the Windows snapshot builds.
 
@cmb Feasible to switch that to fetch from github instead?
 
cmb
I think so; will give it try
 
 
1 hour later…
Wes
12:31 PM
i.imgur.com/DCyM79D.png wip 2 cc @PeeHaa @StatikStasis @Danack
 
sweeeeeeeeet
 
Wes
:D
jeeves is gonna be a t-shirt
 
@Wes Are the eyes looking like an 8 an Easter egg? ^^
 
@Wes nice
 
Wes
12:47 PM
@IluTov :P not really, but good thinking :D
thanks
 
@Wes I have a question, is it his butt towards the camera and he's facing the wall? (Sorry, I just woke up, fingers aren't moving the way I want)
 
Wes
yes, oof i thought it was clear
he's facing the wall but he has the head rotated
 
honestly I spent a good few minutes trying to figure it out too :P
 
Wes
goddamnit
 
Sorry :(
 
12:49 PM
The hints are the toes and the strangely tail-shaped penis
 
@Tiffany Haha I wasn't gonna say anything ^^
 
Wes
:(
 
Just make the butt look more like a butt without being obscene about it?
 
Wes
i feared that but i hoped the tail would make it less confusing
 
I mean, if it was an owl it would be easier to tell, because they can rotate their heads 180. But ya, the head did throw me a bit
 
12:51 PM
The part that messes with my head is I can't tell if it's supposed to be a butt or a belly
 
@Wes I did see it the correct way but the clues (apart from the tail) are kind of subtle.
 
Wes
the obvious solutions is simply making it face the other direction
 
That would work too
 
Wes
i.stack.imgur.com/sl1E4.png better or no change?
 
1:07 PM
Hard to judge now knowing what it's meant to be. I think it's just how much the head is turned around that's confusing it.
 
@Wes maybe have the near leg occlude the rear leg, to make it easier to tell which is which.
Also, that is a chunky boi.
 
@Danack Scoffing all the popcorn watching the PHP 8 RFCs will do that to a person.
 
Wes
lol
 
that certainly helps
huh, what do you know, id have never considered something as small as that to be quite so indicative.
 
Wes
eheh
the back of a character like homer simpson, is the same as the front. only difference is the collar :P
 
1:22 PM
...
 
Wes
2 and 3 are mirror images basically, except the collar
 
I clearly haven't paid any attention to the simpsons character design in my entire life o_O
That's kinda cool
 
Wes
:D
 
@Wes hands too, but that's a smaller detail
 
1:45 PM
@Wes cool, just rotate him a bit more to the side and it should look a bit more natural, I think
 
 
2 hours later…
3:50 PM
Morning
 
orming
I finally got to rewrite gitamp to replace aerys/artax with new amphp packages \o/
still a bit of work to do but I should be able to deploy it again at some point this weekend
 
4:56 PM
@Ekin \o/
 
Can anyone help me find the issue with this algorithm for the following question? There're some edge cases missing because 10 out of 14 tests are passing only.
function countMeetings($firstDay, $lastDay)
{
  $calendar = [];
  foreach($firstDay as $k => $start) {
    $end = $lastDay[$k];

    if(!array_key_exists($start, $calendar)) {
      $calendar[$start] = [$start, $end];
    } else {

      $value = $calendar[$start];
      $end = $end > $value[1] ? $end : $value[1];
      $calendar[$start][1] = $end;

      while($start <= $end) {
        if(!array_key_exists($start, $calendar)) {
          $calendar[$start] = [$start, $end];
          break;
        }
2
Q: Meetup Schedule Algorithm

Robert FarmerSo I'm working on a Practice Code Assessment and I got this question: Question: A start-up owner is looking to meet new investors to get some funds for his company. Each investor has a tight schedule that the owner has to respect. Given the schedules of the days investors are available, determin...

 
5:10 PM
I'd strongly recommend splitting that up into smaller functions. Trying to understand what that code is doing is too hard. Also probably use an object for $calendar rather than an array.
 
@Danack Sure, will do that thanks
 
 
1 hour later…
6:39 PM
@Crell Which approach do you think makes more sense? gist.github.com/iluuu1994/cd8d6cf583daf2b97410720e64097a74
Methods for only some cases probably don't make sense for option 2 since you can never specify the cases as a type
 
7:38 PM
Hang on, doing tech support for parents... :-/
 
List Reference Assignment: Cannot reference an array value by return ・ Variables related ・ #80066
 
Wes
fairly happy with this version. i need not to look at it for some days before i can finalize it i.stack.imgur.com/RzXdA.png thoughts? thanks for the feedback folks
 
@Wes 😍
 
Wes
:D
 
What's the hate all about. Like I always said f the PHP haters. lol
 
Wes
7:51 PM
indeed. php is definitely improving
 
@Wes have you done an updated version of the mjolninirirnrin mug without the black background yet?
 
Wes
yes but working on a better version of that
 
We should have like a PHP merchandise store.
 
@Wes any chance you can stop trying to make it perfect and just ship it?
 
Wes
:(
 
7:54 PM
lol
 
Wes
covid got in the way of many side projects
 
it's awesome already - just needs to not have the black background to make it more visible.
 
Wes
had to focus on the remunerative things. but now i have more time
@Danack teespring.com/php-thor-mjolnir-2?pid=557 this is the version with no bg
 
@Wes is Paamayim Nekudotayim visible? can't tell, and it doesn't let me zoom :(
 
Wes
on the actual t-shirt i have is not visible. print is at 150dpi i believe
 
7:58 PM
might like it in purple more, actually
 
Wes
anyway @SalOrozco it's a word play, hate/eight
 
Nice mug
 
Wes
i still have ptsd for that
drawing is fun but is a lot of work :B
 
September 18 delivery.
Where is this at.
 
theyre made to order
i do fancy a php hoodie ...
 
Wes
8:03 PM
nah @Danack i am actually finishing the improved version soon. pls unpin
 
I have been looking for PHP shirts.
 
Wes
(i am actually going to do it)
 
All I could ever find is the blue Elephant Tees.
 
Wes
and i don't want people to buy old versions
 
that mug still appears to have a coloured background for me.
 
Wes
8:04 PM
it's not a solid color, it's particles @Danack
should look better (in theory)
 
@Wes you designed the mug?
 
Wes
ya
 
@SalOrozco right now: 🤯
 
You have design skills.
 
8:06 PM
the purple solid background.
can't see an option to not have that.
 
Wes
@Danack that's the color of the mug itself?
you can make it white if you scroll
 
@Danack teespring.com/… closest there is
 
Wes
but doesn't look that good
 
I found out today that I'll be getting a baseball from Smarter Every Day \o/ ... I can put it next to my half filled ball of water from Veritasium
 
@Wes thanks...that ui is bad.
 
Wes
8:08 PM
yep
 
it's like 2010 design
@MarkR why a baseball?
 
Still to do that takes skills
 
@Wes If I eventually can make prototype.php.net the main site, what would it take for me to get you to design art for it? :D
 
@SalOrozco web design I mean, the UI
 
@Tiffany Because Dustin made a cannon that launches baseballs faster than the speed of sound, so he's sending a baseball to each of his patreons
 
Wes
8:09 PM
@MarkR what's that? :D
 
I know I once tried to be a logo graphics designer.
Faster than the speed of sound.
 
@Wes I'm trying to modernise the PHP.net website to make it feel a bit more polished. I've now got it hosted on the prototype.php.net domain but I need to spend a ton of time on it still
 
Wes
i mostly don't do illustrations, due to the fact i am not great at illustrator and i have failed in the past to sell myself as that
 
Adobe Illustrator powerful but complex
So many features.
 
Wes
illustrator is prob the main reason i don't want to do this regardless lol
 
8:12 PM
If / when the time comes, some artwork would be awesome, subject to some agreed upon level of compensation of course.
 
Wes
the program is a mess
i know people can be very productive with it... but not me... i find it very disorienting
 
What do you use?
 
Wes
@MarkR if it's for open source i am willing to do it for free
 
I'll order a mug if it comes in white BG
 
Wes
would really be bad if i asked money given that php is free :P
 
8:16 PM
@IluTov Option 1 feels cleaner to me. The equivalent compiled code is closer to what the actual syntax is. Although I don't fully grok all of the implications of that.
Though I don't think it should be pure sugar, as then the class names get exposed and that's a surprise.
 
Yeah PHP is free but ppl that help developing should be compensated I believe. Donations or some way to reward them for their time.
 
@Crell Me neither, not at this point. What's important is that jumptable optimization in match/switch works. There are quite a few things I'm not sure about. I think we just have to start experimenting and see where it leads us.
 
Makes sense. Noodling often presents the solution.
 
And the problems :D
 
Same thing.
I'm still uncertain how we want match to work with enums, sand pattern matching. I don't think it's possible to make it work with data-carrying ADTs without some kind of modification to do a more robust check than ===.
Be that instanceof, or a new "is" keyword, or something. match will need to change one way or another.
 
8:20 PM
@Crell Pattern matching will disable the normal === comparison. Pattern matching is essentially a really complex, tailored comparison.
 
Right, assuming we go the pattern matching route. When last we spoke you weren't sure that was wise, which implied we need some other "junior" approach.
 
@Crell Ah ok. Without pattern matching we need $option is Option::Some or some other special syntax. I'm still not sure at this point but as mentioned maybe we just need to try both.
 
Right, that's what I was saying. :-) Whether pattern matching or a junior equivalent, match() will need to change somehow.
I don't know if "match just magically knows how to deal with enums differently" is the best approach.
 
@Crell Yeah sorry I misunderstood what you said :)
 
8:38 PM
You try doing some experimental implementation with what we've got so far and see what's hard, then I can try to find a workaround in the syntax.
 
@Crell Btw already started experimenting quite a while ago. github.com/php/php-src/compare/master...iluuu1994:enums But didn't get very far. That one uses the 2nd approach though.
So if I get anywhere, you know where to look ^^
 
9:17 PM
Omitting the port in bindto setting results in "Failed to parse address" error ・ Sockets related ・ #80067
 
9:32 PM
Why do I have to have that weird gene that makes cilantro taste like soap :( I wish I could taste what's so great about pico de gallo
 
I thought I hated avocados for years because I didn't like guac. Then I realized it was the cilantro and lemon juice I hated. Avocados are yummy.
 
Too much avocado can cause a migraine :/ I learned that the hard way by eating a lot of guac one day
 
ouch. :-(
 
I used to love it but now I generally avoid it. I'm not sure how much I have to consume in order for a migraine to occur, but it's not something I'm eager to find out either
I should say, I loved it for the very brief time that I ate a bunch of it
 
10:02 PM
@bwoebi Any thoughts on github.com/php/php-src/pull/6071?
 
@NikiC I intentionally stayed quiet as I feel quite biased it being code I've written and I'm not sure what to say
I mean I could torpedo your efforts and just require a RFC and delay to 8.1 … I think it's just best I'm not saying anything on that topic :-D
because I'm not really willing to explicitly approve it either
 

« first day (3613 days earlier)      last day (1340 days later) »