Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:No Kidding (Score 1) 220

So, you don't indent code? Or if you do, at what point is the indent meaningless (how many spaces/tabs) ... ? No spaces after semicolons? Or before/after braces? Or ...

Readability should count as meaningful. It helps. And the compiler strips it out anyways, right, so ultimately it doesn't matter, just like comments, except in helping understand the code.

I may be misunderstanding something completely in what you said... but I don't get why you would say it should be removed. Maybe in javascript for network performance reasons or something, but you should just minify or something in that case, because of variable and function name length and all that...

Comment Re:Perl, my favorite language is rated higher... (Score 1) 386

Forgot to add:
The second point above might seem petty. After all, that's why D distinguishes between structs and classes, right?

Then please consider the following:
void func(lazy bool e);

void otherfunc()
{
SomeStruct s;

func(s.isTrue());
}

Since func receives a delegate, s is allocated on the heap (despite this not being immediately obvious to people not versed in D). As a result, s's destructor is not going to get called. Ever.

Shachar

Comment Re:Perl, my favorite language is rated higher... (Score 4, Informative) 386

When doing low level system programming, there aren't that many viable choices out there. C, C++, possibly ObjectiveC (not familiar enough with it to tell for sure). That's about it. Of those, ObjectiveC is, pretty much, a one platform language. C++ is used quite extensively, but it is way too complex, resulting in most C++ programmers not knowing what the 1@#$@!# they are doing. Also, some C++ features are not suitable for some low level scenarios. For example, you probably wouldn't want your kernel code to throw exceptions, or do iostream formatting, in kernel code.

C, on the other hand, is a very simple language. It has no expensive features (though, to be honest, that mostly means that if you need something expensive, you'll need to do it yourself). As such, it is without competition for what it offers. The most it loses in market/mind share is through scenarios that used to require low level system programming but no longer do.

As for D....

D advertises itself as supporting this mode. My employer chose to develop a low-level high performance low latency system in D. I've been programming it for the past half year. I'm not overjoyed. I don't hate D, but my personal opinion is that we'de have been better off going with C++ (though, to be honest, I love C++ like few of my peers do).

I have two main gripes with it on that front. D has a horrid GC (though no GC provides the latency requirements we need), and though it claims you can do without it, you really can't. At least, not without giving up on much of the language features and almost all of the standard library. When comparing to C++'s ability to use custom allocators with the standard library, D's phobos seems deathly pale.

D also claims to support RAII semantics. I happilly went about implementing a reference counting pointer, only to find out that there are cases where you cannot use a struct with a destructor, and there are cases where you theoreticaly can use one, but in practice find that the compiler will not call your destructor. All in all, RAII is an untested unutilized option in D.

Shachar

Comment Re:Gotta react to the market (Score 1) 386

The D syntax may be more readable than C++, but to claim that it is simpler is just farcical. The number of language constructs, their specialization and their focus is staggering. For a language that set up to simplify matters, it has done anything but.

When you do:
A a;
a.something;

"something" might be a member. It might be a property. It might be a method with no arguments (which gets called). It might be a function defined outside the class with a special property. It might be any of the above on a member of A, specially defined (subtyping). I will not be surprised to hear I missed something.

How is that simple?

Shachar

Comment Re:Dear Obama.... (Score 1) 417

Ok, so I have a question. I personally take this view as well: the government should own the infrastructure and allow free competition. Basically, it's like a road, and we can all compete with each other's shipping business.

The technical side, that I don't get ... is - is that actually possible? For example, say my neighbor wants to use FiberInternet2U and I want to use SpeedMAX as our ISPs. Is that relatively easily technically feasible?

My question comes mostly simply out of what I think is my understanding about phone lines. If we were talking about DSL, the phone lines all go to some central office somewhere (that pesky CO that you have to be within X thousand feet of ... with no load coils inbetween ...). In order to have two separate phone companies provide my neighbor and me service, wouldn't they have to be routed two different ways once they get to the CO ... or something?

You pretty much outlined exactly what I think *should* be the way it works, so I'm curious if you know how it technically could.

Oh, and also, force honest advertising, no more "up to" speeds :P and put any relevant data caps in the not-small-print.

Comment Re:islam (Score 1) 1350

You're missing a ton of background, but this is increasingly getting off topic.

If you like to know why that would not work (as well as some good reasons why Israel cannot do that, at least not in the literal way you wrote it), email me (your email is not public).

Shachar

Comment Re:islam (Score 1) 1350

The big one is a peaceful resolution to Israel/Palestine.

Personally, I don't think it is as big a part in solving that problem as you seem to think. My personal take on this is that it is a very convenient straw man to use ("we're only doing this to help the poor Palestinians", with no limitation on what "this" is). History suggests that very few Muslim and Arab leaders care much about the actual Palestinians. Should that problem magically (because no other option seems likely at this point) disappear, Muslims will just pick (manufacture?) another one.

Regardless, I'm curious. How do you get peaceful resolution to the Israeli/Palestinian conflict? I'd like you to try to limit your suggestions to things that had not been tried before (as those, obviously, do not work).

Also, saying that solving one problem is a key factor in solving another means that if the first is impossible, so is the other.

Shachar

Comment Re:islam (Score 1) 1350

OR let me ask it this way. Name one Islamic Nation where Christians, Jews, Buddhists, Atheists or anyone else is actually FREE to practice their religion (or lack thereof).

AFAIK, in Iran Jews do have the right to practice their religion. They are also represented in government.

Don't get me wrong. They are legally defined as second class citizens, their government position is reserved, and they are precluded from participating in the general elections (which are not exactly free either), and their situation is, in most ways, worse than those of the Muslim Persian. Still, in your narrow metrics, Iran is such a country.

I know there are also Jews in Yemen, and I think also in Turky. I don't know the details, but sketchy memory says that they do have at least some freedom of practicing religion. There are also Jews in Egypt, and there they are, at least according to the dry letter of the law, free to practice.

Now, had that been an "and" list, I'm not sure I'd be able to come up with as long a list.

Shachar

Comment Re:No, They Haven't Called Me (Score 1) 246

That is not certain.

I don't have first hand experience, but if I were to call someone to let them know that something bad happened to their kid, I'd be hesitent to leave too many details in a voice message. You generally want to downplay the injury until you know the person receiving the news can handle it.

As such, I'd probably leave a message saying "hi, my name is X and I'm calling about your kid, please call me back". If your attitude is scammers and spammers oriented, you are likely to not do so.

Shachar

Comment Re:Sympton of a bigger problem (Score 1) 611

There's still some orchards I think, but small. And there is a fair amount of ag south of SV... but nothing compared to what it used to be. That said, the water issues first started back in the early 20th century when the crops and orchards changed to high-water-use crops like prunes. The area must have sure looked beautiful before sprawl + oak trees cut + orchards removed :)

Comment Re:What's happening to Linux? (Score 1) 257

Funny, I'm moving in the opposite direction, but reach the same conclusion. Working with (most) modern IDEs just seem like masochism after you've used VIM.

The learning curve for vim is horrible. I can understand anyone who gives up before reaching reasonable productivity levels. Once you've gone through it, however, the IDEs are just no competition.

Shachar

Slashdot Top Deals

It's a naive, domestic operating system without any breeding, but I think you'll be amused by its presumption.

Working...