r/javascript • u/Normal_Act8586 • Aug 22 '26
LilScript makes js modules 20% smaller
https://yeargun.github.io/lilscript/[removed]
0
Upvotes
r/javascript • u/Normal_Act8586 • Aug 22 '26
[removed]
View all comments
Show parent comment
3
u/RobertKerans Aug 22 '26
Sure, a decade ago. It's very much supported by most modern tooling. Also I'd say that's an apples and oranges comparison (not as much as the comparison to Bun, but still)
I'm not paying for the bandwidth? Also, if I'm consuming a library it doesn't need to be compiled. I'd like to have the choice of how I do that, not have that choice removed.
Sure. But you're going for tiny savings using an incredibly complex tool. I can get all the low hanging fruit with a simple toolchain and most of the weight is not going to be in the JS.
Already have tools that get most of the way there. Your tool is not going to rearchitect the code in a way that produces the really big size savings. Tradeoff if I just use your tool is that I need to use a different non-compatible language to achieve marginal gains over existing tooling.
There's no real extant corpus and you're ignoring how easily a given system running the model can batch and parallelise computations, you're only talking about the output. Can't really make the judgement you're making except at that very basic level.
Note could also use zero tokens and eat a slightly larger bundle size 🤷🏼♂️
And if my granny had wheels she'd be a bike! Anyway, sure. If you write an entire ecosystem and write it well then sure it'll be faster than gluing together various disparate tools.
A tool to that did an AST conversion opaquely and just minified JS would be even better, but hey you've written an entire language instead.
What do you mean by this? The statement is my extremely vague.