c yah!

  • 4 Replies
  • 1776 Views
*

unreality

  • Starship Trooper
  • *******
  • 443
c yah!
« on: November 21, 2017, 06:58:59 am »
Good old c. Not even c++ can touch it in performance or program size.

https://benchmarksgame.alioth.debian.org/u64q/c.html

*

Korrelan

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1454
  • Look into my eyes! WOAH!
    • YouTube
Re: c yah!
« Reply #1 on: November 21, 2017, 04:57:21 pm »
From the post title I thought someone was leaving lol.

 :)
It thunk... therefore it is!...    /    Project Page    /    KorrTecx Website

*

unreality

  • Starship Trooper
  • *******
  • 443
Re: c yah!
« Reply #2 on: November 21, 2017, 07:26:20 pm »
Yah, looks like I was one h away from leaving lol

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1302
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: c yah!
« Reply #3 on: November 21, 2017, 10:47:36 pm »
I love C Language.  I am not saying anything bad about C++, but it is a just super structure.

My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1302
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: c yah!
« Reply #4 on: November 21, 2017, 11:20:34 pm »
This source code is posted strictly for discussion purpose, without any warranty or guarantee of any kind whatsoever.

Code
#include <stdio.h>
#include <string.h>

/* 

    Some C language to begin chatbot design.

*/

int main()
{
  /* DATA */
  char stimulus[72];
  int match;

  /* INPUT */
  printf("Say something: ");
  fgets(stimulus,72,stdin);

  /* PROCESS */
  if (strcasecmp(stimulus, "hello\n") == 0) printf("You greeted me.\n");

  /* OUTPUT */
  printf("You said: %s\n",stimulus);
  return(0);
}

Program Output:
Quote
Tell me something: hello
You greeted me.
You told me: hello


It is simple, but simple is a good place to start sometimes.
My Very Enormous Monster Just Stopped Using Nine

 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
March 28, 2024, 01:31:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

330 Guests, 0 Users

Most Online Today: 396. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles