Phalanger – the PHP compiler for .NET
-
Actually, you can probably use PHP with it too, if you can find a suitable compiler toolchain
remenbered me of this:
Phalanger allows you to execute PHP scripts right inside a .NET language. Enhance your C# code with functionality written in PHP.
why someone would do something like that? why?
-
>Enhance your C# code with functionality written in PHP.
How low does your opinion of C# have to be to think PHP will enhance it?
-
why someone would do something like that? why?
Either because they're the sort of dillusional fool who thinks PHP is better than it is, or for no other reason because it's possible.
-
Do you get the PHP language with the relatively-sane .NET class library? If so, it would be an improvement over normal PHP. Not an improvement over C# unless you're a deranged PHP developer.
-
Looks like it, yeah.
-
Is there a Ruby version? Maybe we can "enhance" Discourse even further?
-
IronRuby was a thing; no idea if it still is
-
-
-
-
This would be useful, actually. Recompiling WordPress (or something) and distributing it in the form of an IIS app would probably solve hundreds of security problems with it. It'd run a shitload faster, too.
If it worked with a project that large and complex.
Which it almost certainly does not.
EDIT: they claim they've gottten PHPBB, MediaWiki, and WordPress running on it: http://wiki.php-compiler.net/Compatibility/Applications
Huh.
-
Recompiling WordPress (or something) and distributing it in the form of an IIS app would probably solve hundreds of security problems with it.
And open up hundreds of others
-
This would be useful, actually
It could also give you a transition path to C#, since you could (presumably) replace parts of the code and still be able to use the old stuff.
-
It looks like you'd have to do it one file at a time, due to the way they treat #includes, but yeah.
-
why someone would do something like that? why?
that's for someone who can write
[code]using System;
class imaderp
{
public static void Main(String[] args)
{
$PHP GOES HERE$
return 0;
}
}
[/code][and thusly claim he knows C#.
-
-
It could also give you a transition path to C#, since you could (presumably) replace parts of the code and still be able to use the old stuff.
That... gives me an idea.
So... how's Mono on Apache doing these days? It might be time for me to join the dark side and start learning C#...
-
Either because they're the sort of dillusional fool who thinks PHP is better than it is, or for no other reason because it's possible.
I would link a picture of dill pickles but I can't right now. It'd be delusional to think that I could make this funny somehow
-
-
I should flag myself,they are gherkins damnit
-
Looks spelled correctly to me.
-
-
-
If there's a whoosh here, it's so far above my head I didn't even hear it go over.
-
If there's a whoosh here, it's so far above my head I didn't even hear it go over.
That seems pretty definitive, which is nice because it means one post spawned two different types of flags for two different people.
-
one post spawned two different types of flags for two different people.
The gift that keeps on giving.
accordingly, post confirmation.
-
I did. One for you and one for @mott555
-
Where did I gain one?
I'm not disagreeing per se, would just like to know.
-
Where did I gain one?
The innermost-quoted post where you mentioned flagging.
I like to think that there's more people flagging people here because someone else said "flagged for x" when that last person didn't actually flag, than people who flag in other circumstances, but it's probably not the case.
-
why someone would do something like that? why?
Well. My platform at work has a few scriptable spots. We use a library that executes Javascript in the .Net object context (you can filter for specific namespace and class availability, so it's not a gaping code injection point).
This thing seems to be two related but different things screwed up into one. The first is the runtime interpreter, like the JS thing I described. The second is the "compiler", which I suspect probably just wraps the runtime interpreter around the PHP code blob, rather than actually building PHP into IL.
-
The innermost-quoted post where you mentioned flagging.
This one?
http://what.thedailywtf.com/t/phalanger-the-php-compiler-for-net/7622/19?u=loopback0I'm still confused but I'll chalk that up to lack of sleep and excess of beer. Any flags clearly earned.
-
No, I flagged for spellar the post where you spellared delusion wrong, or whichever word it was that was similar to delusion. That was a nice touch, btw.
-
Ohhhhh.
I thought we flagged the person who pointed it out, hence the name of the badge.Have I been misflagging all this time?!
-
This would be useful, actually. Recompiling WordPress (or something) and distributing it in the form of an IIS app would probably solve hundreds of security problems with it. It'd run a shitload faster, too.
Sadly(?) I'm the architect of a multiple-website WordPress instance that serves its pages in sub tenths of a second from [what I consider to be] a [particularly terrible] shared hosting provider. It's actually not that hard to make WordPress serve pages quickly. You just have to do a lot of testing because most plugins are shit and you're better off stealing an MIT licensed one and rewriting it to not suck monkey balls.
-
Have I been misflagging all this time?!
if you have then i surely have just retroactively earned like eighty spellaring badges.
-
It's actually not that hard to make WordPress serve pages quickly
Yeah, install WP Super Cache and serve cached versions always XD
-
if you have then i surely have just retroactively earned like eighty spellaring badges.
Huh. Apparently, on closely reading the badge description, it's the pendantry after a bad spelling that you flag for. Perhaps I have been doing it wrong all this time.
-
Yeah, install WP Super Cache and serve cached versions always XD
That plus ajax-ifying the comment list.
-
Perhaps I have been doing it wrong all this time.
This might be the case.
Filed under: Phew, not me this time
-
This might be the case.
Quick! Everyone flag me for http://what.thedailywtf.com/badges/129/i-m-a-special-snowflake
-
-
I thought we flagged the person who pointed it out, hence the name of the badge.
You do. It's in the pendantry group - it's awarded (when we can be arsed, and for the more egregious ones - it otherwise happens far too frequently) for pointing out the problem - not being the source of it.
Perhaps I have been doing it wrong all this time.
Ò_o. Ya think?
And to those who've flagged for Snowflake - that's not really one of the ones you can really nominate.
Or ask for.
-
And to those who've flagged for Snowflake - that's not really one of the ones you can really nominate.
So how does one earn one of those? I'm guessing they're bestowed by an admin's will?
-
You do.
Phew.
those who've flagged for Snowflake - that's not really one of the ones you can really nominate.
-
You do. It's in the pendantry group - it's awarded (when we can be arsed, and for the more egregious ones - it otherwise happens far too frequently) for pointing out the problem - not being the source of it.
Well shit. I've been doing that backwards forever.
-
-
And to those who've flagged for Snowflake
Oh boy. How many people did?
that's not really one of the ones you can really nominate.
Or ask for.
I believe if you check, you'll see that I didn't actually ask for it, as such.
-
I believe if you check, you'll see that I didn't actually ask for it, as such.
Sophistry.
-
-
No, I really didn't...