Pas de Code
76 subscribers
106 photos
1 file
402 links
What I cannot create, I do not understand.

DM: @alexey_mileev
Original channel in RU: @devballet
Twitter: twitter.com/pasdecode_
Download Telegram
First, they tell you that reading assembly is easy. Then they tell you that
- RAX register is 64 bits
- EAX is lower 32 bits of RAX
- AX is lower 16 bits of RAX
- AL is lower 8 bits of RAX
- AH is higher 8 bits of AX
- Writing to them works as expected, but writing to EAX will zero out the rest of RAX
- There are a bunch of different registers, e.g. RAX, RCX, RDX, RBX. Yep, not ABCD, but ACDB. It's the order they're stored in
- (╯°□°)╯︵ ┻━┻

#cpu #assembler #compiler
👍2
I know that many of you do stuff like Advent of Code. Many others (me, for example) are too busy lazy for this stuff. Well, Peter Norvig (Research Director at Google) is not that case, so he has this cool repo full of ipynb's with problems, solutions, nice graphs and illustrations. And you'll find much more than just AoC there!

#contest #cs #repository
App cloning. It seems that this strange yet interesting feature can make its way into Android 14. It allows you to have several profiles in a single app, even if the app itself doesn't allow this.

#android #os #update
1
I needed something weird - to fork and modify TLS lib. During research I stumbled upon this nice site: comprehensive description of all the records for TLS 1.2 and TLS 1.3 client and server send to each other

#network #tls #protocol
1
I often see copyright year in source code or LICENSE files. I've always wondered, what's the rule for this thing? Should I keep it up-to-date? Can I omit it? Thankfully, the answer's found me all by itself. For code it doesn't really matter. You can safely omit it.

#oss #license #law
Yet another collection of ChatGPT prompts. There are some pearls in it for sure, but I don't quite get why so many prompts in different categories start with "Write a marketing campaign outline using..."

#ai #chat
Usually we don't need stuff like that, but it may be tedious to google it when we do. Awesome macOS Command Line: a bunch of useful commands and scripts to take more control of the system when it's needed.

#macos #terminal #tool
Ladies and gentlemen, please welcome JEP 430: String Templates!
They've decided to bring something like string interpolation to Java, but to do it BETTER than everyone else.
The result is, well, quite surprising:
String s = STR."\{x} + \{y} = \{x + y}";

#java #language #jep
Check out this strangely nice thing. Have no idea why would I need it, but looks interesting!

#keyboard #hardware
I've decided to dedicate this whole week to this wonderful series in prose. Enjoy!

Reversing the technical interview

“That’s not a list,” the interviewer says. “That’s an if statement.”
“What else are lists,” you reply, your eyes flashing


#interview #humor #fp
Hexing the technical interview

“We’re, uh, we’re not doing IO here. Just an in-memory list.”
Agree politely, but delete nothing. Never apologize for who you are.


#interview #humor #fp
😁1
Typing the technical interview

“You’re… defining the natural numbers by hand? Why?”
“Haskell is for mathematicians,” you explain. “We always define our terms.”


#interview #humor #fp
Rewriting the Technical Interview

“People always complain,” you murmur. “That Lisps have too many parentheses. What they really mean is that their positions are too far to the left.”

#interview #humor #fp
Unifying the Technical Interview

“You absolute madwoman,” Aisha chortles. “You can’t remember how to balance a binary tree, but you memorized µKanren?”

#interview #humor #fp