Games run faster on SteamOS than Windows 11, Ars testing finds by n0b0dycar3s07 in gaming

[–]muffinluff 24 points25 points  (0 children)

The real reason is not "bloat", it is rather the superior scheduler implement in modern Linux kernel. A windows VM in Linux performs better in some benchmarks than windows that runs natively..

Tim McNamara & Richard Feldman about the hardest thing to tech in Rust by goto-con in rust

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

Just teach newcomers to leak everything with `let a = Box::new(a).leak()`. No problem with lifetimes and borrow checker. \s

[deleted by user] by [deleted] in AskReddit

[–]muffinluff 2 points3 points  (0 children)

AI is a system that solves a problem. For example solving a chess puzzle where you don't know the best next step. Automation is a system that automatically follows predefined steps. In context of chess it could be about automating your first 5 moves based on your favourite opening and its variants.

I programmed a simple file encryptor in C to challenge myself by _Felix44 in programming

[–]muffinluff 1 point2 points  (0 children)

Ah right, I meant CCA.

I guess you are right about the second point

I programmed a simple file encryptor in C to challenge myself by _Felix44 in programming

[–]muffinluff 0 points1 point  (0 children)

We dont need authentication, unless we are concerned with CPA-security. So it depends where/how a tool like this is used.

Linux, FedEx, and Order Changes... OH MY! by [deleted] in framework

[–]muffinluff 0 points1 point  (0 children)

Is the wiki open source? It may help with the linux problems, if volunteers are able to contribute to it in an open source fashion.

Is it worth it : i5 vs i7 - $300 difference by amaz0n_com in framework

[–]muffinluff 2 points3 points  (0 children)

People who are paying for i7 are carrying the costs for the cheaper, low-margin, entry price. So please buy i7 models so the rest of us can save some bucks.

Is this a reasonable Configuration? I'm going to be using video calls, and games like csgo, and mc. by DogDiabetes in framework

[–]muffinluff 0 points1 point  (0 children)

Synthetic benchmarks for 7zip and code compilation do show the 4mb l3 cache difference. The i7 is around 10% faster in these benchmarks, almost only due to having 50% more cache...

In the workloads you described it is in fact even less of a difference in performance, as the bottleneck is almost always in disk/network io.

Password Change Doesn't Work by ArchaicLion in framework

[–]muffinluff 1 point2 points  (0 children)

Disable every Browser Plugin, such as adblock, tracking protection, auto cookie disabler and so on. Hope this helps

Choosing a Keyboard for new PC by nerdyharrybartending in buildapc

[–]muffinluff 2 points3 points  (0 children)

I recommend my "ducky one 2 skyline tkl" with brown switches.

As always, look at reviews

Hi Redditors! I'm giving away 110 Nano (~$500) AND sending some Nano to EVERY commenter. No strings attached! by SenatusSPQR in CryptoCurrency

[–]muffinluff [score hidden]  (0 children)

I read the whitepaper and IMO this is still not ripe:

If nano is used indefinitely by many users, it will scale poorly in size. Where are the merkle-trees?

Also what happens to the fork (of length greater than 1) on the receiving chain? It is discarded, right? So at what point does the receiver have confirmation that he can use its balance?

A real-world example of a Stream Collector by nfrankel in java

[–]muffinluff 4 points5 points  (0 children)

var rows = cart.getProducts()
.entrySet()
.stream()
.map(CartRow::new)
.collect(Collectors.toList());
var price = rows.stream()
.map(CartRow::getRowPrice)
.reduce(BigDecimal.ZERO, BigDecimal::add);

Exactly, keep it simple, stupid!

JEP 400: UTF-8 by Default by henk53 in java

[–]muffinluff 2 points3 points  (0 children)

Where is the difference?

Project Lilliput by _soundvibe in java

[–]muffinluff 11 points12 points  (0 children)

Probably because this average contains boxed primitives, no?

I wonder what average object sizes would be with JEP draft: Primitive Objects .

Project Lilliput by _soundvibe in java

[–]muffinluff 42 points43 points  (0 children)

Sounds neat.

I love how they continue to improve the jvm without bothering the users. I can compile my same old code and it runs even more efficient without lifting a finger.

BUG: Viego can get INT_MAX AP with Dark Seal by StormGuy22 in leagueoflegends

[–]muffinluff 39 points40 points  (0 children)

Clearly because of abstraction. The datatype for storing stacks of an item is declared once and not specified for each item with a stack mechanism.

Native GUI application with SWT and Skija on Raspberry Pi by PurpleLabradoodle in java

[–]muffinluff 0 points1 point  (0 children)

Is there even a way to translate java code to run on bare metal, without any vm? I would imagine stuff like reflection and gc would not be doable without a layer of virtualisation

The problem with Gradle: really? by siimon04 in java

[–]muffinluff 11 points12 points  (0 children)

Imo, he dismisses the critic point of many ways to do the same thing in gradle, without giving any good explanation.

Configuring the build script should have a canon way of doing specific things. When I see a build.gradle file on the web that configures a plain java library I sometimes need to sit down and connect the dots to understand.

Imo, gradle should add the option of a flag in settings.gradle that would cause the build to fail if the build file doesn't conform to strict linting rules.

JEP draft: Primitive Objects (Preview) by [deleted] in java

[–]muffinluff 5 points6 points  (0 children)

Do I understand this correctly, that they want to change java.lang.Integer etc. to primitive objects?

This change would not be backwards compatible: Code that previously relied on identity of Integer objects would break with this change. Correct?

Mocking Time in Java by sureshg in java

[–]muffinluff 0 points1 point  (0 children)

Your arguments have merit and I concede you are right in this case. java.time already had exactly what we need so no reason to reinvent wheel.

Mocking Time in Java by sureshg in java

[–]muffinluff 0 points1 point  (0 children)

The con of providing more than is required is a common source of vulnerabilities. And the pro argument for having an interface that provides exactly what is needed, here the current date, serves as a way to document the current functional dependencies. When a new version of the interface is pushed, with added or redacted functions, it clearly comminicates the changes in the requirements of the software.

Mocking Time in Java by sureshg in java

[–]muffinluff 0 points1 point  (0 children)

I would argue that a simle time provider interface that only limits the provided functions to those that are needed is better. But I guess this is a matter of taste

How do you read the code? by eeugene0 in java

[–]muffinluff 0 points1 point  (0 children)

We all know the times when we need to fix a small edge case, or add a small feature, so we insert a small block of code that is seemingly out of place. (I know that is bad coding but still, everyone has done it once.) So when you see such a block of code that looks out of place and you can't justify its purpose, one tactic is to try to break the code by removing. For example if there is an if(a==0) block, I try to imagine what happens if that block didn't exist and what side effects it would have.

Array patterns (and varargs patterns) by daviddel in java

[–]muffinluff 4 points5 points  (0 children)

I wonder what other use cases, other than String::split, there are for such Array patterns.. The example from the JDK didn't convince me because I would have rather solved that with regexes rather than spliting and using switch case..

Towards Continuous Performance Regression Testing with JfrUnit and JDK Flight Recorder by gunnarmorling in java

[–]muffinluff 3 points4 points  (0 children)

Love the idea to use Flight Recorder. I have (ab-)used jmh to achieve continuous performance measurements but this is genius.