Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

271
Visualizações
What is meant when a framework/library says "compile to Javascript"?

I was looking at elm: https://guide.elm-lang.org/

I see this type of phrase on some languages/frameworks: X is a language that compiles to JavaScript.

Does language X literally compile to another interpreted language? (I would see JS) Or Bytecode of that language? (I would see bytes/hex etc.)

If compiled to JS - would that mean the code can only go as fast as JS does?

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Does language X literally compile to another interpreted language?

Yes, that's correct. You write code in elm, and then compile it into the equivalent javascript code. It needs to be in javascript, because that's what the browser understands (WebAssembly does exist, so javascript isn't technically the only option, but not everything is designed with WebAssembly in mind)

If compiled to JS - would that mean the code can only go as fast as JS does? (a lot of frameworks/languages tout how fast they are)

Yes. Though it could allow you to write high quality, efficient javascript code more easily, which is generally what they mean when they say it's fast.

about 4 years ago · Juan Pablo Isaza Relatório

0

Does language X literally compile to another interpreted language?

Yes, indeed. 'Transpilation' is the actual term of transforming one high-level language into another.

If compiled to JS - would that mean the code can only go as fast as JS does? (a lot of frameworks/languages tout how fast they are)

In the course of transpilation, the transpilers usually apply optimizations to produce highly efficient JavaScript that has the potential to be way faster than the average handwritten JavaScript.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda