« first day (891 days earlier)      last day (2591 days later) » 

12:57 PM
Blergh.
And what did you need a JS wizard for?
 
@E_net4 :p
 
@E_net4 Doing some webpack, got some bloated JS
I made the playground JS 1.5 MiB :-(
 
1:13 PM
There are tools that show exactly how much space each module take up in your bundle.
Ever tried webpack-bundle-analyzer? npmjs.com/package/webpack-bundle-analyzer
I assume you've already taken care of minifying.
 
1:27 PM
Yeah, I learned about the analyzer.
Turns out I was including two versions of a 256K library
and the new webpack does vendor stuff a bit differently
so I changed that
got back to ~900KiB uncompressed
and finally enabled serving up the compresses assets that I've been making the whole time
so it's ~250 KiB compressed
still all seems too damn big
The ghost of my 14.4K modem is crying
 
Well, at least that helped. What else can be done?
Welp, the bundle in Dicoogle's webapp is still much larger than yours. :s
 
1:56 PM
@E_net4 The big piece is the ACE editor. It's huge
it's index.js is the 250 KiB
there's also themes, which I should figure out better codesplitting for
I could use preact instead of react
 
I admittedly never tried one of those alternatives to React, but it does sound like a good idea.
 
I could drop some polyfills
There's definitely some junk that I could work hard. like there's CSS in my bundle, but I extract out a separate CSS file
and that's "small" like 9 k
 
2:17 PM
Are you using Babel?
 
2:33 PM
@Shepmaster Considered this yet?
 
2:45 PM
@набиячлэвэли A PHP solution, wat.
And how is that better than uglify or babili?
 
@E_net4 yep
@набиячлэвэли I can say I honestly have not considered that
 
It's on another level IIRC
 
@Shepmaster Using babel-preset-env yet?
 
@E_net4 mmm, I forgot about that
 
 
6 hours later…
8:31 PM
Good news, I can now reliably produce something acceptable!
[bear-lib-terminal]
toolchain = "nightly"
default_features = false
features = ["capitalism", "exhuberance"]

[cargo-update]
default_features = true
features = ["capitalism"]
look at this butty
 
8:59 PM
Okay popular vote, should this work?
if let Some(ref mut cfg) = configuration.get_mut(&opts.package) {
    cfg.execute_operations(&opts.ops);
} else {
    configuration.insert(opts.package.clone(), cargo_update::ops::PackageConfig::from(&opts.ops));
}
Now it says that it "cannot borrow configuration as mutable more than once at a time", but that's bollocks, innit?
 
 
2 hours later…
11:17 PM
@набиячлэвэли with a better Rust, yes. I’m fairly sure this falls under the non-lexical borrows topic. e.g. this comment is exactly the same scenario
 
My first thought was "This doesn't desugar to a bloody match, does it?"
guess it does, o well
 
hey no free lunch
 
11:47 PM
2
Q: If let borrow conundrum

Sandeep DattaWhy does the call self.f2() in the following code trip the borrow checker? Isn't the else block in a different scope? use std::str::Chars; struct A; impl A { fn f2(&mut self) { } fn f1(&mut self) -> Option<Chars> { None } fn f3(&mut self) { if let Some(x)...

 

« first day (891 days earlier)      last day (2591 days later) »