recentpopularlog in

cothrun : c   128

« earlier  
Reading bits in far too many ways (part 1) | The ryg blog
Our simple problem is this: we want to read data encoded using some variable-bit-length code from a byte stream. Reading individual bytes, machine words etc. is directly supported by most CPUs and many programming languages, but for bit-granularity IO, you generally need to implement it yourself.

This sounds simple enough, and in some sense it is. The first source of problems is that this operation tends to be a hot spot in codecs—-and yes, compute bound, not memory or I/O bound. So we’d like not just an implementation that works; we’d like it to be efficient as well. And along the way we’ll run into many other complications: interactions with IO buffering, end-of-buffer handling, corner cases in the way bit shifts are specified both in C/C++ and in various processor architectures, as well as other bit shift peculiarities.

I’ll mainly focus on many different ways to handle the reader side in this post; essentially all techniques covered in here apply equally to the writer side, but I don’t want to double the number of algorithm variations I’m presenting. There will be plenty as it is.
bit  c 
october 2018 by cothrun
Welcome – Wren
Wren is a small, fast, class-based concurrent scripting language #

Think Smalltalk in a Lua-sized package with a dash of Erlang and wrapped up in a familiar, modern syntax.
oop  scripting  language  c  library 
june 2018 by cothrun
Competitive Programmer's Handbook
The purpose of this book is to give the reader a thorough introduction to competitive programming. The book is especially intended for students who want to learn algorithms and possibly participate in the International Olympiad in Informatics (IOI) or in the International Collegiate Programming Contest (ICPC).
programming  book  algorithms  c 
april 2017 by cothrun
Competitive Programming Book Companion Website
This book contains a collection of relevant data structures, algorithms, and programming tips written for University students who want to be more competitive in the ACM International Collegiate Programming Contest (ICPC), high school students who are aspiring to be competitive in the International Olympiad in Informatics (IOI), coaches for these competitions, those who love problem solving using computer programs, and those who go for interviews in big IT-companies.
programming  book  c  learning 
april 2017 by cothrun
GitHub - gurugio/lowlevelprogramming-university: How to be low-level programmer
80x86 Assembly programming
Hardware device with Atmel chip and firmware
C language system programming for Unix
Device driver in Linux
Linux kernel: page allocation
Linux kernel: block device driver and md module
asm  c  embedded  kernel 
april 2017 by cothrun
« earlier      
per page:    204080120160

Copy this bookmark:





to read