Releases: HassiumTeam/Hassium
Hassium Version 3.0.0
Hassium has been rewritten from scratch for a third time. The new Hassium includes more features and is more stable than ever! We've added pointers, HassiumInspection, OS class, and the UI class. Core bugs have been fixed and stability has been improved.
Hassium Version 2.0.0
We've completely rewritten Hassium, from scratch! Everything is better with the addition of the Hassium Virtual Machine. Most code written in past Hassium versions won't work with the latest for a couple of reasons. For one thing, the standard library has been rewritten from scratch to be better. For another, we've redone OOP so that functions don't need to take a this parameter to be instance.
Code executes faster, the syntax is more enjoyable and robust, and so many bugs have been fixed. Welcome, to Hassium 2.0.
Hassium Version 1.6.0
Hassium Version 1.5.0
New Features
Added yield return
for (i = 0; i < 9; i++)
{
yield i;
}
The example above returns Array { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
.
Bugfixes
Console color parsing
Console.foregroundColor = "red";
currentColor = Console.foregroundColor;
Console.foregroundColor = currentColor;
In previous versions, this would have thrown an error because the getter for foregroundColor
was doing ConsoleColor.ToString()
which returns a value that couldn't be parser by Hassium.
Hassium Version 1.4.0
Added dictionary initializer with [:]
(like arrays) :
dict = new Dictionary();
becomes :
dict = [:];
Hassium Version 1.3.0
New Features:
Inline Tuples
The syntax is tuple (value, value, .......);
tuple myTuple ("abc", 123, "def");
is equivalent to :
myTuple = tuple ("abc", 123, "def");
HttpUtility class in Net Module
HttpUtility.htmlAttributesEncode(str);
HttpUtility.htmlDecode(str);
HttpUtility.htmlEncode(str);
HttpUtility.javaScriptStringEncode(str);
HttpUtility.urlDecode(str);
HttpUtility.urlEncode(str);
HttpUtility.addUriProtocol(str);
Added a function to the Information class to get Environment variables
println(Information.getEnvironmentVariable("PATH"));
CGI Class for server-side development
use net;
println(cgi.post["field_name"]);
if(cgi.request.method == "get")
println(cgi.server.ident);
sizeOf()
, nameOf()
println(sizeOf(test));
println(nameOf(parameter));
In operator
if(currentItem in mainArray) { }
case
switch (price)
{
case is < 0:
println("ERROR!");
case 0 to 15:
shipping = 2.0;
case 16 to 59:
shipping = 5.87;
case is > 59:
shipping = 12.50;
}
Heredoc strings
println("This is normal code");
>>>
This is plain text!
<<<
println("This is normal code again");
threadRun()
SMTP classes in Net module for Mailing.
Fixes:
Array bug
Dictionary bug
Hassium Version 1.2.0
Added Tuples to Hassium!
tuple myTuple ("this", 4, 5); # Optionally myTuple "this", 4, 5;
func main () {
println(myTuple.Item0);
}
Also added more methods to the char object.
Hassium Version 1.1.1
Fixed issue with enums.
Added StopWatch class to Debug Module
Hassium Version 1.1.0
Massive Feature: enums are here!
enum MyEnum {
thing1,
thing2,
thing3
}
Added more color properties and color constructor, as well as YUV additions.
Hassium Version 1.0.1
Added static GC class to the Debug module.
Color constructor.
Can "compile" source to tokens with -c --compile flag and execute the compiled tokens with -cr --compileRead.