The Blue Programming Language 1.4.3

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

I'm sure something similar has been posted on the forums before, but have a look at -> this < -.

Oh - and while I'm posting daft links, try this one too
Cheers,
Adam
Meor
Posts: 13
Joined: Fri Mar 14, 2008 11:29 am

Post by Meor »

binutils wrote:Any recommendation of another programming language?
now these day pl projects boom seems over.
Eiffel.
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Post by nekros »

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
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Post by nekros »

Well, since I am rewriting my kernel, I have decided to first create a PL to write it in. Wish me luck. :D
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

Post by B.E »

imho i think that this language is what's the word for it, horrible worse than VB (and that's saying something).
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
Paw
Member
Member
Posts: 34
Joined: Fri Mar 07, 2008 11:20 am

Post by Paw »

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).
Would you please point out what makes you come to that conclusion?
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

Post by B.E »

Paw wrote:
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).
Would you please point out what makes you come to that conclusion?
It's syntax is horrible to read. It's looks like their've added random features from random languages.
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

My biggest concern is that it lacks typing, and therefore doesn't promote proper coding at all. (as well as being very error prone)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Paw
Member
Member
Posts: 34
Joined: Fri Mar 07, 2008 11:20 am

Post by Paw »

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.
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

Post by B.E »

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.
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
Paw
Member
Member
Posts: 34
Joined: Fri Mar 07, 2008 11:20 am

Post by Paw »

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.
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.

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.
Post Reply