Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Blocks considered harmless (Score 1) 677

BTW, here is the Algol-60 standard. It's pretty short, so should be an easy read, but if you haven't seen it before, you'll be surprised at how much was there already, given that we're talking about something that started its life in 1958 (that's when the first Algol report was published, 1960 was a later revision).

Comment Re:Blocks considered harmless (Score 1) 677

Algol had blocks (and, more importantly, loops, quite fancy ones too) - but it didn't have anything similar to "break" or "continue", and you had to use boolean flags or goto for that.

It had some crazy stuff in the goto department, too. For example, you could pass labels as parameters to functions, and they could then goto a parameter to jump out (possibly unwinding several stack frames in the process).

Comment Re:What's Unique To Goto? (Score 1) 677

Recursion really depends on the language. Some of them mandate tail recursion in the language spec, for example (like Scheme), so it really is as good as a loop. For others, it's a QoI issue, like most modern C++ compilers.

Oh, and Turbo Pascal does actually have "break" and "continue". Spelled exactly like that, too.

Comment Re:Well, yeah (Score 1) 677

I think that you're attacking the wrong thing. Control flow in modern programs is just as complicated, yes. Ultimately, there's no way around it - a complex system with many states requires a complex control flow. What we're better at is organizing the code structure (which is different from how execution flows through it!) in such a way that it can be digested one bit at a time, rather than having to grasp the entire thing at once that was more common back in IF..GOTO days.

Comment Re:What's the term for a prophylactic prediction? (Score 1) 677

In theory, an array type that supports long, byte, and bit access to the same data could be made type-safe.

CLR has this in practice:

https://msdn.microsoft.com/en-...
https://msdn.microsoft.com/en-...

Also [StructLayout(LayoutKind.Explicit)] is somewhat similar (and is considered verifiably safe so long as you only overlap blittable types, and don't use types with architecture-dependent size like IntPtr).

Comment Re: More liberal than libertarian (Score 1) 580

"Libertarian socialist" is a bit different. This implies socialist attitude towards private property, and specifically the means of production (i.e. no such thing), but without the coercive state apparatus to enforce it from top down. Taken to the extreme, this is classic 19th century anarchism (and anacho-syndicalism etc), where the society itself simply refuses to collectively enforce property rights.

"Left libertarian", on the other hand, is not socialist. It just means that the person is a minarchist (i.e. believes that there should be as little government as possible, and only just enough to do all the things that need to be done that no-one else can do well), but recognizes some social goals that are traditionally affiliated with left wing fall under that umbrella of "things needing to be done". So that translates to things like e.g. public social safety net, healthcare and education, and the increased taxation necessary to fund it, but within the capitalist framework and without embracing socialist attitudes towards property.

Comment Re:"In a place you might not expect it" -- srsly? (Score 1) 580

Not really, it's just that the extreme liberal loonie stuff lies in different areas. But it can get just as crazy - substitute Jesus for Mother Goddess, government conspiracy with corporate conspiracy etc.

Libertarians are even more amusing, since the loonies among them combine both conservative and liberal crazy shit in elaborate conspiracy theories. Like, the government is forcing you to vaccinate your kids because it's actually secretly controlled by the corporations that have the monopoly (state induced, of course, "no such thing in a free market") on vaccines.

Anyway, as far as liberals go:

"I talked to a public health official and asked him what’s the best way to anticipate where there might be higher than normal rates of vaccine noncompliance, and he said take a map and put a pin wherever there’s a Whole Foods. I sort of laughed, and he said, ‘No, really, I’m not joking.’ It’s those communities with the Prius driving, composting, organic food-eating people."

Comment Re:Bit of a hatchet job (Score 1) 551

That was a rhetorical question :) it's LLVM, of course. Clang to compile, LLDB to remotely debug.

So far as I know, the standard (i.e. Google's) Android toolchain heretofore has used gcc. Now there will be a fair influx of developers coming from mostly MS stack, and so used to VS, but targeting Android for its marketshare - and they will not be exposed to gcc in any way, shape or form.

Which is precisely the kind of thing that bugs RMS. Once gcc is only used by a few people forced to write for exotic platforms (and honestly, how many are still there? my impression has been that everything is unifying around Intel and ARM, across levels), and for the rest it's just a history footnote, what would FSF boast of as its achievement, to draw attention to their message?

Comment Re:Bit of a hatchet job (Score 1) 551

Yes, you're right. So let me adjust that - "there's literally no reason for anyone on a mainstream platform". Which is like 99% of everyone. Either way, the end result will be the same - LLVM/Clang will take over and become a de facto standard.

By the way, here's a fun fact... Visual Studio 2015 is going to ship with support for building Android apps, including native code - and guess which toolchain it is using for that?

Comment Re:This is (sort of) good news for Americans (Score 2) 215

One example are Russian cars. By law, they have to have sets of cameras on them

I don't know who told you that, but there's no law in Russia that requires having dashcams. Nor is it a prerequisite for getting insurance - having a car insurance is obligatory, and the companies are required to provide it with certain minimum conditions satisfied.

What it does is make it easier to prove your insurance claim should you have to make one. And also, in some cases, keep you out of jail, by proving your innocence (e.g. in a faked pedestrian hit).

He has to run the country with an iron grip or else separatists will fracture the country

Oh? And who are those separatists exactly, and which parts of the country are threatening to separate?

Slashdot Top Deals

"The chain which can be yanked is not the eternal chain." -- G. Fitch

Working...