Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #617
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.iecc.com!nerds-end |
|---|---|
| From | BGB <cr88192@hotmail.com> |
| Newsgroups | comp.compilers |
| Subject | Re: Good practical language and OS agnostic text? |
| Date | Sun, 22 Apr 2012 14:55:03 -0700 |
| Organization | albasani.net |
| Lines | 54 |
| Sender | news@iecc.com |
| Approved | comp.compilers@iecc.com |
| Message-ID | <12-04-074@comp.compilers> (permalink) |
| References | <12-04-067@comp.compilers> |
| NNTP-Posting-Host | news.iecc.com |
| X-Trace | leila.iecc.com 1335145328 35178 64.57.183.58 (23 Apr 2012 01:42:08 GMT) |
| X-Complaints-To | abuse@iecc.com |
| NNTP-Posting-Date | Mon, 23 Apr 2012 01:42:08 +0000 (UTC) |
| Keywords | parse, comment |
| Posted-Date | 22 Apr 2012 21:42:08 EDT |
| X-submission-address | compilers@iecc.com |
| X-moderator-address | compilers-request@iecc.com |
| X-FAQ-and-archives | http://compilers.iecc.com |
| Xref | csiph.com comp.compilers:617 |
Show key headers only | View raw
On 4/22/2012 5:55 AM, Tomasz Kowaltowski wrote: >> [... And I have to >> say that if you have CS degree and are unable to figure out what a >> LALR parser does, there's something wrong with your CS degree. -John] > > I agree with our moderator and am somewhat surprised by this > discussion. IMHO compiler construction requires knowledge of many > different techniques and is usually an advanced course in CS > undergraduate programs. Trying to do it without knowing the basics > and lots of experience may be an amusing pastime but cannot be > considered a serious endeavor. I don't mean you necessarily need a > formal CS degree but you do have be able to read (and understand!) > more advanced material. well, I think it depends a lot on the material... for example, many books are fairly straightforward: they describe the process, general stuff going on, ... so, then, all is good. in another case, I went and started trying to read a book (I forget the name): introduces general topic, starts mentioning stuff "Hindley-Milner Type Inference" and "Type Polymorphism as applied to the Lambda Calculus" and so on, with large volumes of rather opaque-looking mathematical notation. I think I didn't really get too far in this one (before brain-melting set in), before going off and looking at other stuff. I couldn't really see how any of this was terribly relevant in a world where "type" generally means "int" vs "float" and maybe dealing with things like pointer and array operations, and where "polymorphism" is mostly "one of those words that apparently has something to do with how the class hierarchy works or similar". it is enough to say "int + int -> int", "int + float -> float", ... I have personally a difficult enough time trying to fully understand how exactly SSA-form works, much less trying to implement a code-generator based on it, hence my continued general use of stack-machines as the conceptual model (doesn't mean "logical" stack operations map directly to "physical" locations or operations though). at least I generally understand stack machines. but, then again, my track-record for writing "good" native code generators (of those few "sufficiently complete to work") is sadly not very good (my first real attempts in this area starting around 2007 or so). [LALR really isn't that hard to understand, a state machine with a stack. I'm not saying every compiler should use it, but I am saying that it's no more complicated than other things a CS major should have mastered. -John]
Back to comp.compilers | Previous | Next — Previous in thread | Find similar
Re: Good practical language and OS agnostic text? Tomasz Kowaltowski <tk@ic.unicamp.br> - 2012-04-22 09:55 -0300 Re: Good practical language and OS agnostic text? BGB <cr88192@hotmail.com> - 2012-04-22 14:55 -0700
csiph-web