Skip to content

Instantly share code, notes, and snippets.

@Grimitch
Grimitch / sasad
Created December 29, 2025 09:32
gist mana
ALTER TABLE Products ADD
Category NVARCHAR(100),
Brand NVARCHAR(100),
Discount DECIMAL(5,2),
DeliveryDate DATE,
Manufacturer NVARCHAR(100);
------------
SELECT SUM(Price * Quantity * (1 - ISNULL(Discount,0)/100.0)) AS Income
DATAS у .NET 10
Механізм DATAS, який з’явився раніше, у .NET 10 став ефективнішим: тепер він точніше підлаштовує роботу GC під реальне навантаження та розмір живих об’єктів, зменшуючи непотрібні колекції, згладжуючи паузи та враховуючи фрагментацію.
Це забезпечує більш стабільний throughput і плавніші паузи, особливо при високій частоті алокацій або змінному навантаженні, наприклад у web‑серверах, мікросервісах та API.
Write-barrier для Arm64
У .NET 10 реалізація write-barrier для архітектури Arm64 стала точнішою. Write-barrier відслідковує зміни посилань між поколіннями, що необхідно для коректної роботи поколіннєвого GC.
Нова реалізація за замовчуванням підвищує точність і продуктивність GC, скорочуючи паузи на 8–20 % у типовому навантаженні.
#include <iostream>
#include <string>
using namespace std;
// Электрочайник
class Electrochainik {
private:
string brand;
float volume;
int* temps;
// Электрочайник
class Electrochainik {
private:
string brand;
float volume;
public:
Electrochainik(string brand, float volume) {
SetBrand(brand);
SetVolume(volume);
Main.cpp
#include "electrochainik.h"
#include "kniga.h"
#include "telephon.h"
#include "gelevayaruchka.h"
#include "cupura.h"
int main() {
Electrochainik kettle("Philips", 1.7);
#include <iostream>
#include <string>
using namespace std;
// Электрочайник
class Electrochainik {
private:
string brand;
float volume;
#include <iostream>
#include <string>
using namespace std;
class Electrochainik {
public:
string brand;
float volume;
Electrochainik(string brand, float volume)
#include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <algorithm>
using namespace std;
int main() {
srand(time(0));
def add(x, y):
return x + y
def subtract(x, y):
return x - y
def multiply(x, y):
return x * y
def divide(x, y):
Index.html
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Сайт класу</title>
<link rel="stylesheet" href="style.css">
</head>
<body>