Is there a Haskell combinator library for building PHP?

A place to discuss the implementation and style of computer programs.

Moderators: phlip, Moderators General, Prelates

Is there a Haskell combinator library for building PHP?

Postby WarDaft » Thu May 10, 2012 3:53 am UTC

Or perhaps even a more general combinator library that could be adapted to this. Basically, I need to end up with php code, but I don't have to actually write it (it's not an assignment or anything.)
All Shadow priest spells that deal Fire damage now appear green.
Big freaky cereal boxes of death.
User avatar
WarDaft
 
Posts: 1538
Joined: Thu Jul 30, 2009 3:16 pm UTC

Re: Is there a Haskell combinator library for building PHP?

Postby headprogrammingczar » Thu May 10, 2012 10:37 am UTC

<quintopia> You're not crazy. you're the goddamn headprogrammingspock!
<Weeks> You're the goddamn headprogrammingspock!
<Cheese> I love you
User avatar
headprogrammingczar
 
Posts: 2953
Joined: Mon Oct 22, 2007 5:28 pm UTC
Location: Beaming you up

Re: Is there a Haskell combinator library for building PHP?

Postby hotaru » Thu May 10, 2012 4:45 pm UTC

maybe PHP-CGI-Wrapper and cgi would work? it won't give you php code, but it might let you run haskell code on a server that just has php...
Code: Select all
#include <stdio.h>

int main()
{
 struct { unsigned a:3, b:3, c:2; } n = {0};
  do do printf("%hhu\n", *&n);
  while(!(n.a-- && !++n.b));
  while(++n.c);
  return 0; } 
User avatar
hotaru
 
Posts: 931
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Is there a Haskell combinator library for building PHP?

Postby WarDaft » Fri May 11, 2012 9:15 pm UTC

It's failing quietly. No idea what it's doing. Thanks for the suggestion though.
All Shadow priest spells that deal Fire damage now appear green.
Big freaky cereal boxes of death.
User avatar
WarDaft
 
Posts: 1538
Joined: Thu Jul 30, 2009 3:16 pm UTC

Re: Is there a Haskell combinator library for building PHP?

Postby hotaru » Sat May 12, 2012 12:57 am UTC

WarDaft wrote:It's failing quietly. No idea what it's doing. Thanks for the suggestion though.

did you check the server's error log?
Code: Select all
#include <stdio.h>

int main()
{
 struct { unsigned a:3, b:3, c:2; } n = {0};
  do do printf("%hhu\n", *&n);
  while(!(n.a-- && !++n.b));
  while(++n.c);
  return 0; } 
User avatar
hotaru
 
Posts: 931
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Is there a Haskell combinator library for building PHP?

Postby WarDaft » Sat May 12, 2012 2:55 am UTC

There's no entry for it. It's not a very good server. Also I have another server that I can just run Haskell on, so I don't actually need this for that. Basically, I need to give someone a website built in PHP, so that they can move to a larger developer base later if they need it, without drastically restricting who they can get just because I happen to like Haskell better right now.
All Shadow priest spells that deal Fire damage now appear green.
Big freaky cereal boxes of death.
User avatar
WarDaft
 
Posts: 1538
Joined: Thu Jul 30, 2009 3:16 pm UTC


Return to Coding

Who is online

Users browsing this forum: Rysto and 8 guests