Click here to Skip to main content
15,891,951 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: ransomware leaps fast onto usb sticks in an internet cafe Pin
Cp-Coder1-Dec-19 7:56
Cp-Coder1-Dec-19 7:56 
GeneralRe: ransomware leaps fast onto usb sticks in an internet cafe Pin
BillWoodruff1-Dec-19 19:32
professionalBillWoodruff1-Dec-19 19:32 
GeneralI read that the average compiler takes 30 man-years to develop Pin
honey the codewitch1-Dec-19 5:40
mvahoney the codewitch1-Dec-19 5:40 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
Sander Rossel1-Dec-19 6:29
professionalSander Rossel1-Dec-19 6:29 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
OriginalGriff1-Dec-19 7:41
mveOriginalGriff1-Dec-19 7:41 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
Ron Anders1-Dec-19 14:05
Ron Anders1-Dec-19 14:05 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
Daniel Pfeffer1-Dec-19 7:51
professionalDaniel Pfeffer1-Dec-19 7:51 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
honey the codewitch1-Dec-19 7:54
mvahoney the codewitch1-Dec-19 7:54 
It's not though. All I'd have to do to make it a compiler in the true sense is target IL, not the CodeDom. Maybe I'll do that as well to settle an argument before it happens. Shucks | :-\

I think you're overestimating what the CodeDOM is doing for me here. I still need to be able to get the current scope from any expression - the codedom doesn't help natively with this at all.

And frankly, if you've done much examination of IL the C# compiler does eff all for optimizing, as I think Super Lloyd and I discussed before - it left him feeling less than super once he disassembled.

Microsoft punts nearly everything to the JIT compiler, which IMO is silly because the JIT can only do peephole optimizations. As I've said before when it comes to C#, you'd be surprised at what it doesn't do in this regard.

Edit: I should add, the CodeDOM only saves me building my own AST. It doesn't parse, but it gives me something to hold my parsed data in. I still have to patch it up because foo.bar is too ambiguous for the codedom - is it referencing an argument? a field? a property? the codedom needs to to know. Is it an implicit this reference or an implicit static reference? or a reference to the base class?

So that means I need fully type resolution, for both external and declared types, and I need scope resolution so i can tell what is a variable, what is an argument, what is a field, and where it goes.

This is what the middle tier of a compiler does.

Where I'm really saving is in design. I'm implementing a subset of C#. The language has already been designed, and I have access to that goldmine of specs for it.

It's a well designed language. I don't have to reinvent it, and I know it's unambiguous and battle tested.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.


modified 1-Dec-19 14:03pm.

GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
kalberts1-Dec-19 22:23
kalberts1-Dec-19 22:23 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
Daniel Pfeffer1-Dec-19 22:30
professionalDaniel Pfeffer1-Dec-19 22:30 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
PIEBALDconsult1-Dec-19 8:26
mvePIEBALDconsult1-Dec-19 8:26 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
honey the codewitch1-Dec-19 8:30
mvahoney the codewitch1-Dec-19 8:30 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
Marc Clifton1-Dec-19 12:05
mvaMarc Clifton1-Dec-19 12:05 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
honey the codewitch1-Dec-19 12:06
mvahoney the codewitch1-Dec-19 12:06 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
kalberts1-Dec-19 23:13
kalberts1-Dec-19 23:13 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
Super Lloyd1-Dec-19 13:31
Super Lloyd1-Dec-19 13:31 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
honey the codewitch1-Dec-19 13:33
mvahoney the codewitch1-Dec-19 13:33 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
kalberts2-Dec-19 1:07
kalberts2-Dec-19 1:07 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
Jörgen Andersson1-Dec-19 20:53
professionalJörgen Andersson1-Dec-19 20:53 
GeneralRe: I read that the average compiler takes 30 man-years to develop Pin
honey the codewitch1-Dec-19 20:55
mvahoney the codewitch1-Dec-19 20:55 
GeneralI feel kind of bad about this Pin
honey the codewitch1-Dec-19 4:43
mvahoney the codewitch1-Dec-19 4:43 
GeneralRe: I feel kind of bad about this Pin
PIEBALDconsult1-Dec-19 5:41
mvePIEBALDconsult1-Dec-19 5:41 
GeneralRe: I feel kind of bad about this Pin
honey the codewitch1-Dec-19 5:45
mvahoney the codewitch1-Dec-19 5:45 
GeneralRe: I feel kind of bad about this Pin
BillWoodruff1-Dec-19 5:48
professionalBillWoodruff1-Dec-19 5:48 
GeneralRe: I feel kind of bad about this Pin
Ravi Bhavnani1-Dec-19 10:31
professionalRavi Bhavnani1-Dec-19 10:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.