Show newer

hot take, javascript 

@serapath Just a .concat wouldn't be enough because it doesn't create a module scope; that's what the small amount of additional wiring is for, but that's also just strings

hot take, javascript 

@serapath Neither Browserify nor Webpack do code transformation (or at least for Webpack that's true in its initial version). Both just do concatenation.

Both support plugins, which *can* do code transformation, but that happens entirely outside of the bundler.

hot take, javascript 

@serapath Like, to be explicit about this: bundling code does not require *any* kind of code parsing or processing beyond identifying require/import calls, which can be done even if with a regex if you want. Which I believe is exactly what Browserify does, too.

hot take, javascript 

@serapath None of those things (code transforms, tree shaking, minifying) are bundling. Source map generation is only a part of bundling insofar it describes the mapping from many files to one JS file.

Calling code transforms 'bundling' is like saying that Make 'compiles' your code. It doesn't. It just invokes the thing that does, if that's what you tell it to do in the process.

(Notably, switching from bundles to manifests also removes exactly zero of those things-that-are-not-bundling from your build stack)

hot take, javascript 

@serapath Generating manifest files is functionally the same thing as bundling. "Bundling" is nothing more than statically traversing the dependency tree and string-concatenating the results with a minimal amount of boilerplate code to make the references work.

I don't know where people are getting this idea that bundling is some kind of highly complex or objectionable or slow process. It's kind of bizarre.

re: hot take, javascript 

@clarfonthey That's a whole different discussion, though, that isn't really relevant for my original post - which is that bundling is, itself, fundamentally a very simple operation (it's basically somewhat structured string concatenation) and there is no reason for people to reinvent that wheel 10 times.

re: hot take, javascript 

@clarfonthey Bundlers have never been slow. You can bundle the frontend code for whole production sites in under like 400ms. The slow part was always all of the shit that people inserted *into* the bundling process (like code analysis, minification, etc.)

hot take, javascript 

@serapath Bundlers are necessary because traversing a dependency graph over a high-latency link like the network is fundamentally not viable.

The problem I am talking about is not the existence of bundlers; it's that there are so many, and that most of them bring absolutely nothing to the table that wasn't already possible in their predecessor.

hot take, javascript 

There is no justifiable reason for so many different extensible (yet mutually incompatible) bundlers to exist, given how trivial of a task bundling is, and the fact that they *do* all exist should raise some uncomfortable questions about why

i hacked a led backlight into a thinkpad r61 this weekend. was kinda pissed at myself because i did the same thing years ago with a x200, but didn't keep notes, and had to basically reverse-engineer myself. so this time i kept notes, which means that in case you need some guidance for hardware crimes, i got you covered:

blog.nadja.top/led-backlight-f

@pseudoramble (It's also achievable through a rule in uBlock Origin, using the mechanism that it uses for tracker sites - which presents an interstitial telling you that it was blocked, and whether you want to proceed)

@pseudoramble I *think* LeechBlock can do this, but I don't remember whether it was that or StayFocusd (the Chromium equivalent).

@wmd@chaos.social In the past I've put a wraparound band *over* my ear instead of slightly above it, and this alleviated the problem in my case, though I imagine it depends on the type of ear damage.

Happy New Year 2025! Wishing you a year of creativity, inspiration, and full of hidden treasures.

#ArtWithOpensource #krita

Bird photography is relatively gear-intensive because birds are small and usually prefer staying away from humans. But after doing this for awhile, I know of no piece of gear that makes more of a difference than consistently being on the beach when the sun comes up. The light and the water and the sand know how to show off, and you just need to be there to click the button.

Show older
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.