User loginNavigation |
LtU ForumA Functional Representation of Data Structures with a Hole (1998)LtU doesn't seem to have any mentions of this paper by Minamide from 1998. Here's a simple problem that benefits from the ideas described in the paper. The usual way of writing functions like "map" or "append" in a strict language like ML involves building the result list in reverse and then reversing it, which uses 2x more memory than needed. Imperative languages like Java can do without intermediate lists, but at the cost of using mutation on the list nodes after allocating them. To get the best of both worlds, we can extend the idea of tail recursion to also allow "tail allocation" aka "destination passing style", which just means that a recursive call nested within a constructor call should be treated as tail-recursive, and compiled to code that uses mutation internally. That way, the naive implementations of functions like "map" and "append" become as efficient as imperative code, allocating only as much memory as needed for the final result. Some folks on the OCaml mailing lists have pointed out that such an approach would break some assumptions of the garbage collector, namely that the old generation never points into the young generation. I don't know if that problem outweighs the potential benefits of the technique. No Instruction Set Computer NISCHow might your language design change in light of this sort of vertical integration?
By raould at 2014-07-28 23:03 | LtU Forum | login or register to post comments | other blogs | 4317 reads
Generational Real-Time Garbage Collection(this researcher seems to me (an ignorant neophyte admittedly), to have quite a bit of interesting work on GC, among other interesting things.) Generational Real-Time Garbage Collection
p.s. i'm less interested in supporting OO everywhere than i am in having kick-ass GCs, i assume that using something more FP with a GC like this would be never less performant anyway. Real time GC for FPGAsA real time collector for reconfigurable hardware seems kinda like a nice little 'hardware' implementation.
By raould at 2014-07-25 17:11 | LtU Forum | login or register to post comments | other blogs | 2865 reads
Who Needs Garbage Collection?Here is the idea: Popular wisdom dictates that functional languages need garbage collection, but is it really true. For example C++ style move semantics seem to solve the problem of returning a closure from a function, you create an object to contain a copy of all the local variables and functions, and then swap the local copy of the handle with the calling functions allocation, so when the function returns it destroys the empty handle from the caller, leaving the caller with the handle to the closure. On this basis any acyclic datatype can be stored in the heap, but its lifetime managed from the stack handle (this is what RAII is doing in C++ STL). I guess this is a degenerate case of reference counting, where we limit references to two types, a unique 'owning' reference (lets call it a handle to disambiguate) , that when it goes out of scope releases the memory (its unique and un-copyable so no need to count references), and an 'ephemeral' reference (lets call it a pointer) that is restricted in that it cannot be 'leaked' to a scope more short lived than the scope in which the handle exists. This all sounds a lot like Ada access variables - but note the change from the scope in which the handle was created, to the any scope in which the handle exists, as returning handles by move semantics is possible. This allows a constructor to return a handle into a scope which is also allowed to hold pointers to the object. It doesn't sound like it really needs anything new, just a combination of Ada's access variable, and the mechanism for converting closures into objects described above. What potential problems might there be? Could this work, or is there some overlooked flaw? GPU for GCGPUs as an Opportunity for Offloading Garbage Collection sounds kinda cool to me.
Mainly I've been trying to learn from anybody who might know: can moving a GC (especially in things like Ocaml or whatever) off to another core have good results like making pauses less obvious in interactive apps? Annual Peter Landin Semantics Seminar: On correspondences between programming languages & semantic notations: 8th Dec 2014BCS FACS - Annual Peter Landin Semantics Seminar 2014 Date/Time: Monday 8 December 2014, 6.00pm - 8.30pm Venue: BCS, First Floor, The Davidson Building, 5 Southampton Street, London, WC2E 7HA Cost to attend: Free of charge, but, please book your place via the BCS online booking system. Book Online: https://events.bcs.org/book/1170/ Speaker: Prof. Peter Mosses, Swansea University Synopsis: Peter Landin (1930 - 2009) was a pioneer whose ideas underpin modern computing. In the the 1950s and 1960s, Landin showed that programs could be defined in terms of mathematical functions, translated into functional expressions in the lambda calculus, and their meaning calculated with an abstract mathematical machine. Compiler writers and designers of modern-day programming languages alike owe much to Landin's pioneering work. Each year, a leading figure in computer science will pay tribute to Landin's contribution to computing through a public seminar. This year's seminar is entitled "On correspondences between programming languages and semantic notations" and will be given by Prof. Peter Mosses (Swansea University). Programme: 5.15pm Coffee Seminar details: 50 years ago, at the IFIP Working Conference on Formal Language Description Languages, Peter Landin presented a paper on “A formal description of ALGOL 60â€. In it, he explained “a correspondence between certain features of current programming languages and a modified form of Church’s λ-notationâ€, and suggested using that as the basis for formal semantics. He regarded his formal description of ALGOL 60 as a “compiler†from ALGOL abstract syntax to λ-notation. 10 years later, denotational semantics was well established, and two denotational descriptions of ALGOL 60 had been produced as case studies: one in the VDM style developed at IBM-Vienna, the other in the continuations-based style adopted in Christopher Strachey’s Programming Research Group at Oxford. After recalling Landin’s approach, I’ll illustrate how it differs from denotational semantics, based on the ALGOL 60 descriptions. I’ll also present a recently developed component-based semantics for ALGOL 60, involving its translation to an open-ended collection of so-called fundamental constructs. I’ll assume familiarity with the main concepts of denotational semantics. Closing date for bookings is 8 December @ 5pm. No more bookings will be taken after this date. Declarative Interaction Design for Data VisualizationGrammar of Graphics (Vega) for declarative static semantics + FRP (Flapjax) for declarative temporal!
See video and UIST 2014 paper. For our own production code, we've been combining RxJS ~E-FRP with D3 charts. InterState: A Language and Environment for Expressing Interface BehaviorAn interesting paper by Oney, Myers, and Brandt in this year's UIST. Abstract:
wither formal methods?I sometimes get a bee in my bonnet to look for tools to do model driven design and the like. So, I found a list of verification and synthesis tools. The mind boggles. For little people such as myself, I wish there were a table somewhere that listed the range of features and then showed what each system did/not support. I want stuff that would help with application development: user interface and state machine (e.g. audio playback engine + ui controlling it) type modeling and code generation (and round tripping). Anybody know of such guidance for the laymen? |
Browse archives
Active forum topics |
Recent comments
8 weeks 6 days ago
9 weeks 6 hours ago
9 weeks 19 hours ago
9 weeks 1 day ago
9 weeks 4 days ago
9 weeks 4 days ago
9 weeks 5 days ago
9 weeks 6 days ago
9 weeks 6 days ago
9 weeks 6 days ago