checking whether to enable multibyte string support... yes
checking whether to enable multibyte regex support (requires oniguruma)... yes
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met
This is after I rebased on to PHP-7.4, so maybe a change there?
@rtheunissen I've been catching up on immutable collections. I might give a whirl at plumbing up the C++ immer library to PHP.
@bwoebi This one should really be simpler than doing it in the parser directly. And bison already does the right thing. I wonder why there's no way to tell it that.
Well apparently there is a way, in very new versions of bison you can add per-rule %expect to specify that this specific shift-reduce conflict is expected and resolved correctly
I wouldn't want to keep this kind of stuff without that feature, especially as doing the same for arrays brings conflicts up to 10 or so
@PeeHaa So far I've made stupid "I took an arrow function to the knee" jokes the couple times I had someone with a really strong opinion. \Dunno, \PHP \syntax \is \an \art \of \the \possible. :)
There are just over two weeks left for you to enter “Help You Help Me: The Sweepstakes”. If you want me to draw you, get to it! In fact, I’m feeling a bit generous/devious today. In case you don’t want to leave the drawing up to chance, I will add a bonus contest this week: All of the text in the first panel comes from direct quotes of Netflix previews. If you can name the four Netflix.…
@MadaraUchiha why are there even two different syntaxes for that purpose? I.e. any reason why they chose to have in for string unions and disallow it for the type of a key?
ahh, the good old "run ./configure --with-a-bunch-of-stuff, wait for it to fail because of a missing dependency, install said dependency, and retry" loop
@PeeHaa @Wes From back in the day. I actually opened for AK1200 one time. Drum and Bass is an interesting genre- people either love it or hate it. youtube.com/watch?v=6SrehZGnh-4
@ircmaxell I never understood how we (as in the tech community) didn't manage to change this pipeline so that it can report on all errors, at least on all of one stage. (Not that I put a lot of effort into finding out..)
@NikiC I'm not sure what to call it. It's two red-black trees.
Outer tree which keeps track of min/max where each node is a subtree of size 2^n. Using n=10 for now but 9 or 8 are options too.
No temporary array in get_gc, per-subtree structural sharing, subtree nodes are contiguous zvals with p, l, r, flags squished into u2. References are 10 bits unsigned because we only need 1 flag (color).
@Gordon Srs question, I need to transfer about 5k to my UK bank account from an EUR account... is now the best time, because the exchange rate will really plummet?
Not an expert on the subject, but if the pound will devaluate relatively to the euro, you should keep the euros. (they are worth 4k pounds today, and may be worth 6k pounds if it really goes down a lot)
Have a csv file I have been uploading everyday into a database for several years. Just stops working yesterday. Says it was successful but says 0 rows affected. Cannot figure it out.
I tried to look into a couple of issues but I also don't know a lot in that area :P But it's on my list
Ugh.. I lost my conversation with a guy that was trying to implement some stuff on top of it. I think he actually opened a couple bug reports after the original one. Have to look for it
I'm doing a POC on the brace construction syntax. At the moment I am getting a reduce conflict on... the closing curly brace. Definitely not what I expected, ha.
@NikiC Any way you can disable non project members approving PRs so I don't get emails from such? Like that guy that was randomly approving a brunch of random ones of old
I'll ask some of the DevOps at work if such a thing exists, we run Enterprise but there is a lot of differences (like Draft PRs are not available on Enterprise for some reason)
@NikiC I mean, tell me what I've done wrong, because I don't get conflicts.
It's been a while since I did grammar things, but seems fine to me aside from the fact the actions don't do anything.
They share the same prefix, and there is a fixed lookahead (I don't know what it is, but it's fixed).
Oh, I guess the compiler does need to check that the derefencable makes sense for the op, maybe. I know we don't like pushing work to compiler if we can help it but it works.
Oh, maybe it's fine to just do name '{' brace_construction_members '}. I didn't get a conflict.
Hmm, is there a reliable way to create a cycle that isn't GC'd until gc_collect_cycles() is called? I can't seem to find anything in the test suite. Maybe references?
i just had a full day of tests and experiments with various customer sites, no tideways, only monitoring tideways or 100% tracing tideways is apparently not measurable on real customer traffic w.r.t. cpu load or latency.
i am a bit confused by the result, but I take it :o
Fatal error: Uncaught TypeError: Argument 2 passed to Roave\NoLeaks\PHPUnit\MeasuredTestRunMemoryLeak::fromTestMemoryUsages() must be of the type array, null given in /home/ocramius/Documents/roave/phpunit-memory-leak-detector/src/MeasuredTestRunMemoryLeak.php:38
Sorry to ask a regex question, but why does this not satisfy a pattern for a string that must contain upper case, lower case, numbers, min 8 characters, and no other character (such as _ or * etc) ^([A-Za-z0-9]{8,})$
If you need one single regex, try:
(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W)
A short explanation:
(?=.*[a-z]) // use positive look ahead to see if at least one lower case letter exists
(?=.*[A-Z]) // use positive look ahead to see if at least one upper case letter exists
(?=.*\d) ...
You'll want to use preg_* to assert that the string matches the pattern for content, not length, and then separately do a strlen($s) >= 8 to validate length
@rtheunissen I don't know anything about zend_gc. I need to learn at some point, because immutable, persistent data structures do better with garbage collection than they do with reference counting.
@LeviMorrison Of course, because they can share with more granularity and each "node" does not require a zend_object. However, given that we have the mutable structures implemented such that clone simply increases the refcount of the internal structure, my feeling is that we can provide decent immutable implementations already. Far, far better than anything you can achieve in userland anyway.
Heh I want to match the array performance so badly ><
Turns out subtrees of 127 is actually the fastest and uses the least amount of memory (on my comp anyway..)
Each subtree is a zend_object so is refcountable / shareable.
@Ocramius Not sure if that's the right way to pester you, but it seems orm:schema-tool:drop --force fails silently when using pdo_mysql driver if user does not have drop privileges on the database
Unrelated.. if a .c file uses something defined in its corresponding .h file, but its actually something internal to that module, should it still be in the .h? Or is it more like class/interface where only the public interaction is declared in the header?
what do you mean by module ? compilation unit (c file) ?
internal to the library/executable - just don't export it, doesn't matter what header it's in ... if it's only used in that compilation unit, then probably don't forward decl in header to begin with
then forward decl at top of c is most you need to do, and may not need to do that ... you may also want to consider inlining it ...
as mentioned in that readme, use as inspiration, not a complete thing, I suck very hard at ui stuff and am not really interested in getting any better, but should give you a good idea of how to put such a thing together for yourself, it was just an interesting demo ;)
got myself into a crazy argument with a client today. so basically he wanted to use some particular blue hue, i was insisting for another blue that looked way better. eventually i gave up and agreed using his blue. that was like a month ago. today calls me super angry claiming i changed the blue without his permission to the blue i wanted to use
...... turns out he was just using a different computer with a different monitor that displayed the blue differently