Thanks to visit codestin.com
Credit goes to programming.dev

  • 1 Post
  • 50 Comments
Joined 2 years ago
Codestin Search App
Cake day: July 15th, 2023

Codestin Search App
  • My current laptop I bought used and didn’t realize that HD wasn’t 1080p, but rather 720p… (1080p is apparently FHD), whoops. I’m currently using a Latitude 7290 for reference and it more than meets all my regular needs (other than the screen resolution…). I have been using a tiling window manager and moving to apps that don’t waste as much space on my screen to try to help compensate.

    Assuming Desktop is 1080p is probably reasonable, but there are a ton of good used business laptops that are still 720p, so it’s probably going to stick around for a while (also, why encourage e-waste).

    For reference, my laptops specks are:

    1. i7-8650u
    2. 32 GB RAM
    3. 2TB SSD

    As long as I stay out of VM’s and do my development in lightweight editors and containers, this hardware could technically last me a while (also, I think the 7x90 series Latitudes are some of my favorite laptops).



  • The email git flow could definitely be better and having the patch added as a regular patch file shouldn’t break things (setting up git-send email was surprisingly cumbersome with email security settings and such). Hopefully they are able to improve (like the normal industry git repos) or at least add a compatibility layer that makes their existing setup work with a web interface for managing commits (I’d like to close/merge two broken issues I made and either I don’t have permission for email commands or I don’t know the proper syntax, so now I’m waiting for it to just expire).



  • I’m not too bothered by the IRC, it is a bit annoying not being able to get messages/responses while away (unless you rig up something to stay connected), I haven’t tried the mailing lists yet (other than the ones used as part of the Guix patching process (which Guix does provide a nice UI for with issues.guix.gnu.org), but it was a real pain connecting git:send-email as a first time user for the send-email part. There is supposedly some new tool called Mumi, but I haven’t tried it yet.).

    I don’t see what you mean about the IRC being a walled garden? It did take a bit more work to connect than registering for Reddit, but I’d say it is comparable to the effort of joining Lemmy (but without the nice persistence of Lemmy). Another reason they might have for not wanting to add more communication channels is maintainer fatigue, every communication channel they officially add has to be watched by someone; and if all their maintainers are comfortable with something else, they will have to take time out of their day (with them already likely being volunteers) to monitor the new channel.
















  • The constraint on memory isn’t on the compiler it is in the available ram and flash on ultra-lowcost/power microcontrollers, use can find some with less than 1KByte of ram, so that 32bit int could have been 4 8bit ints in your electric toothbrush. The packing of bits is space effecient, but not compute effecient and takes several extra clock cycles to finish when run on an 8bit microcontroller. It’s better to store it in the native 8bit word size for these devices. Further more, on more powerful systems using the smaller size can allow you to optimize for SIMD instructions and actually do multiple operations per clock beyond what you could do with the 32bit size.

    There are reasons for these types to exist; as was mentioned elsewhere, if you don’t care you can always just use i32 or i64 for your code and be done with it.


  • Soooo, an int in most architectures is actually signed, usually a 2’s compliment signed 32 bit value; but the spec does not require it to be 32bits, some platforms might use an 8 bit or 16bit value instead (think older 8bit microcontrollers). That’s why they have ‘int32_t’, ‘uint32_t’, etc for C/C++, it just sounds like you haven’t used these number types (check stdint.h). Rust just requires you to use the more explicit number format by default (which I personally prefer because I have had to jump between embedded and Linux development).

    The multiple string types are annoying at first, but its probably better to realize that they are more like two types (String and str) with the apperstand (&) ones being references (think pointer in C/C++). A String is like a C++ std::string and a str is more like a C-String (fixed sized array ish of chars).