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. General Programming
  3. C / C++ / MFC
  4. Proposal of a new C/C++ precompiler project

Proposal of a new C/C++ precompiler project

Scheduled Pinned Locked Moved C / C++ / MFC
c++pythondesigndata-structuresperformance
6 Posts 4 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.
  • J Offline
    J Offline
    Javier Luis Lopez
    wrote on last edited by
    #1

    Problems: - C, C++ declining due python and other high level languages - C, C++ programming structure comes from Jurassic era - Programmers are always redesigning the wheel - New software are heavy weight, so they takes lots of time to upload from hard disks - Every time a new project is written it must be copied the functions so perhaps it exist different functions version in the hard disk - In the hard disk exists dozen of projects with files and functions distributed in a unclear structure Proposed solution: To design a new precompiler (perhaps based in geany) that performs the following tasks: - Look for all functions in a function directory - Write them in a tree - The user drags and drop the functions from the tree using the mouse - The pre compiler writes the C program to be compiled using only the needed functions - More over the precompiler can access to web sites with functions written by other users - In the project it will appear a dictionary that advises what functions are used - If a function is modified it advises of the affected projects in order to write it with different name - It will be easily readable in a tree the functions dependence with other functions - Build the makefile - User can navigate through the project function tree structure to see one function - The precompiler adds multithreading headers if it is possible when some functions works in parallel - The precompiler can change the calling variable type with others (example double to float) and modifying internal function type definitions accordingly As example the user can write an only one file named “matrix.cpp” that contains ALL matrix functions like the followings. The commented lines before explain the function.

    //matrix2 is the inverse of matrix1. The matrix1 and 2 are squared
    //matrices of NxN dimension
    matrix_inverse(double *matrix1,double *matrix2,long N)

    //high speed inverse of two arrays
    matrix_inverse3x3(double *matrix1,double *matrix2)

    //matrix3=matrix1 x matrix2. The dimension of the 3 matrices is NxN
    matrix_multiplier(double *matrix1,double *matrix2,double *result,long N)

    How the function tree can be seen: http://s12.postimg.org/q50hwfpnh/Proposal_of_a_modern_C.png

    L D D 3 Replies Last reply
    0
    • J Javier Luis Lopez

      Problems: - C, C++ declining due python and other high level languages - C, C++ programming structure comes from Jurassic era - Programmers are always redesigning the wheel - New software are heavy weight, so they takes lots of time to upload from hard disks - Every time a new project is written it must be copied the functions so perhaps it exist different functions version in the hard disk - In the hard disk exists dozen of projects with files and functions distributed in a unclear structure Proposed solution: To design a new precompiler (perhaps based in geany) that performs the following tasks: - Look for all functions in a function directory - Write them in a tree - The user drags and drop the functions from the tree using the mouse - The pre compiler writes the C program to be compiled using only the needed functions - More over the precompiler can access to web sites with functions written by other users - In the project it will appear a dictionary that advises what functions are used - If a function is modified it advises of the affected projects in order to write it with different name - It will be easily readable in a tree the functions dependence with other functions - Build the makefile - User can navigate through the project function tree structure to see one function - The precompiler adds multithreading headers if it is possible when some functions works in parallel - The precompiler can change the calling variable type with others (example double to float) and modifying internal function type definitions accordingly As example the user can write an only one file named “matrix.cpp” that contains ALL matrix functions like the followings. The commented lines before explain the function.

      //matrix2 is the inverse of matrix1. The matrix1 and 2 are squared
      //matrices of NxN dimension
      matrix_inverse(double *matrix1,double *matrix2,long N)

      //high speed inverse of two arrays
      matrix_inverse3x3(double *matrix1,double *matrix2)

      //matrix3=matrix1 x matrix2. The dimension of the 3 matrices is NxN
      matrix_multiplier(double *matrix1,double *matrix2,double *result,long N)

      How the function tree can be seen: http://s12.postimg.org/q50hwfpnh/Proposal_of_a_modern_C.png

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Wrong place; please read http://www.codeproject.com/Messages/2922875/HOW-TO-ASK-A-QUESTION.aspx[^].

      J 1 Reply Last reply
      0
      • L Lost User

        Wrong place; please read http://www.codeproject.com/Messages/2922875/HOW-TO-ASK-A-QUESTION.aspx[^].

        J Offline
        J Offline
        Javier Luis Lopez
        wrote on last edited by
        #3

        "Wrong place; please read" May be but I did not found a better place than "General Discussions>C-C++" and I can not move the post to other place and must not remove the post :(

        1 Reply Last reply
        0
        • J Javier Luis Lopez

          Problems: - C, C++ declining due python and other high level languages - C, C++ programming structure comes from Jurassic era - Programmers are always redesigning the wheel - New software are heavy weight, so they takes lots of time to upload from hard disks - Every time a new project is written it must be copied the functions so perhaps it exist different functions version in the hard disk - In the hard disk exists dozen of projects with files and functions distributed in a unclear structure Proposed solution: To design a new precompiler (perhaps based in geany) that performs the following tasks: - Look for all functions in a function directory - Write them in a tree - The user drags and drop the functions from the tree using the mouse - The pre compiler writes the C program to be compiled using only the needed functions - More over the precompiler can access to web sites with functions written by other users - In the project it will appear a dictionary that advises what functions are used - If a function is modified it advises of the affected projects in order to write it with different name - It will be easily readable in a tree the functions dependence with other functions - Build the makefile - User can navigate through the project function tree structure to see one function - The precompiler adds multithreading headers if it is possible when some functions works in parallel - The precompiler can change the calling variable type with others (example double to float) and modifying internal function type definitions accordingly As example the user can write an only one file named “matrix.cpp” that contains ALL matrix functions like the followings. The commented lines before explain the function.

          //matrix2 is the inverse of matrix1. The matrix1 and 2 are squared
          //matrices of NxN dimension
          matrix_inverse(double *matrix1,double *matrix2,long N)

          //high speed inverse of two arrays
          matrix_inverse3x3(double *matrix1,double *matrix2)

          //matrix3=matrix1 x matrix2. The dimension of the 3 matrices is NxN
          matrix_multiplier(double *matrix1,double *matrix2,double *result,long N)

          How the function tree can be seen: http://s12.postimg.org/q50hwfpnh/Proposal_of_a_modern_C.png

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          So what exactly is your C / C++ / MFC question?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          J 1 Reply Last reply
          0
          • D David Crow

            So what exactly is your C / C++ / MFC question?

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            J Offline
            J Offline
            Javier Luis Lopez
            wrote on last edited by
            #5

            There are some questions, not one: - If anyone is interested in help me to make the precompiler (I can extract the functions but not display them to drag&drop using mouse) - What is the right forum or subforum (in codeproject if possible) - If it exist a code editor where the precompiler can be added

            1 Reply Last reply
            0
            • J Javier Luis Lopez

              Problems: - C, C++ declining due python and other high level languages - C, C++ programming structure comes from Jurassic era - Programmers are always redesigning the wheel - New software are heavy weight, so they takes lots of time to upload from hard disks - Every time a new project is written it must be copied the functions so perhaps it exist different functions version in the hard disk - In the hard disk exists dozen of projects with files and functions distributed in a unclear structure Proposed solution: To design a new precompiler (perhaps based in geany) that performs the following tasks: - Look for all functions in a function directory - Write them in a tree - The user drags and drop the functions from the tree using the mouse - The pre compiler writes the C program to be compiled using only the needed functions - More over the precompiler can access to web sites with functions written by other users - In the project it will appear a dictionary that advises what functions are used - If a function is modified it advises of the affected projects in order to write it with different name - It will be easily readable in a tree the functions dependence with other functions - Build the makefile - User can navigate through the project function tree structure to see one function - The precompiler adds multithreading headers if it is possible when some functions works in parallel - The precompiler can change the calling variable type with others (example double to float) and modifying internal function type definitions accordingly As example the user can write an only one file named “matrix.cpp” that contains ALL matrix functions like the followings. The commented lines before explain the function.

              //matrix2 is the inverse of matrix1. The matrix1 and 2 are squared
              //matrices of NxN dimension
              matrix_inverse(double *matrix1,double *matrix2,long N)

              //high speed inverse of two arrays
              matrix_inverse3x3(double *matrix1,double *matrix2)

              //matrix3=matrix1 x matrix2. The dimension of the 3 matrices is NxN
              matrix_multiplier(double *matrix1,double *matrix2,double *result,long N)

              How the function tree can be seen: http://s12.postimg.org/q50hwfpnh/Proposal_of_a_modern_C.png

              D Offline
              D Offline
              david21114
              wrote on last edited by
              #6

              Don't you think your first two assumptions are a bit like click-baiting for a response? One approach is to make your thesis into providing a "novice" or a Java or C# developer the ability to rapidly create a C/C++ application without having to know how to use pointers or code in the language. :cool: Look back at something called "Software through Pictures" STP, and there is another product one of the process control companies makes for modeling potential solutions. Good luck with that.

              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