Honestly, pretty effective, I used to balance the mattresses on my head when working in a dorm. Many societies used this approach to move things, and with three of them the have the definition of a geometric plane.
- 0 Posts
- 18 Comments
Doom4535@lemmy.sdf.orgto
Rust@programming.dev•My frustrations with Rust. Why is this the most loved language?
1·1 year agoThey could then potentially end up spending more time testing every possible combination of input then they would spending compiling with a strongly typed language that prevents the invalid syntax from compiling to begin with…
Doom4535@lemmy.sdf.orgto
Rust@programming.dev•My frustrations with Rust. Why is this the most loved language?
61·1 year agoHonestly, this is maybe the most telling about where OP is coming from… If not straight up flame baiting; that or they mistook /r/rustcirclejerk as a serious subreddit
Doom4535@lemmy.sdf.orgto
Rust@programming.dev•My frustrations with Rust. Why is this the most loved language?
1·1 year agoThe 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.
Doom4535@lemmy.sdf.orgto
Rust@programming.dev•My frustrations with Rust. Why is this the most loved language?
1·1 year agoSoooo, 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).
Doom4535@lemmy.sdf.orgto
Rust@programming.dev•My frustrations with Rust. Why is this the most loved language?
15·1 year agoEnter embedded programming, believe it or not there is a ton of low level C code being written; also, try adding a new protocol for networking, there are many cases where bitstructure matters, I recently wrote a small bit of code for a project that used bit packing so that we could fit inside of a single Ethernet frame so that we didn’t have to deal with fragmentation and the networking overhead it caused.
For context, what is your past programming background and what are you trying to do? While rust is a great language, it may not be the right tool for what you’re trying to do if these are things that you view as unnecessary
Doom4535@lemmy.sdf.orgto
Rust@programming.dev•My frustrations with Rust. Why is this the most loved language?
5·1 year agoA reason to not distribute a library as a binary is for cross platform support, this allows a library to technically be compiled and used in some other platform; with that said, there are assumptions about having the same system calls (or that the library only handles abstract things that don’t hook into a specific architecture), with that said, making cargo smarter and adding in the option to bundle some prebuilt libraries to be pulled for compatible platforms could speed some compile time (at the likely cost of build size, etc).
Distributing a library as source isn’t some weird rust paradigm, take BOOST for example, which is a large library for C++, and is usually distributed as source (but Linux distros may bundle prebuilt binaries; it is generally intended that you will compile it and use it as a shared library), actually a lot of compiled languages distribute their libraries as source, it also allows you to read their source if you need to see exactly how they’re doing something). I don’t believe there is anything preventing someone from using shared libraries in rust, although they do seem to be less common. Another reason to distribute a library as source is for licensing.
The unstable versioning… Ya, that is definitely annoying, and likely tied to the limited resources available for sustainment for various projects. With that said, compared to C/C++ many of these libraries are something that one might role their own or use in house libraries. Now for Tokio… You don’t have to use it for async, although you probably will want to (see: https://blog.poespas.me/posts/2024/05/24/rust-async-std-and-tokio-comparison/), I do wish there was a nice way to depend on a library and substitute some of its dependencies (aka Tokio); with that said, part of the cargo idea is that you don’t view these libraries as part of your source code for review (although, auditors would likely disagree, so acrediting with the inclusion of many in accredited libraries would probably not be fun)
Doom4535@lemmy.sdf.orgto
Antiwork@lemmy.world•I'd hate to see how many days per week the non-remote employees have to come into the office
8·1 year agoI think this is a strong case for being ‘overemployed’; sorry I couldn’t make the drive (while doing my other/actual job)
This is so true, heck I’ve even ‘baked’ some custom PCB boards in the oven to do some cheap reflow… Every man belongs in the kitchen, that’s where all the big boy tools are
Doom4535@lemmy.sdf.orgto
Technology@lemmy.zip•Engineers create a real-life tractor beam, but it only manipulates tiny particlesEnglish
4·1 year agoI have no idea how it works, but I always found tractor beams to be fascinating. I wonder just how far it can be scaled up to?
Doom4535@lemmy.sdf.orgto
Creepy Wikipedia@lemmy.world•Vessel - Climbable sculpture in Hudson Yards closed in 2021 after four people died by suicideEnglish
0·2 years agoAnd this is why we can’t have nice things; it sounds terrible, but there should be a limit for how responsible we as a society need to be for the actions of individuals.
Not just this, most (?all?) browsers now support viewing standard PDF documents… So, they shouldn’t even need to installing anything as long as they aren’t using IE…
Doom4535@lemmy.sdf.orgto
Firefox@lemmy.world•Is the Gecko engine the only reason Mozilla still exists?
2·2 years agoI believe Mozilla was heavily involved with the creation of Rust, although that has now been transitioned to the Rust Foundation; not sure if that impacts them and/or what other projects they might have
SEEEEEEE!!! I told you
Doom4535@lemmy.sdf.orgto
Hacker News@derp.foo•Spacedrive – an open source cross-platform file explorerEnglish
1·2 years agoIt sounds like git-annex to me (doesn’t have to be 3rd party hosts, you can combine your own systems) where it allows decentralized file management across all your devices. I’d also be curious to see how they handle offline backup/file tracking and the sneakernet use cases (something git-annex supports). As it sounds like it is a true filesystem, it could be a nice upgrade assuming feature parity (one gotcha with git-annex, is since it is using git, you can’t easily have other git repositories inside of it).
Doom4535@lemmy.sdf.orgtoHacker News@lemmy.smeargle.fans•Spacedrive – an open source cross-platform file explorer
1·2 years agoThis looks very cool, does anyone know if it can be configured to manage/automatically create replicas and such? And can it potentially track offline archives?
I’ve been using git-annex for some stuff, but this could potentially be a good replacement (and it would allow me to keep my normal working git repos inside, which I can’t do without playing games with git annex because they would then be nested git repos).
Doom4535@lemmy.sdf.orgto
Mildly Interesting@lemmy.world•This tick’s spit can make you allergic to meatEnglish
47·3 years agoTicks are terrible; creepy just as little things that get on you, but then they also carry all sorts of diseases which really drives up the paranoia after every hike



From the article this has lead a group to reverse engineer the proprietary board and start a Kickstarter to make it more accessible, which is pretty exciting (hopefully Apple doesn’t find a way to kill it)