@nixCraft
In which sense favourite?.. In some sense this
>++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<+
+.------------.>++++++[<+++++++++>-]<+.<.+++.------.--------.>>>++++[<++++++++>-
]<+.
@hosford42 @distrowatch @nixCraft Theoretically, my job is strictly to help students with the gear and procedures for logging in and so forth. We were explicitly not supposed to help with actual coursework.
Which didn't stop people from asking for help with homework constantly
So, one day, my friend Eric and I are at work, and a kid comes up and asks for help with homework in the intro assembly programming course. While I'm starting the "We aren't allowed to help with homework" spiel... 3/n
@hosford42 @distrowatch @nixCraft I read the actual assignment, and realize that the professor has inadvertently handed out an impossible task.
"Write a macro which swaps the contents of two registers while leaving all other registers unchanged."
Except by using the xor trick, you can't do that on that machine. The professor was used to PDP-11s or Vaxen, where you have a stack.
So we explained the xor trick to everyone who asked for help. 4/n
@hosford42 @distrowatch @nixCraft To his credit, after calling us on the carpet, he did say "Oh" and apologize to his class. That assignment ended up not counting.
We were still officially in trouble, but nobody cared to push it.
```
bool foo(const void *ptr, size_t size)
{
struct {
uint16_t val1;
uint8_t val2;
uint64_t val3;
} __attribute__((packed)) EntryStruct;
if (size != sizeof(EntryStruct))
return false;
const struct EntryStruct *entry = ptr;
β¦
}
```
""" @nixCraft I'm not sure spaces translate properly across clients """
if they_do:
print("Cool.")
@nixCraft
DATA: lt_kna1 TYPE SORTED TABLE OF kna1 WITH KEY kunnr.
LOOP AT lt_kna1 ASSIGNING FIELD-SYMBOL(<ls_kna1>).
ADD 1 TO lv_number.
SELECT SINGLE * FROM kna1
WHERE kunnr = @iv_kunnr
INTO @DATA(ls_kna1).
It's really good. For data wrangling. Which most business software is doing.
@simonlevesque @nixCraft Java?
Edit: oh sorry, you said meaningfully.
$_@nixCraft You
wouldn'
t get
it
right