Hacker News new | ask | show | jobs
by stcredzero 5855 days ago
I started designing a language where you had lexically scoped "contexts" to specify the meanings of words. In general a package/library would be a context, and could declare its dependency on other contexts. Any words with conflicting interpretations would have to use its full global specifier to compile.
1 comments

Perl does this, Perl 6 especially.
Sadly x86/arm/mips/sparc/power processors aren't Perl machines and Perl6 thusly can't be used to make a kernel for a Unix derivative.
One could probably get Scheme to do this and use it to make a kernel. But what would be the point of making it a Unix machine then? Make it a Scheme machine.
They aren't C machines, either. But I agree, that Perl is probably harder to compile to native code than C.
Yes, I think we all wept when we first learned that.