this post was submitted on 05 Oct 2024
101 points (94.7% liked)

Programming

17195 readers
374 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 13 points 1 week ago

People don't understand that JIT languages are still compiled, JIT literally describes when it's compiled.

That said, F# and/or OCaml.

[–] [email protected] 6 points 1 week ago

Kotlin is nice

[–] [email protected] 4 points 1 week ago

Scala is the the first I used and I like it a lot. If I had more time I'd love to give ocaml a decent try but I don't think I can get into it these days.

[–] [email protected] 5 points 1 week ago* (last edited 1 week ago) (1 children)

purescript if you count “compile to js” as compiled.

Otherwise Haskell

[–] [email protected] 0 points 1 week ago (2 children)

That's transpiling, not compiling. Compiling is usually meant as "directly to machine code", but I am yet to find an "official definition".

[–] [email protected] 1 points 1 week ago

transpiling is just a type of compiling. compiling in no terms means 'directly to machine code'.

[–] [email protected] 3 points 1 week ago

There is no official definition, in part because there isn't any formal way to define the term that satisfies our intuition.

Most treatments will handle "transpiling" as a special case of "compiling" and some will even handle decompilation as a special case where the object language is higher level than the source. Of course, even defining "higher level" can be quite hard.

Plenty of languages "compile to C" and I see no issue with saying something "compiles to js," especially given that js mostly lacks features of purescript rather than the other way around.

[–] [email protected] 4 points 1 week ago (1 children)

Elm, which is the loveliest language ever.

But I'm not sure if compiles to javascript counts as compiled, in which case haskell, which is considerably less lovely but still good.

Roc isn't finished, but it might turn out lovely, I don't know.

[–] [email protected] 2 points 1 week ago

Transpiles :)

[–] [email protected] 7 points 1 week ago
load more comments
view more: next ›