Unicode programming language wanted?

Posted: November 1, 2010. At: 9:45 AM. This was 7 years ago. Post ID: 644

http://developers.slashdot.org/article.pl?sid=10/10/31/2127201

Someone wants a Unicode programming language replacing the Ascii characters used by programmers for years and years. But the standard character set used by C programmers is more than enough for general usage and is faster to enter than having to enter a few keystrokes to enter one character of Unicode. Entering characters like this: 日本語 is harder than just typing on a normal keyboard as you would need an IME setup and deal with the tedium of typing in the Unicode character set. I have done a bit of C programming and it is perfectly doable and fun using a normal keyboard instead of making it more complicated than it needs to be.

Here is one of my programs. I wrote this ages ago and it uses the standard ASCII character set.

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
********************************************************************
* Description: Program to run fortune(1)
* Author: Homer Simpson
* Created at: Sat Nov 11 16:23:21 EST 2006
* Computer: linux-sfrk
* System: Linux 2.6.17.13-smp-PREEMPT on i686
*
* Copyright (c) 2006 Homer Simpson  All rights reserved.
*
********************************************************************/
#include 
#include 
#include 
#include 
#include 
const char* x[] = {
	"limerick", "fortunes2", "linuxcookie",
	"freebsd-tips", "osfortune", "startrek",
	"zippy", "debian-hints"
};
const size_t FORTUNES = sizeof(x)/sizeof(*x) - 1;
int cool(int Size) {
	int k;
	k = 0;
	srand((unsigned)time(NULL));
	k = rand() % Size;
	return k;
}
int main()
{
	execlp("/usr/bin/fortune", x[cool(FORTUNES)], "-l", NULL, NULL);
	return 0;
}

Some people like Microsoft just need to learn how to write better programs and make their software less bloated and more secure, they do not even understand the full workings of the Windows Kernel anymore as it has gotten so bloated and huge that it is not even understood fully. Which is worrying. I just downloaded the version 0.01 Linux Kernel and had a look at the Minix code and it is amazing that the huge 60MiB kernel tarball came from the 67KiB tarball I downloaded. We live in a great age. We have access to free operating systems like ReactOS, Ubuntu and BSD and are free to choose which to use and run on our own computers, this is better than the dark ages when UNIX mainframes dominated the computing world and hardly anyone had access to a computer and computers were mysterious frightening things demonised in movies such as Tron and Electric Dreams. Where they were shown as evil things. Now they are everywhere even in our cars. The future is here.

Now they are even making roll up screens as seen in the movie Red Planet.

No comments have been made. Use this form to start the conversation :)

Leave a Reply