@nielsdos@phpc.social avatar

nielsdos

@nielsdos@phpc.social

Contributor to the PHP core

This profile is from a federated server and may be incomplete. Browse more on the original instance.

nielsdos, to random
@nielsdos@phpc.social avatar
nielsdos, to random
@nielsdos@phpc.social avatar

Users: <x> has so many bugs
Maintainers: Have you made a bug report yet?
Users:

nielsdos, to random
@nielsdos@phpc.social avatar

I'm excited to announce the next revolution in PHP! For 30 years we have been forced to use dollars for variable names, but this ends in PHP 8.4.
PR: https://github.com/nielsdos/php-src/pull/101 (Monetary conversion rates have not been implemented yet)

video/mp4

beberlei, to random
@beberlei@phpc.social avatar

How can I achieve a 94% performance boost? In this particular case, by an optimization in the DOM extension. Thanks @nielsdos
Read more about this performance fix in my latest blog post.

https://tideways.com/profiler/blog/measuring-the-dom-namespace-reconciliation-performance-fix?utm_medium=social&utm_source=twitter&utm_campaign=measuring-the-dom-namespace-reconciliation-performance-fix

nielsdos,
@nielsdos@phpc.social avatar

@Crell @beberlei The important part was avoiding O(n) insertion of the namespace by adding it at the front of the "old namespace" list instead of the back. To be more specific, make sure it's added at the second position within the linked list, the actual front position wouldn't work due to API constraints of libxml (the first namespace must always be the XML namespace).
With the new DOM classes, all of this mess is avoided because we no longer need namespace reconciliation.

derickr, to ArtificialIntelligence
@derickr@phpc.social avatar

📹 I've published a new video, explaining the Ramer-Douglas-Peucker line simplification algorithm.

➡️ https://www.youtube.com/watch?v=SbVXh5VtxKw

nielsdos,
@nielsdos@phpc.social avatar

@derickr Nice, concise explanation. Reminds me of some other recursive similar algorithms I had in class back a few years ago. Enjoyed watching.

nielsdos, to random
@nielsdos@phpc.social avatar

And off we go for the next part!
https://github.com/php/php-src/pull/13664

nielsdos, to random
@nielsdos@phpc.social avatar

I just merged the ext-DOM spec compliance RFC PR. Thanks to everyone who helped along the way, and a special thanks to @Girgias for reviewing!

Crell, to php
@Crell@phpc.social avatar

And of course, this site features a half dozen languages and their package system... But forgets about .

Even if you don't use PHP yourself, ignoring one of the largest and best designed package systems (/) is just dumb.

https://deps.dev/

nielsdos,
@nielsdos@phpc.social avatar

@Crell Not surprised, the industry seems to want to push PHP out of it. Relatedly the number of times I've been told I shouldn't waste time helping php-src maintenance is uncountable, which shows the view on it.

nielsdos,
@nielsdos@phpc.social avatar

@Crell Has it actually always been like that (for both parts of your answer) or is this an evolution?

nielsdos,
@nielsdos@phpc.social avatar

@Crell @heiglandreas Related to this aspect: I noticed with my ext-dom (and in general XML extension) involvement, that I find it hard to reach the right people via the RFC process. I have a few people that I contact off-list, that don't participate in internals, to discuss API design aspects on my RFCs (which is great of course!). But inside internals there's few people that actively do.
And when it comes to discuss the implementation aspects, really only Gina can double check my work atm.

asgrim, to random
@asgrim@phpc.social avatar

Naming things is hard! What would you suggest for a name for the new PECL installer tool that is being worked on? 📢

nielsdos,
@nielsdos@phpc.social avatar

@asgrim simple and straight-forward: pecl-install
I prefer straight-forward over fancy

ramsey, to random
@ramsey@phpc.social avatar

I did some coding on an open source project today—first time in what feels like ages. I enjoyed it for a bit, but then got preoccupied looking at job postings, and that derailed me, and I couldn’t refocus on the code, after that.

nielsdos,
@nielsdos@phpc.social avatar

@ramsey Sorry you have to go through that

nielsdos, to random
@nielsdos@phpc.social avatar

https://3v4l.org/4Nd5F (not my discovery, just stumbled across this and found this funny)

nielsdos, to random
@nielsdos@phpc.social avatar

Started a discussion about fixing the DOM extension spec compliance: https://externals.io/message/122169
Feel free to chime in :)

ramsey, to random
@ramsey@phpc.social avatar

So sad I have to go to that other site to see regular updates from @thephpf.

nielsdos,
@nielsdos@phpc.social avatar

@ramsey Hack: watch the GH repo, that's how I stay up to date :P

ramsey, to random
@ramsey@phpc.social avatar

Conversations I don’t want to have right now but which are necessary:

“Please tell me about your pet euthanasia services and who you recommend for pet cremation.”

nielsdos,
@nielsdos@phpc.social avatar

@ramsey Sorry to hear that, as a pet owner myself I feel you.

nielsdos, to random
@nielsdos@phpc.social avatar

Writing an RFC text really sucks the soul out of me, I much prefer doing the actual coding and PoC part.

nielsdos, to random
@nielsdos@phpc.social avatar

Coming soon to a DOM extension near you: native querySelector(All) support. Here's a sneak preview.

video/mp4

nielsdos, to random
@nielsdos@phpc.social avatar
nielsdos, to random
@nielsdos@phpc.social avatar

Just found out that the W3C XML serialization specification contains unresolved bugs wrt namespace prefix collisions.
Now I have to figure out what browsers actually implement as fixes...

derickr, to random
@derickr@phpc.social avatar

Finally, after a flight cancellation and two hours delay on our rebooked flight: Beer!

nielsdos,
@nielsdos@phpc.social avatar

@derickr Excellent choice of beer ;)

nielsdos, to random
@nielsdos@phpc.social avatar

I started porting a part of the WHATWG/W3C "Web Platform Tests" for DOM manipulation to PHP.
With my current DOM "spec compliance" development branch, a lot of functions are already passing the tests.

nielsdos,
@nielsdos@phpc.social avatar

All ported tests now pass!

video/mp4

ramsey, to random
@ramsey@phpc.social avatar

Just received word that a company I was really hopeful and excited about joining decided not to pursue me as a candidate, after making it to the final round of interviews. The only feedback I got was that there was “concern” over aspects of my technical interviews, but they couldn’t give me any more information than that.

I was really hopeful that I’d have an offer this week, so I could rest and relax over the holidays, but it looks like that’s not going to happen, now. 😭

nielsdos,
@nielsdos@phpc.social avatar

@ramsey Damn that sucks man, best of luck with your search in '24!

nielsdos, to random
@nielsdos@phpc.social avatar

I've started writing writing down a list of all spec compliance bugs in ext/dom. https://github.com/nielsdos/php-src/blob/dom-spec-compliance/bugs.md
If anyone notices something missing, please let me know :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • thenastyranch
  • ethstaker
  • osvaldo12
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • ngwrru68w68
  • slotface
  • GTA5RPClips
  • rosin
  • megavids
  • cubers
  • everett
  • cisconetworking
  • tacticalgear
  • anitta
  • khanakhh
  • normalnudes
  • Durango
  • modclub
  • tester
  • provamag3
  • Leos
  • lostlight
  • All magazines