<s>
Magik	B-Language
is	O
an	O
object-oriented	B-Language
programming	I-Language
language	I-Language
that	O
supports	O
multiple	B-Application
inheritance	I-Application
and	O
polymorphism	B-Application
,	O
and	O
it	O
is	O
dynamically	O
typed	O
.	O
</s>
<s>
Following	O
Smallworld	O
's	O
acquisition	O
in	O
2000	O
,	O
Magik	B-Language
is	O
now	O
provided	O
by	O
GE	O
Energy	O
,	O
still	O
as	O
part	O
of	O
its	O
Smallworld	O
technology	O
platform	O
.	O
</s>
<s>
Magik	B-Language
(	O
Inspirational	O
Magik	B-Language
)	O
was	O
originally	O
introduced	O
in	O
1990	O
and	O
has	O
been	O
improved	O
and	O
updated	O
over	O
the	O
years	O
.	O
</s>
<s>
In	O
July	O
2012	O
,	O
Magik	B-Language
developers	O
announced	O
that	O
they	O
were	O
in	O
the	O
process	O
of	O
porting	O
Magik	B-Language
language	O
on	O
the	O
Java	B-Language
virtual	I-Language
machine	I-Language
.	O
</s>
<s>
The	O
successful	O
porting	O
was	O
confirmed	O
by	O
Oracle	B-Application
Corporation	I-Application
in	O
November	O
of	O
the	O
same	O
year	O
.	O
</s>
<s>
Magik	B-Language
itself	O
shares	O
some	O
similarities	O
with	O
Smalltalk	B-Application
in	O
terms	O
of	O
its	O
language	O
features	O
and	O
its	O
architecture	O
:	O
the	O
Magik	B-Language
language	O
is	O
compiled	O
into	O
byte	O
codes	O
interpreted	O
by	O
the	O
Magik	B-Language
virtual	B-Architecture
machine	I-Architecture
.	O
</s>
<s>
The	O
Magik	B-Language
virtual	B-Architecture
machine	I-Architecture
is	O
available	O
on	O
several	O
platforms	O
including	O
Microsoft	B-Application
Windows	I-Application
,	O
various	O
flavours	O
of	O
Unix	B-Application
and	O
Linux	B-Application
.	O
</s>
<s>
Magik	B-Language
is	O
console	O
based	O
and	O
code	O
can	O
be	O
modified	O
on	O
the	O
fly	O
even	O
when	O
an	O
application	O
is	O
running	O
.	O
</s>
<s>
The	O
console	O
can	O
also	O
be	O
used	O
to	O
execute	O
Magik	B-Language
code	O
and	O
to	O
see	O
the	O
results	O
.	O
</s>
<s>
Magik	B-Language
uses	O
the	O
#	O
token	O
to	O
mark	O
sections	O
of	O
code	O
as	O
comments	O
:	O
</s>
<s>
Magik	B-Language
uses	O
the	O
<<	O
operator	O
to	O
make	O
assignments	O
:	O
</s>
<s>
Magik	B-Language
also	O
supports	O
a	O
compressed	O
variation	O
of	O
this	O
operator	O
that	O
works	O
in	O
a	O
similar	O
way	O
to	O
those	O
found	O
in	O
C	B-Language
:	O
</s>
<s>
As	O
well	O
as	O
conventional	O
data	O
types	O
such	O
as	O
integers	O
,	O
floats	O
and	O
strings	O
Magik	B-Language
also	O
implements	O
symbols	O
.	O
</s>
<s>
Symbols	O
are	O
a	O
special	O
token	O
data	O
type	O
that	O
are	O
used	O
extensively	O
throughout	O
Magik	B-Language
to	O
uniquely	O
identify	O
objects	O
.	O
</s>
<s>
Magik	B-Language
variables	O
are	O
not	O
typed	O
as	O
they	O
are	O
in	O
say	O
C#	B-Application
and	O
can	O
reference	O
different	O
objects	O
at	O
runtime	O
.	O
</s>
<s>
Everything	O
in	O
Magik	B-Language
is	O
an	O
object	O
(	O
there	O
is	O
no	O
distinction	O
between	O
objects	O
and	O
primitive	O
types	O
such	O
as	O
integers	O
)	O
:	O
</s>
<s>
Objects	O
are	O
implemented	O
in	O
Magik	B-Language
using	O
exemplars	O
.	O
</s>
<s>
Exemplars	O
have	O
similarities	O
to	O
classes	O
in	O
other	O
programming	O
languages	O
such	O
as	O
Java	B-Language
,	O
but	O
with	O
important	O
differences	O
.	O
</s>
<s>
Magik	B-Language
supports	O
multiple	B-Application
inheritance	I-Application
,	O
and	O
mixins	B-Language
(	O
which	O
implement	O
functionality	O
with	O
no	O
data	O
)	O
.	O
</s>
<s>
Magik	B-Language
implements	O
all	O
usual	O
logical	O
operators	O
(=	O
,	O
<, <=, >, >=, ~=/<>	O
)	O
for	O
comparison	O
,	O
as	O
well	O
as	O
a	O
few	O
unusual	O
ones	O
.	O
</s>
<s>
An	O
object	O
's	O
slots	O
are	O
accessed	O
and	O
assigned	O
using	O
a	O
dot	B-Language
notation	I-Language
.	O
</s>
<s>
Optional	O
arguments	O
that	O
are	O
not	O
passed	O
are	O
assigned	O
by	O
Magik	B-Language
to	O
the	O
special	O
object	O
_unset	O
(	O
the	O
equivalent	O
of	O
null	O
)	O
.	O
</s>
<s>
In	O
Magik	B-Language
the	O
_while	O
,	O
_for	O
,	O
_over	O
,	O
_loop	O
and	O
_endloop	O
statements	O
allow	O
iteration	O
.	O
</s>
<s>
In	O
Magik	B-Language
generator	O
methods	O
are	O
called	O
iterator	O
methods	O
.	O
</s>
<s>
Magik	B-Language
also	O
supports	O
functions	O
called	O
procedures	O
.	O
</s>
<s>
Magik	B-Language
supports	O
//	O
regular	O
expression	O
syntax	O
:	O
</s>
<s>
Magik	B-Language
supports	O
making	O
HTTP	O
or	O
HTTPS	O
requests	O
via	O
http	O
library	O
,	O
see	O
below	O
examples	O
:	O
</s>
<s>
Because	O
Magik	B-Language
was	O
originally	O
developed	O
in	O
England	O
,	O
methods	O
in	O
the	O
core	O
smallworld	O
libraries	O
are	O
spelled	O
using	O
British	O
English	O
.	O
</s>
<s>
Like	O
other	O
programming	O
language	O
Magik	B-Language
too	O
has	O
collections	O
.	O
</s>
<s>
The	O
following	O
is	O
an	O
example	O
of	O
the	O
Hello	O
world	O
program	O
written	O
in	O
Magik	B-Language
:	O
</s>
