« first day (3073 days earlier)      last day (2099 days later) » 

00:11
Evening
@Wes LOL - that might be enough to restrict you from saying you "normally dislike." =P
Wes
Wes
i just like breakbeat, basically
 
2 hours later…
02:20
I have a craving for steak, dammit
@tereško you subscribed to king crocoduck?
!!should I get steak or no
You should get steak.
02:27
Ordering from a local place, they're around 25-30 USD... hard for me to justify but sounds so fucking good ... I could say it's extra pressure to find a job >.>
for one steak?
gods oh ordering, nvm
Freshly cut, well-marbled, 12 oz ribeye
^^
meh, you deserve it.
Montecassino ribeye
Do I though? :/
<insert motivational stuff>
02:31
Lol. Depression hit me hard this week, I don't feel like I deserve much of anything... except maybe kitty cuddles
 
1 hour later…
Wes
Wes
03:39
@bwoebi i know it's late, but maybe you are around...
 
4 hours later…
07:39
bug or feature? 3v4l.org/Dmn44
08:00
encroach to enter by gradual steps or by stealth into the possessions or rights of another
08:43
@FélixGagnon-Grenier yes, for a long long time (from back before "Atheism+" destroyed atheist movement on youtube)
 
4 hours later…
12:43
I wish PHP had generics
they would solve this issue I'm facing
hello, I need some help with an php issue, anyone can help me ?
just ask
13:08
0
Q: Simple dom parser results in multiple pages

Vectorial GraphicsI have parsed a page to get the titles, and sometimes the parsed titles are more than 11. My designed template contain max 11 titles. My question is how to replicate the template () for the rest of the titles (from 12 -> n). I have to replicate the template somehow for the rest of results, but I ...

I need a solution for this
13:23
the find method is returning an array (as far as I understand the code). So you could fetch the elements in your first code block. then you could span a while loop around the template. and then replace your foreach loop with for($j = 0;$j < 10 && count($elements) > 0;$j++) { $title = array_shift($elements);
Im not sure I fully understand, but Ill try to do something in your direction... I`m not so good with php codding... thanks man
 
2 hours later…
15:10
<?php
$a = ["Hello", "World", "\n"];

echo $a[0];
echo " ";
$i = 1;
echo $a[$i];
echo " ";
echo $a[++$i];
$ php-7.4 bin/jit.php test.php
Hello World
echo $a[$i + 4];
// Segmentation Fault
so yeah, got some work to do there :D
 
2 hours later…
16:59
now, just need to figure out how to handle errors and exceptions...
 
1 hour later…
18:16
Ошибка в описании строгой типизации – #77754
Wes
Wes
18:40
@bwoebi @JoeWatkins i was "polyfilling" readonly typed properties and i realized there is going to be a major difference between
public function foo(): array{ return $this->_foo; }
and
public readonly array $foo;
the first returns a copy of the array, the other accesses the array directly
so other than a readonly reference, it also must make the array immutable, or something
also relevant with get{}/set{} syntax
18:57
@Wes how are const arrays implemented?
In docs "When overriding a parent method, the child's method must match any return type declaration on the parent. If the parent doesn't define a return type, then the child method may do so."
Bug description - "It is not right for now"
https://secure.php.net/manual/en/functions.returning-values.php
@tereško new video was.. entertaining
Wes
Wes
was not worried about it being impossible to implement, but rather wondering whether
public const $foo; would make the reference constant, or also make the array immutable
@FélixGagnon-Grenier I would describe it as "accurate"
Wes
Wes
this mixing references and values is so confusing
i thought i liked php's "copy on ref" but it sux, other than being very inefficient
@Jeeves Hm... Very strange. Russian docs has same version with english, but this "note" does not match. But I can't remember this correction in "changed files"... I will recheck tomorrow.
I would think if it was readonly it would be immutable (or if writescope doesn't match currentscope)
Wes
Wes
me too, but just because constant references with value types don't have much of an effect
not because i like it :P
19:25
I love it to see catastrophic slowdown on production due to mysql misoptimizing a query...
because obviously … if I append "AND id <> 0" to the WHERE conditions … then it uses the PRIMARY key for id and disregards and other more useful indices…
starting a fulltable scan on a multiple gb table
for every user basically
19:47
hello guys?
@JoeWatkins Already had some chance to do whatever you needed my mac for?
why does SessionUpdateTimestampHandlerInterface::updateTimestamp receive the session data? Isn't this redundant as this method is called when $_SESSION wasn't modified?
20:32
Right, I'm already moving my stuff to 7.4.0:
Released: ocramius/proxy-manager 2.3.0 https://github.com/Ocramius/ProxyManager/releases/tag/2.3.0 This release supports and requires #PHP 7.4.0 (yes, you read that right), and supports typed properties in the implemented proxy generators. Thanks @malukenho for the massive amount of help given!
@bwoebi not yet, I got caught up in other things
@Ocramius little premature
 
2 hours later…
22:49
@Ocramius why didnt you release it as beta? 7.4 can always change in ways that breaks your 2.3 release
morns
So, I've got a bit of a dilema for exception handling
Do I:

A) Use a "global" to store a pointer to an error object, and check to see if that pointer is null after every operation that could raise (and return from the current stack entry if so). This would unwind the stack quite nicely, and free everything, but is checking a global most operations...

B) Use a longjmp, which would unwind the stack, but prevent me from freeing any variables along the way (at least make it much harder to do so). But I don't need to branch on every operation.

C) Implement a go-style return from all (even void) functions: `struct {char was_error, union { Error e
Any thoughts?
Or D) Use longjmp, but instead of a single time, keep a stack of jmp_buf entries (at least for those that have resource allocation), so that it can be unwound correctly, free variables along the way, and avoid many branch instructions...
hmmm...
23:13
@ircmaxell As far as I remember PHP does not have struct, so I would guess you are inthe wrong chat :)
@ircmaxell that is for the generated code I assume? a.) and c.) are very similar considering you check the error either "inside" or "outside" of the call itself. how does dmitry solve this? i assume jit would need to do something similar? i would favor the go style if it avoids the global, although having the error check after each call feels like responsibility is at the wrong location
@beberlei he likey has access to mutate the stack itself
and yes, for the generated code
@b.enoit.be anthony is building a PHP code to C extension generator via the new FFI extension in PHP 7.4 :)
@beberlei my goal is to replace PHP entirely. Not even just extensions
23:30
@ircmaxell can't you just keep information about on what stack frame you are and create handling code at the end of the function (which, by default just does freeing and rethrowing but can also contain catch blocks etc.)? So each time an exception is thrown, you look the parent frame up, find the location where it is handled, ensure your $rbp is reset properly (pop'ping) and then simply change $rip to the target destination.
i.e. you then have a mapping of caller-ip to freeing code
a trivial way to map it would be a nopq 0xaddress right after the callq instr
so that you can really just look at the return address of the current stackframe to figure out where to jump to
afaik the processors are really good at ignoring nops without real overhead (regarding cycles)
but I have no data to back that claim up, so you'll have to figure it out
the problem with a longjmp is that you always have to have a setjmp and freeing is defacto impossible (unless you setjmp at every single function call … don't do that. too expensive)
so you'd just generate dedicated freeing code which is not executed if all is fine (and can then jump back at the right location in case of catches or such
@ircmaxell wow o_o
23:46
@bwoebi I can't issue ASM from libgccjit
So in pure C, what other choice do I have other than setjmp in (almost) every stack frame?
@ircmaxell ugh. okay that's stupid now. Then you pretty much are restricted to setjmp(), but that'll probably cannibalize your performance
I though can only recommend getting hold of some asm for that…
I can't.
So, between setjmp and returning a union with a flag, which h do you think?
I think the union with the flag will have least overhead due to the branch predictor only failing when an exception is actually thrown
Even with the extra indirection for actual results? Or should I go with a global?
use a global

« first day (3073 days earlier)      last day (2099 days later) »