Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Comment Re:Automating creation of spaghetti, not maintenan (Score 1) 76

That is in fact a major problem for 'AI' because it doesn't understand anything. It is not parsing the code, understanding how it works and then working out how to add new features.
Depends on the AI. Of course most are parsing the code. How else would they transform the code into equivalent but cleaned up code? They have an AST and AST transformation rules.

The "modern AI" part is that an LLM parses the human given input (prompt), the work on the AST is done by an traditional "expert system".

Spaghetti code is the norm in this industry and so this is what the 'AI's are mostly trained on.
That is absolutely not how it works.
You are misinformed. /disclaimer: I train AI coding machines

Comment Such tools are useful, but do not work that way (Score 1) 50

First of all: that only works in debug builds/modes.
Secondly: during runtime, memory is initialized with something like 0xEEEEEEEE for "empty" as in allocated but not initialized memory.
Third: freed memory is filled with 0xDEADDEAD or 0xDDDDDDD.

So while the program is running, you stumble over double frees and uninitialized memory easy, not so easy over leaks.

Fourth: to find leaks, the code is required to free all memory on (during) program termination. Under the assumption, that the same "free logic" is called as during ordinary runtime. E.g. closing a document, frees everything regarding that document without a leak. While that makes sense for a document or a simple window, it makes not that much sense for an graph of controller objects.

Anyway: normal leaks are not detected during runtime. And to prevent false positives, you have to have free logic where a normal program would not need it.

Strange coincident, I toyed around with it this morning - before this story popped up.

Comment nanny ? (Score 3, Insightful) 50

So you don't need a nanny compiler. Fine by me, C and assembler were among the first programming languages I learnt.

But when you follow that up by "and here's our nanny memory leak checker instead..." and you don't notice the irony, I'm not sure if I want to trust you with my pointers if one redirect throws you off...

Comment Re:Like a bandaid (Score 3, Insightful) 50

Yes. On the other hand I've not had a leak in C++ side forever. Other memory errors, sure but a leak? No.

About the only way to get leaks now is if you are using raw new and delete, but why do that? The built-in facilities will now handle everything up to but not including mutable cyclic graphs and I'm fairly sure in that case you need reachability analysis, regardless of the language (though many have that built in in the GC).

Comment Re: I don't get it (Score 1) 125

Less than twenty four hours ago you just learned that water levels are not constant. This is easily accessible information and for example, even the elevation at opposite ends of small lakes are different and usually published. Like anywhere with dam probably has a state website or power utility publishing that info. It's not a conspiracy, there are a lot of variables the larger the scale, at ocean scale it's even more complicated, even the land itself can be moving up or down at different rates everywhere.

Take the win dude, you learned something today. You should be asking yourself why you were leading with the strong assertion you did instead of asking easily answered questions that would lead you to the truth all on your own. Everyone gets a pass for not knowing everything all the time, but doubling down on stupid and refusing to be wrong, you lose all respect for that.

Comment Re:Escalation in ToS (Score 1) 93

The argument is that the console is basically a brick without the online service, and any games that require online to work, even single player or due to DRM, stop working.

As an example, Nintendo's new console supports cartridges, but all they do is tell the console to download the game. They don't have any game data on them. Other consoles have been that way for a while too, with discs being little more than a key. Once blocked from those online downloads, the console is useless. At best it might continue playing some of the games that were already installed.

Comment Re:Memories of interpreted p-code (Score 1) 39

I really can't imagine why anyone would want to resurrect it now.
a) Games
b) there are plenty of "toy languages" on Github, that have AST interpreters and wait for a suitable byte code interpreter. A proven system that covers everything a high level language needs, could define a "new old standard".

If that Rust project gets far enough, I probably would port it to Dart.

Comment Re:Why this is news. (Score 2) 62

If you dig into the detail, the leaked credentials were stolen from hackers who obtained them from compromised devices. They are not website leaks of throwaway accounts, they are stolen from devices infected with malware.

Given that members of the current administration have already been seen in public using compromised apps, and given that he is likely to be a major target for rival spy agencies looking for ways into US government systems, it was always a concern that Musk employed unvetted and very questionable people, and then got them full access to key systems.

Comment Re:Escalation in ToS (Score 2) 93

It's been going on in the EU for years. Microsoft and Sony will both damage your console if you break certain rules, permanently banning it from online services. Not just your account or you personally, the actual console. Given that these days online is often essential to the game, and many game purchases are online only, the console is basically useless and worthless afterwards.

There is no appeal process. And of course they do make mistakes.

I have heard that some people have been able to return their consoles to the retailers in the UK, but only Reddit posts so no idea if it is true or not. Legally it is a grey area because it hasn't been tested. People were able to partial or full refunds on the PS3 when Sony removed Linux support via a mandatory (to keep playing games) update, but that's a bit different. If someone did go to court it would be against the retailer, as the consumer rights make them responsible for the product, and they would have a very hard time getting Sony to assist them with detailed evidence to back up the console ban. But then again, the consumer might find it difficult to provide any evidence that they were innocent. It would probably come down to the judge and how much effort the retailer made to defend.

Comment Re:One assumes they meant Armduino (Score 1) 39

What do you mean "the whole rust runtime"?

Not a rust programmer, but C++ runs more than just fine on the Arduino: Arduino is in C++.

Rust as far as I can tell has a very very similar machine model to C++. It might not be well supported (and well Arduino tends to languish on a decade old version of C++), but I don't see any particular inherent barriers. You'd need an allocator if you want to allocate of course, and no one's ported lib unwind, so no unwinding panics for you, but other than that?

Comment Re:CO2 levels correlated with sea level rise? (Score 1) 125

You can see the slow rise better with the larger graph from that page. https://ancillary-proxy.atarimworker.io?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2F...

No, you can't. That graph shows the rise over the last 24,000 years, but your claim was about last 2000 years, and on that curve the last 2000 years are flat. The curve I linked from the same Wikipedia page is a blow-up of the same data over just the last 2000 years, and shows more clearly that it there is no increase visible over the last 2000 years.

My point is that we are in a post glacial period with slow sea level rise.

And my point is that the data you linked shows that we are in a post-glacial period after the glacial-melt sea level rise.

Now compare the linear sea level rise in the tide gauge data to the exponential CO2 level rise

There's your problem right there. First, CO2 rise is not exponential, and second, you seem to be assuming a model saying in which sea level should be linear in instantaneous CO2 concentration.

Dealing with the first point CO2 concentration in the air is an exponential plus a constant . Look again at the CO2 graph and look at the y axis. That constant is critical, because delta temperature is not linear in CO2 concentration; it is proportional to the logarithm of greenhouse gas concentration (this is why climate sensitivity is always quoted in degrees per doubling.) So the constant is a critical factor. This has been known since Arrhenius. Basically, since we haven't even hit doubling yet, we're still on the linear part of the curve.

and from predictions we should see a curve upward in sea level and we don't. CO2 levels really took off during WWII and here 75 years later we are not seeing the exponential rise predicted.

Yes, as for the second factor, what model of glacial melting are you using to ground your hypothesis that glacial melt rate and subsequent sea level change should be proportional to CO2?

Found a tide gauge in San Francisco with a longer history for further reference: https://ancillary-proxy.atarimworker.io?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2F...

Overall, I'd say that the data is not over a long enough time scale and is too noisy to accurately measure the second derivative of the curve. And, overall, you want global sea level, not one or two selected spots. There's good satellite data on that now, but the time scale is too short to measure second derivative.

Slashdot Top Deals

The flush toilet is the basis of Western civilization. -- Alan Coult

Working...