Skip to content

Instantly share code, notes, and snippets.

View godcodehunter's full-sized avatar
🏴‍☠️
In search of a new pirate ship. Arrr

Dmitry Opokin godcodehunter

🏴‍☠️
In search of a new pirate ship. Arrr
  • Krasnoyarsk
  • 10:06 (UTC -12:00)
View GitHub Profile

Platonism hits mathematics of The Greatest Math Joke

alt text

A quick introduction to the idea known as the Greek proof

Greeks solved $a x^2+b x + c = 0$ semi-geometrically

Смотреть видео

@godcodehunter
godcodehunter / main.go
Last active October 16, 2023 17:08
Test task
package main
import (
"context"
"errors"
"fmt"
"sync"
"time"
"github.com/google/uuid"
@godcodehunter
godcodehunter / interviewing.txt
Last active August 21, 2023 08:54
Guid for interviewing rust blockchain developer
1. Расскожите про коцнепция владение. Что такое передача владениям (move semantic)?
https://stackoverflow.com/questions/30288782/what-are-move-semantics-in-rust
2. Расскажите про трейты Copy, Clone.
3. Расскажите про управление памятью.
Време жизни обьекта?
Что такое анотация лайфтаймов?
Что такое умные узатели, зачем они нужные?
4. Send + Sync
5. Async
6. Inner mutability
#![feature(fn_traits, unboxed_closures)]
// Overloaded functions in Rust!
fn main() {
assert_eq!(my_func(12usize), 12u64);
assert_eq!(my_func(3u8, 4u8), 7u16);
assert_eq!(my_func(5usize, 7usize), true);
assert_eq!(my_func(51u8), "51".to_owned());
assert_eq!(my_func(), &["test"]);
}
template<typename T>
struct variable_t {
T value;
};
using fd_int = variable_t<int>;
using fd_float = variable_t<float>;
using fd_char = variable_t<char>;
// Needed memory optimization, now we haw summ top wich have lagest size for all type