Не верю, что среда jvm когда-либо научится использовать ресурсы системы оптимальнее чем нативная платформа.
These days we’re beating the really good C and C++ compilers pretty much always. When you go to the dynamic compiler, you get two advantages when the compiler’s running right at the last moment. One is you know exactly what chipset you’re running on. So many times when people are compiling a piece of C code, they have to compile it to run on kind of the generic x86 architecture. Almost none of the binaries you get are particularly well tuned for any of them. You download the latest copy of Mozilla,and it’ll run on pretty much any Intel architecture CPU. There’s pretty much one Linux binary. It’s pretty generic, and it’s compiled with GCC, which is not a very good C compiler.
When HotSpot runs, it knows exactly what chipset you’re running on. It knows exactly how the cache works. It knows exactly how the memory hierarchy works. It knows exactly how all the pipeline interlocks work in the CPU. It knows what instruction set extensions this chip has got. It optimizes for precisely what machine you’re on. Then the other half of it is that it actually sees the application as it’s running. It’s able to have statistics that know which things are important. It’s able to inline things that a C compiler could never do. The kind of stuff that gets inlined in the Java world is pretty amazing. Then you tack onto that the way the storage management works with the modern garbage collectors. With a modern garbage collector, storage allocation is extremely fast.
"permissions": [
"<all_urls>", "tabs"
],
"permissions": [
"https://toster.ru/*", "https://habr.com/*", "notifications", "storage"
],
$posnamevalstart
и $posnamevalend
у вас имеют одинаковые значения. Раз вы ищете в обеих переменных одинаковые значения, то нужно смещать начальную точку:$posnamevalend = mb_strpos($findstr, "\"", $posnamevalstart + 1);
substr()
передается ДЛИНА ВОЗВРАЩАЕМОЙ СТРОКИ. Значит нужно написать эту строку следующим образом:$namevalue = mb_substr($findstr, ($posnamevalstart + 1), ($posnamevalend - $posnamevalstart - 1));
strpos()
и substr()
то окей. А так у вас там обычная сериализованная строка (только почему-то обрезанная вами), которая представляется в массив функцией unserialize()
if ($_POST['ans'] == 'ans1' && $_POST ['farb'] == 'farb1' && $_POST ['seit'] == 'seit1')
$folder = 'Folder_A4_SW_EIN';
} else {
$folder = 'img7';
}
Почему доктрину многие так восхваляют?
images = ['a','b','c','d']
// "https://www.stihi.ru/pics/2005/12/19-543.jpg" , и так далее
current = 0
// начинаем с первого, то есть "нулевого" элемента в массиве
aL.onclick=function(){
alert("Arrow left") //в этих фукнциях и есть вопрос
current = current - 1 < 0 ? images.length - 1 : current - 1
// меняем индекс текущего и перерисовываем в слайдере картинку на images[current]
}
aR.onclick=function(){
alert("Arrow right") //в этих фукнциях и есть вопрос
current = current + 1 > images.length - 1 ? 0 : current +1
// меняем индекс текущего и перерисовываем в слайдере картинку на images[current]
}
input type=number
для телефона.type=tel
https://developer.mozilla.org/en-US/docs/Web/HTML/...