462
Subscribers
+324 hours
+377 days
+8830 days
Posts Archive
462
+1
Now saynaa language support Lazy global resolution
_module._missing = function(name) .... end
Simir to lua _G.__index,
Andlua use this technique to load java class, in runtime
These are import.lua some code
local function import_class (classname,packagename)
local res,class = pcall(luajava.bindClass,packagename)
if res then
_G[classname] = class
local mt = getmetatable(class)
mt.__call = call
return class
end
end
local function massage_classname (classname)
if classname:find('_') then
classname = classname:gsub('_','$')
end
return classname
end
local globalMT = {
__index = function(T,classname)
classname = massage_classname(classname)
for i,p in ipairs(packages) do
local class = import_class(classname,p..classname)
if class then return class end
end
error("import cannot find "..classname)
end
}
setmetatable(_G, globalMT)462
🔨 1 new commit to saynaa-lang:big-update:
bbb3eb4: feat: Introduce SAYNAA bytecode file format with header validation and checksum
- Added a new bytecode header structure to ensure file integrity and version compatibility.
- Implemented functions for encoding and decoding the bytecode header.
- Introduced checksum validation to detect corruption in bytecode files.
- Created serialization and deserialization functions for modules to/from bytecode format.
- Added support for a new
package module to replace the old module functionality.
- Implemented global deletion functionality in the package module.
- Updated various tests to validate the new bytecode format and package functionalities. by Mohammed Abdifitaax (Mahdiware)462
Eid Mubarak 🌙✨
May Allah accept from us our fasting, our night prayers, our charity, our recitation of the Qur’an, and all the acts of worship we performed during this blessed month of Ramadan. As this final day of Ramadan comes to an end and Eid begins tomorrow, we ask Allah to grant us forgiveness, mercy, and continued guidance.
Eid Mubarak to you and your family. May it be filled with joy, peace, and blessings.
462
LinearLayout = java.bindClass("android.widget.LinearLayout")
java.bindClass Has no longer needed, we use native import
462
SaynaaIDE: is an Android application runtime for the Saynaa programming language. It combines the Saynaa VM with a JNI-based Android bridge so Saynaa scripts can create views, call Java APIs, register listener proxies, and build Android UI directly on-device.
462
🔌 New pull request saynaa-os#4 Implement a basic window manager
by: @Mahdiware
Implement a basic window manager with support for window creation, destruction, and input handling
- Added window management structures and functions to handle window creation, destruction, and focus management.
- Implemented mouse event handling for window interactions including dragging and mouse movement.
- Integrated framebuffer operations for rendering windows and cursor.
- Added IPC mechanisms for communication between the window manager and client applications.
- Implemented damage tracking for efficient redrawing of windows.
- Ensured proper focus handling and event propagation to the appropriate windows.
Reply to this message to post a comment on GitHub.
462
🔨 1 new commit to saynaa-os:main:
a553008: Implement device framework with console, null, tty, and zero devices; add argument parsing utility by Mohammed Abdifitaax (Mahdiware)
462
ELF format implemented
https://github.com/Mahdiware/saynaa-os/commit/ 124a84224aa4ac945b3358f31e131d2459e13982
462
Any update of this operating system, and new features i will post this group topic
https://t.me/HackBuildChat/17209
462
new operation system from scratch, basic functionality implemented
https://github.com/Mahdiware/saynaa-os
and download the ISO file:
https://github.com/Mahdiware/saynaa-os/actions/runs/20523029252/artifacts/4970969693
