Reputation: 10 Tradesman
- Active Posts:
- 76 (0.09 per day)
- 05-August 11
- Profile Views:
- Last Active:
- Sep 01 2013 06:00 AM
- Who Cares
- OS Preference:
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Who Cares
- Dream Kudos:
Posts I've Made
Posted 20 Apr 2013No, I don't want to rewrite a compiler.
I'm talking about when sometimes the compiler generates instructions in a way that you can rewrite them so much better.
The time can vary but all in all, if that function is being called frequently I wouldn't want even one extra instruction.
The solution would be of course to write the assembly yourself (i.e. if it's a messy call, remove the C/C++ call and write it yourself in the inline-assembler).
Hope I'm clearer now.
Posted 4 Feb 2013The error message doesn't tell you that your classes have to have a parameterless constructor - it's telling you that you're only allowed to use parameterless constructors (or initializers) in a LINQ to Entities query. So new XElement(foo, bar) is not allowed inside a Linq2Entities query because it's calling a constructor that takes 2 parameters, not zero.
When you add the ToList it works because now you're using LINQ to Objects instead of LINQ to Entities, and LINQ to Objects does not have such a restriction.
Thank you very much.
Posted 29 Dec 2012Thanks mostyfriedman.
I'll check that site out.
Posted 28 Dec 2012It's the predominant player in the industry. About ten years ago, C++ was the language of choice. A fair number of data structures courses are still taught in C++. This introductory course is still a point where students are new to programming, and Java tends to be a friendlier language to work with. Different people have varying opinions on which language should be taught, but learning Java won't hurt you. Especially when it comes to applying for jobs.
Ah, always thought it'd be C#.
But good to know why it really is like that, before you said that it always baffled me.
Posted 28 Dec 2012Oh that's awesome! many thanks!
(Still wonders why Java is always the language to learn those kind of stuff..)
- Member Title:
- D.I.C Head
- Age Unknown
- Birthday Unknown
pokiaka hasn't added any friends yet.