← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 200
  1. Right after the BUILD conference, Microsoft released the source code for the first version of GW-BASIC for the MS-DOS under the MIT license.

  2. A few years back, I wrote a tiny JSON library for the Zephyr OS; it focused mostly in things that are important for an embedded real-time operating system: code size, type-safety, and predictability (both for memory and CPU time usage).

  3. Photo: snowy-tree.jpg

  4. Photo: cafe-window.jpg

  5. Around five years ago, I wrote a blog post that went though the life-cycle of a HTTP request, as seen by my toy web server, Lwan.

  6. Photo: yash.jpg

  7. One of the decisions I took early on while writing Lwan was to only support Linux, and think about portability later; this decision was influenced by the way the OpenBSD project approaches portability.

  8. Talking about uncommon programming tricks the other day, the subject of switching on strings in C appeared on the table.

  9. Coreboot & LUKS

    My laptop is a 6-year old ThinkPad X220.

  10. Parsing JSON

    There are many libraries out there to parse JSON files.

  11. Infect to Protect

    I’m not one to jump on each and every bandwagon I see.

  12. A pretty common mistake that happens when programming things in C is to allocate less memory than necessary to hold a structure:

  13. I've been thinking for a while on how to reduce the overhead in Lwan's string buffer, when the strings are small.

  14. When learning a new programming language, I tend to write two things with it: a language interpreter (usually a FORTH-like language or Brainfuck if I'm feeling lazy), and a HTTP server.

  15. There are various ways to convert integers to their string representation.

  16. One of the things that bothers me when I'm writing software is that I never get things right the first time.

  17. When I wrote about lwan's templating engine on a blog post last year, I purposedly ommitted the fact that it didn't support sequences.

  18. There are some functions in the standard C library that takes a function pointer to be used as a callback later on.

  19. Generating textual output is a lot easier with templates than it is with handcrafted functions.

  20. I’ve attended this year’s FISL, both as a booth attendee (at ProFUSION’s booth, demonstrating a few of our end-user-visible projects), and as a speaker for my old FINF project.

  21. Previously, I’ve improved file serving performance in lwan by dramatially cutting down on the number of system calls performed to serve a file.

  22. Writing asynchronous I/O code in C is kind of tedious, and often leads to a callback hell.

  23. Presenting EasyUI

    I’ve been working at ProFUSION on a project called EasyUI for the past few months.

  24. When I first wrote lwan, file serving was not a primary goal.

  25. Golang has a lot of nice features – and one I found pretty interesting is called deferred statements.

  26. Hash trie

    Tries are very useful data structures if you need to perform longest subprefix matching.

  27. String switch in C

    C’s switch statement is very powerful.