2019年12月31日 星期二

zram memory compress in embedded linux 5/6

1. Kconfing
gedit ~/linux-6.6.x/drivers/block/zram/Kconfig
choice
    prompt "Default zram compressor"
    ###default ZRAM_DEF_COMP_LZORLE
    default ZRAM_DEF_COMP_ZSTD
    depends on ZRAM

2019年12月30日 星期一

Web3 Smart Contract Escrow Payment Simulation (The best mechanism to reduce cross-border transaction defaults)

 The 2026 solution for "the absence of arbitration in disputes" is "Hybrid Arbitration." While Smart Contract Escrow (Code is Law) has fundamentally resolved the pain points of "payment default risks" in Open Account (O/A) transactions and the "contraction of bank L/C credit," the following is required to ensure this workflow operates smoothly in practice

System Configuration & Implementation Guide

https://wizard.openzeppelin.com/
Select Custom -> Access Control -> Ownable (Enabled) via OpenZeppelin Wizard.
click  [Open in Remix]
Remix'File Explore need 2 files
mockusdt.sol and mytech_escrow.sol

2019年12月27日 星期五

Quantum addition and operation in python and c++

############
###python###
############
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit_aer import AerSimulator

def Half_Adder():
    #Half Adder: inputs q0,q1 -> outputs q2=Sum, q3=Cout#
    # Initialize local simulator
    sim = AerSimulator()

2019年12月25日 星期三

Zero-knowledge in Risc-V virtual machine

Ethereum has thousands of nodes, each potentially running on different hardware and different operating systems. Once a transaction is executed, all nodes must arrive at exactly the same result — otherwise consensus cannot be reached.
Node A (Linux x86)        ┐
Node B (macOS ARM)   ├──► Same Smart Contract → Results must be bit-for-bit identical
Node C (Windows x64)  ┘

SP1 is a zero-knowledge virtual machine (zkVM) developed by Succinct Labs. It is designed to prove the correct execution of programs compiled for the RISC-V architecture.

https://github.com/succinctlabs/sp1

2019年12月1日 星期日

Deploy language models to embedded system

wget --continue https://huggingface.co/bartowski/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q8_0.gguf
wget --continue https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.bin

git clone --recursive https://github.com/ggerganov/llama.cpp
git clone --recursive https://github.com/ggerganov/whisper.cpp
git clone --recursive https://github.com/skeskinen/bert.cpp