Блог*
Open in Telegram
Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here
Show more1 983
Subscribers
+124 hours
-137 days
-1330 days
Posts Archive
1 985
Repost from Женское радио в Тбилиси
Карта Грузии по мнению россиян в поисках жилья заехавших через Ларс
08 Oct 2022, 08:59
1 985
#prog #rust #article
A performance retrospective using Rust (part 3)
Или когда
? оказался медленнее try!.07 Oct 2022, 14:17
1 985
#prog #bash #abnormalprogramming
TickTick enables you to put JSON in bash scripts. Yes, just encapsulate them with two back-ticks.
github.com/kristopolous/TickTick
07 Oct 2022, 13:23
1 985
Repost from Меня заставили создать канал
GitHub Copilot ленится по пятницам.
Это он, если что, после сигнатуры гордо дописал мне // TODO.
07 Oct 2022, 13:08
1 985
#prog #abnormalprogramming (#evenmoreabnormalprogramming?)
Вероятно, многие мои читатели уже знают про movfuscator:
The M/o/Vfuscator (short 'o', sounds like "mobfuscator") compiles programs into "mov" instructions, and only "mov" instructions. Arithmetic, comparisons, jumps, function calls, and everything else a program needs are all performed through mov operations; there is no self-modifying code, no transport-triggered calculation, and no other form of non-mov cheating.
Так вот, оказывается, как средство обфускации этот проект не так уж и надёжен: есть Demovfuscator
This tool constitutes a generic way of recovering the control flow of the original program from movfuscated binaries. As our approach makes zero assumptions about register allocations or a particular instruction order, but rather adheres to the high-level invariants that each movfuscated binary needs to conform to, our demovfuscator is also not affected by the proposed hardening techniques such as register renaming and instruction reordering. To achieve this, we use a combination of static taint analysis on the movfuscated code and a satisfiable modulo theory (SMT) solver. We successfully used our demovfuscator against several movfuscated binaries that emerged during several CTFs during the last months (Hackover CTF and 0CTF) proving that it already can handle real-world binaries that were not created by us.
(thanks @vitvakatu)
07 Oct 2022, 12:47
1 985
#prog #haskell #article
Товарищ Мёртвопищ 0xd34df00d написал декодер и енкодер QOI на хаскелле. И весьма быстрые.
Haskell is quite OK for images: decoding QOI
Haskell is quite OK for images: encoding QOI
07 Oct 2022, 09:40
1 985
Repost from Врен о Японии для туриста
Арочный мост Кинтай - главная достопримечательность японского города Ивакуни. Он был построен еще в 1673 году и до сих пор выглядит (почти) как при самураях.
До отказа от феодального строя, кстати, только самураям и разрешалось ходить по ценному мосту - и так приходилось чинить его слишком часто. Крестьяне переправлялись через реку на лодках.
07 Oct 2022, 04:12
1 985
#prog #c #article
Type Punning Functions in C
#include <math.h>
#include <stdio.h>
double DoubleToTheInt(double base, int power) {
return pow(base, power);
}
int main() {
// cast to a function pointer with arguments reversed
double (*IntPowerOfDouble)(int, double) =
(double (*)(int, double))&DoubleToTheInt;
// prints 0.366032
printf("(0.99)^100: %lf \n", DoubleToTheInt(0.99, 100));
// also prints 0.366032
printf("(0.99)^100: %lf \n", IntPowerOfDouble(100, 0.99));
}06 Oct 2022, 14:10
1 985
#prog #rust #article
Brute forcing protected ZIP archives in Rust
Комментарии к статье на Reddit едва ли не ценнее самой статьи. Спойлер: на rayon и проще, и быстрее.
06 Oct 2022, 13:03
1 985
#prog #rust #article
How (and why) nextest uses tokio, part 1
Или хороший пример того, как async может пригодиться в программе, которая вообще никак не связана с общением по сети.
06 Oct 2022, 12:01
1 985
#prog #rust
cargo careful: run your Rust code with extra careful debug checking
Или лёгкий способ запустить программу с отладочными ассертами в std.
06 Oct 2022, 11:24
1 985
06 Oct 2022, 11:09
