Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Compiler like effect.

Compiler like effect.

Scheduled Pinned Locked Moved The Lounge
c++helpdiscussion
46 Posts 19 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    [Message Deleted]

    J Offline
    J Offline
    J4amieC
    wrote on last edited by
    #30

    There's two examples right there! Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

    1 Reply Last reply
    0
    • A Anna Jayne Metcalfe

      I think he's winding you up. ;P Actually I agree with you - writing compilers isn't hard (I dabbled in the subject myself long ago), but writing something complete, efficient, useable and maintainable - and providing the requisite support - requires resources and attention to detail well beyond the means of a single developer. Anna :rose: Currently working mostly on: Visual Lint :cool: Anna's Place | Tears and Laughter "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work.

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #31

      Anna-Jayne Metcalfe wrote:

      I think he's winding you up.

      No, no I wasnt. Osmosian was ridiculed off of forums like this and its a shame he has returned! Do a google search on the name and look through some forum posts. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

      A 1 Reply Last reply
      0
      • A Anna Jayne Metcalfe

        I think he's winding you up. ;P Actually I agree with you - writing compilers isn't hard (I dabbled in the subject myself long ago), but writing something complete, efficient, useable and maintainable - and providing the requisite support - requires resources and attention to detail well beyond the means of a single developer. Anna :rose: Currently working mostly on: Visual Lint :cool: Anna's Place | Tears and Laughter "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work.

        V Offline
        V Offline
        Vivi Chellappa
        wrote on last edited by
        #32

        Anna-Jayne Metcalfe wrote:

        Actually I agree with you - writing compilers isn't hard (I dabbled in the subject myself long ago), but writing something complete, efficient, useable and maintainable - and providing the requisite support - requires resources and attention to detail well beyond the means of a single developer.

        What does that say about C? Does it mean that a team of two developers ought to be sufficient? :rose:

        A 1 Reply Last reply
        0
        • R Roger Wright

          I suspect that you're biting off way more than you can chew here. I wrote an assembler 30 years ago, and that was lots easier than a compiler. But it still took all of my skill and a huge number of manhours to do. Compilers have to do many things that assemblers don't, and simply displaying the names of functions doesn't come close. How are you going to interpret the functions your users create in the a.rto file? Will you attempt to guess what they intend them to do and provide MFC equivalents? Or do you just plan to display what they entered and leave it at that? If you'd like to implement a user-definable language, take a look at the ancient and venerable language, FORTH. It was the first extensible language that allowed users to implement their own keywords and add them to the language syntax. Great tool, and it confused the heck out of programmers at the time.:laugh: "...a photo album is like Life, but flat and stuck to pages." - Shog9

          Y Offline
          Y Offline
          yang__lee
          wrote on last edited by
          #33

          Guys, Thanksssss a ton. Well thanks for the encouragement and reality check given to me on this forum. Let me tell you I am neither that dumb nor that super human. But let me tell you, I am not computer literate, I am not graduate , I am not english, my job was not fullfledge development. I was into other operations but I self lernt C , c++, vc++,SQL, VB, Pro*C, and now getting to MFC , C#, Due to constant pust to be a developer and applications I wrote, My boss moved me to the development. My company do not hire developers but I showed him the possibilities and applications and he was impresses. I have developed few good MFC applications for my company. I am the lone programmer in my office. I dont get any other help from the experienced developers. For a simple but confusing point, I have to search on net or read. Just a hint from some one can save you from wasting two days of nonstop research. You may refer my previous posts, many of them are so stupid because of this only. Those post may give you wrong idea about me and the applications I wrote specific to the technology my company masters in that by all alone. I am earning good salary in my company because of it. But I still see a long road ahead. I started late but some thrashing by some members before, I do not feel that I am old for anything. I am optimistic and want to be like you gurus. Probably it may take 10-15 years for me to reach there. But I think i am on the way.

          How are you going to interpret the functions your users create in the a.rto file? Will you attempt to guess what they intend them to do and provide MFC equivalents?

          Roger, As I said, I was just thinking how may I put such thing where user may write a code in a file , compile and make a binary file and run it in the application. I just developed a test application and just wanted to extend it for fun. So I thought whatever API name user may write, would be already coded in the MFC with some corresponding name or so. so if a.rto has following functions then a.rto ===== #GetTextsInView(); #GetColorOfView(); #end I may provide an executable to user with the application.. say.. compile.exe on command prompt.. he will write compile.exe a.rto compile will read a.rto with stream functions and would read function names and in a binary output file a.run would put those names. so I wanted to keep the names of the functions with same length for not to have offset lengh issue. Then in MFC, user will select the a.run file from say any interface d

          V 1 Reply Last reply
          0
          • Y yang__lee

            Guys, Thanksssss a ton. Well thanks for the encouragement and reality check given to me on this forum. Let me tell you I am neither that dumb nor that super human. But let me tell you, I am not computer literate, I am not graduate , I am not english, my job was not fullfledge development. I was into other operations but I self lernt C , c++, vc++,SQL, VB, Pro*C, and now getting to MFC , C#, Due to constant pust to be a developer and applications I wrote, My boss moved me to the development. My company do not hire developers but I showed him the possibilities and applications and he was impresses. I have developed few good MFC applications for my company. I am the lone programmer in my office. I dont get any other help from the experienced developers. For a simple but confusing point, I have to search on net or read. Just a hint from some one can save you from wasting two days of nonstop research. You may refer my previous posts, many of them are so stupid because of this only. Those post may give you wrong idea about me and the applications I wrote specific to the technology my company masters in that by all alone. I am earning good salary in my company because of it. But I still see a long road ahead. I started late but some thrashing by some members before, I do not feel that I am old for anything. I am optimistic and want to be like you gurus. Probably it may take 10-15 years for me to reach there. But I think i am on the way.

            How are you going to interpret the functions your users create in the a.rto file? Will you attempt to guess what they intend them to do and provide MFC equivalents?

            Roger, As I said, I was just thinking how may I put such thing where user may write a code in a file , compile and make a binary file and run it in the application. I just developed a test application and just wanted to extend it for fun. So I thought whatever API name user may write, would be already coded in the MFC with some corresponding name or so. so if a.rto has following functions then a.rto ===== #GetTextsInView(); #GetColorOfView(); #end I may provide an executable to user with the application.. say.. compile.exe on command prompt.. he will write compile.exe a.rto compile will read a.rto with stream functions and would read function names and in a binary output file a.run would put those names. so I wanted to keep the names of the functions with same length for not to have offset lengh issue. Then in MFC, user will select the a.run file from say any interface d

            V Offline
            V Offline
            Vivi Chellappa
            wrote on last edited by
            #34

            Ignore all the naysayers and just do what you want to do. Writing a compiler is NOT as hard as these people make it out to be. Most reputable graduate programs in Computer Science in the US make you write one if you want your MS in Computer Science. So long as you tightly specify your syntax, there is no reason why you won't or cannot succeed. After all, Bill Gates started out with a BASIC interpreter! :rose:

            1 Reply Last reply
            0
            • L Lost User

              [Message Deleted]

              J Offline
              J Offline
              Jorgen Sigvardsson
              wrote on last edited by
              #35

              The Osmosian Order wrote:

              (2) "Writing Compilers and Interpreters" by Ronald Mak. A simplified "Dragon" book for people who think in "C".

              That's actually a crappy book, as it doesn't really explain anything in detail. It's just a big listing of code. Sucks if you want to learn the very essence of what a compiler does. The Dragon book is not hopelessly out-of-date. It's still valid, although it doesn't cover everything there's to know. It's great as a text book for introductory and intermediate level compiler construction courses.

              The Osmosian Order wrote:

              forget about those who say writing compilers is hard

              Writing compilers is hard. The theory behind compilers is hard to comprehend, and no programming language in the world will change that. Not even your pseudo programming language. Anybody can learn how to write a compiler. Few will ever master the art of writing a good compiler. -- 100% natural. No superstitious additives.

              1 Reply Last reply
              0
              • L Lost User

                [Message Deleted]

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #36

                Pluralis majestatis[^]? -- 100% natural. No superstitious additives.

                1 Reply Last reply
                0
                • J Jeremy Falcon

                  This site has all the answers you seek. Clickety[^] Jeremy Falcon

                  J Offline
                  J Offline
                  Jorgen Sigvardsson
                  wrote on last edited by
                  #37

                  It answered my question "Should I stick with C++?". The answer was "YES!!!" ;P -- 100% natural. No superstitious additives.

                  J 1 Reply Last reply
                  0
                  • J J4amieC

                    Anna-Jayne Metcalfe wrote:

                    I think he's winding you up.

                    No, no I wasnt. Osmosian was ridiculed off of forums like this and its a shame he has returned! Do a google search on the name and look through some forum posts. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

                    A Offline
                    A Offline
                    Anna Jayne Metcalfe
                    wrote on last edited by
                    #38

                    Ah. I misread the tone of your post then! :doh: Anna :rose: Currently working mostly on: Visual Lint :cool: Anna's Place | Tears and Laughter "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work.

                    1 Reply Last reply
                    0
                    • L Lost User

                      [Message Deleted]

                      A Offline
                      A Offline
                      Anna Jayne Metcalfe
                      wrote on last edited by
                      #39

                      The Osmosian Order wrote:

                      We know. We just find it hard to believe that "programmers", versed in the use of logic, can be so illogical - for example, passing judgement on a product they have never even sampled!

                      That may have something to do with the blatant hard sell you practiced when you first surfaced on the forums. You put peoples backs up, pure and simple.

                      The Osmosian Order wrote:

                      Agreed, except for the "well beyond" modifier. Our Plain English development system is "complete, efficient, useable and maintainable" and was written by just two people.

                      Anyone can write a small compiler (whether interactive or batch) - as the miriad of Small C compilers from 8 bit days will testify. However, providing a modern UI (with commonly expected features such as integrated context sensitive help, intellisense), an integrated debugger etc takes resources a small team would find hard to muster - particularly if the language and libraries being implemented are industry standard ons. Yours isn't, which gives you significantly more latitude. Given the type of product you are selling I suspect your support costs are lower than most as well.

                      Write us (help@osmosian.com) if you'd like to sample it.

                      Our speciality is UI intensive Visual Studio extensibility products, and I very much doubt "Plain English" is suited to such an environment (we use ATL7/WTL 7.5, which together offer everything we need in COM and UI support). That aside, our products are development tools for C/C++ developers, and as we have a policy of "dogfooding" them it's important they are written in the target language. Anna :rose: Currently working mostly on: Visual Lint :cool: Anna's Place | Tears and Laughter "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work.

                      1 Reply Last reply
                      0
                      • V Vivi Chellappa

                        Anna-Jayne Metcalfe wrote:

                        Actually I agree with you - writing compilers isn't hard (I dabbled in the subject myself long ago), but writing something complete, efficient, useable and maintainable - and providing the requisite support - requires resources and attention to detail well beyond the means of a single developer.

                        What does that say about C? Does it mean that a team of two developers ought to be sufficient? :rose:

                        A Offline
                        A Offline
                        Anna Jayne Metcalfe
                        wrote on last edited by
                        #40

                        Vivic wrote:

                        What does that say about C? Does it mean that a team of two developers ought to be sufficient?

                        C is a difficult language to implement (and C++ is even harder), but not impossible. However, as well as the compiler, debugger, linker and IDE you also have to write the standard libraries, which is a mammoth task in itself. A team of two could do it, but it might take them several years of full time work for no commercial return. To add to that anyone using a C or C++ compiler these days is likely to expect it to have a high degree of standards compliance. Given the struggle compilers such as MSVC and GCC have had to reach their current conformance, do you really think a team of two writing everything from scratch would have a hope? That's not to say such an exercise is not worthwhile, of course. Dabbling with compilers and linkers is a great way to learn how they work, and that in itself is fascinating (I did it myself long ago). Just don't expect to have a saleable product at the end... Anna :rose: Currently working mostly on: Visual Lint :cool: Anna's Place | Tears and Laughter "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work.

                        V 1 Reply Last reply
                        0
                        • A Anna Jayne Metcalfe

                          Vivic wrote:

                          What does that say about C? Does it mean that a team of two developers ought to be sufficient?

                          C is a difficult language to implement (and C++ is even harder), but not impossible. However, as well as the compiler, debugger, linker and IDE you also have to write the standard libraries, which is a mammoth task in itself. A team of two could do it, but it might take them several years of full time work for no commercial return. To add to that anyone using a C or C++ compiler these days is likely to expect it to have a high degree of standards compliance. Given the struggle compilers such as MSVC and GCC have had to reach their current conformance, do you really think a team of two writing everything from scratch would have a hope? That's not to say such an exercise is not worthwhile, of course. Dabbling with compilers and linkers is a great way to learn how they work, and that in itself is fascinating (I did it myself long ago). Just don't expect to have a saleable product at the end... Anna :rose: Currently working mostly on: Visual Lint :cool: Anna's Place | Tears and Laughter "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work.

                          V Offline
                          V Offline
                          Vivi Chellappa
                          wrote on last edited by
                          #41

                          You shouldn't mix a compiler with a development environment. C is a machine-oriented high-level (low-level, in my opinion) language. Which means that several of its commands are easily translated into machine code. Whether it is an 8-bit, 16-bit, 32-bit or 64-bit machine is irrelevant for the purposes of scanning the input C program, verifying its validity and producing a tokenized version of the program and has a minor impact on code generation. He was not talking about a complete IDE. He could very well use Notepad to write his scripts with. So I think we need to encourage him in his efforts rather than discourage him. Thirty years ago, with no lex, no yacc, if I and one other student could implement most of Fortran in just one semester (as did every two-student team in the Systems Programming course), there is no reason why someone could not implement a scriptig language today with ease.

                          1 Reply Last reply
                          0
                          • R Roger Wright

                            :laugh: You're evil. I like that in a person.:-D "...a photo album is like Life, but flat and stuck to pages." - Shog9

                            J Offline
                            J Offline
                            Jeremy Falcon
                            wrote on last edited by
                            #42

                            Roger Wright wrote:

                            You're evil. I like that in a person.

                            :laugh::laugh::laugh: Jeremy Falcon

                            1 Reply Last reply
                            0
                            • L led mike

                              Dude, you got another drive by 1

                              "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
                              Christian Graus in the C# forum

                              led mike

                              J Offline
                              J Offline
                              Jeremy Falcon
                              wrote on last edited by
                              #43

                              led mike wrote:

                              Dude, you got another drive by 1

                              Yeah, I'm starting a compaign to see how many I can get. :laugh: Jeremy Falcon

                              1 Reply Last reply
                              0
                              • J Jorgen Sigvardsson

                                It answered my question "Should I stick with C++?". The answer was "YES!!!" ;P -- 100% natural. No superstitious additives.

                                J Offline
                                J Offline
                                Jeremy Falcon
                                wrote on last edited by
                                #44

                                I think I'd rather stick with punch cards. :-> Jeremy Falcon

                                1 Reply Last reply
                                0
                                • R Rage

                                  :) I second Roger on this one, you are evil. ~RaGE();

                                  J Offline
                                  J Offline
                                  Jeremy Falcon
                                  wrote on last edited by
                                  #45

                                  Rage wrote:

                                  you are evil.

                                  It's a gift. :) Jeremy Falcon

                                  1 Reply Last reply
                                  0
                                  • L Lost User

                                    [Message Deleted]

                                    T Offline
                                    T Offline
                                    toxcct
                                    wrote on last edited by
                                    #46

                                    The Osmosian Order wrote:

                                    We know

                                    why do you always talk to plural ? how many are you typing behind your keyboard ? :~


                                    TOXCCT >>> GEII power

                                    [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups