Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bluetech
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
bluetech
14y ago
Use an alias! I like git config --global alias.s 'status --short --branch'
62.
▲
by
bluetech
14y ago
For people interested in cryptography, mentioning Shamir's secret-sharing scheme might also be cool.
63.
▲
by
bluetech
14y ago
find is essentially the command line tool for traversing the file system hierarchy recursively. It's got a million options, e.g. whether to follow symlinks, depth, file/directory/device/.., user, group, change time and many more. When you u
64.
▲
by
bluetech
15y ago
Well, just below the Plan 9 sections comes this: http://catb.org/~esr/writings/taoup/html/ch20s03.html#id3016... And he's right, ioctl's can be quite tricky to operate sometimes.
65.
▲
by
bluetech
15y ago
I think linux users, if they would go for such a thing, will be better served by systemd. See for example http://0pointer.de/blog/projects/instances.html http://lists.freedesktop.org/archives/systemd-devel/2011-Sep...
66.
▲
by
bluetech
15y ago
Yes, and you can also have multiple parents with a reference-count semantics. void * talloc_steal(const void * new_ctx, const void * ptr); The talloc_steal() function changes the parent context of a talloc pointer. It is typically
67.
▲
by
bluetech
15y ago
I have used talloc for a medium-sized project, and it was quite refreshing. Of course, it all depends on your program's structure. An hierarchical allocator naturally fits hierarchical data structures and containers, so parsers for example
68.
▲
Why you should use talloc for your next C project
(blogs.fedoraproject.org)
98 points
by
bluetech
15y ago
|
57 comments
69.
▲
by
bluetech
16y ago
C# (by .NET 4) now has real expando objects, if you really need them. It uses what they call the Dynamic Language Runtime: http://msdn.microsoft.com/en-us/library/system.dynamic.expan...
70.
▲
by
bluetech
16y ago
It seems like half the papers ever written about Haskell contain a solution to this problem... This includes most papers about monads and monad transformers.
71.
▲
by
bluetech
16y ago
And of course, the LINQ version returns an IEnumerable<TResult>, while the List version return List<TResult>. You could chain a .ToList() there to make them equivalent (if needed).
72.
▲
by
bluetech
16y ago
It is not necessarily bureaucracy or "state-heaviness"; Israel is a small country, the army may be using these frequencies, and they need to cleared out before being used by the public. It was the same with bluetooth and other wireless tech
73.
▲
by
bluetech
17y ago
I learned C as my first language, and there was nothing "confusing" about it. I find C to be quite direct - here's a variable, there's a loop, a function, a struct. Even pointers are straightforward one you know about memory and addresses,
74.
▲
by
bluetech
17y ago
Python 3.1 changes the way floats are converted to strings. See http://docs.python.org/dev/py3k/whatsnew/3.1.html#other-lang...
75.
▲
by
bluetech
17y ago
What about this: http://docs.python.org/dev/py3k/whatsnew/3.1.html#other-lang... (the fifth bullet) It seems to make things more reasonable. After all, Python has showed that saying "that just how it works" can be avoided, as in the case