
#define PI 3.14159 inline double position_from_steps(int steps) { double rotation = (double)steps / 4096.0; return (2.0 * PI * rotation); }; int main(int steps) { double pos = position_from_steps(steps); return (int)pos; }

Wow, this is a nice page. Would like to have something for Germany as well.
beaconDB Stickers from the Matrix space
This sticker has been proposed on the beaconDB Matrix channel together with others. Are there ideas to improve it?
Proper example Projects
I would like to use htmx for some bigger website project (like a federated rewrite of komoot). However, all I can find in the Internet are small example projects that increase a counter or todo lists. Are there and big foss projects that usw htmx? Or is htmx only for small todo lists?
How to get GCC to optimize this inline function into one multiplcation
#define PI 3.14159 inline double position_from_steps(int steps) { double rotation = (double)steps / 4096.0; return (2.0 * PI * rotation); }; int main(int steps) { double pos = position_from_steps(steps); return (int)pos; }
I am trying to calculate a motor position from an encoder, however that does not really matter. I just checked godbolt.org to see if my inline function compiled into a single multiplication and was pretty disappointed that it didn't. I used -O3 for maximum optimization.
Does somebody know why it does not compile into a single function, or what I had to change to achieve that? You can find my code here: https://godbolt.org/z/qT9srfPT1 .
I know that it does not really matter, but I am curious.
Warum das Windrad am Rhein keinen Strom erzeugt
Click to view this content.
ARD Beitrag über die Forstlobby
Click to view this content.
Looks like a worse looking baobab clone
Almost all the lists shared in the communities exclude FOSS projects.
Any komoot/outdooractive alternatives?
I am annoyed by komoot. Is there any suitable alternative for sharing hiking or biking trips online. Something like OSM but for tours. Ideally federated, but I would be happy with anything.
Edit:
The main feature I am looking for is finding a tour. I want to enter a location and an activity and find nice tours with gps tracks, pictures and a description.
Komoot and Outdooractive can be used as navigation and map viewing apps aswell, but I think there are enough posts about alternatives to those like Mapy.cz, Organic Maps or OSMand.
Link communities across multiple instances?
I am not very familiar with the technical workings of lemmy, so if this is a really shitty idea, just tell me.
I joined lemmy a week ago and it kind of bothered me that there is not THE me_irl or not THE programming_humor. Would it be possible to add the functionality to link communities together. In my naive opinion, this would solve my "problem" and add the opportunity to not only federate reddit, but to also federate single communities on lemmy.
What would be the pros and cons of such an approach? Looking forward for your comments!