30 ms·
Take advantage of the ubiquity of php4+ and write languages that compile TO php... Maybe I am crazy but it's working well for me thus far! I should be releasing
by shaunxcode 18y ago
Take advantage of the ubiquity of php4+ and write languages that compile TO php... Maybe I am crazy but it's working well for me thus far! I should be releasing a full r5 scheme implementation soon.
- jrockway 18y agoWhile writing Scheme is probably better than writing PHP, how are you dealing with PHP's poor support for ... everything? I am really interested in taking a look at this code, especially your tail-call elimination algorithms and the continuations implementation.
- shaunxcode 18y agoOne of the interesting things about php is that it does NOT lack support for many of the cool paradigms and libraries it just has a very ugly way of showing it. Continuations really aren't that hard and are represented by a very simple class. As far as tail call elimination goes right now I am ignoring it (I know that means it is not technically r5) SAYING THAT I have an idea for reformatting such cases into an iterative form (sort of likes rubys redo) but it's on the pile labeled optimization.
- jamongkad 18y agoThat kind sounds like what the Haxe Project is doing now.
- shaunxcode 18y agoInteresting - my approach is to have the entire thing written in php so there is no incurred "cost" of having to install anything or compile from one framework to another.
- jamongkad 18y agoHang on you're writing a Scheme that compiles down to PHP?
- shaunxcode 18y agoprecisely. My ultimate (and totally attainable) goal is for the generated code to actually perform better than the "hand-written" php would for a given task. Regardless it's fun to go through the r5 spec piece by piece and fully digest it. quote and quasi quote + the macro system are clearly the most interesting pieces and I am striving to not get side tracked and start working on my own flavor of things thus why its nice to fall back on the spec as the initial goal/proof of concept. Are you interested in helping or just disgusted?
- jamongkad 18y agoHaha I have to admit I'm surprised and very interested at the same time. Email me at wrm932[at]gmail.com let's talk so more.
- shaunxcode 18y agosweet - ding you have mail.