/dpt/ - Daily Programming Thread

>he cares about cross-compiler compatibility
For the kind of software I write, it doesn't make sense to even consider platforms that aren't supported by llvm.

you a lucky fucker then
I pray for you this never changes, or your might kys in desperation

on the heap

There is an algorithm to "fan out" a byte several times, just multiply it with 0x01010101 to multiply it 4 times. In decimal, calculate 23*1010101 = 23232323.

There is also an algorithm to "put holes" in a byte. Although I don't understand it, it works similar to the one above, and is described at graphics.stanford.edu/~seander/bithacks.html#Interleave64bitOps.

Is there an algorithm to do the opposite, that is get every second or every third bit of a byte?

10100101011010101 ->
1 1 0 0 0 1 1 1 1

>reading TAOCP
How much of this math stuff do I have to read? Can I just skip it?

Attached: 1527389673453.png (717x675, 144K)

I have a friend interested in CS for her grad program (no coding background save for R in stats). She wants to learn some basic coding to see if she likes it.

Was thining of having her SSH to a server and learn to code from the command line.

Was looking at some free shell accounts.. are these sketchy? I mean they should be fine for useless things right?

shells.red-pill.eu/

just have her install vs-code you nerd.

Many languages will have an online interpreter available for learning purposes. Of course this doesn't help if you want her to be able to do file or network i/o.

install gentoo and build electron and vscode from source

>white knight
lmao

point her to a pdf of k&r and pelles c

Attached: friendly reminder.png (710x1048, 352K)