fixed coding bugs, refined text

This commit is contained in:
2025-06-02 21:05:22 +01:00
parent 22c5d61082
commit 438b4d0424
3 changed files with 52 additions and 74 deletions

View File

@@ -75,32 +75,13 @@
p2prcDefault
];
text =
let
# TODO: add the content for the main file
# p2prcMainContent = availablePort: availableUrl:
# ''
# module Main where
#
# import P2PRC
# ( runP2PRC
# , MapPortRequest(MkMapPortRequest)
# )
#
# main :: IO ()
# main =
# runP2PRC
# ( MkMapPortRequest ${availablePort} "${availableUrl}.akilan.io"
# )
# '';
#
# mainFileContent = p2prcMainContent (builtins.toString 8080) "haskell";
in
''
clear
if [ "$#" -eq 0 ]; then
echo "No arguments provided."
echo "Please provide the name of your project"
echo "nix run github:akilan1999/p2p-rendering-computation#initHaskellProject -- <NAME-PROJECT>"
echo "nix run git+https://github:akilan1999/p2p-rendering-computation#initHaskellProject -- <NAME-PROJECT>"
exit 1;
fi
@@ -117,12 +98,10 @@
sed -i 's/base.*$/base, p2prc/' "$PROJECT_DIR".cabal
# cat ${mainFileContent} > app/Main.hs
cabal2nix . > ./cabal.nix;
cabal2nix . --shell > shell.nix
git add .
clear
echo -e "run the following commands to finish nix development and production environment:\n\n"
@@ -131,6 +110,7 @@
echo -e "nix flake init -t github:akilan1999/p2p-rendering-computation#haskell"
echo -e "nix develop"
echo -e "nix run"
echo -e "\n\n"
'';
};

View File

@@ -57,7 +57,7 @@ side running.
:END:
https://github.com/Akilan1999/p2p-rendering-computation/releases
** Install from Github master branch
** Manual Install from Github master branch
:PROPERTIES:
:CUSTOM_ID: install-from-github-master-branch
:END:
@@ -73,7 +73,7 @@ Thus, we need go lang to compile to code to a binary file.
:PROPERTIES:
:CUSTOM_ID: install-docker
:END:
In this project the choice of virtualization is Docker due to it's wide
In this project the choice of virtualisation is Docker due to it's wide
usage in the developer community. In the server module we use the Docker
Go API to create and interact with the containers.
@@ -636,7 +636,7 @@ The easier way
#+begin_src sh
# Run
make python
# Expected ouput
# Expected output
Output is in the Directory Bindings/python/export/
# Run
cd Bindings/python/export/
@@ -787,7 +787,7 @@ func main() {
- Video tutorial:
[[https://youtu.be/rN4SiVowg5E][https://i3.ytimg.com/vi/rN4SiVowg5E/maxresdefault.jpg]]
This is a fun expirement for anyone to try to quickly run a server and
This is a fun experiment for anyone to try to quickly run a server and
quickly do a map port and domain name mapping in a single command.
*** 1. Find a program you want to run
@@ -860,11 +860,11 @@ A entry 217.76.63.222
* Ideas for future potencial features
Consists of personal loideas for the future of P2PRC.
At moment only has main contributors writiing to this.
* Ideas for future potential features
Consists of personal ideas for the future of P2PRC.
At moment only has main contributors writing to this.
** To support hetrogenous set of Nodes that cannot run P2PRC
** To support heterogenous set of Nodes that cannot run P2PRC
This stems from a personal issue I have when doing research
on [[https://github.com/CTSRD-CHERI/cheribsd][CheriBSD]] kernel. For my research I am using the ARM morello
which is a 128bit ARMv8 processor. At the moment Go programs
@@ -873,7 +873,7 @@ run P2PRC at the moment inside the ARM morello to remotely access
it when it's behind NAT using P2PRC. This would indeed be a common
problem when running against various Architectures that do not
support running P2PRC. As you will see soon this also creates
oppurtunity space to scale faster to nodes in a local network
opportunity space to scale faster to nodes in a local network
and would introduce a new layer fault tolerance within a local
network nodes.
@@ -884,7 +884,7 @@ network nodes.
- This means I have 2 ways to access the Morello board: Which is to SSH
into either 2 laptops and then SSH into 192.168.0.10 to gain access
to the board. Wouldn't it be great to automate this whole layer and
as well look into custom tasks into the hetrogenous hardware.
as well look into custom tasks into the heterogeneous hardware.
*** Set of interesting possible:
We build a cool set possibilities before and use this to build up the implementation
plan.
@@ -892,7 +892,7 @@ network nodes.
- We can use the P2PRC protocol to run servers inside the morello board via traversed
node locally which can access that Node.
- Spin servers on node not running P2PRC using the P2PRC standard abstractions.
- Auto-setup P2PRC nodes with just SSH access via potencially a DSL.
- Auto-setup P2PRC nodes with just SSH access via potentially a DSL.
- A neat use case for CHERI for instance would be use the architecture to run light
weight hypervisors.
*** Implementation
@@ -902,7 +902,7 @@ network nodes.
map ports to machines which remotely running P2PRC. This means of instance I
can issue a command to the Morello board without the morello board being in
my local network.
- We would want to implement the exsisting P2PRC public key mechanism as well so that
- We would want to implement the existing P2PRC public key mechanism as well so that
other nodes can access the Morello board who have permission access.
#+CAPTION: Implementation idea (To be improved upon)

View File

@@ -38,8 +38,6 @@
cabal-install
];
# TODO: add cabal2nix shell command
# cabal2nix . --shell > ./shell.nix
shellHook = ''
cabal2nix . > ./cabal.nix
'';