This commit is contained in:
Able 2024-07-20 12:54:58 -05:00
parent b99cb09a74
commit 9ec3bb1f99
17 changed files with 56 additions and 14 deletions

6
Cargo.lock generated
View file

@ -429,7 +429,7 @@ dependencies = [
[[package]] [[package]]
name = "hbbytecode" name = "hbbytecode"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5555b9865a3ae9d512bc338c1f370aeca9975c60" source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5a6474f06628d80386cdc4c09d443da9118ccfca"
[[package]] [[package]]
name = "hbbytecode" name = "hbbytecode"
@ -439,7 +439,7 @@ source = "git+https://git.ablecorp.us/ableos/holey-bytes#e494785f93dad2722ebd9e5
[[package]] [[package]]
name = "hblang" name = "hblang"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5555b9865a3ae9d512bc338c1f370aeca9975c60" source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5a6474f06628d80386cdc4c09d443da9118ccfca"
dependencies = [ dependencies = [
"hbvm 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)", "hbvm 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)",
] ]
@ -447,7 +447,7 @@ dependencies = [
[[package]] [[package]]
name = "hbvm" name = "hbvm"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5555b9865a3ae9d512bc338c1f370aeca9975c60" source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5a6474f06628d80386cdc4c09d443da9118ccfca"
dependencies = [ dependencies = [
"hbbytecode 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)", "hbbytecode 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)",
] ]

View file

@ -70,7 +70,6 @@ impl Package {
let mut bytes = Vec::new(); let mut bytes = Vec::new();
// compile here // compile here
println!("Precompilation");
let _ = hblang::run_compiler( let _ = hblang::run_compiler(
&path, &path,
Options { Options {
@ -80,7 +79,6 @@ impl Package {
&mut bytes, &mut bytes,
); );
let _ = hblang::run_compiler(&path, Default::default(), &mut bytes); let _ = hblang::run_compiler(&path, Default::default(), &mut bytes);
println!("Post-compilation");
match std::fs::create_dir("target/programs") { match std::fs::create_dir("target/programs") {
Ok(_) => (), Ok(_) => (),

View file

@ -0,0 +1,2 @@
# Ignim
Ignim is the ableOS vulkan interface library.

View file

@ -0,0 +1,7 @@
VK_VERSION_MAJOR := 1;
VK_VERSION_MINOR := 0;
init_vulkan := fn(): void {
return
}

View file

@ -16,4 +16,4 @@ create := fn(): int {
msg_length := string.length(msg); msg_length := string.length(msg);
*msg = 0 *msg = 0
return @eca(int, 1, 0, msg, msg_length) return @eca(int, 1, 0, msg, msg_length)
} }

View file

@ -1,4 +1,4 @@
string := @use("rel:string.hb") string := @use("rel:string.hb")
log := @use("rel:log.hb") log := @use("rel:log.hb")
memory := @use("rel:memory.hb") memory := @use("rel:memory.hb")
buffer := @use("rel:buffer.hb") buffer := @use("rel:buffer.hb")

View file

@ -11,4 +11,4 @@ error := fn(message: ^u8): void return log(message, 0)
warn := fn(message: ^u8): void return log(message, 1) warn := fn(message: ^u8): void return log(message, 1)
info := fn(message: ^u8): void return log(message, 2) info := fn(message: ^u8): void return log(message, 2)
debug := fn(message: ^u8): void return log(message, 3) debug := fn(message: ^u8): void return log(message, 3)
trace := fn(message: ^u8): void return log(message, 4) trace := fn(message: ^u8): void return log(message, 4)

View file

@ -15,4 +15,4 @@ release_page := fn(ptr: ^u8, page_count: u8): void {
*msg_ptr = ptr *msg_ptr = ptr
return @eca(void, 3, 2, msg, 12) return @eca(void, 3, 2, msg, 12)
} }

View file

@ -48,4 +48,4 @@ reverse := fn(s: ^u8): void {
set := fn(change: ^u8, new: int): void { set := fn(change: ^u8, new: int): void {
*change = new *change = new
return return
} }

View file

@ -0,0 +1,2 @@
# Pinnacle
Pinnacle is the windowing system api for ableOS

View file

@ -0,0 +1,14 @@
Element := struct {
width: int,
height: int,
x: u16,
y: u16,
id: int,
}
create_element := fn(): Element {
return Element.(0, 0, 0, 0, 0)
}

View file

View file

@ -0,0 +1,14 @@
create_window := fn(): WindowID {
return WindowID.(1, 2)
}
WindowID := struct {
host_id: int,
window_id: int,
}
/*
update_ui := fn(window_id: WindowID): bool {
return 1 == 0
}
*/

View file

@ -0,0 +1,3 @@
ui_lisp_text_example := "(text id_1)\0";

View file

@ -12,4 +12,4 @@ main := fn(): int {
} }
} }
return 0 return 0
} }

View file

@ -1,6 +1,8 @@
stn := @use("../../../libraries/stn/src/lib.hb"); stn := @use("../../../libraries/stn/src/lib.hb");
.{log, string, memory, buffer} := stn .{log, string, memory, buffer} := stn
windo := @use("../../../libraries/windo/src/lib.hb");
.{WindowID, create_window} := windo
service_search := fn(): void { service_search := fn(): void {
a := "\{01}\0" a := "\{01}\0"
@ -19,10 +21,10 @@ main := fn(): int {
log.info("abc\0") log.info("abc\0")
memory.release_page(memory_pages, 3) memory.release_page(memory_pages, 3)
window := windo.create_window() window := create_window()
// todo: abstract this out // todo: abstract this out
port_str := "\0\{70}\0" port_str := "\0\{70}\0"
a := @eca(u8, 3, 3, port_str, 2) a := @eca(u8, 3, 3, port_str, 2)
return 0 return 0
} }

View file

@ -18,4 +18,4 @@ main := fn(): void {
td := s.display_int(a, page) td := s.display_int(a, page)
log.debug(td) log.debug(td)
return return
} }