« first day (4926 days earlier)      last day (215 days later) » 
00:00 - 23:0023:00 - 00:00

23:05
@RydwolfPrograms interpreting javascript
The browser can do that in milliseconds though...
the bundling? or the interpreting of javascript?
webpack doesn't interpret your javascript, it interprets its javascript, which is very slow
If you want something which isn't infuriatingly slow you may like esbuild/Vite
Well yeah...my question is why its javascript is slow lol
/parcel/bun
A lot of weird optimisations I'd guess
oh yeah parcel is in Rust nowadays right?
23:08
I've tried Vite but it seemed really janky
I used to use parcel but I'm sorta used to using vite these days since it's more popular
Like the whole injecting stuff into your page to automatically reload it thing
FWIW I have experienced a little jank with Parcel when I tried it a couple years ago but I have never experienced jank with Vite in the few medium-size projects I've used it in
I sometimes work with a set of legacy modding tools which use webpack and it's slow
parcel is tricky to customise
@RydwolfPrograms I think you can turn off HMR
23:10
HMR is weird and doesn't always work yeah
But it's nice to be able to e.g. edit CSS live
Yeah it can be turned off by setting server.hmr to false in the config: docs
smh CSS
I haven't written CSS in so long I'm pretty spoiled by Tailwind
which I guess in a way is just writing CSS with a lot of syntax sugar...
Whatever you're using for css it's still nice to be able to see things update live
Sure yeah
23:26
@DLosc In Maharashtra, or at least in Mumbai+Pune, it's pretty standard for a kid to be given their father's first name as their middle name, and woman are supposed to change their middle name to their husband's first name when they marry
I know my grandma had to change her first name to one chosen by her in-laws too, but thankfully that's not done anymore
It shows if any plugins or loaders are increasing run time
I mean all I'm using is ts-loader
Well it'll tell you whether the culprit is ts-loader or ts-loader
There could be other plugins loaded by default
Like uglifyjs. Apparently that significantly slows down the bundling process
I'd assume that doesn't run in development builds
And besides I only have four files, less than 100 sloc each. Should take milliseconds
23:36
How many dependencies?
Like imports
How many modules (if any) are you using?
Just the four files
Interesting
Well the only other idea I can find at this time is this:
> To improve the build time when using ts-loader, use the transpileOnly loader option. On its own, this option turns off type checking. To gain type checking again, use the ForkTsCheckerWebpackPlugin. This speeds up TypeScript type checking and ESLint linting by moving each to a separate process.
Other than that, I guess webpack really might be that slow
@lyxal Yeah it's that
Running tsc manually is instant. Webpack is just slow and I don't get why
23:42
Are you able to use something other than webpack?
@noodleperson i absolutely hate when people say "its in rust, therefore its good and fast"
as if rust is the only good and fast language
It is
Simply redefine "good" to mean "rust"
exactly
23:51
i can write really slow code in rust, and i can write java code that outperforms (well-written) C
I somewhat doubt the second one, at least in memory usage
i mean performance
and java isn't that much of a memory hog these days
define "performance", and compared to well-written C yes it is
performance == speed in this context
23:54
I read that as donut for a split second before the edit
for anything other than systems/embedded programming i would prefer a GC'd language unless the GC provably causes undesirable lag
(yeah i know the discord example, that was justified, but only because they did empirical measurements to justify their example and not because "rust is gud")
@Seggan Any nondet GC has the potential to, no?
not in practice unless youre programming very badly
rust datatypes? awesome. love those. using rust for anything and everything? no.
Yes, porting an algorithm from one language to another won't increase speed much (unless you're one of the few hundred people on the planet who understands how to optimise L1 cache lookups). But when people rewrite something completely with plans to redesign the majority of the project for performance, they generally use a more performant language because they can.
@Seggan What does it have to do with you?
23:58
im saying that generally it doesnt
If you make lots of objects that can happen
@Seggan How do you know?
00:00 - 23:0023:00 - 00:00

« first day (4926 days earlier)      last day (215 days later) »