Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)UR
Posts
8
Comments
3
Joined
2 mo. ago
HTMX @programming.dev
uridl @feddit.org

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?

C++ @programming.dev
uridl @feddit.org

How to get GCC to optimize this inline function into one multiplcation

godbolt.org Compiler Explorer - C++ (x86-64 gcc 14.2)

#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; }

Compiler Explorer - C++ (x86-64 gcc 14.2)

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.

Karlsruhe @feddit.org
uridl @feddit.org

Warum das Windrad am Rhein keinen Strom erzeugt

Klimawandel @feddit.org
uridl @feddit.org

ARD Beitrag über die Forstlobby

OpenStreetMap community @lemmy.ml
uridl @feddit.org

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.

Lemmy @lemmy.ml
uridl @feddit.org

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!

ich_iel @feddit.org
uridl @feddit.org

ich👨‍🍳👩‍🍳iel