Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
this is an array declaration in c: int foo[4]; here it is with an initializer: int foo[4] = { 1, 2, 3, 4 }; if you have an initializer, you can omit the length in the brackets, to allow the length to be inferred: int foo[] = { 1, 2, 3, 4 }; this is an arr…
-
hi present-day seb here: i wrote most of this blog post like 2 years ago (september 2024), but i never published it because i didn't really have an active blog at the time. i just found it in a random file and i figured i'd publish it. enjoy :) In Tagged…
-
what if every possible tetris move could be mapped to a button on the keyboard?
-
i found some ambiguous wording in the c89(/c90) standard, where gcc and clang disagree on the interpretation. it concerns the behavior of implicit function declarations, which were removed in c99, so this was never disambiguated. [...]
-
pop quiz: which of these lines is valid python, and what's the content of the resulting string?
-
(because of course it is, literally everything in c is surprisingly difficult to parse). for those unaware, the operand of sizeof is either a unary expression, or a parenthesized type name. so the following are all valid: [...]
-
python has 6 pre-declared "constants": True, False, None, __debug__, Ellipsis (or equivalently ...), and NotImplemented. but they all behave slightly differently, for some reason. [...]
-
here's what i mean: sometimes two songs just naturally fit together; you don't need to do anything else to make the mashup work. and that's great!
-
i found a neat trick which lets you take advantage of CoW to duplicate memory without allocating anything upfront. maybe some people already know about this, but i just discovered it and i think it's cool (and i kinda wish it was easier to take advantage…
-
here are the game genie codes i made for "Tetris & Dr.
-
this is gonna be a pretty disorganized blog post, bear with me. something something more time shorter letter i just got around to watching Andrew Kelley's talk "don't take the black pill". it's a great talk and i'd recommend it to pretty much anyone. and i
-
here's something fun. assume that x was declared in an outer scope as a typedef: [...]
-
today i'd like to show you one of the most cursed things i've ever made. but first, some context: [...]
-
null is weird. you ever think about null pointers?
-
an underrated part of knowing how to use a DAW is that if i ever hear a song and think "i wish they did this part a little differently", i can just, like, change it. like i can make my own personal version that's tweaked in small ways which sound better to
-
ok so i've been reading the "specification" from "the c programming language" (1st edition). alongside that, i've also been reading the c89 rationale document, and the source code for the 7th edition unix c compiler. i've also been reading some other rela…
-
PEP 3099 "Things that will Not Change in Python 3000" begins with: Some ideas are just bad.
-
IEEE-754 NaN is weird. and because of that, it's often accidentally left unaccounted for. i found two instances of this leaking into programming language design. that is, the semantics of these languages hold implicit assumptions which break with NaN. [..…
-
in c++, function types have a "language linkage" associated with them: this is either "C++", "C", or some other implementation-defined language. and the standard very explicitly states that Two function types with different language linkages are distinct…
-
this video is about a niche "game mode" in syobon action, aka shobon no action, aka cat mario. i've never done anything like this before, i hope the video doesn't suck ultimate syobon action
-
(this is far from the first time i've 100%'d the game, but it's been a little bit and i had Thoughts this time) [...]
-
give it a year and i will feel completely differently about this movie, but having just watched it today, i fucking loved it [...]
-
...it was, underwhelming, ngl. [...]