Skip to content

Releases: HassiumTeam/Hassium

Hassium Version 3.0.0

23 Aug 00:21
Compare
Choose a tag to compare

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

22 May 00:51
Compare
Choose a tag to compare
Hassium Version 2.0.0 Pre-release
Pre-release

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

31 Oct 15:33
Compare
Choose a tag to compare

New

Added bulk assignment (see examples/BulkAssignment.has):

ℹ️ 019988a

x, y, z = 5;

Added object initializer.

ℹ️ bd0737a

employee = new { name: "John Doe", age: 34, location: "New York" };

Added File.readBytes() to IO module.

ℹ️ 146e41e

use io;

content = File.readBytes(@"C:\file.dat");

Fixes

Hassium Version 1.5.0

23 Oct 22:47
Compare
Choose a tag to compare

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

21 Oct 18:01
Compare
Choose a tag to compare

Added dictionary initializer with [:] (like arrays) :

dict = new Dictionary();

becomes :

dict = [:];

Hassium Version 1.3.0

20 Oct 01:30
Compare
Choose a tag to compare

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

08 Oct 16:07
Compare
Choose a tag to compare

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

06 Oct 17:20
Compare
Choose a tag to compare

Fixed issue with enums.

Added StopWatch class to Debug Module

Hassium Version 1.1.0

06 Oct 15:18
Compare
Choose a tag to compare

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

01 Oct 15:45
Compare
Choose a tag to compare

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.