Check out my open source game engine! https://strayphotons.net/ https://git.sw0.com/frustra/strayphotons

I have been developing this engine on and off for over 10 years, and still have big plans.

  • 0 Posts
  • 407 Comments
Joined 3 years ago
cake
Cake day: July 9th, 2023

help-circle



  • I find the easiest way to think about it is kind of like email. You can have an account @gmail.com and still send mail to other servers @outlook.com. Your posts and comments will be stored on your local instance, as well as any instances that are subscribed to the community. When you post to a community on another instance, I think the text will be stored on both instances, but image uploads point back to the copy on your local instance.



  • I guarantee you the microcontroller that handles the wifi is 10x more powerful than what would be required to just run an offline schedule. There’s no processing involved… It’s not like this is using a camera + AI to see if your cat is too fat.

    Edit: I just looked up this model and its actual features… it’s not that far off, since it seems to run image recognition to tell when the cat is eating. If they’re streaming video back to the cloud for processing, that sounds even worse than what I was expecting. It would be entirely possible to run a small image recognition model locally in a product like this.

    There are much simpler solutions like the ones that detect a chip in the pets collar (or the embedded id chip most pets have)





  • Well, the data we do have is that the flight was just under 30 minutes and very likely under 100 miles.

    From the Wikipedia on airline fuel efficiency:

    The worst-performing flights are short trips of from 500 to 1500 kilometers because the fuel used for takeoff is relatively large compared to the amount expended in the cruise segment, and because less fuel-efficient regional jets are typically used on shorter flights.

    In the example values table, the most efficient plane for a 560km trip burns 0.92 kg of fuel per km, so doing some rough math and assuming the electric plane travelled 100 miles, that would be roughly 148kg of fuel, or 50 gallons (190L).

    At current jet fuel prices ( $3.76/gallon ) that’s about $188 US in jet fuel as a rough estimate. It’s unclear if the test flight went up to full altitude or if the plane was at full weight, so a fair comparison might have used even half as much jet fuel.

    Edit: From some of the other comments, it seems like they might have only considered flight time as cruising time, not takeoff and landing, so my numbers will be quite far off if that’s the case. My gut feeling is that this is probably the case, because this seems like too big a difference otherwise.



  • I guess swap can still be useful for background browser tabs and apps. I haven’t run swap on my machines for years now, so I can’t really remember how and when it decides to start moving stuff there.

    The last few times I ran into OOM killer it’s been from compiling/linking some huge project that used up 90% of my ram on its own… so I’ve probably been having a different experience than most people.





  • While shared memory is a feature in linux, it’s mostly used for inter-process communication and isn’t something that happens by default with shared libraries.

    When a program loads a shared library, it creates a new instance of it that runs in the same memory space as the program.

    In the example you’re using with KDE, that’s actually a system process that your program is communicating with, so it’s not quite the same as just loading a shared library (.so). Since new programs can connect to the existing system service, that can end up saving RAM by having a single system program service multiple user applications.

    This isn’t really any different on Windows where the desktop environment (dwm.exe) is handling drawings and compositing for all user apps.

    Edit: Based on the downvotes, maybe I got something wrong here. Maybe someone can comment on what? I’m happy to learn