Get Your Moto On
corz writes "Has PHP got you down? Are you tired of writing those Perl CGI scripts? Why not check out The Moto Programming Language. Released under the GPL, Moto allows for two modes of execution: interpreted and compiled. Moto is different from the rest of the field in that you can develop a site using interpreted mode for quick testing, then when the site is ready for production you can compile the it into an Apache DSO and serve it straight from memory. If you are looking to learn a new language, or would like to help with development, consider giving Moto a chance. Go download it now."
but i can use C or C++ and simply disable optimization during testing!
Does it work with .NET?
Otherwise I can't use it.
If this functionality really doesn't exist in Python/Perl/whatever, I wish "they"'d start working on it instead of inventing a completely new language to learn, which is probably not as good as what's already out there.
If it does - I'm sure somebody will point out how to do this with their pet language.
$case('>')
:)
I suppose there is a good idea behind having a newline prefix rather than a postfix but I suspect it is to make the parsing easier.
Extra cruft life that is tiring on the eyes.
The languages I know (programming or otherwise) have postfixes ; or . or even just a \n and when one breaks this convention it is harder work to cope with it.
But that aside, strength to their arm.
To reduce the compile/debug cycle time but maintain the execution speed is a worthy ambition. Plenty of the world is prepared to sacrifice execution time in favour of a reduced cycle time.
Inperpreted languages have been steadliy creeping in this direction. Perl & Python's parrot springs to mind. Even php maintains 'object' files.
One of the downfalls of interpreted web languages is the programmers approach. All over the web are sites that use the same php script to produce *exactly* the same html page over and over again and yet the data that makes up these pages may only change once a day. Certainly, on the most part, pages have more reads than writes (If i use slashdot as an example, it was said that the ration of people who post to people who read is 1:3). On my site I write out my php produce html to local cache files and if nothing has changed I use them. A bit of javascript takes care of rotating your banners.
All programmers should be forced to write code for low memory slow cpu devices long before they are allowed on anything better than a 486
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
It will be interseting to see if moto use overtakes php / perl-CGI
Yet Another HTML Pre-Processor.
If HTML needs so much pre-processing, perhaps it is time to standardize a new HTML, instead of writing all these incompatible pre-processors for it.
Of course, that's just my humble opinion...
-- We live in a world where lemonade is artificial and soap has real lemon.
The idea of Moto as both a compiled and interpreted language is noble (although not original; most Common LISP and Smalltalk implementations have both interpreted and compiled environments), but I urge them to reconsider their misguided language design strategy. They don't even need to come up with their own language; building a native code compiler for an established language like Python or Ruby would be a much greater boon to the open-source community at large.
Wanna see some src of his page? Just change the url to view the files in the /moto dir.
example: http://projectmoto.org/index.moto is the page, the source is http://projectmoto.org/moto/index.moto. I am not sure if this is by design or by accident, altho this problem does not seem to exist on his other sites.
Lets see how Moto handles a slashdotting!
- A
Get your motto running... set up on apache... looking for an exploit...
hehe bad joke
Moto allows for two modes of execution: interpreted and compiled. Moto is different from the rest of the field in that you can develop a site using interpreted mode for quick testing, then when the site is ready for production you can compile the it into an Apache DSO and serve it straight from memory...
This is somewhat analogous to using Perl and mod_perl. If that's the only reason to use Moto, I'd stick with Perl instead.
-Bill
SlashSig Karma: Excellent (mostly affected by moderatio
Rather than spending time creating a PHP alternative, its a pity that some of the development effort hasn't been put into making PHP more of a stable and standard language.
I like PHP, its easy to use (given previous experience of other languages) and it allows for "fairly" rapid development. However, it really needs some fixing.
The error output is hit and miss, the function argument order is non-intuative and the documentation is lacking. The PHP API really needs freezing to allow the language to become stable and to sort some of the fundamental bugs out.
PHP is RAPIDLY becoming bloat-ware, and its a shame - cos it's nice.
It takes me back to inline assembler in BBC Basic
[
lda #01;
]
is that right, I cant quite remember? I've got two of them behind me. I want to crank them up and do something with the 1Mhz external parallel bus.
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
It's today's daily Slashvertisement! And to think I thought they were joking...
I still don't get what Moto has that other languages don't. If it's performance you're talking about, then why not just write a Python compiler? Honestly, it's not *that* hard, especially compared to writing a new language. And more importantly, Python is the most flexible language ever created. You can eschew brackets and semicolons, or you can use them (yes, the new Python supports semis). You can program in traditional imperative style, or more powerful functional style; most useful functional features are already built into Python, and the Xoltar toolkit provides the rest. And Python Server Pages, well, rule.
Moto could theoretically become a niche language, a la Ruby. But it's not going to overtake Perl and Python - good.
Maybe ad development is eating into site development time... hehe As I click this article, what do I see?
/adi/N815.slashdot/B1023805.2;sz=336x280;ord=10323 2842103232842 was not found on this server.
Not Found
The requested URL
Apache/1.3.26 Server at 127.0.0.1 Port 80
- I am made of meat.
A bit off topic of the actual news, but related to many comments....
If you are looking to compile your PHP (to not make source viewable, make it faster, etc etc) check out Zend's SafeGuard Suite...
I never understood the embedding approach. It's just wrong IMO. Programmers should write code and web designers do the HTML, and both things kept as separated as possible. What I do is having HTML templates like this:
<html>
There are currently $user_count users online
</html>
This way, whoever does the HTML has to deal with an absolute minimum of the programming part, and I can just insert those placeholders where I need. Then the Perl script replaces them by the actual values. Of course this isn't the fastest approach, but there's not so much data that changes every second, so with some caching it should be just as fast as embedded code.
Ridiculous and naive regurgitation of pedestrian software engineering principles without the qualification of experience.
I have no idea what you people are complaining about with this new programming language. It's fucking GPLed you hypocritical ingrates. What more do you want? If you think the code has worthwhile ideas, knock yourself out improving other GPL software.
Ok, I'll agree that the usual apprach to PHP and the approach taught in the tutorials and the various programming php books does mix them together but there's nothing that forces that approach.
:
echo $h->as_html():
You won't see it in any of my sites.
You'll see code more like
<?
$h = new HTML();
$h->load_from_template('homepage.txt');
?>
If you want to mix presentation and data that's your business.
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
I really wish people who have never used ASP would stop slagging it. It's a language. It has shortcomings and strengths, and it's good for some things and not good for others. Attacking it unilaterally because it is not the holy untouchable grail of Perl (feh!) is a waste of time.
I use ASP on a site that has several hundred interlocking pages, and because I took the time to break everything out intelligently and make the code reuseable across different parts of the site, things are very manageable and upgradeable. If you approach ASP while KNOWING WHAT THE HELL YOU'RE DOING, you can do good things. If you're an idiot, it'll be shit.
A tool is only as good as you. Stop bitching because someone decided to invent a language that might be good for something. ASP is not perfect, but it works fine for what I do and I like it just fine.
It is a technology. Even I consider myself pretty partial to the Microsoft platforms at times, but this comment is just going too far. VBScript and JScript are languages, Active Server Pages is not. Thank god we have C# and real Visual Basic compiled code now instead.