HNHacker News
TopNewBestAskShowJobs

rafaelmartins

65 karma · joined May 29, 2014

submissionscomments
rafaelmartins··on Balde: a microframework to develop web applications in C
thanks for sharing your experience. I appreciate it
rafaelmartins··on Balde: a microframework to develop web applications in C
haha, no, it is a joke with "bucket" in brazilian portuguese, but its not the first time I see someone relating it with bald people ;)
rafaelmartins··on Balde: a microframework to develop web applications in C
hey, thanks for the comment, it is far away from being rude :)

blog posts were never the focus, they are mostly for myself, to remember how things work, as I don't work on the framework for some time, and need to have it fresh in mind to write proper docs. it may also help other people willing to help writing docs. also, whoever published balde website here in HN found it due to these blog posts, then they were worth already. :) and to be honest, I'd not publish the framework here in hacker news right now, I'd wait for documentation to be ready, but someone else couldn't wait, so...

but you're right. the focus now is writing documentation.

thanks

rafaelmartins··on Balde: a microframework to develop web applications in C
I love kcgi, but we have different focus. I may use it as FCGI layer for balde, though :)
rafaelmartins··on Balde: a microframework to develop web applications in C
I'd love to make balde BSD-licensed ( see https://github.com/balde/balde/wiki/Converting-from-LGPL-to-... ) but unfortunately I have to deal with GLib for now... :/
rafaelmartins··on Balde: a microframework to develop web applications in C
I'm just avoiding claims without evidence... unlike the guy who says that SCGI is slow ;)
rafaelmartins··on Balde: a microframework to develop web applications in C
of course. I'll just get some benchmark results published before doing such claim on the website. :)
rafaelmartins··on Balde: a microframework to develop web applications in C
as it is a microframework, it does not cares about such details, you can handle memory allocation by hand, or use memory pools provided by glib, create gobjects and use refcount, etc. It is up to you :)

Internally used memory should be free'd manually with the balde_app_free function. it encapsulates most of it for you.

rafaelmartins··on Balde: a microframework to develop web applications in C
yes, it lacks documentation, I started this blog post series to try to address this: https://rgm.io/post/balde-internals-part1-foundations/

if you have some specific question, feel free to ask

rafaelmartins··on Balde: a microframework to develop web applications in C
You are supposed to use SCGI in production. The embedded HTTPD is provided to help during development, so you don't need to setup SCGI in your local machine. I never did any serious testing on the HTTPD, but it was not developed with security and performance in mind.
rafaelmartins··on Balde: a microframework to develop web applications in C
Hi guys, I'm the author of this framework, and it seems that someone shared it here because I started this blog post series this weekend: https://rgm.io/post/balde-internals-part1-foundations/

This is why most of the documentation is marked as TODO, but the API docs are reasonably up-to-date.

If someone has interest on it or is willing to help, please let me know :)

EDIT:

simple url shortener example, using redis: https://gist.github.com/rafaelmartins/9f8392a8909e62820ae0

"complete" app, with templates and stuff: https://github.com/rafaelmartins/bluster

rafaelmartins··on Balde: A microframework for C based on GLib and bad intentions
the project just uses the very basic structures from GLib, then it is possible (and planned) to migrate out of it in the future.
rafaelmartins··on Balde: A microframework for C based on GLib and bad intentions
haha. exactly! :)