Stories by hawski
Breadth-first (as in this tool):
1
a
1/2
a/b
1/2/3
a/b/c
Depth-first (as in UNIX find):
1
1/2
1/2/3
a
a/b
a/b/c
A short and dumb example:
import attr
@attr.s
class Vec2(object):
x = attr.ib()
y = attr.ib()
pos = Vec2(42, -42)
I did not include more tags, because I was not sure they apply: android and linux.
Maybe it would be good idea to add google tag (and apple and microsoft as well)? Or just add chromeos/chromebook as we have mac, windows, linux and all the bsds?
I slightly edited the original title to underline what is significant about it.
A few years back I stumbled upon this library and used it in a project to generate some documentation. I really liked reading the source and it caused me to get to like Python some more and generators in particular.
...
I'm not that good with assembly. Could someone explain me what is happening on this line:
https://github.com/skeeto/pure-linux-threads-demo/blob/master/threads-x86_64.s#L93
I now that it prepares the location of the stack for clone. I think that it adds `STACK_SIZE` to have the end of the allo...
I was wondering about how a shell script can't really clean-up after itself. Certainly unprivileged one. This is (maybe silly) a request for comments in form of a hypothetical man page.
I am fully aware how little I know about kernel development, so take it with a grain of salt. I am willing to l...
Recently I was reminded of x32 Linux ABI [0]. I read about it few years ago when it was being merged to Linux kernel, but not much afterwards. I understand that it did not become popular. It is not better enough to justify the hassle of yet another architecture. Of course there is also the chicken a...
A bit of a follow up to the Linux 4.10 release.
Very interesting concept of a simple lower-level shell. It looks for me a bit like a kind of IR of shell languages.
Last commit is from 2015.
All tags seem wrong for this. Something like tool or utility would serve probably best.
I just was thinking about a potential syscall with a prototype:
```
int syscalls(void *array, size_t size)
```
Where the array argument has packed syscall number, place for return value and arguments for every syscall.
Then I found that it's patented by Red Hat...