Does jruby compile down to the same bytecode as a java app? can it be obfuscated then? - obfuscation

If jruby can run on tomcat, I'm guessing it compiles down to the same bytecode that a regular java web app would?
Does this mean I can use existing obfuscation tools that exist in the java market and use it on a jruby (ruby on rails) web app?

Yes, it can compile down to java bytecode (AOT-Compile). Which means you can use an obfuscation tool.
However you can obviously obfuscate only non-public members of your classes, so the potential for obfuscation in a web-application is usually not particulary high.

Related

Is it possible to use pandoc from google app engine?

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.

Can I create a GAE app that runs an uploaded file through a couple binaries and sends it back?

I have a Python script that I'd like to share with some colleagues, however they don't have Python installed (or at least not the right version) as well as some additional scientific software.
I was curious if I could use this fairly basic script which gives a file to one binary in my scientific package, massages the data in the script, then provides it to another binary as an opportunity to learn GAE. Am I mistaken, however, because I couldn't run these binaries on GAE, precluding the whole thing?
If I'm understanding your question right, you have a bunch of binaries that do some scientific processing, and a python script that takes input, and routes it through the science programs.
If your science binaries are jar files, it may be doable with GAE. Although you can't run python and Java on the same instance, there are ways to work around it with a python instance and a separate Java instance.
If your binaries are native code, then no, can't be done with GAE. There's other providers like AWS that give you access to the OS on the VM. You can probably do it there.

I'm searching a cgi lib in C to build a restful web service

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.

Lua on Google App Engine

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.

c code for web pages in rl-rtx

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.

Resources