June Meetup: Time to first paint + Hacking your hosting

Events happening in the community are now at Drupal community events on www.drupal.org.
megan_m's picture
Start: 
2024-06-20 18:30 - 20:30 America/Toronto
Organizers: 
Event type: 
User group meeting

Thursday, June 20 - 6:30-8:30PM
University of Waterloo, Hagey Hall rm 119.

Detailed directions to the room

Part 1: Optimizing time to first paint

Martin and Eric will demonstrate a website that loads critical CSS so that the first paint of the site happens very quickly and improves lighthouse scores dramatically. They will show how tailwind and preprocessing is used to obtain this slick implementation and any questions will be answered.

Then, since we didn't have time for it last month:

Part 2: Hacking your hosting: making things your hosting company will never support.

Liam McDermott will talk about getting around Pantheon's PHP library support using Rust. The client on Pantheon needed to fill PDF forms from user input. Usually PHP developers reach for PDFtk for this, but it's not supported by Pantheon. Liam will share how he worked around this restriction using statically compiled C and Rust binaries. And if we're lucky, we will also answer one of the burning questions of our time: Can Pantheon run Doom?

Online option

We will be posting a zoom link before the meetup starts. Check back here on the day for details.

Comments

DOOM! I'm so here for this.

deviantintegral's picture

DOOM! I'm so here for this.

Unfortunately Eric & Martin

megan_m's picture

Unfortunately Eric & Martin have had to cancel for this month. We will look forward to hearing from them another time.

Does anyone else have something to talk about on short notice? If not, we can just talk about what we all have been working on over the past few months.

I can give a demo of how I

deviantintegral's picture

I can give a demo of how I set up a single ddev install to host 260 (!) Drupal 7 sites all at once, and how we're using it to generate reports such as "what sites use what content types" or "what's the status of overridden features across the sites".

Here is a zoom link if anyone

megan_m's picture

Here is a zoom link if anyone wants to join online!

https://us06web.zoom.us/j/84167494344?pwd=6BIdM9Nv4FnbyhnUEnG7cM0heBDUUt.1

Passcode is 210175

Thanks for coming to my talk!

liam mcdermott's picture

Thanks for coming to my talk! Here's the example repo for running a Rust binary from a Drupal module: https://gitlab.com/woolwichweb/pantheon-bin

Note: there are ways to run your binaries without passing any user-given parameters to the shell, so it can be perfectly safe. The example I gave during the DUG passes all user parameters in a yaml file, which is named using an entity id. So, only a numeric entity id (generated by Drupal) is passed through the command line.

Regarding Doom: the implementations of Doom I found use SDL, which can run headless with just an environment variable change. But that requires framebuffer access, which Pantheon does not expose. So, that's where I got stuck.

However, it might be possible to fork and patch one of those versions of Doom to use a dummy display instead: https://discourse.libsdl.org/t/possible-to-run-sdl2-headless/25665

Andrew also pointed out there's an ASCII Doom implementation: https://github.com/wojciech-graj/doom-ascii
I checked it out, and it looks really promising. There is still hope for Doom on Pantheon! Until they ban your account.

Waterloo Region Drupal Users Group

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: