- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
function testGenRef<T>(v: T) {
let x = v
// test that clear() also gets generalized
function clear() {
print(x);
x = null
}
clear()
}
function testGenRefOuter() {
print("testGenRefOuter");
testGenRef(12)
testGenRef("fXa" + "baa")
}
function main()
{
testGenRefOuter()
print("done.")
}
Чтобы чистить.
Там работы со строками нету?
Крестовые говностроки кстати тоже ебаная срань https://groups.google.com/a/chromium.org/g/chromium-dev/c/EUqoIz2iFU4/m/kPZ5ZK0K3gEJ
> TL;DR: std::string is responsible for almost half of all allocations in the Chrome browser process; please be careful how you use it!
> In the course of optimizing SyzyASan performance, the Syzygy team discovered that nearly 25000 (!!) allocations are made for every keystroke in the Omnibox. We've since built some rudimentary memory profiling tools and have found a few issues:
И это при том, что std::string всё-таки немного амортизирует аллокации. В делфи с её строками без capacity было хуже.
Кококо мы не будем API прыщей переписывать кококо
Инетесно, как будет в 2100 году?
Ахаха! Вы тоже.
Java's Modified UTF-8: The null byte '\u0000' is encoded in 2-byte format rather than 1-byte, so that the encoded strings never have embedded nulls.
Я никакого отношения к JAWA не имею.
https://www.ixbt.com/news/2021/12/10/v-rossii-nachali-prodavat-brakovannye-processory-jelbrus-v-kachestve-suvenirov.html
Царь-Сишка окрестился.
Вот именно поэтому я за «Яндекс.Браузер»
Вместо капиталистического крестоблядского std::string, там православная «Яндекс.Stroka».
https://github.com/yandex/tomita-parser/blob/d951391916f2894f49e13d447be1dee707504e2c/src/util/generic/stroka.h
// stroka is case-insensitive
Какой багор )))
>> class Wtroka
А почему нет wtroka?
//YYYY means week-based year
Ммм, какие статические буфера... Спасибо, переполнила.
Уазазазазаза. А в хедерах остаётся лапу сосать? )