Re:PH7 – An Embedded Implementation of PHP (C Library)
by Kiro on Wednesday February 19, 2014 @01:29PM
(#7265184)
It's still great for embedded devices when your main language is PHP.
[ Parent
| on HN ]
Re:PH7 – An Embedded Implementation of PHP (C Library)
by camus2 on Wednesday February 19, 2014 @01:42PM
(#7265283)
> when your main language is PHP.
There is your problem.If you cant learn anything else pretty sure you havent the skills to program any "embedded device".
Re:PH7 – An Embedded Implementation of PHP (C Library)
by ANTSANTS on Wednesday February 19, 2014 @01:58PM
(#7265394)
I'd normally agree, but "embedded device" in this situation means "network router" (which are reasonably powerful computers in their own rights), and the application is not mission critical with hard deadlines and strict memory requirements, but just a web interface that is rarely active and can take as long as it wants running in the background. It doesn't seem unreasonable to me to set aside some portion of memory for the web interface, give the PH7 process low priority, and hire some PHP web devs that actually know what they're doing to make the interface for them. More sense than letting the firmware developers hack something together in C anyway.
Re:PH7 – An Embedded Implementation of PHP (C Library)
by geon on Wednesday February 19, 2014 @05:18PM
(#7266732)
I'd say the better way would be to develop the entire GUI with static HTML + JS files talking to the embedded device through a REST-ish interface.
That way you can get a clean separation of the front and back ends, and the web developers get to work with exactly the tech they are used to.
Re:PH7 – An Embedded Implementation of PHP (C Library)
by ANTSANTS on Wednesday February 19, 2014 @06:06PM
(#7267232)
I'm not a web developer, but that sounds pretty sane to me. However, the important part of their decision, I'm guessing, was not so much the PHP part, but the "get people who actually know about the web to do this for us." Someone has to build the site either way, and I'm guessing the embedded engineers they had working on it didn't really know how to go about that.
EDIT: Another possibility is that they already had PHP devs working on their corporate site or whatever, and they wanted to use them instead of hiring another team.
Re:PH7 – An Embedded Implementation of PHP (C Library)
by donut2d on Wednesday February 19, 2014 @07:29PM
(#7267817)
I am a web developer and the static HTML + JS with a RESTful API sounds excellent.
Re:PH7 – An Embedded Implementation of PHP (C Library)
by nly on Wednesday February 19, 2014 @10:19PM
(#7268604)
This is exactly what LuCI does on OpenWRT, except they use Lua, which is a sane language designed for embedded environments.
Re:PH7 – An Embedded Implementation of PHP (C Library)
by a-nom-a-ly on Wednesday February 19, 2014 @02:29PM
(#7265636)
> If you cant learn anything else pretty sure you havent the skills to program any "embedded device".
How did you arrive at this conclusion?
Re:PH7 – An Embedded Implementation of PHP (C Library)
by TheZenPsycho on Wednesday February 19, 2014 @04:01PM
(#7266193)
it's obvious isn't it? it's like "if you can't learn calculous I'm pretty sure you haven't the skills to do rocket propulsion calculations"
Someone with only one language or a "main language" is someone who just simply has a lower level of skill than is needed for embedded programming- which requires lots of different skills and languages. Being able to learn more than one thing is a prerequisite.
Re:PH7 – An Embedded Implementation of PHP (C Library)
by Kiro on Thursday February 20, 2014 @06:38AM
(#7270254)
So if you work at company with a PHP stack (meaning your main language will obviously be PHP) you can't learn anything else?
Re:PH7 – An Embedded Implementation of PHP (C Library)
by TheZenPsycho on Thursday February 20, 2014 @04:16PM
(#7273661)
if your natural response to something like embedded php is "Oh how convenient, I can use my main language!" then that would imply the answer is "yes", since, if you do know other languages your natural impulse would be to use pretty much any other language if you have a choice.
Re:PH7 – An Embedded Implementation of PHP (C Library)
by a-nom-a-ly on Saturday February 22, 2014 @02:14PM
(#7283172)
Well, these arguments of yours aren't the most ridiculous I've ever heard... I'll give you that much.