« first day (3070 days earlier)      last day (2102 days later) » 

00:07
@beberlei although I am fully behind this, I am increasingly feeling that the hard coupling to libxml2 is the biggest problem with PHP+XML in general. It doesn't seem likely that it will ever support xsd 1.1 or generally anything new (which people do actually use in java/.net etc) and it does odd things with namespacing sometimes and it's not re-entrant so you can use zend allocators so it's not protected by memory_limit and <plethora of other niggles>...
I'm all for keeping userland up to date, but if you want to work on stuff with ext/dom then consider an abstraction layer, or at least keep it in mind when writing new code... full disclosure I have started playing a couple of times but never got anywhere, and I'm not in a position to work on it at the moment
there are licensing issues that mean that (afaik) libxml2 is the only option for something you can ship with PHP, but on windows you could use MSXML2 and potentially everywhere you could have the ability drop in sax or whatever via ext
it is a fucking insane amount of work though
@bwoebi power failure, sorry about that
oh right in fact, mildly entertaining story there, water works outside the building, they essentially cut through a 15KV master feed cable with bolt cutters thinking it was a water a pipe and took a whole block on one of the biggest roads in the city off for a whole day
still looking for a better place to run it btw... it needs 4 cores/4GB on a box with nginx and docker if anyone has one of those... resource usage is generally very low but big indexing operations (large new projects) can max it out for hours at a time. We could run it on a VPS easily but I'm not paying for it all by myself :-P
Wes
Wes
00:25
hey dave
If only PHP had an array_resize() function...
@Trowski Not totally sure without digging into it properly but iirc about 90% done, 0% tested. I do remember feeling very strongly that it was a shitload generally better than v2 and it's probably worth finishing
@Wes o/
Wes
Wes
array_trim()
@ircmaxell <with zero context> wat?
Wes
Wes
resize the hash table to roundpow2(count(array))
00:27
aren't hash buckets individually heap allocated?
(I haven't looked at the guts of arrays for years)
7 hours ago, by ircmaxell
So, I'm wrapping my head around how to compile hash tables...
From there down
oooooh
interesting
Specifically, I want to compile that to native.
NativeArray is one take on that, but I am having trouble figuring out how to make that type safe without a shitton of hackery
And to be honest, I would rather not have to implement generics for this
Though if I have to....
I really don't want to because then I have a chicken and egg problem. Though I can use my generics lib for thay
OK so please humour me for a second because I have clearly missed a lot :-P your "generics lib" is what, exactly? i.e. pre-processor, zend ext(?), other - specifically, does it involve run-time type checks?
The problem is I can successfully determine the type of [1,2,3,4] as int[4] so allocation I can do. But how do I grow that to int[8] using native php
@DaveRandom it is a preprocessor to convert generics into templates using some dark voodoo like code generation and eval
00:43
Hello
the default method for posting forms is GET, my question is there any advantages for GET other than it is suitable small amount of data and it capable for web browsing cache and bookmarking
@ircmaxell well I can already tell it's insane :-P github.com/ircmaxell/PhpGenerics/blob/master/lib/…
Hehehehe. Yeah, that one was fun ;)
@ircmaxell OK right so I think I have a clear enough idea of what that is that I can sensibly ask... wtf are you doing that touches internals there? basically why are you talking about compiling stuff to native types? are you looking to build an extension or... surely you can't change the actual guts of an IS_ARRAY without changing stuff in php-src?
@ircmaxell took me a good 2 mins and 3 googles to understand that 23 line file :-P
00:48
Not touching anything in zend. Building zend in PHP itself
I meant in my question why the default method for posting forms not to be post?
oooooooh kaaaaaay....
now that is absolute pants-on-head madness, but cool
Oh, it is batshit insane. But that's me in a nutshell
@PHPFan this is probably a more complicated question than you bargained for :-P
lol
00:51
@PHPFan this isn't a terrible place to start if you want to understand the answer
the simple rule is this: unless you are sending sensitive data or a file from the browser to the server, you should probably use GET
yeah
POST is for the very specific case where the user is doing something that will have a different effect if they do it more than once
that feels like a bad explanation
you could google "idempotence" but that probably won't be all that helpful
read the wikipedia article
alright
@Wes not sure if serious, but huh?
@ircmaxell OK so I presume you are doing an absolute crapload of static analysis there, it should be fairly easy to detect arrays that are populated in loops, many of which will have a predictable size so you can just pre-allocate it, job done. for everything else a constant growth of, say, 32? reasonable balance of reducing allocs and wasted mem, since they would be a lot smaller because they are native
I suspect the size of a lot of arrays (esp of the same type) can be pre-determined through static analysis/reading the value of some known counter var, I know I have written code like this a shitload of times:
for ($i = 0; $i < $analysable; $i++) {
    $arr[] = expr($i);
}
// or
foreach ($analysable as $v) {
    $arr[] = expr($v);
}
those are easy wins and (I would guess) account for enough cases to make a dumb fallback worthwhile
my gut says it's rare that that you have an array which is dynamically constructed and can't be analysed unless it involves external I/O, in which case allocs are the least of your perf problems
01:23
Possible in many cases, sure.
But what if it is this particular loop:
for ($i = $this->tableSize; $i < $newSize; $i++) {
$this->indexes[$i] = self::INVALID_INDEX;
$this->buckets[$i] = new HashTableBucket(new Variable(Variable::TYPE_UNDEFINED), 0, '');
}
In that case, is it reallocating? I mean I guess I could put a conditional on there, but then that means I need to compile a tracking variable to keep track of the size. Which means it is no longer an array, but a strict containing an array
Which, don't get me wrong, may not be a horrible idea...
Which also means, every array access requires a guard to determine if the size is correct or not
this is the kind of problem that causes me write half a sentence and then think "no that's wrong" and delete it, lots of times :-P
that's why I asked the question in the first place
@ircmaxell I mean you could start with things that you can track the whole lifecycle of (i.e. vars that aren't leaked out of a given scope), dunno how much stuff would fall into that category but certainly some
I keep going in those same circles
@DaveRandom I'm planning on doing that already ;)
So, what I'm thinking now, is I could generate guards
feels like a potentially huge perf hit
01:35
and hoist them as far as possible (as far up as vars are computed)
well, imagine this code:
function foo(int $size) {
    $a = [1, 2, 3, 4];
    for ($i = 0; $i < $size; $i++) {
        $a[$i] = 0;
    }
}
The generated could would look something like:
function foo(int $size) {
    $a = [1, 2, 3, 4];
    GUARD(TYPE_REALLOC, $a, $size);
    for ($i = 0; $i < $size; $i++) {
        $a[$i] = 0;
    }
}
Or
function foo(int $size) {
    $a = [1, 2, 3, 4];
    return $a[$size];
}
function foo(int $size) {
    $a = [1, 2, 3, 4];
    GUARD(TYPE_MAXSIZE, 4, $size))
    return $a[$size];
}
in the first case, the guard triggers a reallocation at that point, the second case would raise an error if size > 3
I don't know if that's solvable in the general case though
Especially with things like break/continue in loops
I would say with a level of confidence that contains a lot of 9s that it isn't solvable in the general case
and so that begs a question, do we generate code that could possibly be wrong but is silly fast (like C) or do we generate code that's 100% never going to fail (read past the end of an array for example) but is either 1) less efficient or 2) re-allocates a bit too aggressively
would love to hear @NikiC's thoughts here
There's another option in this case though. Since I will always be either masking an input hash, I am not sure the performance will really be impacted much, given it is always power-of-2.
So instead of compiling a guard to prevent outofbounds access, I can just rely upon the mask
Awesome. I have an idea how to do this...
 
2 hours later…
04:04
@Allenph yes please
Morngins
evenings
"quick nap" is a lie without an alarm
I'm trying to write a summary for my work history for linkedin, it's not easy
hehe
 
3 hours later…
06:56
Image not found – #77732
Content Issue in URL – #77731
 
1 hour later…
08:00
zero-sum of, relating to, or being a situation (such as a game or relationship) in which a gain for one side entails a corresponding loss for the other side
08:24
git mernings
09:01
IntlDateFormatter parsing incorrectly – #77733
09:13
@ircmaxell ancient version of phpunit used in php-compiler, why is that ?
also morning all
you are right about the libxml problems i suppose, my game plan was not to upend everything and start anew though, i need something small to work on :-) given dom has no primary maintainer i think its safe to make baby steps.

as for the namespace problems, that is actually PHPs dom implementation itself that is broken and does funky stuff. libxml would handle it if it were implemented correctly.
09:31
Seg Fault caused by php_mysqlnd_free_field_metadata – #77734
@ircmaxell typically you round up to a fraction of the next power of two (I propose a quarter of the next power of two), with a minimum allocation chunk size, e.g. 64. Then you take rounding_size = max(64, ((size - 1) >> 2) & ~(((size - 1) >> 2) - 1)); rounded_size = (size + rounding_size - 1) & ~(rounding_size - 1); that way you have a maximum overhead of 12,5%. Still some overhead, but you obviously cannot avoid having any overhead at all (heck, our emalloc() with bins has the same issue)
(If my bitshifting logic is correct, did it off my head now)
you obviously have to store the size of the allocations. (and that's the point where you use your own MM.)
but afaik malloc does also leave some space (it's not like each reallocation call would be expensive, only these which actually move memory)
09:59
in the end, at whatever level you implement it, you will have to execute that very logic, whether it's in the native allocator, in your own allocator or directly accompanying the array.
ok
10:17
@beberlei there's an issue I ran into related to exporting nodes whereby it didn't copy the ns decls, either not at all or incorrectly, and that I think is fixable internally, I'll try and find the specific issue
@beberlei this nasty ass hackery
which is the only code I have ever written which has handled a DOMNamespaceNode, I think
hehe
I'm not even sure it's correct
specifically I don't know what would happen if a document redefines a prefix
I very much hope that's not a thing people do very much though...
10:36
yo chris
o/
@DaveRandom your comment on libxml2 peaked my interest though, its fascinating that there is no xml library in c that is more modern when libxml2 really not implements a lot of the more recent changes (xsl and xpath related for example).
11:05
Wrote “Reasons not to use the curly braces syntax:” and changed the implementation.
https://wiki.php.net/rfc/deprecate_curly_braces_array_access
@rjhdby Depreciation and deprecation are somewhat related, but different things
I depreciate @DaveRandom very much, but I don't feel to strongly about deprecating him
Also " this syntax has reduced"
Also 2: the future scope process seems convoluted to me (going through all the levels)
is that new %token absolutely necessary ?
@JoeWatkins it defines the precedence
@PeeHaa Thanks. Unfortunately I'm not good in english :( But I'm work on it :)
Also 2: I'm do not know if 7.5-7.6-... is in roadmap. So if yes, then 7.5 - warning, 7.6 - error etc. If not, then 8.0 - warning etc.
that couldn't reuse T_ERROR ?
11:21
@JoeWatkins it doesn't need to be a token. could just be E_DEPRECATED
what do other deprecations do, why not do that ?
or "1" if we're very fancy
yeah
right, then do that, don't add another token ...
or possibly best, #define ZEND_ALTERNATIVE_ARRAY_SYNTAX 1
11:24
@bwoebi with that approach, wouldn't I need to branch on every access to ensure I am not overflowing? With a power-of-2, I could just bitmask it avoiding a branch all together
For the allocator itself, I am just calling out to malloc for now.
does anyone know who created fuzzing sapi repo, and or why ?
@JoeWatkins stas, for oss-fuzz
@NikiC inside zend_compile.h or somwhere else?
@rjhdby Your English is fine. Just wondering why you go through all those error levels instead of just deprecated warning and remove right after it
@ircmaxell how exactly are you avoiding a branch?
11:29
I must be missing emails ...
@bwoebi foo[i % mask]
Otherwise every access needs an if (i >= size) { error(); }
ah okay, well you can still do a modulo, just not and
but yeah modulo is not as fast :-D
@bwoebi understatement ^^
Sorry, that's what I meant, i & mask
But I can only do that reliability of the size is an even power of 2, correct?
right
11:35
That's why I am looking for this native array allocation for hash table usage to use power-of-2 increments to the bucket and index list sizes...
@ircmaxell but I'm not sure whether that's too bad even ... I mean, the branch predictor will be like 100% correct here
@ircmaxell don't you need that anyway for the actual error message?
if you just mask you're not going to crash, but it's also not going to behave correctly, or?
The case I am working on here is not general code generation, but hash table.
@ircmaxell ah, so there will be a check for the right key anyway?
So I know that the access will always be bounded because the code ensures that. However, I can't prove that in the compiler. Hence the dilemma
11:43
@PeeHaa Potentially it may provide heavily impact to large legacy projects. Slow growth will give more time to prepare migration. But maybe I'm too cautious.
@rjhdby According to your own text that's not really a problem? :P
> It is very rarely used nowadays.
@PeeHaa legacy is legacy, nowadays is nowadays. Who knows what may rise from abyss of ages.
@rjhdby The good news is that it's trivially upgradable
In fact, you might want to write an upgrade script for it
It's good if you can say that you "just run this script" and it's going to fix this
Hello Dear, I Have a Shared Server, I am Using a Core PHP Code For My Website on Local Is Working Properly but If I'm going to online working properly but if i'm login my admin panel then show connection error - Connection Error SQLSTATE[42000] [1203] User database_user already has more than 'max_user_connections' active connections
12:17
@NikiC Correct if i'm wrong. It is all cases where no ';' or '}' before '}'?
Good morning, room.
@rjhdby As it looks like right now we'll have 8.0 after 7.4
@PeeHaa if I am depreciated any more I will be negative :-P
12:33
:P
@beberlei I mean there are a few (oracle, saxon etc), but afaik libxml2 is the only real foss option, certainly the only one that is compatible with the PHP license. Windows is easy (MSXML2 is extremely full featured and well tested) but other places not so much. I suspect, however, that a lot of *nix envs will either already have, or easily have the ability to install, stuff that java depends on which could be wrapped up into a pecl ext
@LeviMorrison regarding not binding $this if it's not necessary: I think this won't work because things like Foo::bar() may use $this, if it's compatible
the fact that it doesn't use zend allocators has always made me uncomfortable though, seems like a big fat DoS vector as memory_limit isn't respected, so if you can trick an app into loading a 2GB XML doc then you are gonna have a bad time
we could conservatively bind if there are static method calls, but it would no longer be "only bound if actually used", there might be false positives
might still make sense to do it
@DaveRandom yeah, i checked the libxml docs and code, it doesn't even provide a simple way to overwrite the memory allocator for clients of the library. I always feel thats weird of core libraries not to provide
12:39
oh it does, hang on let me find it
but you can't use it because it's not re-entrant
don't know what that means, my memory alloc foo is very small, i tend to rely on zend MM so much in tideways :-)
yes I must admit that my grasp of the actual problem is sketchy at best. The practical upshot is that if you try the dumb approach then it segfaults a lot
@JoeWatkins my system install is still on 7.0. The other versions didn't have openssl configured, so I simply didn't bother. I'm fixing that now by recompiling everything
13:03
Thinking of renaming it to SplMaskedArray
morns
Though that gives me a problem in the static analyzer, in that how do I know the types involved. I can make a generic in the docblock, but man that gets complex quickly
@LeviMorrison As this also works with call_user_func('Foo::bar') and $fn('Foo::bar'), I think automatically determining $this binding may not be a good idea. It's not as straightforward as it seems.
13:23
Additionally this would make the liveliness of the objects much more unpredictable / sensitive to the code - currently it's "obvious", the object will be destroyed once all non-static created Closures stop referencing it (and nothing else as well)
14:16
@beberlei s/peaked/piqued/
I apologise for English being so homophonic
14:42
@NikiC ugh, one more reason to hate this feature.
@LeviMorrison yes... as if there weren't enough
Wondering if we need a different syntax for that
Like uh $this->parent::foobar() or something
Which is ... eeek
Or maybe parent::$this->foobar() I think java has something like that
Yeah, that's ugly. But at least the engine can know.
15:16
Heap corruption in timelib_get_time_zone_info – #77736
Heap corruption in zend_mm_gc – #77737
15:32
Was the push of the php-fuzzing-sapi branch intentional?
4 hours ago, by NikiC
@JoeWatkins stas, for oss-fuzz
So I guess yes
@Tiffany Are you on the discord? I'll hand out my email there and you can email me your resume.
@Allenph yes
@Allenph I have two resumes right now, one I need to polish up, which I'll be doing today or tomorrow for sure. Trying to knock out my dad's job today so that I can get that off my plate...and give me some more programming experience...
Okay. Let me know when you're done. Uhhh...I don't know.
Just posted in there.
15:59
heeyyy
using PDO how can i prepare $_POST? I am using $stmt = $Conn->prepare("INSERT INTO, does that work, or do i need to clear the $_POST before putting the value in my SQL statement?
@SebastianBergmann it's not a branch, rather a new git repo: git.php.net/?p=php-fuzzing-sapi.git
@Tiffany ok, so i am already binding params, but instead of using ? i'm using :binding, so that is correct?
16:13
@Geoffrey it depends on how you're doing the binding. If you're looking for general advice, I'd say just try it and see what happens, using what you've read as a rough example. If you're encountering an error/issue, I won't be able to help without sample code (gist or pastebin), redacting the sensitive bits.
Nullptr deref in zend_compile_expr – #77738
if anything else, use EasyDB
@salathe Ah, that was not obvious from the commit emails.
Afternoon! Any one here familiar with DDD?
@Jeeves dat repro case... :D I guess someone started with the fuzzing already
16:19
@MartinBean you are better off asking a specific question than a broad one
that is to say, you are more likely to get an answer if you ask a specific question, than asking if anyone is familiar with a concept
@Tiffany Thanks. Basically, we’re taking an DDD approach to an application we’re building at work. A colleague’s suggested using commands to fetch data from services, but my (limited) understanding is commands would be used to send “messages” (i.e. to persist/update data). Am I right in thinking this? And if so, what approach would one use to fetch data? Repositories, query objects, other?
16:41
posted on March 13, 2019 by CommitStrip

16:51
I hate budgeting season...
@StatikStasis lol
I had wanted to get two larger monitors at former employer since switching to Windows 10 because I was having growing pains with 1280x1024
but... I don'thave to worry about that anymore :D
@MartinBean commands would be used to decide what to do next, if the current code isn't capable of handling it......e.g. on site I look after we can have a form be submitted, and then depending on some settings, that data might trigger an email to be sent, or some data to be pushed to salesforce.
@Danack Yeah, that’s my understanding of commands too: “Hey, other component. Here’s a message; I want you to do something with it.”
The form processor for us would just accept the form data, lookup what should happen next from the settings in the database, and issue a 'send email command' and a 'push to salesforce command'.
But inside each of those command handlers, and the initial form processor, we just read dat from services as normal
@Danack Someone else is using commands to essentially fetch data from a database, though. Which to me doesn’t feel like an appropriate use of a command?
17:02
yep.
Here's a fun game: Guess the password needed to unlock his PC... https://t.co/pMzXO2J8J5
4
17:25
lol
@Danack thanks :-p
17:42
@NikiC Were you talking about binding $this on short closures? Changing the auto binding vs. long closures would probably be a mistake. Could support static fn() => …
@Trowski yes
static fn is supported
I don't think changing $this binding is a problem (the only thing it effectively impacts is GC behavior) -- as long as we can somewhat reliably detect whether or not $this is used, which we can't
Then I wouldn't worry about $this binding. Leave it predictable – always.
i would like to subtract a date. The date is pulled out of a database and is a string, what is the best way to work with this? I've tried DateTime but it keeps throwing errors about the date being a string.
@Danack qwerty
17:57
@Geoffrey $date = new DateTime($row['date']); $date->modify("-20 hour");
or $date->diff($otherDate)
@beberlei Object of class DateTime could not be converted to string
i used the first option
        $date = new DateTime($date);
        $date->modify("-2 weeks");
        echo $date;
@Geoffrey echo $date doesnt work, you need to do $date->format('Y-m-d H:i:s");
I needed 8 years to learn that I can do stuff like $date->modify('last day of last month');
@kuh-chan with the added bonus that it works funky around month changes and in february ;)
@beberlei i'm just echoing to see if it works and comes out correctly. i am trying to compare a date less 2 weeks against current date. if it's true then it runs some magic
18:04
@Geoffrey you can't echo a $date. PHP coerces it into a string, which dateTime does not like and give you the error you posted
        $date = new DateTime($date);
        $date->modify("-2 weeks");
        $date->format('Y-m-d H:i:s');
        echo $date;
Object of class DateTime could not be converted to string
put your echo one line up - echo $date->format('...'); as DateTime::format returns a string
well that's neat, it worked.
by the way - as you are just learning php. What are your resources?
18:20
@Geoffrey oh sorry for not making it more clear that that line needed to be echoed
18:34
no worries, thanks! now i just need to figure out how to compare it in an if statement and i'm good to go
if think you should do something as... $difference = (new DateTime($dateFromDatabase))->diff(new DateTime());

if ($difference->invert === 0 && $difference->days <= 14) ...
or >=... I don't know what exactly you are trying
i'm working on expiration dates. so if something expires in two weeks, i want it to display an alert, basically
18:56
jeez, both xdebug and phpdbg currently segfault for me on code coverage generation
ok, 7.3 tip's phpdbg does not segfault
@m6w6 have you tried github.com/krakjoe/pcov ?
I use coverage from within PHPStorm, which does not support anything else than xdebug
fake
why are the people always using ... or die("")
because we haven't told them this was a terribad idea yet
so, out of gitg, qgit and gitk, the latter is the only one that can display tags in the history (if you manually configure the view)?
20:12
O/
Anyone know a good series to watch or anime?
Anime: Gankutsuou
20:26
Thanks
Is there a place to watch it in eng?
@kuh-chan yeah, don’t use it though. Explicitly doing the maths around what you mean us good and less surprising.
I think derick has some slides that i’ll find when at a real computer.
20:54
@LeviMorrison even better..
SortedSet? Is this becoming a new SPL class?
I'm just exploring some ideas for now @kuh-chan
@m6w6 phpstorm can use pcov
you just have to configure it and unload xdebug, the options it appends for xdebug will be ignored ...
21:33
@rtheunissen What did you change?
The subtrees are now size 1024.
typedef struct ds_bst_node {
    ZVAL_STRUCT_WITHOUT_U2;
    unsigned parent: 10;
    unsigned left:   10;
    unsigned right:  10;
    unsigned flags:   2;
} ds_bst_node_t;
So there are fewer allocations and subtree splits.
We actually only need one flag though (color) but we fill out the 32 bits anyway.
@LeviMorrison ^
@JoeWatkins PHP_WIN32 is defined by a compiler flag (cl.exe /DPHP_WIN32) afair. MSVC defines _WIN64 if the compiler (cl.exe) is 64bit
@JoeWatkins same goes for TSRM_WIN32 and ZEND_WIN32, naturally
Wes
Wes
is bikeshedding allowed
@NikiC i was wondering... if a prefix is required, then why require also => ?
$o = fn($a, $b) $a * $b;
assert($o(5, 4) === 20);
please don't hate me
@Wes Separation of return type and body.
Wes
Wes
then why it's not optional :P
Weird as it is, it's also easier to read with it there, methinks.
Maybe just conditioning from other languages, I don't know.
Wes
Wes
i don't dislike it, i wonder if it could be better
22:01
But I think you just need to adopt a lisp or scheme so you can quit thinking about syntax -- it's all lists, all the time.
Wes
Wes
f($a, $b) => $a * $b
why fn and not f? i don't remember
@LeviMorrison How about using ==> instead, fn($x) ==> $x * 2, so it's visually separated from key => value usage?
Three characters? Come on...
Also, I don't think it's a real issue.
@LeviMorrison I know… PHP developers would never go for always using 3 characters over 2…
I should try dropping a few in actual code and see how it looks.
People bring that up, but I think it would be rare that you would use them in ways that might potentially be visually misidentified, and even then I don't think they'll be ambiguous, particularly if your editor highlights keywords.
We reuse symbols all the time. & deals with references, bitwise-and, and so on.
22:05
@LeviMorrison You're probably right, I don't think functions will be yielded very often :-P.
@Wes It's in the RFC :P
@Wes Search for T \T \T
@Wes Don't want to make f a reserved keyword ^^
And well, fn has more precedent when it comes to function decls in other languages
@pmmaga we also have the fn key on the keyboard, so it might be just coming from that?
If you want a single character, it had better be lambda, dang it!
🐘($x) => $x ** 2
Wes
Wes
=($x)=> $x * $y
eh, this is nice
didn't know we could use symbols
22:20
@pmmaga it’s the N in “fucking
@Trowski ... what is that?
Wes
Wes
a elephant
@LeviMorrison An elephant. Does it not appear that way to you?
It's just too tiny, I guess.
Wes
Wes
@NikiC no way you can use one character only for => ?
22:26
    \o/
  ___|'__.--,
~(    >  {c .`
 |  |__|   ,= |
 /_/_| |_|\_\ J($x) => $x **2
9
There we go.
Wes
Wes
like =($x)> $x * $y ... fn($x)> $x * $y
It would have to be an operator without a binary usage.
Wes
Wes
so like ! ?
! yes, probably not ?
that's also a logical operator though
22:28
@ ~ are the only other ones that come to mind, neither are good.
Wes
Wes
@Trowski nice art tho
the guy on top is great :D
@Wes Not mine. I stole that from another starred message.
Wes
Wes
i like how recognizable fn is, but i am sure i would get used to something even shorter
=($a)=> $a * $b
@Wes That's way harder to grok IMO.
I'll have to do it when my head doesn't hurt and I'm at my desk
22:35
$1<=($o.$o)=>$1
$1 for every single time one tries to grok it
on that note, me realizes she needs some serious amount of sleep
Wes
Wes
why would you grok closures tho
> Closures now have a pretty small syntax already and they are very readable.
Yeah, we're just not going to agree.
22:59
posted on March 13, 2019 by amphp

- Improved `localhost` handling in edge cases - Improved `normalizeName()` to allow underscores - Renamed `BasicResolver` to `Rfc1035StubResolver` - Renamed `driver()` to `createDefaultResolver()` - Removed `ResolutionException`, catch `DnsException` instead - Removed `InvalidNameError`


« first day (3070 days earlier)      last day (2102 days later) »