ohai.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A cozy, fast and secure Mastodon server where everyone is welcome. Run by the folks at ohai.is.

Administered by:

Server stats:

1.8K
active users

#require

0 posts0 participants0 posts today

The number of pedestrian deaths in the United States is skyrocketing.
In 2022 traffic crashes killed 7,805 people on foot
—that’s an 83 percent rise from 2009, and a 40-year high.

The vast majority of those deaths involved a car colliding into a human.

✅ In September, the National Highway Traffic Safety Administration took a significant step toward addressing the crisis of killer cars,
proposing a new federal rule that would #require—not ask—carmakers to ensure that the front ends of their vehicles do not create excessive risk of pedestrian head injuries.
Should the proposal become law, hulking SUVs and pickups would face particular challenges passing NHTSA’s mandatory tests -- ❇️Some cars would have to get a little bit smaller.

This wouldn’t solve car bloat;
the head is just one part of the body that can become damaged by a vehicle.
But is a watershed moment for the NHTSA,
⭐️the first time the agency has demanded that automakers adjust the physical shape of their vehicles to mitigate danger to those on foot.

👉Currently, the NHTSA is soliciting comment, with the general public and automakers able to weigh in and help determine whether the rule ultimately goes on the books or gets watered down. 👈
The country stands at an important juncture, where it could finally start fixing the deadly problem of large cars—or allow them to continue their expansion.

slate.com/business/2024/10/car

Slate · The Solution to Giant Killer Cars Is Really, Really SimpleBy David Zipper

> The recent update in Node.js introduces an experimental feature that allows require() to synchronously load ESM graphs that do not contain top-level await. This feature is significant because it allows developers to use require() with ESM.

zacharylee.substack.com/p/nati

Web Dev Explorer · Native Support for CJS/ESM Interoperability Begins in Node.js 22By Zachary Lee

When it came time to contemplate marriage, Princess Ricardis placed an announcement in the papers.

"I #require that all suiters wear their hair in an odd number of braids. Additionally, they must wear robes of iridescent feathers--but no birds are to be harmed in the making of said robes. When visiting, suitors must always bring sardine treats for my cat, pig ears for my dog, and apples for my pony..."

The requirements were many. Ricardis had strong likes and dislikes. #wss366, #microfiction

Kevin crawled out of the access tube, his face covered with coolant and grease. "The quantum interface recrystallization engine is totally burnt!"
"Damn this junk heap!" the captain kicked a bulkhead in frustration. "QuIRE units have been obsolete for centuries. How are we going to re-QUIRE the Kittycat Go Boom?"
"Cap! There's a derelict shipyard around that red dwarf!"
"God help us if there isn't one there or we'll be joining their 'fleet'. Fire those engines!"
#wss366 #require

Replied in thread

@postmodern It depends very much on the size of your $LOAD_PATH.

This (w/ foo.rb being just an empty file):

$: << "."
#require 'foo'
require_relative './foo'

Uses 6 syscalls to identify the correct files (which is already more than necessary - it repeats a couple of calls for some reason)

With the require instead of the require_relative, it takes 8 more because of my chruby setup

EDIT: I need to test when Rubygems does; it doesn't for default gems, but may still for others