Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 25
  1. 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…

  2. 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…

  3. what if every possible tetris move could be mapped to a button on the keyboard?

  4. 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. [...]

  5. pop quiz: which of these lines is valid python, and what's the content of the resulting string?

  6. (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: [...]

  7. python has 6 pre-declared "constants": True, False, None, __debug__, Ellipsis (or equivalently ...), and NotImplemented. but they all behave slightly differently, for some reason. [...]

  8. 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!

  9. 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…

  10. here are the game genie codes i made for "Tetris & Dr.

  11. 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

  12. here's something fun. assume that x was declared in an outer scope as a typedef: [...]

  13. today i'd like to show you one of the most cursed things i've ever made. but first, some context: [...]

  14. null is weird. you ever think about null pointers?

  15. 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

  16. 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…

  17. PEP 3099 "Things that will Not Change in Python 3000" begins with: Some ideas are just bad.

  18. 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. [..…

  19. 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…

  20. 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

  21. (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) [...]

  22. give it a year and i will feel completely differently about this movie, but having just watched it today, i fucking loved it [...]

  23. ...it was, underwhelming, ngl. [...]