Fahrenheit 0.4.0

Extensions

Standard Extensions

Fahrenheit comes with several built-in extensions that provide additional capabilities. All built-in extensions are automatically discovered and loaded at startup if they are on the classpath.

MathExtension (/math)

Provides advanced mathematical operations (trigonometry, rounding, logarithms, exponentials, etc.) via the Math namespace.

RegexExtension (/regex)

Provides Pattern matching and replacement utilities using standard Java regular expressions via the Regex namespace.

Json Extension

Provides JSON parsing and serialization via the Json namespace.


data = Json.parse("{\"name\": \"Alice\", \"age\": 30}");
print(data.name); # Alice

obj = { id: 1, active: true };
print(Json.stringify(obj)); # {"id":1,"active":true}
    

Messages Extension

Provides internationalization (i18n) support through message properties files and string interpolation.


Messages.load("messages/app.properties");
greeting = Messages.get("welcome");
expanded = Messages.parse("Result: greeting");
    

FileExtension (/file)

Provides robust file system operations for reading, writing, and directory management via the File namespace.

WebExtension (/web)

Allows creating web servers, WebSockets, and making HTTP client requests via the Net namespace.

SQLExtension (/sql)

Provides standard JDBC database connectivity to query and update SQL databases via the SQL namespace.

Matrix Extension

Provides fast Matrix operations and transformations via the Matrix namespace.

Vector Extension

Provides robust Vector math operations and functions via the Vector namespace.

Reflection Extension

Provides advanced introspection and dynamic runtime manipulation capabilities via the Reflection namespace.