4 ms·
I really wish they had implemented Julia in C++11, instead of C. The source code seems to be very difficult to comprehend for anyone who is not one of the origi
by n00b101 10y ago
I really wish they had implemented Julia in C++11, instead of C. The source code seems to be very difficult to comprehend for anyone who is not one of the original developers. [1]
[1] https://github.com/JuliaLang/julia/blob/master/src/julia.h https://github.com/JuliaLang/julia/blob/master/src/julia.h
- chappi42 10y agoJulia is mostly (> 65 %) written in Julia. There's some C (20 %, bootstrap etc.), some C++ (8 % llvm interface), some scheme (4 %, parser). I think it's one of the main points, that Julia should be strong enough that such things _can_ be written in itself. Go was initially written in C. I think many consider C++ to be unnecessarily complicated and avoid it at the lowest level. Btw.: Do you know the developer documentation? Just in case: http://docs.julialang.org/en/latest/#Developer-Documentation-1 http://docs.julialang.org/en/latest/#Developer-Documentation...
- StefanKarpinski 10y agoProgramming language runtimes tend to be somewhat complex (real world ones, at least). The implementation of the internals of a modern LLVM-based JIT language is bound to be somewhat "esoteric" regardless of what it's written in – using C++11 wouldn't change that. The developer docs are pretty comprehensive these days and a significant number of people have "picked it up" and become serious contributors to Julia's internals. In fact, of the people who hack on internals the most these days, none are original developers. (I'm thinking of Jameson, Yichao and Keno for those who are familiar with Julia's development.)