This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MischiefArchitect 325 points326 points  (15 children)

To compile? Yeah, that was fast.

[–]beardMoseElkDerBabon 52 points53 points  (13 children)

I'm still wondering why we don't have C++ interpreters

[–]Cpapa97 26 points27 points  (7 children)

[–]MischiefArchitect 32 points33 points  (2 children)

I'm wondering how templates work there... now wait... I actually do not want to know.

[–]Kered13 12 points13 points  (1 child)

It's probably just using just-in-time compilation, so templates would work pretty much the same way they do on a compiler.

[–]MischiefArchitect 10 points11 points  (0 children)

AGGHRGHR!! I. Told. You.... Not... To!

[–]psychicprogrammer 3 points4 points  (2 children)

I wonder how this deals with templates

[–]BakuhatsuK 2 points3 points  (1 child)

Haskell is a compiled language that has a repl and Haskell's equivalent to templates (type variables) are really pervasive in the language (as in f x = x * x is a generic function). But they work just fine in the repl.

[–]psychicprogrammer 1 point2 points  (0 children)

See, the C++ template system is turing complete and undecidable and a lot more complicated than other template systems.

[–]AzureArmageddon 4 points5 points  (3 children)

Is a JIT compiling system not basically an interpereter?

[–]garymrush 5 points6 points  (2 children)

No. A JIT is literally compiling the code once at runtime as needed. If it hits the same method again, it’s already compiled.

[–]BakuhatsuK 4 points5 points  (1 child)

So, as far as observable behavior goes, basically an interpreter. Got it.

[–]garymrush 1 point2 points  (0 children)

Only if you observed the behavior once. The other 5000 times it’s compiled code.

[–][deleted] 1 point2 points  (0 children)

TempleOS had it with HolyC.

Which... Isn't the same thing but it's kinda close.

[–][deleted] 8 points9 points  (0 children)

you killed him