Size: a a a

2019 December 20

P

Parra in graalvm_ru
does that mean process or thread? and it means each script gets executed in a different proc/thread? at least I understand that
источник

ВВ

Виктор Вербицкий in graalvm_ru
The original NodeJS is single threaded. You can't manipulating by the threads. GraalVM is mimic that behaviour for own NodeJS implementation. To be compatible as much as possible.

But I can't imagin what they are means about vertical scalability.

For other languages it have other behaviour.
источник

P

Parra in graalvm_ru
Виктор Вербицкий
The original NodeJS is single threaded. You can't manipulating by the threads. GraalVM is mimic that behaviour for own NodeJS implementation. To be compatible as much as possible.

But I can't imagin what they are means about vertical scalability.

For other languages it have other behaviour.
I'm not asking about NodeJS itself but more related to GraalVM execution model
источник

P

Parra in graalvm_ru
and nodejs is not single thread, v8 is single thread although recently they have adopted multi-isolate approach, but nodejs uses a threadpool to process all things that aren't truly async at kernel level
источник

A

Alex in graalvm_ru
λoλdog
Эт конечно интересно, но зачем?
Я уже приводил пример как использует мой знакомый:

Фрондендерам отдаётся на откуп писание рестов и фронта, на ноде они уже руку на этом набили, рисуют графики и тд. Для них разницы почти нету нода или граальвм

Дальше уходит запрос внутрь jvm глубже, где работает apache calcite который разбирает запрос, строит план выполнения и тд, выполняет его и возвращает данные в js уровень

Там парни как нужно это завернули и отдали дальше


Экономия на микросервисном взаимодействии с придумываем сетевых протоколов и тд
источник

ВВ

Виктор Вербицкий in graalvm_ru
Parra
I'm not asking about NodeJS itself but more related to GraalVM execution model
Ok. Sorry for misunderstanding 😄
Nevertheless that model is for JodeJS implementation only. In all other cases it have standard OpenJDK thread model.
источник

P

Parra in graalvm_ru
Виктор Вербицкий
Ok. Sorry for misunderstanding 😄
Nevertheless that model is for JodeJS implementation only. In all other cases it have standard OpenJDK thread model.
ok, thanks for answering 😄👍
источник

g

gleb in graalvm_ru
Не подойдёт, уносите
источник

ST

Slava Tutrinov in graalvm_ru
алгоритмы на граале бегают?
источник

A

Artjom Kalita in graalvm_ru
лол
источник

A

Artjom Kalita in graalvm_ru
Новая трейд биржа - грааль.вм называется
источник

A

Artjom Kalita in graalvm_ru
торгуем нативными имеджами
источник

OS

Oleg Shelajev in graalvm_ru
Artjom Kalita
Новая трейд биржа - грааль.вм называется
Не пугай так!
источник

A

Artjom Kalita in graalvm_ru
хых =)
источник

OS

Oleg Shelajev in graalvm_ru
Сорри, так конечно нельзя тут общаться.
источник

OS

Oleg Shelajev in graalvm_ru
Не кормите троллей пожалуйста.
источник

OS

Oleg Shelajev in graalvm_ru
Parra
so graalvm creates a thread or a process for each script executed?
No, the user creates language execution context.
источник

P

Parra in graalvm_ru
Oleg Shelajev
No, the user creates language execution context.
and each execution context is one process, or one thread?
источник

OS

Oleg Shelajev in graalvm_ru
Each execution context is a Java object (you can think of it as an V8 engine), it's not thread-safe — so you need to access it from 1 thread at a time, but you can have multiple threads doing it at different times
источник

OS

Oleg Shelajev in graalvm_ru
that's not 100% correct actually sorry, if the languages initialized in the context all support multithreading — then you can use the context from multiple threads at the same time
источник