Re: [julia-users] Implementing compilers or interpreters in Julia?

2016-09-22 Thread Tim Besard
Op donderdag 22 september 2016 12:55:01 UTC-4 schreef Isaiah: > - Cxx.jl, if you want to target LLVM > I've been working on LLVM.jl to make this even easier: - https://github.com/maleadt/LLVM.jl - irbuilder + execution example: https://github.com/maleadt/LLVM.jl/blob/master/examples/sum.jl Is

Re: [julia-users] Implementing compilers or interpreters in Julia?

2016-09-22 Thread Isaiah Norton
Any answer if going to be fairly opinion-based. That said, here are some opinions :) some advantages: - interactive development - performance - Cxx.jl, if you want to target LLVM - multiple dispatch some disadvantages: - lack of ML-style pattern-matching -- though multiple dispatch on node type

[julia-users] Implementing compilers or interpreters in Julia?

2016-09-22 Thread Sebastian the Eight
I'm curious how adept Julia is for writing compilers/interpreters? It's fairly easy to find example toy compilers for most other languages (C, OCaml, Ruby etc), but Julia seems to be lacking any examples except for its own. I was wondering if there are advantages or disadvantages for using