Forgot your password?
typodupeerror

Comment Re:"memory-safe" (Score 1) 35

Query parameters are URL encoded, not base64 encoded. And these aren't a signficant part of any code profile, you're doing it once per transaction for a tiny handful of strings.

Realistically, the amount of time any web service handler (for example) spends in a base64 decoder is a tiny fraction of any processing they're likely to do.

Be real here. If you don't have access to a profiler, the #1 thing to look at is what's going on inside your loops. You almost never have a base64 decoder being called inside a loop. If you do, it's likely because you're the one making the webservice calls, and the time taken to decode a base64 string is still negligible compared to the time taken to set up and tear down (and wait for!) the network services.

Anyone who claims that this optimization helped speed up their code in any noticeable fashion is either using an extraordinary use-case that likely one off, or is just plain lying. And that's assuming it even, say, doubles the speed of a base64 decode - the GGGP claimed to have written one in pure modern Java and "It matches native speeds within a few %".

What stopped Oracle from doing that? Why would that not be acceptable?

Stop defending mediocrity. Oracle has no idea what it's doing at this stage and is breaking things for no good reason. And it's especially bad because nobody uses Java for speed, they use it for safety, so increasing the speed of something that doesn't need to be sped up, and doing it in a really risky way, is so dumb it's hard to imagine the mentality behind it.

Comment Re:"memory-safe" (Score 1) 35

My wisdom is that the normal use case for base64 is once in a blue moon. You don't weaken the security of your code because you want to hand optimize some code that the average code base will use maybe once or twice for every web call. Nobody's writing a loop to go through 100,000 base64 strings.

This is what comes of people who don't use profilers or don't understand how their code works enough to realize where the bottle necks are.

Comment Re:"memory-safe" (Score 1) 35

> Certainly beclowns one of the biggest arguments for Java

No, it just makes clowns of the OpenJDK teams. There's no good reason to write Base64 implementations in assembler. The idea that native Java isn't fast enough to process Base64 in the kinds of volumes Base64 is used in is completely absurd. What the fuck were they thinking? And if they are going to implement this why wasn't it subject to rigorous review and testing?

I'm not impressed with the Java back-end these days. I found changing the garbage collector from the default to the "old" one (serial - also known as -XX:+UseSerialGC) was enough to cut memory usage of an application I was using that was typically using a gigabyte of RAM by... 85%. What's the downside? You might possibly notice tiny pauses from time to time. How the hell do they blow up memory usage by 8X just optimizing a GC? Why would they even release one that does that, let alone make it default? Jesus, I know RAM is/was cheap (2 years ago), but a gigabyte for something whose C equivalent uses maybe 50Mb?

Java needs better quality control. I suspect though that between burnt out demoralized Oracle devs being the primary developers and, in different directions, .NET, and Rust/Go, taking away interest in what was the flag bearer for managed code, it's not going to improve. If only .NET wasn't so Windowsy.

Comment Re:What ?! (Score 1) 21

I understand, but it really isn't ambiguous. There's literally no way to read it with it making sense unless you interpret the first item as being part of a list.

It's not ambiguous, it's hard to read. The wording can send you on a path that means you reach the final period and realize what you read doesn't make sense so you have to back track and try again. It can only be parsed one way and make sense.

Ambiguous would be if the sentence could mean two different things. There is no second meaning though.

Comment Re:What ?! (Score 1) 21

I'd say it's unambiguous because if you assume the first comma is part of a list, the sentence no longer makes sense.

Think of it like:

something ? something ? something : something ? something : something : something

for English. There's only one way to interpret that validly (let's not talk about PHP...), and a compiler will do so. But it's an ugly way to express logic and most good programmers will use linebreaks and parentheses.

I would agree your fixes would improve the summary's sentence and yes in general, technically correct English is not necessarily easy to read English.

Comment Re:Only six characters? (Score 1) 116

Aside from what everyone else says, yeah, not only do many not store passwords in salted hashes, they often store them in plain text anyway.

At a prior employer we found, to our horror, we were accidentally saving all of our customer's passwords in plain text in our logs. Thankfully you wouldn't have been able to access anything but the online products the customers had bought had such a log leaked, but obviously it underlines the need to remember that passwords can appear in a lot of places you might not remember they'd appear in.

Comment Re:Easy Fix: Integrity Checks. (Score 3, Interesting) 21

They did not get exactly what they deserved. They only got egg on their faces. As usual, the people who got the short end of the stick were the users.

I think though the attitude you're expressing is pervasive in the industry, and probably why devs don't see things like "Use a proper programming language rather than a glorified assembler" as applying to them. After all, it's they that'll get embarrassed if a security flaw is found, rather than their users who'll suffer when they have their credit card numbers stolen.

Comment Re:What ?! (Score 1) 21

It looks intelligible to me, the problem is maybe that the first component is followed by a list? If you read it out loud it's fine but I can see it might be confusing if you assume The Register is part of a list.

[As reported by The Register,]

[Zoom, the BBC, CNN, HSBC, and numerous other websites briefly served malware on November 16th.]

Comment Re:Country (Score 5, Interesting) 97

> Wonder who wanted him out.

The entire board. Multiple times.

The board knows what he's been up to, and more and more revelations have come out over the last few days, including the fact Huang was investing in corporations whose primary job seemed to be to buy up Nvidia's products in order to push the prices up.

It's looking increasingly like a huge scandal, that goes way beyond Chinese spying or violating export controls, and Nvidia's liability could be infinite.

You should be asking who wants him back in. And why.

Comment Re:A common component somewhere ... (Score 5, Interesting) 74

For the last 2 years everyone, including the government, has been laying people off using the excuse that AI will work perfectly adequately as a replacement. This has included people with critical skills, and people with long term business knowledge.

A cyberattack is possible, but so is the notion that the entire house of cards is beginning to collapse. We're only hearing about the most prominent examples.

Comment Re:Won't be any good if amazon has control (Score 1) 135

It's best to see it as an entirely different unrelated series, as much the James Bond we know and love and hate as the original 1960s Casino Royale movie. Because it is.

It'll probably suck, yes. Maybe it'll bring down MGM and Amazon will feel obliged to spin that out. I suspect Sony or Disney would gladly take it off of their hands.

Comment Re:Consider Moonraker (Score 1) 135

There's a problem here which is Amazon is making it, and while I suspect you were thinking of someone else, I don't see them making movies about "pasty white oligarchs with their own spaceship companies" any time soon. Or at least, they'd have to make it VERY clear they're not talking about Bezos by making him obsessed with this own popularity on social media to a level so comic it'd both make the point but also completely destroy the credibility of the entire movie.

Comment Re:Jason Statham (Score 1) 135

> Bond is always considered more upper class, suave etc

You do know the EON series started with Sean Connery, and ended with Daniel Craig, right?

Yes, Moore tried to, and Brosnan arguably succeeded at, bringing a degree of class and sophistication to the character. But they were very much the exceptions.

Comment Re:So how does this work? (Score 1) 135

Not even a reboot, a completely new series. It's no more rebooted than I'd be rebooting Jackson's LotR if I made my own LotR movie trilogy.

The rights to James Bond were bought by Amazon. It's not the same Bond series - virtually none of the original EON people are involved. (Possibly not virtually, I just can't be bothered to look it up, but the Brocollis defiinitely aren't, and Fleming died years ago.)

This is less related to the EON series than Never Say Never Again, which was more of an unauthorized fork involving an original script writer and original Bond actor.

Slashdot Top Deals

The bogosity meter just pegged.

Working...