Feed digilinux.ru [copy] http://digilinux.ru/feed/ has loading error: cURL error 22: The requested URL returned error: 403 Forbidden
Feed freepost [copy] https://freepo.st/rss/new has loading error: cURL error 22: The requested URL returned error: 500
Простой токенизатор
В прошлом году мне понадобилось доработать токенизатор в моем движке. Поэтому я быстро набросал новую простейшую версию. Токенизатор хранит лишь начало/конец токена аля std::string_view. Поддерживается UTF-8. Поддерживает произвольный набор разделителей и их произвольную длину. Может быть достаточно легко доработан до …
The post Простой токенизатор appeared first on Ugolnik's blog.
Android logging
Большинство android-разработчиков знакомы с командой logcat или ее версией adb logcat. Но не все знают, что эта команда имеет много приятных и полезных опций. Например, опция -e поддерживает выражения (прощай grep). А так же подсветку, что делает выхлоп более читабельным. …
The post Android logging appeared first on Ugolnik's blog.
Following up on "Hello world"
This is a follow-up to my last article, Hello world, which is easily the most negatively received article I’ve written — a remarkable feat for someone who’s written as much flame bait as me. Naturally, the fault lies with the readers.
All jokes aside, I’ll try to state my point better. The “Hello world” article was a lot of work to put together — frustrating work — by the time I had finished collecting numbers, I was exhausted and didn’t pay much mind to putting context to them. This left a lot of it open to interpretation, and a lot of those interpretations didn’t give the benefit of the...
The Polygons of Another World: Genesis
How Another World was implemented on Sega Genesis/Megadrive!
Hello world
Let’s say you ask your programming language to do the simplest possible task: print out “hello world”. Generally this takes two syscalls: write and exit. The following assembly program is the ideal Linux x86_64 program for this purpose. A perfect compiler would emit this hello world program for any language.
bits 64 section .text global _start _start: mov rdx, len mov rsi, msg mov rdi, 1 mov rax, 1 syscall mov rdi, 0 mov rax, 60 syscall section .rodata msg: db "hello world", 10 len: equ $-msg
Most languages do a whole lot of other crap other than printing out “hello world”, even if that’s all you asked for.
...The Polygons of Another World: Atari ST
How Another World was implemented on Atari ST!
The Polygons of Another World
Let's kick off the year with a series about Another World!