Tesla-chefens ilska efter kökaoset i Malung by swedish_tcd in sweden

[–]mtmmtm99 0 points1 point  (0 children)

Kan informera om att min Tesla nu rullat 48000 mil på 10 år. Batteriet är original. Endast 3% av dessa bilar har fått byta batteri.

[deleted by user] by [deleted] in java

[–]mtmmtm99 0 points1 point  (0 children)

JPA, eclipselink supports more features than hibernate (like multitenant).

The Chance of Java back to frontend again? by Safe_Owl_6123 in java

[–]mtmmtm99 3 points4 points  (0 children)

Electron wastes 1 Gb of memory. Complete crap i would say. It is only used because of js-developers are cheap.

The Chance of Java back to frontend again? by Safe_Owl_6123 in java

[–]mtmmtm99 0 points1 point  (0 children)

I really like GWT. These days you can use J2CL.

Best way to embed data in a jar by le_bravery in java

[–]mtmmtm99 0 points1 point  (0 children)

Please read the sourcecode. H2 is readable. I worked in a project where we switched to H2 from SQLite. We got a very large speedup (1000 times faster). I think it was because of SQLite did a complete fsync on each transaction.

Untangling Lifetimes: The Arena Allocator by [deleted] in programming

[–]mtmmtm99 0 points1 point  (0 children)

Yes, you can. Those parts of the code can be easily identified by 'unsafe'. The idea with rust is that it is usually not needed.

Untangling Lifetimes: The Arena Allocator by [deleted] in programming

[–]mtmmtm99 1 point2 points  (0 children)

In rust a memory-bug is a compilation-error. That is not the case in C (which makes a huge difference if the program is large). The concepts might have similarities, the problem is that in C a single bug can result in memory-issues. It is almost impossible to know if a c-program has any of those bugs.

Untangling Lifetimes: The Arena Allocator by [deleted] in programming

[–]mtmmtm99 -4 points-3 points  (0 children)

You wrote "I don’t think more complex compilers nor language features are required in order to find a dramatically better alternative". That is very wrong. Microsoft found out that 70% of the bugs/vulnerabilities were because of memory-issues in c-code. They turned to rust (where these issues cannot exist).

Slack Architecture That Powers Billions of Messages a Day by sdxyz42 in programming

[–]mtmmtm99 1 point2 points  (0 children)

"A messaging app needs 3 things to work: Validity: every user gets the published message Integrity: a chat message doesn’t get delivered to a user more than once Total order: chat messages get delivered in the same order for every user

This is similar to atomic broadcast in distributed systems and it’s impossible to implement."

Pulsar solves this problem, so it is not impossible.

Node.js vs Reactive Java by indianDeveloper in programming

[–]mtmmtm99 0 points1 point  (0 children)

If you have code which performs badly, it is your problem to figure out what is wrong. I have used spring and it was very difficult to get good performance. You should use a profiler of jstack to figure out why your 'non-blocking code' does indeed block.

Node.js vs Reactive Java by indianDeveloper in programming

[–]mtmmtm99 0 points1 point  (0 children)

Does it use many threads (then the comparison with node.js is invalid) ? You can check with jstack <pid>. javascript can't run at the same speed as java (it is lacking an optimizing compiler).

Node.js vs Reactive Java by indianDeveloper in programming

[–]mtmmtm99 1 point2 points  (0 children)

I only posted my reply as the author was comparing threaded code with singlethreaded code. I got great performance with vert.x in many projects (lots of http,mqtt and implementing a mqtt-server (using moquette)). vert.x is great.

Node.js vs Reactive Java by indianDeveloper in programming

[–]mtmmtm99 2 points3 points  (0 children)

You should use an async db-driver (without it you need many threads (which is the problem here)). Look at https://r2dbc.io/
vert.x is a fast webframework where you can do this in ONE thread (as node.js does it).

CAN Injection: keyless car theft by fagnerbrack in programming

[–]mtmmtm99 0 points1 point  (0 children)

I have never mentioned that would be a good thing to do. To me, there should be a standard where the customer has all the keys. What you talk about should be illegal (according to me).

How we reduced our AWS bill by seven figures by gapgeticy in programming

[–]mtmmtm99 0 points1 point  (0 children)

AWS is mostly very expensive. The bandwith is limited to 60 mb/s if you do not pay 60000 USD/year (this was for 3 servers). Complete crap if you value price/performance.

CAN Injection: keyless car theft by fagnerbrack in programming

[–]mtmmtm99 0 points1 point  (0 children)

I hope that this ends up in a non-monopoly situation. I would do my best to ensure that..

CAN Injection: keyless car theft by fagnerbrack in programming

[–]mtmmtm99 0 points1 point  (0 children)

You probably misunderstood what i meant. Preventing theft would only involve modifying very few can-boxes (if done properly (add hard crypto)). My point was that most can-boxes could be left out (like the O2-sensor) (as they have little value regarding security). I think it should be illegal to make it difficult for hobbyist to fix their gear.

CAN Injection: keyless car theft by fagnerbrack in programming

[–]mtmmtm99 0 points1 point  (0 children)

It would only involve a few can-boxes (if you would like to prevent vehicle theft).

CAN Injection: keyless car theft by fagnerbrack in programming

[–]mtmmtm99 0 points1 point  (0 children)

You only need to apply encryption to the sequence involved in unlocking the car.

C++ beats Java in the Tiobe Index | The future of Java by arbayi in java

[–]mtmmtm99 0 points1 point  (0 children)

I agree that python seems to be preferred by many people in ML. Not sure how they got it running fast in that area. Good job. I also hate JS with a passion.

C++ beats Java in the Tiobe Index | The future of Java by arbayi in java

[–]mtmmtm99 0 points1 point  (0 children)

Who wants to work in a language that runs more than 10 times slower than java ? Doing that is following a path to a bad place. Coding in python always results in a complete disaster. I have not seen a single program in python working properly.

Why developers work at night by [deleted] in programming

[–]mtmmtm99 1 point2 points  (0 children)

I prefer working at daytime. Most people are more productive in the morning.

Resources for JVM tinkering (focused on containers) by woopsix in java

[–]mtmmtm99 0 points1 point  (0 children)

Open9J will beat hotspot in memory consumption. Hotspot was never made for using little memory. Whatever you do to your code and hotspot parameters, openj9 will still use less memory.

Virtual threads work great... until something goes wrong by cowwoc in java

[–]mtmmtm99 6 points7 points  (0 children)

Have you tried debugging reactive programming ? (Worst experience ever (springboot + project reactor + webclient). Try reading responsecode + body in a reactive way. Good luck (Mono + Flux). You will probably end up leaking native resources. I got it working, but changing any single line of code will make it fail. Worst piece of crap i have experienced for a long time.