« first day (3433 days earlier)      last day (1737 days later) » 
00:00 - 17:0017:00 - 00:00

cmb
cmb
17:21
@Derick problem is that it's actually too hard to fix, because the behavior sometimes appears to be arbitrary; or is there an explanation for 3v4l.org/nODug ?
all three?
Is there a simple way to measure the memory in bytes of a HashTable?
I don't recall seeing any helper functions for anything like that.
Trying to measure how much memory I'd save by serializing/compacting certain ones when I'm pretty sure I'm done with them instead of waiting until I know I'm done with them.
18:28
checking whether the C compiler works... no
configure: error: in `/home/kelunik/.php-build/release':
configure: error: C compiler cannot create executables
See `config.log' for more details
I'm using the same script to compile PHP like I always did, but suddenly it fails during configure. The extended config.log error can be found here. Can anyone help?
@kelunik did you mess up your cc symlink?
18:45
No idea
the creativity people develop to propose alternative syntaxes to <<>>
people on the mailing list, get into 20 mails of back and forth before i shut it up and then they ask if i saw that single question in the chat... no i didn't
19:29
@bwoebi askubuntu.com/a/647593 helps, interesting...
@Ocramius Here is the test output I got:

1) ProxyManagerTest\Functional\MultipleProxyGenerationTest::testCanGenerateMultipleDifferentProxiesForSameClass with data set #8 (ProxyManagerTestAsset\ClassWithMixedReferenceableTypedReadOnlyProperties Object (...))
Error: Cannot unset final property ProxyManagerGeneratedProxy\__PM__\ProxyManagerTestAsset\ClassWithMixedReferenceableTypedReadOnlyProperties\Generated82308f023283f22e730fc1d24360fa5f::$publicBoolProperty

ProxyManager/src/ProxyManager/Factory/LazyLoadingGhostFactory.php:108
I saw that $publicBoolProperty has a true default value, so if I got it right what the test does then the error actually makes sense - because the property is not uninitialized anymore.
that's why it can't be unset
or something else should happen? O_o
(Confirmed. I removed the default value and now the exception is for $publicNullableBoolProperty)
19:53
To be honest, I kinda like the <<attribute>> syntax :D
@bwoebi g++, libxml2, bzip2, zlib, sqlite, libxslt, and readline headers were also missing, no idea how they got removed...
@BogdanUngureanu it feels 50/50 at the moment :)
@beberlei Hard to follow that conversation, as half of it is going right into -> spam
20:15
@beberlei I see lots of bikeshedding over the syntax, but so far the discussion is overwhelmingly in favor of attributes in general. So that's already much better response than a few years ago.
@Crell yes
 
1 hour later…
21:36
@beberlei Oh man, the "list" knows nothing about grammars or parsers
i don't either, but i know whom to ask ;)
The short closures discussion was so hard to bear through because "why don't we use..." suggestions.
I am in team "blurgh << >>" but part of that is because I think they could get confused with eventual generics, and part of it is because I think it just feels too visually noisy... but i'm 100% in favour of the feature in general terms
A question I would pose is, what will a comment above an annotation refer to @beberlei?
@MarkR hm let me test how it works.... interesting question
Yup. Would comments be forced to come after annotations, or could they be before and would just pass through to the next function / member, or would a comment be bound to the specific annotation
21:46
comment is not bound to attribue
What is that <<Foo>> about? Have not yet read the RFC.
So

/** Hello World */
<<AttrFoo>>
<<AttrBar>>
function example() { ... }

Would attach "Hello World" as the reflected comment to fn:example?
found it. Attributes v2. annotate all the things.
<<Salty(true)>>
public function passGetDebugTypeWith100Percent(): bool { return false; }
<<Exit(0)>>
function doImportantStuff(): void {}
21:52
it has to be docbloock attributes fn-declaration
Stupid question: if <<>> is chosen for attributes, would that mean generics would be a bit trickier to implement from the parser's pov?
@NikiC ^ people keep asking that :)
@BogdanUngureanu No they just use >><< instead
@hakre supreme trolling :D
sorry, couldn't resist. ^^
21:54
If // is a comment, maybe \\ could be an annotation \o/
<[(\\ true annotation here \\)]>
the parser should automatically detect some kind of symmetry in the ascii-art and then decide it's an annotation.
<((((((< SomethingFishyAnnotation
How about:
&otation: Jit(false);

Just say you typo'd and call them andotations.
/ Attr / !
oh damit marking down
andodate all the things!
21:56
Hmmm, on a more realistic note... ¬ isn't up to much, is it?
ando date, now, maybe that translated into old greek might get us into something.
@MarkR I would insist of US-ASCII compat.
Oh balls is it high alpha
oh github was so nice before they introduced these modern unicode emoticons.
I think when it comes to the vote it clearly needs a 27-way vote for the syntax :P
@beberlei: dateando <- this is how attributes / annotations could be named in PHP.
So called dateandoes (pl.). Would be more inclusive perhaps to the Portuguese or Spanish speaking communities.
(maybe pl. would be dateandas then, no se)
22:04
... can't actually think of anything immediately wrong with <[ ]> especially as I could name a class o_o then it'd be like a little airplane.

<[o_o]>
Indeed <[ ]>is pretty straight forward, maybe to better escape make it <[[ ]]> and double use of ] is just forbidden inside a datendo.
Probably couldn't I can see legimate reasons for nested arrays
<?php
<<Foo(<<<EOD
bar
EOD)>>
function example() {}
Doesn't look so nice anymore :D
<[[ MyFunction(123, [ [ "hello" ]]) ]]>
Then again I guess the parser would handle that
come on, don't be stupid. nested arrays are possible with the traditional array syntax.
<[[ MyFunction(123, [ [ "hello" ]]) ]]>
don't overcomplicate things :)
22:10
The "problem" with the need for the closing is that the expr doesn't look for the ; as far as I know?
@MarkR this could be the solution actually <;; .... ;;>
the semicolon is the perfect character for a comment.
which aligns well with dateandas.
and inside a dateando, no-one would write a double ;.
problem solved.
i'll be disappointed if @beberlei hasn't received at least 300 different suggestions before the time it goes to vote.
and it looks like a crab? isn't that genius?
<;; ___ ;;>
marvelous
22:13
It was meant to have eyes but the code removed them xD
@MarkR you know arrow functions took like a year or two to pass, because no one could agree on the syntax
can we have ascii elephants?
@hakre elephpants
for arrow functions its much more important with the syntax though
?P )~
@Tiffany yes exactly those.
?Php ?Php
22:18
:D
Short closures are <3 I hope eventually one day we'll have a way of delegating a piece of code into a function arg (effectively macros)
<?php declare(datendo_delim=?Php)
and for the other example <?php declare(datendo_delim=<;;|;;>)
Now you're just being crazy :P
yeah, it's late. should be finding some sleep soon.
I somehow love the crabs. No idea why.
22:24
@hakre until it starts itching...
hmm, you opened my eyes to a whole new corner of youtube I was not yet aware of.
there is even a crab shooter game?
Well if you like that... may I introduce you to youtube.com/watch?v=rvrZJ5C_Nwg
before I click I have to speak about my disgust that there are actually people just re-uploading videos just with 200% speed? WTF.
@MarkR reminds me a bit of scooter.
22:41
ah the good ol days
I was helping put on a music event last month and they were doing "modern" dubstep and I wanted to blow the building to bits.
@JoeWatkins Any recommendations for me about this?
5 hours ago, by Levi Morrison
Is there a simple way to measure the memory in bytes of a HashTable?
Maybe just call it good at sizeof(HashTable) + sizeof(Bucket) * nNumUsed?
I guess I need to take into account strings and such, but maybe that's good enough at that point.
Could you delete it, and check the memory again?
That's a pretty good idea, actually.
@LeviMorrison I had an implementation for php5, but not sure it'll work on php 7
Also, it probably doesn't guard against recursion mind you
Ah wait wrong link
But that includes the array values as well.
22:58
@MarkR I lucked out; I only have one place this is used and it deletes the data right after anyway :)
@beberlei I don't see any possible impact this could have on generics
generics are not used in expression prefix position
i guessed as much, thanks :)
MissVudge ・ *General Issues ・ #79366
We both closed that bug at the same time.
lol
Spam... bugs.. me
23:10
I see what you did there
Jpv
Jpv
23:32
Hey guys, quick question for those who are Laravel Devs.
I have a one to many relation. The One is a Users Table . and the Many have a Id, user_id, value_key, value columns
I'm able to retrieve the relation with no issues
but i would like to make it smarter. Where i can go as $users->relation->value_key , so it returns the value column
So pretty much assign the value keys as properties for my relation
atm, my relation returns multiple rows and i'll have to iterate through every single one to see if a specific value_key exists. I think this will not be efficient if i have to this on my index pagination
and ideas how i can achieve this?
00:00 - 17:0017:00 - 00:00

« first day (3433 days earlier)      last day (1737 days later) »