http://www.ffconsultancy.com/free/ray_tracer/code/1/ray.ml I thought I had a grasp on Haskell/ML/OCaml type languages, but this is too much. Or is it just the...
Umm... that looks pretty normal to me. The only weirdness that I can see is (fun t2 -> if t2 < 0. then infinity else ((fun t1 -> if t1 > 0. then t1 else t2) (b...
... The spacing could be better, and some comments might be nice, but it looks like reasonably straightforward Ocaml to me. The reason for the lack of comments...
... I forgot to mention. Just because you find that particular file difficult to read, even if all code were written like that, doesn't at all mean that the...
... I see your point, though the same argument could also be used in support of languages such as this one: http://www.muppetlabs.com/~breadbox/bf/ It seems to...
... Well, no, because languages like BF (I can't type it out since my grandparents are right here), Befunge, and Unlambda have a huge flaw: they don't offer...
... Umm... that's a different piece of code, and it's written really weirdly, using lists where you should use a structure or algebraic datatype. Daniel...
... But the question here is about syntax, not semantics. ... I suggest checking out Noam Chomsky's work on linguistics. It's my impression that it is well...
... The question was about comprehending the program, which is both syntax and semantics. My argument is that syntax is superficial and with a moderate amount...
... We might have to wait a bit before we get enough generations of populations of Perl and Smalltalk programmers to see what genetic effect it has :), but I...
... MacGyver can also pick a lock with a light bulb and some pocket lint. I think he would nontheless be better served by tools appropriate for the job. :) If...
... To be clear, my suggestion was that people may be choosing languages that fit how their mind works, not that people whose minds work like the available...
... IIRC, the difference between those two notations was something about Newtonian notation not allowing as many different variable names (or something like...
I've always admired the language Dylan, and now that OpenDylan is available I've been studying it in a bit more depth. Multi-methods are something I'd really...
... Yes, in Dylan you can 'rename' functions imported from modules. So you would rename 'do-something' to 'foo-do-something', and from another module, it's...
... I thought so. After a bit of thinking, if you dispatch on the class first, then on the arguments, you can achieve true OO-dispatching along with ...
... What are you talking about, true OO language? What is it, and why do we care? I don't think dispatch on the first argument makes a language any truer than...
... I'm sorry if I'm sounding like an oo purist. I'm not, I don't even like the term anymore really, and as you suggest, it doesn't mean the same thing to all...
... Hey Chris, do you know how to concatinate macro pattern variables? Below, ?class and ?name should be combined into one identifier: define method ?class ##...
... I don't have a running Dylan system where I am to test but if ?class ## ?name doesn't work, how about ?#"class" ## ?name. The ?#"class" turns 'class' into...
Kokogut is a compiler of the Kogut language, written in itself. http://kokogut.sourceforge.net/ New in Kokogut-0.6.0 (29 October 2005), a release with...
I've been developing an OO language (called Lyken) that is similar in many ways to Python, but one of its goals is to make integrating C code simple, using...
Hi, Jason ... The previous incarnation of my language Pluk uses this approach, its pretty easy way of creating something that works. Especially the...
Bart van der Werf
bluelive@...
Oct 29, 2005 7:35 pm
2454
... I've been doing this for my languages. I started out with a C++-front approach, but evolved toward using straight C. ... The C-front approach seems to me...
... I did some experimentation with tcc a few months ago (on RHEL WS 4, x86), and found that even something as simple as a hello world program would segfault....
... It mostly worked fine for me (on Gentoo), although I think I've seen the compiler seqfault on syntax errors sometimes (instead of printing an error...