There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.ml

jared , to programmerhumor in JSchizophrenia
@jared@kbin.social avatar

Kid beer!

Jackcooper , to world in Climate change is a hoax /s

Why is the world so much hotter during the Northern Hemisphere summer?

krzyz ,
@krzyz@szmer.info avatar

As far as I know that’s mostly because there’s much more land in the Northern Hemisphere and the temperature differences (day/night but also summer/winter) are much more pronounced over the land than over the sea: the land heats and cools faster.

Jackcooper ,

Thanks buddy! Wow on Lemmy people actually answer your questions that come late in the thread. Incredible.

acunasdaddy ,

I think also El Niño right?

h0rnman , to programmerhumor in Gitar hero

Yo, please tag this NSFW… we didn’t come here to see this kind of smut

filister , to linux in What are the main challenges in Linux adoption for New users, and how can it be addressed?

Fragmentation, there is so many WM, DE, Distros, package managers. This is the beauty of open source but it is also the plague.

Toxic communities, where people are thrashing you if you don’t understand sometimes the overly complicated wiki and you dare open a thread in one of the forums to seek for help.

Driver support, sometimes installing your OS requires a lot of manual configuration to make everything work ok your machine the way you want it.

shotgun_crab , to programmerhumor in optimal java experience

I’ve seen horrible messes made in all of the languages listed above, it doesn’t matter anymore

Aceticon , to programmerhumor in optimal java experience

I actually have a ton of professional Java experience and have done a lot of microcontroller stuff of late (for fun mainly) and if you go at doing software for ARM Cortex-M microcontrollers the Java way you’re going to end with overengineered bloatware.

It’s however not a Java-only thing: most of those things have too little memory and processing resources for designing the whole software in a pure OO way, plus you’re pretty much coding directly on the low-level (with at most a thin Hardware Abstraction Layer between your code and direct register manipulation) so only ever having used high-level OO languages isn’t really good preparation for it, something which applies not only for people with only Java experience but also for those whose entire experience is with things like C#.Net as well as all smartphone frameworks and languages (Objective-C, Kotlin, Swift).

odbol ,

I used to write a lot of performance-critical Java (oxymoron I know) for wearables, and one time I got a code reviewer who only did server-side Java, and the differences in our philosophies were staggering.

He wanted me to convert all my code to functional style, using optionals and streams instead of simple null checks and array iterations. When explained that those things are slower and take more memory it was like I was speaking an alien language. He never even had to consider that code would be running on a system with limited RAM and CPU cycles, didn’t even understand how that was possible.

eth0p ,

This may be an unpopular opinion, but I like some of the ideas behind functional programming.

An excellent example would be where you have a stream of data that you need to process. With streams, filters, maps, and (to a lesser extent) reduction functions, you’re encouraged to write maintainable code. As long as everything isn’t horribly coupled and lambdas are replaced with named functions, you end up with a nicely readable pipeline that describes what happens at each stage. Having a bunch of smaller functions is great for unit testing, too!

But in Java… yeah, no. Java, the JVM and Java bytecode is not optimized for that style of programming.

As far as the language itself goes, the lack of suffix functions hurts readability. If we have code to do some specific, common operation over streams, we’re stuck with nesting. For instance,

<pre style="background-color:#ffffff;">
<span style="color:#323232;">var result </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#323232;">sortAndSumEveryNthValue(</span><span style="color:#0086b3;">2</span><span style="color:#323232;">, 
</span><span style="color:#323232;">                 data.stream()
</span><span style="color:#323232;">                     .map(parseData)
</span><span style="color:#323232;">                     .filter(</span><span style="color:#0086b3;">ParsedData</span><span style="color:#323232;">::isValid)
</span><span style="color:#323232;">                     .map(</span><span style="color:#0086b3;">ParsedData</span><span style="color:#323232;">::getValue)
</span><span style="color:#323232;">                )
</span><span style="color:#323232;">                .map(value </span><span style="font-weight:bold;color:#a71d5d;">-></span><span style="color:#323232;"> value </span><span style="font-weight:bold;color:#a71d5d;">/ </span><span style="color:#0086b3;">2</span><span style="color:#323232;">)
</span><span style="color:#323232;">                ...
</span>

That would be much easier to read at a glance if we had a pipeline operator or something like Kotlin extension functions.

<pre style="background-color:#ffffff;">
<span style="color:#323232;">var result </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> data.stream()
</span><span style="color:#323232;">                .map(parseData)
</span><span style="color:#323232;">                .filter(</span><span style="color:#0086b3;">ParsedData</span><span style="color:#323232;">::isValid)
</span><span style="color:#323232;">                .map(</span><span style="color:#0086b3;">ParsedData</span><span style="color:#323232;">::getValue)
</span><span style="color:#323232;">                .sortAndSumEveryNthValue(</span><span style="color:#0086b3;">2</span><span style="color:#323232;">) </span><span style="font-style:italic;color:#969896;">// suffix form
</span><span style="color:#323232;">                .map(value </span><span style="font-weight:bold;color:#a71d5d;">-></span><span style="color:#323232;"> value </span><span style="font-weight:bold;color:#a71d5d;">/ </span><span style="color:#0086b3;">2</span><span style="color:#323232;">)
</span><span style="color:#323232;">                ...
</span>

Even JavaScript added a pipeline operator to solve this kind of nesting problem.

And then we have the issues caused by the implementation of the language. Everything except primitives are an object, and only objects can be passed into generic functions.

Lambda functions? Short-lived instances of anonymous classes that implement some interface.

Generics over a primitive type (e.g. HashMap<Integer, String>)? Short-lived boxed primitives that automatically desugar to the primitive type.

If I wanted my functional code to be as fast as writing everything in an imperative style, I would have to trust that the JIT performs appropriate optimizations. Unfortunately, I don’t. There’s a lot that needs to be optimized:

  • Inlining lambdas and small functions.
  • Recognizing boxed primitives and replacing them with raw primitives.
  • Escape analysis and avoiding heap memory allocations for temporary objects.
  • Avoiding unnecessary copying by constructing object fields in-place.
  • Converting the stream to a loop.

I’m sure some of those are implemented, but as far as benchmarks have shown, Streams are still slower in Java 17. That’s not to say that Java’s functional programming APIs should be avoided at all costs—that’s premature optimization. But in hot loops or places where performance is critical, they are not the optimal choice.

Outside of Java but still within the JVM ecosystem, Kotlin actually has the capability to inline functions passed to higher-order functions at compile time.

/rant

yukiat , to linux in What are the main challenges in Linux adoption for New users, and how can it be addressed?
@yukiat@lemmy.world avatar

The number one issue for me was games.

Like seriously, why do most developers not give a damn about their Linux playerbase?

Smuchie ,

Most likely this will become less of an issue over the comming years due to the popularity of handheld Linux based devices such as the steam deck.

jflesch ,
@jflesch@lemmy.kwain.net avatar

Also thanks to Wine/Proton. You have to give it to Valve : overall it works surprisingly well.

ZIRO ,
@ZIRO@lemmy.world avatar

It does. I am disappointed in the game studios who refuse to allow Linux players, though, such as Bungie. I’m certain that Destiny would be playable if not for their obstinacy.

bouh ,

With proton now it is easier than ever! Right in steam. Lutris is awesome for almost all the others.

joejoe87577 ,

I saw this in a YouTube video about some indie video game. They had a native linux port. The userbase was like 99% windows and 1% linux, but 99% of the crash reports were from linux users.

This and the “problems” with adding anti cheat software that works with linux is just too much for most to bother.

ture ,
@ture@rational-racoon.de avatar

Might be because the average Linux user is way more aware of how useful a crash report can be and therefore actually submitted them. At least most Linux users I know actually read error/ crash messages and not just call someone saying there was some pop-up, I just clicked ok and the game was gone.

HurlingDurling , to linux in What are the main challenges in Linux adoption for New users, and how can it be addressed?

Ok, so I have an ASUS Zephyrus M16 with a Core i19 12th Gen and an rtx 3070. I was able to install fedora and able to get it mostly 100% working, but my two biggest issues where I could not play Destiny 2 (because they didn’t want to support Linux and actually would ban players who tried), and the switch between egpu and the discrete gpu that you have to reboot for the changes to take effect. Every once in a while the display wouldn’t work and I had to reboot multiple times before it would start to work again because of the aforementioned issues with the gpu. All in all I love Linux but I can’t spend any time troubleshooting and just need a laptop that just works.

bear ,

Have you set it up per asus-linux.org? These guys do amazing work to make ASUS laptops feel like first class citizens on Linux in both kernel patches and software. Strongly recommend, only takes a few minutes on Fedora if you’re already installed and up to date. You should be able to get working Optimus and less GPU issues.

Can’t help ya with Destiny though, they’re just jerks.

HurlingDurling ,

Thanks for the info but yeah that’s the guide I followed and even they mention driver caveats

daragh , to linux in What are the main challenges in Linux adoption for New users, and how can it be addressed?

Intimidating to install and then an unfamiliar interface and applications.

It might be more accepted if it came preinstalled and simply had a browser like Chrome and an app store, where all the other ‘helpful’ but confusing apps like Libre office were kept out of the way.

I install it for my family and it would only be accepted if it looked and worked just like Windows or MacOS. All they really need is a browser to get to GSuite or Office365.

Hector_McG , to programmer_humor in finally there is a perfect monitor for Java programmers

Program in assembly, 40 columns is plenty. You just need an awful lot of rows.

giloronfoo ,

Same monitor, just rotate it.

dudinax ,

If you don’t use a vertical monitor I don’t consider you a real programmer.

interolivary ,
@interolivary@beehaw.org avatar

Joke’s on you: I don’t consider myself a real programmer either

Jocker ,

We need the same monitor, vertically!

toxoplasma0gondii , to cat in Good hunting, Oliver

One of mine brings leaves of some kind of water lilies from a neighbor we neither see from our house nor know. As the cats have (save) collars with our phone number on it, i half expect to get an angry call or visit sometime soon. Oh well. :D

Sibbo , to technology in AI panic is a marketing strategy

Never having heard the term AI panic makes this kinda meaningless. But I guess AI panic is evil, as it is promoted by the typically more evil companies?

chobeat OP ,

You might have heard of singularity, sentient AI, uprising of the ai, job losses due to automation. That’s all propaganda that sits under the concept of AI panic.

substill ,

But how are Microsoft and other LLM companies marketing on AI Panic?

I honestly don’t understand what this graph means. I don’t get what the four sectors mean, how the author decided to distribute companies among the four sectors, or why the four sectors are divided into two equivalent circles.

WindInTrees ,

Neither do I. Not a very good diagram.

markr ,

All I can figure out is the pink side is pure evil and the blue side are our saviors. Given the color scheme, perhaps this is yet another failed gender reveal?

Bipta ,

It's ridiculous to call ideas that have existed for half a century propaganda just because we're now approaching those things...

DrMario ,

job losses due to automation

Oh yeah this has never happened. Brb, gonna go tell all my fellow assembly line workers this concept is total propaganda

chobeat OP ,

automation never reduces jobs. It fragments them, it reduces their quality, it increases deskilling and replaceability. We are not going to work less as we never worked less thanks to automation. If we want to work less, we need unionization, not machines.

ultranaut ,

What’s this about OpenAI having a mission to create chaos? That sounds like “AI panic” or conspiratorial thinking on the surface at least.

MxM111 ,

How is OpenAI evil?

chobeat OP ,

They published a deliberately harmful tool against the advice of civil society, experts and competitors. They are not only reckless but tasked since their foundation with the mission to create chaos. Don’t forget the idea behind OpenAI in the beginning was to damage the advantage that Google and Facebook had on AI by releasing machine learning technology in open source. They definitely did it and now they are expanding their goals. They are not in for the money (ChatGPT will never be profitable), they are playing a bigger game.

Pushing the AI panic is not just a marketing strategy but a way to build power. The more they are considered dangerous, the more regulations will be passed that will impact the whole sector. fortune.com/…/sam-altman-ai-risk-of-extinction-pa…

drekly ,
  1. what is AI panic?
  2. how is OpenAI using AI panic?
chobeat OP ,

it’s answered in other comments

MxM111 ,

deliberately harmful tool ???
I am using it, and yes, it can be inaccurate sometimes, but deliberately harmful?
The link that you gave is not about this AI, but potential danger of some future AGI, which would have to be more powerful than this one.

chobeat OP ,

This paper explain a taxonomy of harms created by LLMs: dl.acm.org/doi/pdf/10.1145/3531146.3533088

OpenAI released ChatGPT without systems to prevent or compensate these harms and being fully aware of the consequences, since this kind of research has been going on for several years. In the meanwhile they’ve put some paper-thin countermeasures on some of these problems but they are still pretty much a shit-show in terms of accountability. Most likely they will get sued into oblivion before regulators outlaw LLMs with dialogical interfaces. This won’t do much for the harm that open-source LLMs will create but at least will limit large-scale harm to the general population.

MxM111 ,

I can only imagine what would happen if these authors were to write about internet.

chobeat OP ,

There are entire fields of research on that. Or do you believe the internet, a technology developed for military purposes, an infrastructure that supports most of the economy, the medium through billions of people experience most of reality and build connections, is free from ideology and propaganda?

MxM111 ,

That’s my point, nearly everything in life have good and bad sides, you have to use it accordingly. Would you believe if I say that a banal kitchen knife can be used to murder people? Those kitchen knife manufacturers released a product which is a harmful tool! And they knew that!

ultranaut ,

What’s this about OpenAI having a mission to create chaos? That sounds like “AI panic” or conspiratorial thinking on the surface at least.

leraje , to fediverse in Requesting statement of no past, active, or future financial involvement with Meta for lemmy/mastodon.world
@leraje@lemmy.world avatar

I don’t like the idea of .world federating with Threads. I want no part of anything Meta related intruding into this space for various reasons.

However, the decision to rests with each instance owner and them alone. The admin of .world has elected to adopt a wait and see approach. I think that’s a mistake but it is their decision.

What you’re asking is absolutely none of your business, nor mine. .world has provided, in the very blog post you provided a (totally superfluous) screenie of outlined the finances for June for .world - something I don’t believe they’re required to do but did anyway.

You either accept these things or you move on to another instance. Descending into a fairly squalid gaucherie and requesting information that is none of your business is beyond the limits of reasonable expectation. This is not Musk or Zuckerberg or Bezos or Branson or some other mega-rich oxygen thief, this is an ordinary person like you and I, providing a free of charge service with no privacy invading scripts, no ads, no mental health destroying algo or similar activities. Whilst I believe a wait and see approach is flawed when it comes to Meta, due to what they are, I don’t extend that same approach to individual people who as far as I know have done nothing whatsoever to earn distrust. Even if they attended the NDA controlled meeting with Meta that is still no evidence of bad faith. To be honest, I probably would’ve done the same if only because I would be intensely curious as to what they had to say.

Dial this back a bit, please. You’re in no position to request such information and to do so is pretty classless.

cyd , to programmerhumor in Shakespeare quotes

Perfect iambic pentameter.

Gordon ,

Nearly. I’m counting 19, but that’s close enough IMO.

Korne127 , to til in TIL lemmy.ml is a pro-authoritarian CCP shill instance
@Korne127@lemmy.world avatar

Guess why they made an alternative to Reddit… they were banned on it because of their views.

It’s kind of hard for me; I use and like Lemmy, but I can’t / don’t want to comment issues on their GitHub or do a pull request because helping them is just… iffy.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines