> What can we learn from this?

Julia is a noble effort, and parts of it are a wonderful idea, but ... a friend 
of mine spotted this more than a year ago, and it hasn't been fixed yet. They 
claim it is difficult to fix, which to my mind means there are either 
fundamental engineering problems with the way namespaces work in Julia, or they 
don't know what they're doing. 


*****************

function g() 
        9 
end 


>>g (generic function with 1 method) 

function f() 
        g() 
end 
>>f (generic function with 1 method) 

julia> f() 
>>9 

function g() 
        20  

end 

>>g (generic function with 1 method) 

julia> f() 
>> 9 


*************

Lush is an earlier version of the same idea as Julia, FWIIW (aka high level 
numerics with a compiler, though with a radically different design and 
set of compromises -compromises Julia should have learned from). It doesn't 
have this issue. While I haven't looked at the guts of Julia, the guts of Lush 
are intensely beautiful in places.

-Scott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to