On 26/09/2013, at 12:27 PM, srean wrote: > On Mon, Sep 23, 2013 at 7:24 PM, john skaller > <skal...@users.sourceforge.net> wrote: > >> The bottom line is this: if you actually want to learn Felix you have >> to follow my instructions. Stop complaining about rants in the >> mailing list, stop reading a heap of crap. >> >> WRITE SOME CODE. > > > Indeed! in fact I started with arrays because numeric heavy code is > what I do. Got stuck with type classes in the process because arrays > are built on it.
You don't need to understand typeclasses to use arrays although it helps. Documentation would help too :) The best way is probably to write some dumb code, post it, and I'll show how to improve it. I have had a lot of problems trying to figure out exactly what an array actually is. So the type class structure is complex and may not be right yet. This is all complicated by compact linear types. At least the "assignment is setting pointer" doesn't work with them (because the subcomponents can't be addressed by an ordinary machine pointer). Worse, if you have say a pointer to a tuple: var px : &(int * 2 * 2) = new (1, true, true); all hell would break loose if you got a pointer to the second component and cast it to a pointer to 2 * 2 because that's a compact linear type, and thus a single int. The representation of int * 2 * 2 is an ordinary struct with 3 addressable components. > Isnt it amazing how far one can push the GCD idea ! I guess .. -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language