Is it possible to use Lua with Google App Engine? I recognize that there will be a lot of Java glue, but I would like to use Lua for most of the logic.
It might be possible with a port of Lua such as Kahlua or Jill (Lua implemented in Java). The Lua Users Wiki page on Lua Implementations does not show any ports written in Python.
But you wouldn't be able to use "vanilla" Lua because that is written in C; as you're probably aware, GAE only allows Java and Python code.
I haven't used it, but Lunatic Python purports to be a way to run Lua in Python or vice versa. If that's true, then you could use their tools to create a Lua interpreter running in a Python app running on Google App Engine. Sounds promising.
Related
Iam working yet with C program on STM32 microproc, what contains a web server, accesible by the user via web gui(HTML and javascript files). The web gui part became more complex, and it needs higher level operations.
The questions: is it possible to embed a node.js program with some node modules? Does it work with the C webserver, or the node program have to make the webserver, and communicate with the C program?
Or there is an other solution what is better in this case?
This question maybe seems dumb, but i didnt find documentation about it.
After a research I found some solutions:
Node.js for Embedded Systems
The book can then guide you to jerryscript which:
is a lightweight JavaScript engine for resource-constrained devices
such as microcontrollers
You can find there that it's also used with the STM32-Discovery board.
Node.js on clientside
This article guides to Browserify which allows to run node on clientside.
Just make it simpler
You could use HTTPD implementation shipped with LwIP. There is a script called makefsdata which allows to convert html, js, css ... files into c-arrays. This implementation also supports POST method.
I'd like to generate some reports from my python webapp - I set it up locally via PyPandoc.
However, I can't find PyPandoc on the list of available libraries. I tried vendoring it into my libs folder and using pypandoc's pypandoc.pandoc_download to download the pandoc binary, but that only works for 64-bit processors apparently.
Is there a way to request 64-bit environment? Or some way to get pandoc installed on the machine?
In a standard environment GAE app you neet to meet the python sandbox restrictions, one of which is using pure python code, which pandoc doesn't meet. From Pure Python:
All code for the Python runtime environment must be pure Python, and
not include any C extensions or other code that must be compiled.
You might be able to use it in a flexible environment GAE app, eventually using a custom environment, but I'm not 100% sure - I didn't use it yet.
I want to build a restful (CoAP) web service which can execute c code to handle events.
Therefore I'm searching a lib which provides me with a rest api in C and cgi similar to
restcgi which is sadly in c++ or CGI-Simple which is in perl.
The server is running on a embedded device so it has very limited resources and the services will be accessed only by machines.
Thank you very much.
You may be interested in Raphters framework and its architecture. It's pretty small, so you can examine the code, the framework itself can be used as a FastCGI backend for some web server, e.g. for nginx.
I have recently came across one quite interesting CoAP library which uses libevent. You will aslo want to check Klone embeddable HTTP server by the same guys at KoanLogic. I have previously looked at libcoap, but it didn't find it very usable at the time. You may also wish to try using either libuv, libev or libevent. But I guess it's probably gonna be much easier to adopt some of the code from WT repository and get your CoAP/HTTP server done.
I want to use Google Translate as part of a C code I am writing. I understand that Google Translate is used with JavaScript. How do I get it work as part of my C code?
How do I make a connection from my C code to the Google site?
You can use the Google Translate API with cURL.
First make sure you're not violating their terms of service. Just because it's freely available on the web doesn't mean it's freely available to embed into applications.
Then look into a library that lets you "simulate" web interactions from C, such as cURL.
we have to work with RL-RTX (RTOS) in our project.in that we have to do some web pages.we have experience in building web pages in linux using "go-ahead webserver".
can we code in c language and store that executable in .cgi extension and call from the browser?
Yes, you can. Almost all web servers can be configured to serve cgi. You could use something like libcgi to handle the interface in your c code. Still, it would probably be more efficient to use some kind of scripting language rather than c.