Skip Navigation

Posts
5
Comments
127
Joined
1 yr. ago

  • Deleted

    Permanently Deleted

    Jump
  • not sure what they were alluding to, but my guess from first look was all the double bonds (represented by 2 lines parallel) on a single carbon, and those 2 double bonds being bent (i am not getting into sp carbon hybridisation, and specifically double double bond sp), but that is basically not possible (alost no amount of streic hinderance can do that).

  • number 81 should not be Ti (that is short for titanium)

  • the for most parts and intents is not really a good distinctintion. i did not go into details, mostly because it is a unrelated thing, but for most things, you can gradually transition from liquid phase to gas phase, without a proper transition. this is called a super critical fluid. consider like this, ice in solid form is not really "miscible" in liquid form. gasses and liquids of same stuff can mix. a

  • yeah, i a am a bit ashamed

  • here is fun fact (fun is subjective)

    liquid state is a lie. or more correctly, it is hard to distinguish liquid fluids from gas fluids (a textbook definition may say something like fluids shear, but gasses do to, it is just that it is almost negligible).

    for most things, solid to gas happens, and solid to liquid happens under specific pressure conditions (generally higher)

  • Removed

    theChaosIsReal

    Jump
  • article 15 is definitely a very solid film, like maybe my top 50, but i can not really recommend it to anyone, it is sad. Real, but sad.

  • Removed

    theChaosIsReal

    Jump
  • gangs of wasseypur for the unaware (it is basically a 5 hour movie split into 2).

    It is in top 5 all time.

  • Deleted

    Permanently Deleted

    Jump
  • the unexpected. when i did some lab work in a course to study how different chain lengths travel at different speeds, that is what we got (shorter ones are slower iirc, because they interact more with surroundings, or maybe that is just true for chemical chromatography stuff). That was very interesting, cause i did that one with my seniors batch just because i was interested, and when it was time for my batch covid happened. also my first (major) exposure to carcinogen (we used some dye which is banned in eu i think)

  • Deleted

    Permanently Deleted

    Jump
  • fun fact, days have actually been getting longer pretty much since formation of earth (well moon to be correct). reason iirc is that moon is slowly moving away from earth, and this results in some dynamics changing and as a result earth spins slower. like billions of years ago, it was closer to 23 hours.

    ps - very rusty memory right now, should have skipped writing instead of half borked fact

  • i love rust, but this shit is so peak

  • hit too close to me.

  • i mostly agree with you, but i just do not trust closed ai labs. sorry. and yes most western ai labs are closed (meta and google used to release open stuff, even microsoft, but they do not do it anymore). if it were some open lab, mozilla could set up their own inference with specialised tiny - mid scale models. with closed labs, i do not expect them to give them access to models to run.

  • please look at curl project and barrage of false security reports made. it got so bad because they do a paid bug bounty, and people would ask some llm to find bugs, llms would conjure something out of thin air, and people will post that. mozilla will now have to handle this junk.

  • Opensource @programming.dev

    Mozilla partners with Anthropic to perform security audits on firefox

    www.anthropic.com /news/mozilla-firefox-security
  • 1000 dependencies

    that is too much. i use something with 900ish, and even withh cached builds, it takes like 20 mins, we just have too much linking going on

  • editor does not matter for practical purposes (in my naive tests, helix is within +/- 5% of vim/nvim on most files (in terms of memory usage), i do not use any lsps). i generally do not use lsps (too much feedback for me), but even if i would, i get like 1-2% consstant cpu usage while working, whereas 0% without any lsp (averaged on 30 sec intervals).

    while compiling, you have 2 options - just for testing, you can run debug build and see if it works, and once you get something reasonable, try release build, it should be feature wise practically same, but faster/more optimised (cargo buid vs cargo build --release).

    in terms of crates, try to to not use many, i just try to not import if i can write a shitty wrap myself, but if you include something, try to to see cargo tree for heaviest crate, and try to make tree leaner. also, try to use native rust libs vs wrappers around system ones (in my experience, any wrapper around sys stuff uses make/cmake stuff and gets slower).

    now these are all things without changing anything about runtime. if you are willing to gain more performance by trading storage space, you should do 2 things - use sccache and shared system target dir.

    sccache (https://github.com/mozilla/sccache) is a wrapper around compiler, and essentially, you cache build files. if file hash remains same, and if you have same rust toolchain installed (it has not updated in breaking ways), it will reuse the earlier build files. this will often help by reusing something like 50-70% of crates which stay same (even across project).

    after installing, you just go to cargo dir ($CARGO_HOME) and editting config.toml

       
        
    
    [build]  
    rustc-wrapper = "sccache"  
    target-dir = "<something>/cargo/target"  
    
    [profile.release]  
    lto = true  
    strip = true  # Automatically strip symbols from the binary  
    
    [profile.release.build-override]  
    opt-level = 3  
    codegen-units = 16  
    
    [target.'cfg(target_os = "linux")']  
    # linker = "wild"  
    # rustflags = ["-Clink-arg=-melf_x86_64"]  
    linker = "clang"  
    rustflags = ["-Clink-arg=--ld-path=wild", "-Ctarget-cpu=native"]  
    
      
      

    target-dir = "<something>/cargo/target" makes it such that instead of each rust project having a separate target dir, you have same target dir for all projects. It can lead to some problems (essentially only 1 cargo compile can work at a time, and some more, but likely do not want to compile multiple projects together anyway as each crate is compiled in parallel as long as that is possible). it repeats a bit of what sccache is doing (reusing build files), but this makes it such that if same version of crate is used elsewhere, it will not even require a recompile (which sccache would have made faster anyway), but this way storage use is reduced as well.

    other than that, you may see i have done added option to perform lto and strip on release builds (will make compile times even longer, but you can get a bit more performance out). I have also changed linker (default is gcc), and i use wild as linker (and wild currently requires clang on x86 stuff), it can also be a tiny bit faster. try to see if you need it or not, as lto is no silver bullet (it can reduce performance, but even in worst cases it is within 2-5% of without, but in best cases it can be more). and just generally check config params for cargo debug and release profiles (play around codegen units, i think default is a higher).

  • Deleted

    Permanently Deleted

    Jump
  • sorry to break it to you chief, but in reality, neptune is not darker blue, i learnt it recently, but the darker color comes from some magazine print which got very popularised. from the images, the look basically same.

  • what does i0 even mean, like what is the sign even for

  • they are technically correct, the best kind of correct

  • gives me a good reason to say why i do not use bash

  • Linux @programming.dev

    Apparently, Fedora Asahi Remix is now working on Apple M3

    bsky.app /profile/did:plc:okydh7e54e2nok65kjxdklvd/post/3mdd55paffk2o
  • memes @lemmy.world

    Certainly you can not make one, definitely not within 5 minutes

  • Linux @programming.dev

    Building the perfect linux pc with Linus Torvalds - YouTube

  • Ask Lemmy @lemmy.world

    Would there be any interest for educational streams?