tilarids.blogspot.com
On The Highway: Ruby-like blocks and yield "keyword" in C
http://tilarids.blogspot.com/2012/03/ruby-like-blocks-and-yield-keyword-in-c.html
Thursday, March 29, 2012. Ruby-like blocks and yield "keyword" in C. Today I want to show you some of the plain old C black magic. This is the magic of direct user context manipulating. You can use this low-level feature to implement some high-level language abstractions such as generators and ruby-like blocks. Let's start with an example( test1.c. EXECUTE BLOCK(enumerate, ( 1. EXECUTE BLOCK(enumerate, ( 1. Printf( Saying it %d time. EXECUTE BLOCK(for each, (buf, buf. Strlen(buf) , char. Saying it 1 time.
tilarids.blogspot.com
On The Highway: March 2012
http://tilarids.blogspot.com/2012_03_01_archive.html
Thursday, March 29, 2012. Ruby-like blocks and yield "keyword" in C. Today I want to show you some of the plain old C black magic. This is the magic of direct user context manipulating. You can use this low-level feature to implement some high-level language abstractions such as generators and ruby-like blocks. Let's start with an example( test1.c. EXECUTE BLOCK(enumerate, ( 1. EXECUTE BLOCK(enumerate, ( 1. Printf( Saying it %d time. EXECUTE BLOCK(for each, (buf, buf. Strlen(buf) , char. Saying it 1 time.
tilarids.blogspot.com
On The Highway: July 2009
http://tilarids.blogspot.com/2009_07_01_archive.html
Saturday, July 11, 2009. Сказ о том, как Python С обогнал. Я всегда защищаю С , когда приверженцы других языков ругают его за невыразительный синтаксис, чрезмерную сложность или раздутость, потому что, по-моему мнению, на С можно писать красиво, и особенно в этом помогают различные высокоуровневые конструкции из стандартной библиотеки. В одном из споров в c plus plus@c.j.r речь зашла о том, какой же из языков лучше - простой С или всё же С? Reverse iterator it =. Python 2.6.2. Те, еще быстрее, чем ruby (...
tilarids.blogspot.com
On The Highway: Counting bits
http://tilarids.blogspot.com/2012/05/counting-bits.html
Sunday, May 27, 2012. How would you count the number of bits set in a 32-bit integer? Lots of random data, I used 16384 integers for tests*/. Define TEST COUNT 100000. I) { uint32 t. Builtin popcount(tbl[j]); } } }. Is a function that calculates the population count. If compiled with. Gcc -O3 t.c -o bitcount. One can get such results:. Time /bitcount real 0m17.465s user 0m17.425s sys 0m0.000s. Not too fast, huh? Some of the time is wasted calling the function and inlining it can speed up things. But!
tilarids.blogspot.com
On The Highway: May 2012
http://tilarids.blogspot.com/2012_05_01_archive.html
Sunday, May 27, 2012. How would you count the number of bits set in a 32-bit integer? Lots of random data, I used 16384 integers for tests*/. Define TEST COUNT 100000. I) { uint32 t. Builtin popcount(tbl[j]); } } }. Is a function that calculates the population count. If compiled with. Gcc -O3 t.c -o bitcount. One can get such results:. Time /bitcount real 0m17.465s user 0m17.425s sys 0m0.000s. Not too fast, huh? Some of the time is wasted calling the function and inlining it can speed up things. But!
tilarids.blogspot.com
On The Highway: September 2009
http://tilarids.blogspot.com/2009_09_01_archive.html
Sunday, September 27, 2009. Мини-отчёт об участии в GCJ. Контест по спортивному программированию, который проводит всем известная компания Google. Контест не командный, международный, проводится в онлайн. В этому году участвовал в первый раз, основные результаты таковы: остановился на втором раунде, в третий не прошёл. Сумбурные. Участие в ICFPC. Нужно обязательно участвовать в следующих GCJ. Он совсем не напрягает и занимает куда меньше времени, чем многодневные командные состязания. Который кардинально...
tilarids.blogspot.com
On The Highway: March 2010
http://tilarids.blogspot.com/2010_03_01_archive.html
Wednesday, March 17, 2010. Некоторые трюки при использовании GDB. Небольшое собрание трюков, которые могут помочь при отладке с использованием GDB. Не претендует на сенсационность, но должно быть полезно для тех, кто только начинает знакомиться с этим замечательным инструментом. Итак, начнём:. Печать содержимого STL контейнеров. Основные способы собраны здесь. Но я бы хотел остановиться на наиоболее универсальном способе - gdb-stl-views. Gdb) plist some list. List size = list size. Elem[0]: $i = . Если в...
prof-web-dev.livejournal.com
Для тех, кто еще не видел этот линк.: prof_web_dev
http://prof-web-dev.livejournal.com/15437.html
Все, что нужно девушке (. Все, что нужно девушке. Для тех, кто еще не видел этот линк. HOWTO по оптимизации PHP. Нахожу эту статью очень полезной. Post a new comment. Anonymous comments are disabled in this journal. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. Your reply will be screened. Your IP address will be recorded. Post a new comment. Post a new comment. Firefox header rewrite extension.
tilarids.blogspot.com
On The Highway: October 2012
http://tilarids.blogspot.com/2012_10_01_archive.html
Thursday, October 11, 2012. Talk: What every programmer should know about merging branches in Mercurial. Using named branches in Mercurial. Before looking at the slides. What every programmer should know about merging branches in Mercurial. Sources for the slides can be found here. Posted by Sergey Kishchenko. Subscribe to: Posts (Atom). Talk: What every programmer should know about merg. Mountain View, California, United States. View my complete profile. Aartemenko.com: latest posts. Dump -0f - /dev/mind.
SOCIAL ENGAGEMENT