Dear community,

I need to discuss the following w.r.t the Benchmark Performance Database 
project.

1. Choice of language for the web framework : php or Python.

I am comfortable with both the languages and could build the framework 
in either of them. The back-end structure of the proposed project[1] 
consists of a web API and a few scripts which are used to either parse 
the logs, sync, update the database or move the logs where ever needed. 
I could write all the scripts in php and run them via the command line 
but though php scripts could be run via the command line, php is not 
considered a robust "command line" language. I would prefer Python for 
scripting purposes and could build the web API service using python. For 
the sake of rapid development, I could use a micro-web framework like 
Bottle[4]. If the web service were to be built using php, the Python 
scripts could be invoked via the Apache thrift framework[3] (since 
invoking the system scripts via the naive methods like shell_exec is not 
recommended and is disabled in safe mode). Text parsing in python is 
pretty good for its amazing support to handle text and its re library(I 
would like not to use Perl[5]).

The front-end however shall use php as it has to be written as a 
mediawiki plugin(The exact details could be discussed later as per the 
roadmap[6] mentioned) and it shall be decoupled from the web API service.

2. Data to be captured :

The data that benchmark script currently captures includes machine 
description, version of brlcad installed, time stamps, run time, default 
values needed to run the benchmark, system info, processor info along 
with the performance metrics of the run. Along with that Sean wanted the 
tool to capture the compilation flags, the version of glibc used etc. I 
shall send in a mail *soon* discussing the db design to improve the db 
schema mentioned in the proposal[1]. I would also want to know what 
important information that you'd want me to capture.

References:
[1] GSoC Proposal: 
http://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/suryajith/8002
[2] Project Diagram:  http://i.imgur.com/fnBwF.png
[3] Bottle Homepage: http://bottlepy.org/docs/dev/
[4] Apache thrift homepage: http://thrift.apache.org/
[5] LJ article on Perl vs Python by Eric Raymond: 
http://www.linuxjournal.com/article/3882 (Though very old still very 
relevant)
[6] Project roadmap: http://brlcad.org/wiki/User:Stattrav/GSoC2012#Roadmap

Thanks,

-- 
Regards,
Suryajith Chillara.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to