<commit_before>Runtime library
============

The runtime library consists of three parts:

* Runtime functions invoked by the VM.
* Native functions exposed to programs.
* Managed functions loaded by the VM.

###Runtime functions###
The runtime functions are functions such as invoking the garbage collector, creating objects, arrays and other low level functions. These functions can not be called by user programs.

###Native functions###
The native functions are implemented in the VM and are exposed as normal functions.

###Managed functions###
The managed functions either wraps runtime and native functions or provide implementation in managed code for runtime functions.

##Callable runtime functions##
* `std.print(Int) Void`: Prints an int followed to standard output.
* `std.print(Float) Void`: Prints a float followed to standard output.
* `std.println(Int) Void`: Prints an int followed by a line break to standard output.
* `std.println(Float) Void`: Prints a float followed by a line break to standard output.
* `std.printchar(Char) Void`: Prints the given character.
* `std.println(Ref.Array[Char]) Void`: Prints the given string followed by a new line.
* `std.gc.collect() Void`: Invokes the garbage collector.
* `std.math.abs(Int) Int`: Computes the absolute value.<commit_msg>Update rtlib.md<commit_after>Runtime library
============

The runtime library consists of three parts:

* Runtime functions invoked by the VM.
* Native functions exposed to programs.
* Managed functions loaded by the VM.

###Runtime functions###
The runtime functions are functions such as invoking the garbage collector, creating objects, arrays and other low level functions. These functions can not be called by user programs.

###Native functions###
The native functions are implemented in the VM and are exposed as normal functions.

###Managed functions###
The managed functions either wraps runtime functions or provide implementation in managed code for runtime functions.

##Callable runtime functions##
* `std.print(Int) Void`: Prints an int followed to standard output.
* `std.print(Float) Void`: Prints a float followed to standard output.
* `std.println(Int) Void`: Prints an int followed by a line break to standard output.
* `std.println(Float) Void`: Prints a float followed by a line break to standard output.
* `std.printchar(Char) Void`: Prints the given character.
* `std.println(Ref.Array[Char]) Void`: Prints the given string followed by a new line.
* `std.gc.collect() Void`: Invokes the garbage collector.
* `std.math.abs(Int) Int`: Computes the absolute value.
{'fraction_non_alphanumeric': 0.09259976753196436, 'fraction_numerical': 0.0, 'mean_word_length': 5.1040189125295505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4367139', 'n_tokens_mistral': 666, 'n_tokens_neox': 627, 'n_words': 334}