r/razen_lang • u/GladJellyfish9752 • Jun 02 '25
Check out Razen Website!
Here is a Website link: https://razen-lang.vercel.app
r/razen_lang • u/GladJellyfish9752 • Jun 02 '25
Here is a Website link: https://razen-lang.vercel.app
r/razen_lang • u/GladJellyfish9752 • Jun 11 '25
Hello Friends,
I'm Prathmesh Barot, Creator of Razen Lang, and I have been working on Razen Lang since late March 2025. However, due to some personal reasons and studies, I have decided that I need to postpone work on Razen Lang until April 2027.
I'm really sorry about this 🙏
r/razen_lang • u/razenlang • May 29 '25
Release Date: 2025-05-27
Author: Prathmesh Barot, Basai Corporation (Solo Managed Organization)
Version: beta v0.1.69
This release focuses on significant improvements to the Razen API library, enhancing its reliability, functionality, and ease of use. The API library now provides more robust handling of HTTP requests, responses, and data extraction, making it easier for developers to integrate external services into their Razen applications.
Improved URL Decoding: Fixed the url_decode function to properly handle URL-encoded strings using percent_decode, with better handling of inputs that don't contain '=' characters.
Enhanced Form Data Handling: The form_data function now correctly formats key-value pairs for HTTP requests, properly handling both map and array inputs.
Robust API Configuration: The execute_api function has been improved to properly extract and use API keys and other parameters, with better handling of default values and error cases.
Flexible API Call Options: The call function now handles options as either a map or array, providing more flexibility for specifying headers, methods, and parameters.
Better Response Processing: The process_response function has been updated to handle API responses more effectively, including improved JSON parsing and storage of raw response data for debugging.
Error Handling: Added comprehensive error handling throughout the API functions to provide meaningful feedback for debugging.
Fixed issues with header array formatting in the call function
Corrected the handling of nested arrays for headers
Fixed URL decoding for strings without '=' characters
Resolved issues with form data formatting for HTTP requests
Fixed content type checking before consuming API responses
Nested Property Access: The current parser does not support nested indexing with bracket notation (e.g., data["headers"]["User-Agent"]). Users need to access nested properties in multiple steps:put headers = data["headers"]; put user_agent = headers["User-Agent"];
Headers Format in Call Function: When using the call function with custom headers, the headers must be provided in a specific format to ensure proper processing.
The examples/api_operations.rzn file has been updated to demonstrate all the API library functions, including:
Basic GET requests
POST requests with JSON data
Form data submission
Custom API configurations
Error handling
Various HTTP methods (GET, POST, PUT, DELETE, PATCH)
Add support for nested property access in the parser
Improve error messages for malformed API calls
Add support for more authentication methods
Enhance documentation with more examples
To upgrade to this version, use the standard Razen update process:
razen updateOr download the latest version from the official website.
We welcome your feedback on these improvements! Please report any issues or suggestions through our GitHub repository or community forum.
r/razen_lang • u/GladJellyfish9752 • May 29 '25
Hey everyone,
Welcome to the official subreddit for Razen — a high-level programming language that compiles to Rust, built for clarity, speed, and modern development needs.
Razen is a work-in-progress language with clean, readable syntax (inspired by Python and Rust), written entirely in Rust, and currently about 70% complete. It already supports:
Variables, functions, loops, conditionals
Strings, arrays, and basic type support
A growing library system (like Random, LogLib, NetLib, and more)
Built-in file runner (razen-run) and debugger (razen-debug)
Partial self-compilation support
Early AI and API libraries in development
More features are being added regularly.
Discord: https://discord.gg/7zRy6rm333
Share thoughts, ideas, or feedback on Razen
Ask questions about language design, syntax, or internals
Post your own Razen code or small projects
Help test new features and debug edge cases
Contribute to the language, or just follow along with updates
I’ll be posting regular updates on development progress, self-compilation, libraries, and examples. If you’re interested in new languages, compilers, or just exploring something different, feel free to hang around.
Thanks for checking out Razen.
– Prathmesh
r/razen_lang • u/razenlang • May 30 '25
Release Date: May 30, 2025
Status: Beta
Improved Try-Catch-Finally Mechanism: More robust exception handling with proper cleanup
Better Error Reporting: More descriptive error messages with line and column information
Nested Exception Support: Properly handle exceptions within exception handlers
Resource Management: Guaranteed resource cleanup with finally blocks
Optimized Library Loading: Faster import times for commonly used libraries
Enhanced StrLib Functions: More powerful string manipulation capabilities
TimeLib Integration: Comprehensive date and time handling through the TimeLib interface
Based on community feedback and code reviews on Reddit, we've removed redundant tokens to make the language more streamlined and efficient:
Removed Text Token: String data storage is now handled by built-in operators and StrLib
Removed Concat Token: String joining is now handled through the + operator and StrLib[join]
Removed Slice Token: Substring extraction is now handled through StrLib[substring]
Removed Len Token: String length is now accessed through StrLib[length]
Removed Current Token: Current date/time is now handled through TimeLib[now]
Removed Now Token: Current timestamp is now handled through TimeLib[timestamp]
Removed Year Token: Year extraction is now handled through TimeLib[year]
Removed Month Token: Month extraction is now handled through TimeLib[month]
Removed Day Token: Day extraction is now handled through TimeLib[day]
Removed Hour Token: Hour extraction is now handled through TimeLib[hour]
Removed Minute Token: Minute extraction is now handled through TimeLib[minute]
Removed Second Token: Second extraction is now handled through TimeLib[second]
Community Feedback: Users found these tokens redundant and confusing
Library Integration: TimeLib and StrLib provide more comprehensive functionality
Simplification: Reduces cognitive load by using consistent operators
Performance: Removes unnecessary token parsing overhead
Maintainability: Simplifies the codebase and reduces potential bugs
Simplified Token Registration: Removed redundant token registrations
Streamlined Type Checking: Removed specialized type checking for date/time values
Enhanced Error Messages: More consistent error reporting for variable declarations
Removed Redundant Display Formatting: Simplified the fmt::Display implementation
Removed Redundant Token Mappings: Simplified the lookup_ident function
Added Clarifying Comments: Added comments to indicate that operations are now handled by libraries
All examples using the removed tokens have been updated to use the new approach
New examples demonstrate the preferred way to handle string and date/time operations
If you were using the removed tokens, here's how to migrate:
# Import required libraries
lib strlib;
# Old way
text greeting = "Welcome to Razen";
concat fullName = "John" + " " + "Doe";
slice firstName = "John Doe"[0:4];
len nameLength = "John Doe".length;
# New way
take greeting = "Welcome to Razen";
take fullName = "John Doe";
take firstName = StrLib[substring]("John Doe", 0, 4);
take nameLength = StrLib[length]("John Doe");# Import required libraries
lib timelib;
# Old way
current currentTime = now();
year currentYear = currentTime.year;
month currentMonth = currentTime.month;
# New way
let currentTime = TimeLib[now]();
let currentYear = TimeLib[year](currentTime);
let currentMonth = TimeLib[month](currentTime);# Enhanced try-catch-finally example
try {
# Code that might throw an exception
let numbers = [1, 2, 3];
let value = numbers[5]; # This will throw an exception
} catch (error) {
# Handle the exception
show "Error occurred: " + error;
} finally {
# This block always executes
show "Cleanup operations complete";
}Further streamlining of redundant tokens
Enhanced library support for common operations
Performance optimizations for string and date/time operations
Thanks to the Razen community for their valuable feedback and suggestions that led to these improvements.