Home
Posts
About
Light
Dark
Automatic
Posts
Rust PDM Encryption Rewrite
I rewrote one of my c++ chacha20 implementations in rust today. Writing only the single-threaded core encryption parts took only one day without too much optimization. But I feel like rust doesn’t bring me the joy i get from writing c++ or golang.
Yi Yang
Feb 12, 2025
2 min read
Project
From Java to Golang, what have I learned
From Java to Golang, What Have I learned From few years ago, Java has always been my go-to language for backend development. I have been using Java for developing logic applications, and even Android applications.
Dec 3, 2024
5 min read
Project
Leetcode Notes
Leetcode Notes 2507 - Smallest Value After Replacing With Sum of Prime Factors class Solution { public: int pf (int n) { int p = n; int out = 0; while (p % 2 == 0) { // p /= 2; out += 2 ; } int sqt = sqrt(p); for (int i =3 ;i<=sqt ;i+=2) { while (p%i == 0) { p = p/i; out += i; } } if (p>2) { out = out+p; } return out; } int smallestValue(int n) { int p = n; while (1) { int a = pf (p) ; std::cout<< "Output: "<< a <<std::endl; if (a == p){ return p; } else { p=a; } } } /** => 15 => 3 * 5 => 8 => 2 * 2 * 2 => 6 => 2 * 3 => 5 (is_prime ).
Jun 22, 2024
1 min read
Project
One Billion Rows Challenge
Single Threaded One Billion Rows Challenge This is a solution to the one billion rows challenge using a single thread in C++. Not optimized at all, but still faster than most multi-threaded solutions.
Jun 21, 2024
2 min read
Project
Secure Computer Systems Final Project
Secure Computer Systems Final Project This project is to implement a protection mechanism against the Prime+Probe attack. There are two parts to this project. First is the show-case of attempted Prime+Probe attack on a x86_64 Linux system with/without the protection in place.
Yi Yang
Last updated on May 5, 2024
2 min read
Film Photos I Took
Photos I took with film cameras.
Dec 28, 2023
1 min read
Project
Statistic Reasoning with R Exam 2 Note for Printing
Monospaced Page Exam 2 notes Name: Yi Yang AndrewID: yiyang5 Example In a experiment in changing one’s fate and causality, an observational study is conducted on people who have read Berserk.
Oct 29, 2023
3 min read
95710E1 Exam 3 Note
Review 3 Exam Market power and Price discrimination First degree price discrimination Selling at each customer’s individual reservation price (at each customer’s maximum willlingness to pay price). producer must identify each customer’s “type”
Oct 12, 2023
8 min read
Statistic Reasoning with R Exam 1 Note for Printing
Monospaced Page Causal Inference Specific causal question (SCQ) SCQ four componentsintervention ("what is the impact of xxx", x)event & purpose ("of xxx", x improves y )who ("for xxx", group_A, a group )alternative or the control ("
Sep 26, 2023
3 min read
Notes For Try Hack Me Red 2
Rules of Engagement It is a legally binding outline of the client’s objective and scope. NDAs can also be used. Section Detail Executive Summary Summary of the contents and authorization within Purpose Why the RoE is used Reference References used Scope Agreed upon restrictions and guidelines Definitions Technical terms used Rules of Engagement and Support Agreement Defines the obligations and technical expectation Provisions Define exceptions and additional info.
Sep 26, 2023
2 min read
»