Thread: The future of the C language is HyperC

  1. #1
    null pointer Structure's Avatar
    Join Date
    May 2019
    Posts
    338

    Post The future of the C language is HyperC

    Hyper C Compiler

    It's basically shorthand c.
    Currently only a windows standalone build.

    Let me know what you think, don't be shy with the comments.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    I think you need to put in much more documentation. At the moment, it looks like you're only adding some "shortcuts" to C that might not be very useful, e.g., I see mention of # for int and ## for double... how does that account for other types like short, long, float, long double?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    null pointer Structure's Avatar
    Join Date
    May 2019
    Posts
    338
    Quote Originally Posted by laserlight View Post
    I think you need to put in much more documentation.
    I would agree. There are more features than currently on the site and it will be updated. I posted on here to get an idea of what would be "useful" as far as what i should add to it or take out. And if anyone was even interested in a shorthand c. I prefer HyperC as it helps me create quick applications and automate repetitive and tedious tasks.
    Last edited by Structure; 05-08-2019 at 03:26 PM.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    It might also be good to say what features of C have been suppressed, e.g., for comments you list the single-line // comments, which are already part of standard C. Does that mean that your variant of C doesn't allow the old multi-line /* */ comments?

    I also note that assigning to arrays is not allowed in C, but in your structure example, it appears that that is allowed in your C variant. You might want to highlight it if so, and explain the semantics.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    null pointer Structure's Avatar
    Join Date
    May 2019
    Posts
    338

    Post //build_hyperC EXCLUSIVE

    HyperC :: Conjoin

    You can directly insert a file into a HyperC application. using
    Code:
    :>
    Code:
    file.name; 
    

    This will import the raw file contents.

    HyperC :: Select
    Code:
    
    
    Code:
    case a == 1 {
    
    } || a == 2 {
    
    } else {
    
    };
    HyperC :: Loop
    Code:
    
    
    Code:
    loop 1 to 100 as i {
    
    };
    HyperC :: Concat
    Code:
    
    
    Code:
    <string.h>;
    @{
    $output[] = "Hello";
    output += " World";
    };
    HyperC :: Subs
    Code:
    @display(#number) {
    ink "Number: " #number;
    };
    @{ display(); };
    HyperC :: Functions
    Code:
    #@add(long one,double two) {
    return (one+two);
    };
    @{ ink #add(100,100); };

  6. #6
    null pointer Structure's Avatar
    Join Date
    May 2019
    Posts
    338
    Quote Originally Posted by laserlight View Post
    in your structure example, it appears that is allowed in your C variant.
    Code:
      @{
        $text[100] = "test";
        $text += "testing";
        ink $text;
      };

  7. #7
    null pointer Structure's Avatar
    Join Date
    May 2019
    Posts
    338

    Post hyperC is the future

    PREFIX and SUFFIX preprocess.

    HyperC is designed to make things faster. One of my favorite ways it does this is with; and and; preprocess commands.

    Lets say you have a structure person and you want to define all the different values within that object.

    BEFORE:
    Code:
      person.name = "myname";
      person.number = "5555555";
      person.height = "0";
    etc...

    with WITH you can make this process a lot faster and easier.

    AFTER:
    Code:
      with person.;
        name = "myname";
        number = "5555555";
        height = "0";
      with;
    With will prefix whatever is after the command before every line after it untill you change the with or null it with with; You can do the same for the suffix using and;

    Another example is writing text to the console with ink in hyperC. For instance if you want to create a menu you could:

    BEFORE:
    Code:
      ink "Menu Title\n";
      ink "[1] option 1\n";
      ink "[2] option 2\n";
    Of course this works but you notice i'm repeating ink every time and also the line break for every line. This is why hyperC has WITH and AND;

    AFTER:
    Code:
      with ink ; and "\n";
        "Menu Title";
        "[1] option 1";
        "[2] option 2";
      and; with;
    Last edited by Structure; 05-14-2019 at 09:01 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Importance of english language in programming language
    By Lea Pi in forum General Discussions
    Replies: 10
    Last Post: 04-17-2015, 07:43 AM
  2. Replies: 21
    Last Post: 10-19-2005, 04:39 PM
  3. What's the Difference Between a Programming Language and a Scripting Language?
    By Krak in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 07-15-2005, 04:46 PM
  4. Future of C language
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 08-22-2002, 12:12 PM
  5. Most Impacting/Powerful Future Programming Language
    By kuphryn in forum C++ Programming
    Replies: 11
    Last Post: 12-07-2001, 03:46 PM

Tags for this Thread