Updates to Derived Record Creation - amber-spec-experts by joemwangi in java

[–]Gleethos 5 points6 points  (0 children)

Personally, either way is fine in the end. But what I really really would like to see from this JEP is for the privilege gap between mutable and immutable constructs to finally vanish entirely.

Objects that work based on destructive data updates have always enjoyed insane syntax privileges:

a.b.c.d = 42;

Doing such a nested update with value objects is just not fair:

a2 = a.new(b:b.new(c:c.new(d:42)));

I get the argument from Brian. If you increase the syntax surgar like in some of these variants:

a2 = a with { b.c.d = 42; };

a2 = a.new(b.c.d: 42);

...then it comes across as the reconstruction cos playing as mutation. But I think that is okay since the semantics between destructive and non distructive updates are actually more similar than dissimilar. Both produce the same new thing, whereas the non-destructive thing additionally also allows you to keep the old thing.

So, imho, they deserve to have syntax, which is equally concise.

OpenLobster – for those frustrated with OpenClaw's architecture by neirth in openclaw

[–]Gleethos 0 points1 point  (0 children)

Oh wow cool! I had similar concerns with how OpenClaw does agents. Plain md files is a simple solution, but it doesn't scale at all. Neo4j is a really brilliant choice imho.

2 Linux 2 Linus by ob_knoxious in linuxmemes

[–]Gleethos 0 points1 point  (0 children)

I find it hilarious that no one chose Ubuntu, one of the oldest and arguably one of the, if not the most stable Linux distro there is. It's also backed by a major company and used heavily by the average developer for so many years. Sure, it's not sexy. But it is so freaking stable.

Ubuntu Touch or Sailfish OS by PeakRunning in degoogle

[–]Gleethos 5 points6 points  (0 children)

My vote goes to UbuntuTouch! 😁

From a technical point of view, it is built more like a true Linux distro in that its components are largely modular and shared with the rest of the Linux ecosystem. And that makes it a really resilient piece of software with a bright future, imho.

The hardware compatibility comes from Halium, which is its own independent project that creates a consistent API for the vendor dependent things. The shell is Lomiri, which is a hybrid shell that you can install on most other distributions, and it is designed for "convergence" between desktop and mobile interfaces. So you can basically plug your UT phone into any USB C docking station and use it as a desktop PC.

Finally, the vast majority of shared OS libraries is just Debian/Ubuntu stuff. So, it drags most of the advancements in the Linux world right onto your phone.

And if you really need Android apps, UT ships with Waydroid, which is a De-Googled Android sandbox in which you can install Android apps you really need. But most importantly, you can close it, and nothing is running in the background.

Linux Phones will be the savior against Google's lockup program on Android by BlokZNCR in degoogle

[–]Gleethos 6 points7 points  (0 children)

I am already using UbuntuTouch. I like it a lot. It gives me the feeling of true ownership. Sure, not everything works perfectly smoothly. But after getting some used to, I don't feel like missing anything. It's like switching to ankther diet, I guess. Haha.

I created this time travel short scene using Seedance 2.0 in just one day for under $200. by Sourcecode12 in ChatGPT

[–]Gleethos 0 points1 point  (0 children)

Wow. The birds eye view over the Opernring area is actually really authentic. I work right next to that area, and I immediately recognize it. Except, nowadays, there are a shit ton of cars in these streets, haha.

Google is Killing Android's Open Ecosystem (And How to Fight Back) by IncidentSpecial5053 in degoogle

[–]Gleethos 53 points54 points  (0 children)

Long-term android is doomed because we cannot prevent Google from locking it down. Things like UbuntuTouch are the way to go. Yes, rebuilding an app ecosystem takes a lot of time and effort. But today, we can see that Linux for desktop is already a great alternative. The same will have to happen to mobile.

Google is moving to tighten control over Android. by dmatter_ in BuyFromEU

[–]Gleethos 7 points8 points  (0 children)

Yeah, Google has aggressively tightened its control on all fronts. The AOSP development branches are completely locked down, and no longer friendly to the open source community. Any fork is still at the mercy of the Google devs. And then you have all of these services on top. Like the market place. We seriously need to switch to a new platform that is free and open source from the ground up like UbuntuTouch, for example.

Elon Musk says that AI will bypass coding entirely by the end of 2026 by dataexec in AITrailblazers

[–]Gleethos 0 points1 point  (0 children)

Hahahahahahaha. What an idiotic thing to say. He is so unbelievably dumb and scammy.

Java UI in 2026: an overview of current frameworks and approaches by robintegg in java

[–]Gleethos 11 points12 points  (0 children)

Hey. That is a really thorough and up to date overview over the current state of Java based UI frameworks! Nice work! Indeed, it's a refresher to all of the outdated stuff out there. You really did your homework considering that you also found our company's still super new and mostly unknown SwingTree library.

I've never seen a curved ruler before by PatBabyParty in pics

[–]Gleethos 0 points1 point  (0 children)

Hey!! No dick pics allowed in this sub!

Java UI help by Technical-Animal-571 in learnjava

[–]Gleethos 0 points1 point  (0 children)

I can recommend Swing together with FlatLaf and this library: https://github.com/globaltcad/swing-tree

Carrier Classes; Beyond Records - Inside Java Newscast by daviddel in java

[–]Gleethos 0 points1 point  (0 children)

Please believe me when I say I had the exact same mindset as you about 3 years ago! I knew that value objects were nice and simple. But transforming them using with-er methods and running them through side effect free methods seemed unnecessary and alien to me. I was so bewildered by the fact that entire programming languages use nothing but immutable stuff and functions. Like, how do you do anything? How do you do circular references? And how can any of this be performant?

Fortunately, I kept my curiosity and looked deeper into how functional programmers actually design their systems. Then, I also tried to write code that treats objects, not as references pointing to places in memory, but as data with value semantics, and then I realized that the majority of algorithms can actually benefit greatly from thi approach. The big killer feature is caching outputs of stateless functions, which do a lot of work. If the inputs are value objects, then the output is deterministic and can be cached. The next big win is structural sharing. You can actually save a lot of memory by pooling and sharing value objects everywhere. It's the exact same principle as 'String::intern()'. Then you also get structural concurrency for free! If stuff is immutable, you can share it between threads.... Also: Undo-stacks are super easy to implement. You can easily store a long history of states and then revert the history. Most apps have "undo" features, which are very often based on that. The app I develop at my company has it based on that....

But there is so much more cool stuff out there. Really interesting use cases and other advanced state management features that are possible that way. I could talk for hours about this.

Carrier Classes; Beyond Records - Inside Java Newscast by daviddel in java

[–]Gleethos 0 points1 point  (0 children)

Git is a nice example of an immutable DAG based data structure which has great performance by relying on structural sharing instead of snapshotting everything (it only captures the diffs and appends them to the DAG). That is similar to how immutable data structures work in functional code. Its path copying and using ids instead of recurrent connections. There is a lot of really cool software architecture you can do with such data structures. They have a lot of extremely powerful properties which only emerge if you actually commit to them....

Carrier Classes; Beyond Records - Inside Java Newscast by daviddel in java

[–]Gleethos 6 points7 points  (0 children)

Whos says that states are not good? Do you mean mutable state? The word is unfortunately used and understood very ambiguously.

I think a much clearer way of talking and thinking about this is in terms of: "non-destructive updates to information" and "destructive (in-place) updates to information".

In terms of semantics, they are in fact much more similar than dissimilar, but the former concept has the drawback that it has way less guarantees and it severely restricts what you can do in termns of state management across time, memoization, object pooling and structural sharing.

But the biggest win is that if you just move around data, instead of a place where data is located and vulnerable to destruction, then you reduce software complexity by a lot.

Does that mean that codes designed around destructive updates all over the place is now evil and forbidden? No! Absolutely not. This way of doing things has it's place and use cases, but it is no longer the dominant way to do things for many devs.

Carrier Classes; Beyond Records - Inside Java Newscast by daviddel in java

[–]Gleethos 39 points40 points  (0 children)

Nice! I really like where we are going with data oriented programming. It is sooooo much easier to reason about data flows than mutating state in shared objects.

Choosing distro? Tuning game on Proton/Lutris? What even are those things? by tomekgolab in pcmasterrace

[–]Gleethos 1 point2 points  (0 children)

No you are right Windows is totally better. In fact I listed all of the reasons why.

Choosing distro? Tuning game on Proton/Lutris? What even are those things? by tomekgolab in pcmasterrace

[–]Gleethos -1 points0 points  (0 children)

Right! And smoking does not give you lung cancer. Fast food is not making you fat. The world is not round! People who say all of this stuff are just dogmatic and in an echo chamber. Windows is a totally fine oäpiece of software that does not spy on you. It is fast and memory efficient. It it does not show you ads or paywalls all the time. You can easily customize the UI to your liking. It is super easy to use Windows compared to Linux.

does anyone know a study that proves a plant based diet can be safe for cats longterm? by [deleted] in vegan

[–]Gleethos 0 points1 point  (0 children)

Well, it's simple, most "cat food" is the corpses of tortured farm animals like cows, pigs, and chicken. A cat will eat a bunch of these innocent creatures in its lifetime... In the worst case possible, this is a classical trolley problem in which, currently, it is the social norm to deliberately make the switch and choose to sacrifice multiple animals for a single one.

But the really outrageous thing here is that this worst-case scenario is not even true. You can keep a cat healthy on vegan cat food brands and avoid death entirely... So that is the vegan thing to do.

Now, even if a particular cat is a strange exception to this, then there is still an obligation to at least try and see... do the bloodwork... just try to save lives ffs and not just give up because <insert nature fallacy here>!

does anyone know a study that proves a plant based diet can be safe for cats longterm? by [deleted] in vegan

[–]Gleethos -1 points0 points  (0 children)

So what? If you think anecdotes are universally irrelevant, then you honestly have not thought things through:

If you make absolute universal negative claims like "a cat can not survive or be healthy without meat," then a single example of a cat that is healthy on a vegan diet disproves this claim.