[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: Normal-JIT-Compiler.png (60 KB, 1000x896)
60 KB
60 KB PNG
I'm a JIT lover.

What's your favourite JIT-lang? My is Lua (It's from Brasil!)
>>
Retard here, why does JIT compilation exist compared to say a pre compiled language like C?
>>
Is there a JIT scripting language that is NOT LuaJit, because LuaJit is stuck on 5.1 forever
>>
>>106465914
because it's flexible and runs everywhere. With CPPbyou have to pick your target, your compiler, no reflection, no garbage collection.
>>
>>106465945
>Needs more than 5.1
ngmi
>>
>>106465914
https://letmegptthatforyou.com/a/v0Q60
>>
>>106465968
I just don't like investing into a language that is hardstuck at a version forever
>>
>>106466013
>I don't like langs that will just werk™ forever
ok.
>>
>>106465687
>What's your favourite JIT-lang?

Languages are not JIT or interpreted or compiled, language IMPLEMENTATIONS are.

I prefer to compile ahead of time to machine code. But I think the JVM JIT is the most advanced JIT available.
>>
File: java.jpg (115 KB, 1200x1198)
115 KB
115 KB JPG
>>106465687
Unitonically Java
>>
>>106465914
Apparently JIT can perform better optimizations, because it learns about program's usage patterns. You cannot do that at compile time, only at runtime.
>>
>>106465687
More like jeet lang.
>>
>>106465687
I luv pypy, I watched a couple of lectures from some of the guys on the pypy team about jitting a lang with rpython (the JIT generator if you will)
You not gonna believe me but one of them is now a woman
>>
>>106466057
>Languages are not JIT or interpreted or compiled, language IMPLEMENTATIONS are.
Wrong.
>>
>>106466059
Man, I haven't seen this meme in ages.
>>
>>106466013
>i'm a retard who loves to see all numbers go up including version numbers
>>
>>106468540
>HolyC: JIT compiled C (had to put this first)
>GraalVM: native AOT compiled Java
>PyPy: JIT compiled Python
>Porffor: native AOT compiled JavaScript
I could go on... but you're a dumbass.
>>
>>106468638
Gonna tell me the Earth is flat, next?
>>
>>106468656
Yes.
>https://www.graalvm.org/latest/reference-manual/native-image/
>https://pypy.org/
>https://porffor.dev/
>>
>>106468664
Ain't clicking that shit
>>
>>106468692
retard
>>
>>106465687
Java! :D
>>
>>106465914
Some languages are really dynamic and essentially allow for self-modifying code.
It's not impossible to perform static compilation for those languages, but it's typically a lot less headache to just use a JIT.

Also, for stuff like GPU shaders, the hardware isn't known ahead of time (every make and generation of GPU has a different architecture), so a JIT is the only option.
>>
>>106465945
*stuck on being primarily compatible with 5.1
it's still getting development and new features (some forward compat stuff too)
maintainer came back after a long hiatus and it's now rolling release (with one function that triggers intentional ABI breakage which my distro patches out)

>>106468927
>Also, for stuff like GPU shaders, the hardware isn't known ahead of time (every make and generation of GPU has a different architecture), so a JIT is the only option.
only really true for NVIDIA gpus
AMD uses real gpu binaries for their compute APIs instead of an IR like PTX or SPIR-V, you can target the actual ISAs with LLVM for opencl and their basically 1:1 cuda clone HIP and they ship precompiled binaries for their compute libraries
i assume a similar deal is going on with intel and oneapi/opencl/sycl/level zero
>>
>>106468540
>I am a dumbass, I don't even know fundamental basic stuff about programming languages, yet I do have an opinion

go away junior jeet
>>
>>106468638
>but you're a dumbass.

indeed a major dumbass
>>
>>106468927
>Some languages are really dynamic and essentially allow for self-modifying code.
>It's not impossible to perform static compilation for those languages, but it's typically a lot less headache to just use a JIT.

You can have self-modifying code and compile ahead of time to machine language too. It's fairly easy to do in Lisp, since the compiler is also available at runtime.

It is also very easy with machine language too (and most vintage viruses did that), for nearly the same reason: no compiler necessary.
>>
>>106468876
>retard
Says the guy that thinks JIT is a language implementation lmao



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.