The Blue Programming Language 1.4.3
I am really interested in PL design and implementation along with OS development, I'm torn between the two.
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
Well, since I am rewriting my kernel, I have decided to first create a PL to write it in. Wish me luck.
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
It's syntax is horrible to read. It's looks like their've added random features from random languages.Paw wrote:Would you please point out what makes you come to that conclusion?B.E wrote:imho i think that this language is what's the word for it, horrible worse than VB (and that's saying something).
Microsoft: "let everyone run after us. We'll just INNOV~1"
Well, I don't like much the syntax either, because a couple of things are too complicated to express, but it is far from being horrible or unreadable.
This language doesn't lack typing, either, because similar to scripting languages like PHP or JavaScript, a variable is typed through the data it contains, and its type can be queried with language constructs like typeof, instanceof etc.
You *can* properly and quite elegantly code with such languages, but usually this requires some experience with strongly typed languages and programming in general, in order to avoid surprises.
Due to my profession, I have to code a lot in scripting languages, and I quite enjoy the flexibility they provide.
This language doesn't lack typing, either, because similar to scripting languages like PHP or JavaScript, a variable is typed through the data it contains, and its type can be queried with language constructs like typeof, instanceof etc.
You *can* properly and quite elegantly code with such languages, but usually this requires some experience with strongly typed languages and programming in general, in order to avoid surprises.
Due to my profession, I have to code a lot in scripting languages, and I quite enjoy the flexibility they provide.
My point about data types was meant to counter Combuster's statement. I agree with the function declaration in terms of function arguments. There should be an option for explicitly declaring them. Blue's way of handling it is quite clumsy.B.E wrote:It's not that it doesn't have types, it's the way functions are declared. Moreover there is no easy way to say that there must me x args to this function.
However, I see no problem in defining functions through an assignment. That way you can easily switch functions for changing the program's behaviour, pass functions as arguments to other functions (e.g. for registering an event observer or for specifying a function which processes a data set) and return functions as a result (e.g. for creating new event handlers on the fly).
I know this can be done with function pointers as well, but it's a matter of syntactic sugar.
This concept is heavily present in ECMAScript, but way better executed there.