• 20 Posts
  • 168 Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle



  • I do some vibe coding using recent affordable models, it’s still slop. I guess the better, more expensive models are less sloppy, but 1. I don’t have unlimited funds and 2. I kind of hate that everyone is now asking their favorite models to re-invent the wheel. The token money that collectively goes into these projects would be spent so much better on financing established open source projects and their maintainers.

    Anyway, even with “good” models and Rust, you’ll still get logic bugs which are usually far easier to actually exploit than memory corruption (for which going beyond crash/DoS to RCE often requires adapting to the specific build of the target, and generally a lot more time and effort)

















  • pcouy@lemmy.pierre-couy.frtoScience Memes@mander.xyz•69 rule
    link
    fedilink
    English
    arrow-up
    15
    ·
    4 months ago

    I never knew this fun fact ! I’ll try to use it with my students, and see if I this gets me more attention when I give them the trick to compute powers of 2 in your head (210 =~ 103, which leads to ln(103) =~ 10*ln(2) ).

    For anyone wondering, the trick is : Powers of 2 below 10 are easy enough to remember or just compute in your head. So if you want to approximate 2x, write it as (210*a)*(2b), with a=x//10 (integer division) and b=x%10 (modulo). b will be 9 or less, so 2b is easy to compute, and 210*a = (210)a =~ 1000a is also easy to compute.

    For instance, 232 = (230)(22). Since 230=~10003 ; and 22=4, then 232 =~ 4(1000)^3 = 4 billion. Once you get used to it, you’ll be able to say that 264 is approx 16 billion billions in no time ! :)