Skip to content

V1.1 : Native functions

Latest

Choose a tag to compare

@Program132 Program132 released this 19 Feb 21:27
· 37 commits to main since this release

GW Language v1.1.0

This release introduces native modules, you can now build web servers, manipulate files, execute system commands, and more!

Issues solved

New Features

⌨️ I/O Module (#1)

  • Added file operations: read, write, append.
  • Enhanced Console I/O: color, clear, cursor manipulation.
  • Pipe support (stdin, stdout) for CLI redirection.

🖥️ System Module (#2)

  • Added OS interaction: exec, exit, is_windows/linux/mac.
  • Command Line Arguments support: get_arg_count(), get_arg(i).

🌐 Network Module (#3)

  • Implemented __native_socket_* primitives.
  • Support for TCP Client & Server.
  • Added connect, send, receive, bind, listen, accept.
  • Example: Built a working HTTP Server in pure GW!

📝 String Utilities (#4)

  • Added native string manipulation: length, at
  • Base for building "complex" strings

🕛 Other Improvements

  • Updated Time module with a better precision about timestamps.
  • Comprehensive documentation in doc/native/.

Happy Coding with GW 1.1!