wip but in the meantime I am working on a lean4-json serializer <-> deserializer and a build system
๐
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* shebang for ocaml *) | |
#!/usr/bin/env ocaml | |
(* to access files in the opam switch for the script *) | |
#use "topfind";; | |
#require "bos";; | |
let _ = | |
Bos.OS.Cmd.run_out @@ Bos.Cmd.v "ls" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn range(start: isize, stop: isize, fun : impl Fn(&isize) -> isize) -> Vec<isize> { | |
let mut v = vec![start]; | |
let mut temp = start; | |
loop { | |
temp = fun(&temp); | |
v.push(temp.clone()); | |
if temp < stop { | |
break; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(executable | |
(name main) | |
(public_name <keep-the-name-of-dir>.opam) | |
(libraries dream)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(lang dune 3.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opam-version: "2.0" | |
depends: [ | |
"ocaml" {>= "4.08.0"} | |
"dune" {>= "2.0.0"} | |
] |
[ 4%] Building C object lib/libappimage/src/libappimage_hashlib/CMakeFiles/libappimage_hashlib.dir/md5.c.o
[ 4%] Linking C static library libappimage_hashlib.a
[ 4%] Built target libappimage_hashlib
[ 4%] Creating directories for 'xz-EXTERNAL'
[ 8%] Performing download step (download, verify and extract) for 'xz-EXTERNAL'
-- verifying file...
file='/home/sk/AppImageLauncher/build/lib/libappimage/xz-EXTERNAL-prefix/src/xz-5.2.3.tar.gz'
-- File already exists and hash match (skip download):
From the Hackacamel list I picked up working on the cdf plotter using TUI. Now I have never developed TUIs or GUIs so I thought this would be the perfect thing to do.
The initial hurdle was choosing the library, I wanted to try use OCaml 5 so I chose Minttea which is TUI framework inspired by Bubble Tea implemented in Golang and uses the The elm architecture (The TEA in minttea).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let to_path ~env path = Eio.Stdenv.fs env / path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let _ = | |
Eio_main.run (fun env -> | |
let process_manager = Eio.Stdenv.process_mgr env in | |
Eio.Process.parse_out process_manager Eio.Buf_read.take_all ["ls"]) |
NewerOlder