Skip Navigation

User banner

AlmightySnoo 🐢🇮🇱🇺🇦

@ AlmightySnoo @lemmy.world

Posts
379
Comments
1352
Joined
3 yr. ago

Yoko, Shinobu ni, eto... 🤔

עַם יִשְׂרָאֵל חַי Slava Ukraini 🇺🇦 ❤️ 🇮🇱

  • Side Of Burritos made an unboxing video + GrapheneOS test of the Pixel Tablet: https://youtube.com/watch?v=jfbz1RzSJh4

    This was 7 months ago so you should assume that GrapheneOS got even better now.

  • Since you already know Java, you could jump straight to C++ with Bjarne's book "Programming - Principles and Practice Using C++": https://www.stroustrup.com/programming.html

    You can then move to more modern C++ with his other book "A Tour of C++": https://www.stroustrup.com/tour3.html

    And then if you're curious to know how software design is done in modern C++, even if you already know classical design patterns from your Java experience, you should get Klaus Iglberger's book: https://www.oreilly.com/library/view/c-software-design/9781098113155/

    In parallel also watch the "Back to Basics" video series by CppCon (see their YouTube channel: https://www.youtube.com/@CppCon , just type "back to basics" in that channel's search bar).

    Learning proper C++ should give you a much better understanding of the hardware while the syntax still remains elegant, and you get to add a new skill that's in very high demand.

  • and maybe show it off in our Pixel photos thread 😁

  • Very weird way of launching it indeed, maybe Google wants to push the 128GB version first as the limited storage would push users to subscribe to their cloud offering. That or they probably have a supply issue for the storage.

  • OP discovered Voyager's hidden horny jail feature

  • that's actually a great community, subbed!

  • Loops and recursion or just thinking iteratively in general. If you get this, then mathematical induction gets much more intuitive if you're studying math.

  • That's a bad apples-to-oranges comparison, unique_ptr frees memory upon destruction, which with the raw pointer version you don't do. The least you could do is use rvalue references. The class layout of unique_ptr is also hard to optimize away (unless via LTO) because consume isn't in the same translation unit and the compiler has to let your binary be ABI compatible with the rest of your binaries. (Also, you're using Clang 9 by the way, we are at version 17 now)

    This is much fairer: https://godbolt.org/z/v4PYcd8hf

    Then, if you additionally make the functions' bodies accessible to the compiler and add a free to the raw pointer version (for fairness if you insist to have consume or foo destroy the resource), you should get an almost identical assembly code (with still an extra indirection that you'll see in an extra mov due to the fact that the C++ compiler still doesn't see how you use them, but IMO that should still be a textbook case for LTO), and the non-zero difference should disappear altogether once you actually use those functions and if it doesn't you absolutely should file a bug report.

    Carruth, while an excellent presenter, has been on a "C++ standard committee bad, why don't we do more ABI-breaking changes, y'all suck, Abseil and Carbon rule" rant spree, with that basically materialized by Google stopping active participation in Clang (haven't followed the drama since then so not sure if Google backtracked on that decision), and it's hard to consider him to be objective about this since he also has the Carbon project and his recent Carbon talks are painful to watch as it's hard to ignore how he's going from a "C++ optimization chad" that he used to be to a Google marketing/sales person.

  • But you also have to adjust for the fact that the calculation itself is going to take a few seconds, and you'd then have to adjust for the time it takes to do the adjustment and you probably end up with an implicit numerical scheme you have to solve

  • Lemmy seems like a nice person, even helping with bootloader unlocking and stuff

  • What version is the January 2024 update? I have the 24.02.13 on GrapheneOS but I'm not sure if it's the one that the different articles are talking about.

  • now this is a shit post

  • Now I suddenly want a flair functionality on Lemmy to give that guy a site-wide "literally eating ass for 14 years" flair

  • Rust developers are already known (/memed) to be elitist about Rust

    They're also extremely toxic. An example from 4 months ago when they vandalized cppreference.com :

    The meme is that most Rust devs merely shout slogans like "memory-safety" without knowing what they mean, precisely because many of them come from web dev backgrounds (this video by Prime Time proves why that's problematic: https://www.youtube.com/watch?v=Wz0H8HFkI9U , the guy has no clue what std::unique_ptr is) and have never touched a pointer in their lives. Easy and "appealing to hobbyists" languages are always an issue as the community usually ends up becoming toxic and full of wrong practices being normalized, and a prime example of that is PHP.

    Another example is how Lemmy initially struggled to handle 10k~20k users during the Reddit exodus despite the backend being written in the "ultra-fast memory-safe totally-will-replace-C++" Rust. Why? See this: https://github.com/LemmyNet/lemmy/issues/2877 and they were doing stuff like joining huge-ass tables before the filtering. If phiresky didn't save them with his SQL prowess Lemmy would have literally died and its backend being written in Rust would not have changed a single thing.

    Rust gives hobbyists the illusion that their projects will suddenly become fast and bug-free if they write them in Rust, and they don't even hide that mentality as you can see that on almost every single project that's written in Rust they list "written in Rust" as the main selling argument. This is probably the only language I've seen where this happens.

    Now as for the "Java bad", I'm kind of guilty of it too. I very much dislike how academia is obsessed with UML diagrams and the "Java way" of seeing OOP and interfaces everywhere. CPUs and GPUs do not think in OOP. They do not see "objects". They see data, registers, caches, branches but certainly not your "beautiful abstract class". When you think you did a good job of crafting a "clean" UML diagram with lots of "nice interfaces" which you then implement using virtual polymorphism in C++ and abuse dynamic_cast, you're torturing the CPU with indirections, cache misses and branch mispredictions. Dynamic polymorphism and virtual inheritance in particular should not be the standard way to solve problems, yet that's exactly what academia teaches and most of those who push those ideas coincidentally also happen to be from Java backgrounds and that's why the "Java bad" meme is still alive.

    That said, beyond academia, I think it's obviously stupid to religiously shit on Java. Lot's of advanced features are coming out, Android is a thing thanks to Java and lots of web services are working with high reliability thanks to it. Also obviously, one has a much better chance at landing a high-paid software engineering job if one knows Java than if one knew only Rust.

  • Android @lemmy.world

    Android app developers will soon be required to flag AI-generated content

    www.androidpolice.com /android-apps-ai-artificial-intelligence-developers/
  • Google Pixel @lemmy.world

    The Pixel Tablet could add two of the Nest Hub Max's best features

    www.androidpolice.com /pixel-tablet-nest-hub-max-features/
  • Android @lemmy.world

    15 years of Android memories – When did you get your first Android phone?

    blog.google /products/android/android-15th-anniversary-googler-highlights/
  • Technology @lemmy.world

    Pro-Russia hackers target inboxes with 0-day in webmail app used by millions

    arstechnica.com /security/2023/10/pro-russia-hackers-target-inboxes-with-0-day-in-webmail-app-used-by-millions/
  • World News @lemmy.world

    Turkey’s Erdogan says Hamas is a ‘liberation’ not a ‘terrorist’ group

    english.alarabiya.net /News/middle-east/2023/10/25/Turkey-s-Erdogan-says-Hamas-is-not-a-terrorist-organization-
  • World News @lemmy.world

    Russia spread bedbug panic in France, intelligence services suspect

    www.telegraph.co.uk /world-news/2023/10/23/russia-may-have-fanned-bed-bug-panic-in-france-intelligence/
  • World News @lemmy.world

    A Hong Kong court upholds a ruling in favor of equal inheritance rights for same-sex couples

    apnews.com /article/hong-kong-lgbtq-inheritance-rights-8008c235cc07680b1a0e3822326d32a8
  • World News @lemmy.world

    US and Gulf nations target 'secret' Hamas investment portfolio worth up to $1 billion | CNN Business

    edition.cnn.com /2023/10/24/business/hamas-secret-investment-portfolio-israel/index.html
  • Google Pixel @lemmy.world

    Google Pixel 8 Pro Teardown: The Closest Look at the Unique Thermometer Feature

    yewtu.be /watch
  • World News @lemmy.world

    Queer Afghans cry for help under Taliban rule, citing private prisons, torture & death

    www.lgbtqnation.com /2023/10/queer-afghans-cry-for-help-under-taliban-rule-citing-private-prisons-torture-death/
  • World News @lemmy.world

    Two elderly Israeli women released from Hamas captivity after 17 days

    www.haaretz.com /israel-news/2023-10-23/ty-article/.premium/two-elderly-israeli-women-released-from-hamas-captivity-after-17-days/0000018b-5e18-d307-adbb-7f387a240000
  • Technology @lemmy.world

    Brave browser quietly slips a VPN service onto your Windows PC

    www.androidcentral.com /apps-software/brave-browser-secretly-installing-vpn
  • Google Pixel @lemmy.world

    Google Pixel’s face-altering photo tool sparks AI manipulation debate

    www.bbc.com /news/technology-67170014
  • World News @lemmy.world

    Swiss public prosecutor investigating Hamas financing links

    www.swissinfo.ch /eng/swiss-public-prosecutor-investigating-hamas-financing-links/48911748
  • Android @lemmy.world

    Eighth Android 14 One UI 6.0 beta released for Galaxy S23 series

    www.sammobile.com /news/galaxy-s23-android-14-one-ui-6-beta-eighth-update
  • Google Pixel @lemmy.world

    The Google Pixel 7 will get the Pixel 8's new Assistant multilingual voice typing

    www.androidpolice.com /google-assistant-multilingual-voice-typing/
  • Google Pixel @lemmy.world

    Google Pixel devices will be manufactured in India starting in 2024

    9to5google.com /2023/10/19/google-pixel-india-manufacturing/
  • Android @lemmy.world

    If you have issues with Android 14's "Selected Photos Access" on Firefox

  • Lemmy Shitpost @lemmy.world

    stay in school fellas

  • Google Pixel @lemmy.world

    Google rolling out Wear OS 4 to the original Pixel Watch

    9to5google.com /2023/10/17/pixel-watch-wear-os-4-rolling-out/