« first day (4261 days earlier)      last day (912 days later) » 

00:00
Personally I usually recommend having a PORT in your .env file and map it into the docker compose (with a default), saves a lot of headaches. Also you should probably give each one its own network to avoid conflicts if running multiple at once
 
1 hour later…
01:00
lol
The question is how do you kill the entire docker compose containers from one config file at once
do you always have to kill each container at a time
For just the single docker-compose? Try docker-compose down
if you want to kill all containers everywhere I think it's docker kill $(docker ps -q)
docker compose down
I have so many docker folders i was using the command in the wrong folder lol
 
2 hours later…
03:11
At my current job, we have a makefile that does it. I can type make up to bring all of the containers up, or make down to bring all of the containers down. It's handy.
Most of the time I have to bother someone else for help with docker though
03:43
makefiles all the way down
I been learning Vue for my new job
how do you like it?
In one month you can kinda get the hang of how redux works
i mean vuex
Similar to redux
Same pattern
 
5 hours later…
08:59
morns
 
6 hours later…
15:23
if someone's trying to subscribe to internals, and they receive the reply "looks like spam to me," what options do they have to try and prevent that?
that is, what causes that reply?
cmb
cmb
How did they try to subscribe (via Web form or directly)? Anyway, the issue might be an "unfortunate" email address.
I think web form
I thought they were encountering the error on the web form (but I'm guessing this was fixed? hopefully?) so I said to subscribe directly, but they said it was sent to their gmail
cmb
cmb
Maybe @Derick has an idea on what went wrong.
there's a burgeoning internals-interested community on the phpc discord
15:45
> The execution results in a bus error instead of a segmentation fault, since the address which is jumped to is not properly aligned.
Uh... not sure about that part o.O
@Tiffany It looks like spam to the mail server - try not sending HTML mail
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker network rm $(docker network ls -q)
@SalOrozco That will kill pretty much everything.
Though sometimes it needs to be run again as some images apparently can be in use by other images (or something).
@Danack thanks
I had some containers running every time I start.
16:01
docker update --restart=no my-container
That needs a flag fixing. I don't know how Docker manages to set that flag (I have never used it) but it does seem to get set for some containers, somehow.
oh, apparently also all of them can be done with docker update --restart=no $(docker ps -a -q)
cmb
cmb
16:28
"try not sending HTML mail" is good advice :)
16:49
Just getting used to the Laravel ecosystem.
anyone have any tips?
17:37
heh, not sure if that qualifies as "tip", but lately there's been some memes about Taylor getting himself a lamborgini. javascript folks going mental
more seriously: maybe try and insulate your code from laravel as much as possible. like, write interfaces around what you use it for, if ever you switch libraries or use packages to o specific things. note, that this is my general approach to using frameworks, and that this is highly opinionated.
I have seen his house. He is balling from all that laravel nova money, and other subscription options he has.
I hope he's happy with that
IMO, the Laravel eco-system suffers from a large NIH-syndrome issue
@SalOrozco it would be nice if the Laravel company contributed on a regular basis to opencollective.com/phpfoundation rather than a one-off.
17:46
Only contributed one time?
They should, they are making a lot of money of php
I'm getting a compile error when compiling Xdebug for 8.2, and I don't get why:

In file included from /usr/local/php/master/include/php/Zend/zend.h:406,
                 from /usr/local/php/master/include/php/main/php.h:31,
                 from /home/derick/dev/php/xdebug-xdebug/src/lib/php-header.h:19,
                 from ./php_xdebug.h:28,
                 from /home/derick/dev/php/xdebug-xdebug/src/lib/usefulstuff.c:33:
/usr/local/php/master/include/php/Zend/zend_operators.h: In function ‘zend_memrchr’:
Any ideas? :-/
@Derick that's a deliberate business decision imo. To avoid developers from expanding away from Laravel.
but I think we've discussed this before...
Dec 8, 2020 at 11:19, by Danack
@Derick imo, because Laravel is turning into a platform rather than a library, and by grabbing Faker, it's a massive landgrab against the symfony platform.
@Danack It's not just the framework though. It is all the tooling too...
Yes. By stopping anyone from ever needing to look at how Laravel is not the be-all-and-end-all of possibilties, the flock is less likely to stray.
...
HAVE_MEMRCHR is defined in main/php_config.h
and this is the implementation of zend_memrchr, so that's why it's using the original and not itself :)
cmb
cmb
17:53
Either the compiler is broken, or memrchr() is not defined for whatever reason.
Or shenanigans going on around which files are being included and you're getting a different string.h when compiling xdebug vs compiling PHP?
@Derick Symfony suffers from the same sadly
:54765412 Yeah, it's curious as when I define memrchr myself, it works fine...

#include <stddef.h>
extern void *memrchr(const void *s, int c, size_t n);
@PeeHaa less so in the tooling though - there is some of it, but not nearly as much.
right, but isn't this a problem on the PHP side then?
cmb
cmb
18:02
@Derick github.com/php/php-src/commit/… (you may need to -D_GNU_SOURCE).
` Probably, we will need to add -D_GNU_SOURCE through phpize. I'll try to take a look.`
I think that'd be the right fix
 
1 hour later…
19:11
o/
statik::stasis o/
What do you guys think about traits
19:36
I think they should generally be avoided ^_^
20:08
@PeeHaa YO!
YO @StatikStasis \o/
Wes
Wes
@SalOrozco i think they are better than abstract classes :B given that they aren't actual types, they are "transparent" to third parties... and that's good, but in general they are much worse than dependency injection and i basically never use them
in practice there is always a superior design that doesn't make use of inheritance or traits
yo peehaa, static::statis()
Heyo Wesley!
20:34
You just just create classes for all those functions right instead of hiding away all that stuff
 
2 hours later…
22:24
This is fascinating. Assuming my data is any good, var_export/require only beats serialize/unserialize if dealing with > 1000 nested objects, with an opcode cache. Otherwise, serialize/unserialize is better.
23:07
Ah, did you test it with objects?
What if they were arrays.
If I understand correctly, opcache stores array literals to SHM for fast access from applications, but this is not yet the case for objects.
23:34
Nested tree of objects, including some properties that arrays of objects.
The specific case I'm testing for is a bazillion objects, so that's what I benchmarked.
23:45
what are you actually trying to achieve? a bazillion is a lot
A colleague is trying to figure out the best way to cache a large AST. (Not for PHP code.)

« first day (4261 days earlier)      last day (912 days later) »