Re: [OT] Perl to C Converter?
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 08/23/04
- Next message: Arthur J. O'Dwyer: "Re: [OT] Perl to C Converter?"
- Previous message: Alan Connor: "Re: [OT] Perl to C Converter?"
- Maybe in reply to: Alan Connor: "[OT] Perl to C Converter?"
- Next in thread: Alan Connor: "Re: [OT] Perl to C Converter?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 22 Aug 2004 22:19:50 GMT
On 22 Aug 2004 14:50:15 -0700, tigervamp <rob_gamble99@hotmail.com> wrote:
>
>
> Alan Connor <zzzzzz@xxx.yyy> wrote in message news:<Br5Wc.30453$9Y6.14050@newsread1.news.pas.earthlink.net>...
>> On 22 Aug 2004 09:50:52 -0700, nobull@mail.com <nobull@mail.com> wrote:
>> >
>> >
>> > "Profetas" <xuxu_18@yahoo.com> wrote in message news:<e708e7c6fd4f986d7ec41043db3c7ef3@localhost.talkaboutprogramming.com>...
>> >> > Alan Connor wrote:
>> >> >>
>> >> >> There's this utility called html2ps that's written in perl, but
>> >> >> the box I want to run it on doesn't have room for perl. It does
>> >> >> have room for a C compiler.
>
> If you just want to get an html to postscript converter on your
> machine, you can download one of many such C programs.
That's very good news.
> <OT> It is
> also possible to convert a perl program into a native executable using
> freely available experimental software or the Perl2Exe software
> provided by indigoSTAR (www.indigostar.com). You could then run this
> converted Perl program on a machibe that does not have Perl </OT>
That must be what Joe Smith was talking about.
>
>> >> >> Be nice if I could find a tool that converted perl to C.
>> >> >
>> >> > The tool exists, its called "a programmer who knows perl and C".
>> >>
>> >> I have done some research on this topic and I couldn't find any
>> >
>> > LOL!
>>
>> There are utilities for converting one programming language to another.
>>
>> Lots of them. For major and minor languages.
>
> Not sure what you mean by major and minor languages.
>
>> (The very program I am referring to above, html2ps, is
>> such a program. HTML is a language understood by webbrowsers, and PS is
>> a language understood by printers.)
>> Why not this one?
>
><OT> I think there is a big difference here. First, html and ps are
> not programming languages, they are markup languages used to describe
> how something should be presented.
They are still programming languages of a sort. And PS is considerably
more complex than HTML, because it contains all sorts of instructions
to the printer.
> Additionally, most of the time,
> html and ps documents are not read or written by hand, they are
> created and presented with tools that understand the language which is
> why I think that tools that can convert between them are more useful
> (since there probably aren't many people that can convert to or from
> postscript by hand). A tool to convert between programming languages,
> especially between something like C and Perl, would be much more
> difficult to implement and would probably require some knowledge of
> both languages just to use in most cases anyway. I also don't think
> the demand is there. </OT>
>
What a printer can deal with is much simpler HTML than a browser can
deal with, obviously.
This is simple to write by hand. I do it all the time.
It seems to me that the first step in such a program would be to convert
the HTML source to HTML 2.0, (or thereabouts) and then to convert it to PS.
By-the-way: Keith Thompson <kst-u@mib.org> says that a perl2C program exists....
(and is arrogant enough to think I will take his word for it even though
it came packaged in another of the attacks the creep loves to launch.
<snicker>)
>> Why couldn't that programmer that knows both languages sit down and
>> write a perl2C converter in C?
>>
>> The answer is, of course, that they could.
>>
>> Have they?
>
><OT> Not that I am aware of, and as I said above, it probably wouldn't
> be an seamless solution. It would also probably involve having Perl
> installed on the machine doing the conversion. I also don't think
> that many people who know both languages are very interested in
> creating such a tool (and apparently they aren't). Perl is more of a
> high-level scripting language and most people that use it don't really
> have an interest in having their programs converted to C. Alot of
> people using Perl have migrated from C or have a dislike for C as well
></OT>
I use bash for a scripting language. Works fine.
>
>> That's what I am trying to find out.
>>
>> AC
>
> Rob Gamble
Thanks Rob.
AC
- Next message: Arthur J. O'Dwyer: "Re: [OT] Perl to C Converter?"
- Previous message: Alan Connor: "Re: [OT] Perl to C Converter?"
- Maybe in reply to: Alan Connor: "[OT] Perl to C Converter?"
- Next in thread: Alan Connor: "Re: [OT] Perl to C Converter?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|