blog.coralbits.com
Coralbits: C++ Cron Class Implementation
http://blog.coralbits.com/2014/03/c-cron-class-implementation.html
Coralbits developments and programming ideas-. C Cron Class Implementation. I added a basic Cron class. User can add a cron-like schedule specification and a std: function to execute, and it will wait until next operation needs to be executed, and execute it. It involves many problems, but on this post I will talk just about how to know how many seconds the system has to wait until next cron job. Example 1: Every second on every tuesday on 2015. Example 2: Everyday at 2am. Method is where it blocks to wa...
blog.coralbits.com
Coralbits: Introducing underscore.hpp
http://blog.coralbits.com/2014/02/introducing-underscorehpp.html
Coralbits developments and programming ideas-. Add some functional code to your C! Using underscore.hpp can save programming time and add memory requirements to your C projects. It allows easy list, string and file manipulation, using functional idioms. Why should C be more difficult to program than Python, curly braces and syntax apart. Granted with Python we have list comprehensions, generators, and generator comprehension. But also we can just split a string, trim it and slice it. Std: string: npos) {...
blog.coralbits.com
Coralbits: Onion Python Bindings: Fastest python HTTP server ever
http://blog.coralbits.com/2014/03/onion-python-bindings-fastest-python.html
Coralbits developments and programming ideas-. Onion Python Bindings: Fastest python HTTP server ever. Onion python bindings are blazing fast! In this version it uses the ctypes to provide the bindings, with the hope to make it usable with pypy (although it does not work right now). A simple web server. Response.write html safe( 'path is. Request.fullpath() ) #response.write html safe( json.dumps( request.query().copy() ) ) def main(): o=Onion(O POOL) urls=o.root url() urls.ad...The first two lines are a...
blog.coralbits.com
Coralbits: Onion C++ Bindings best practices / patterns. pt. 1.
http://blog.coralbits.com/2014/04/onion-c-bindings-best-practices.html
Coralbits developments and programming ideas-. Onion C Bindings best practices / patterns. pt. 1. Normally not even I use the C bindings for onion. C is a great language to focus on algorithms and details, but for web development its too DIY. Normally to use Onion I use C . The bindings are not 100% complete, but enough to make performant (space, size and speed) servers. As I use it more I will try to describe the best practices I can find. C handler to use the C bindings. Once we have this knowledge tha...
blog.coralbits.com
Coralbits: Benchmarking onion
http://blog.coralbits.com/2013/03/benchmarking-onion.html
Coralbits developments and programming ideas-. Today a thought provoking benchmark was published at Hacker News: http:/ www.techempower.com/blog/2013/03/28/framework-benchmarks/. It compares several web frameworks and how they perform. How well does onion perform? I did a fast test program with onion. To check how good is the performance compared to the other frameworks. The code is at https:/ gist.github.com/davidmoreno/5264730. Instructions to compile and execute the test are on the gist itself. As you...
github.com
davidmoreno (David Moreno Montero) · GitHub
https://github.com/davidmoreno
Madrid (Spain) and London(UK). X64;moreno@coralbits.com. Http:/ www.coralbits.com. Jul 4, 2010. C library to create simple HTTP servers and Web Applications. C underscore.js inspired functional list library. A minimal testing server, jenkins -like, but very light. Graphical programming interface based on UML and LUA scripting. Git-style subcommands done right. 992 contributions in the last year. Summary of pull requests, issues opened, and commits. Learn how we count contributions. Aug 17 Aug 21.
blog.coralbits.com
Coralbits: Twelve lines C++ INI parser
http://blog.coralbits.com/2014/03/twelve-lines-c-ini-parser.html
Coralbits developments and programming ideas-. Twelve lines C INI parser. Std: map std: string, std: map std: string,std: string data; std: string group; for(const auto &line: underscore: file(inifile) { auto l=line.split('#',true)[0]; if (l.empty() continue; if (l.startswith("[") & l.endswith("]") group=l.slice(1,-2); else{ auto p=l.split('=',true); data[group][p[0].strip()]=l.slice(p[0].length() 1,-1).strip(); } }. The power of underscore.hpp. Subscribe to: Post Comments (Atom). Tweets por @dmoreno cb.
blog.coralbits.com
Coralbits: Dissecting onion FrameworkBench's implementation
http://blog.coralbits.com/2013/05/dissecting-onion-frameworkbenchs.html
Coralbits developments and programming ideas-. Dissecting onion FrameworkBench's implementation. In this article I will dissect the onion benchmark as used on the. Benchmark suite. The version I'm dissecting is at. Some bugs were found. In the benchmark code. When writing this article and. Are commented as they are. He version used for the benchmark. Bugs included, with the exception of the new fortunes test,. To be used at FrameworkBench round 5, yet to be released. Onion new(O POOL);. Options 1 and 3 a...