Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kevinnk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
211.
▲
by
kevinnk
14y ago
You could have something like * [* FooType#4]
212.
▲
by
kevinnk
14y ago
How so? Do you mind giving an example of a printf like function that needs variable length arrays?
213.
▲
by
kevinnk
14y ago
The example the article gives isn't a general C problem, it's a common bug in some (mostly older) C/C++ compilers. As you point out GCC does not have this bug.
214.
▲
by
kevinnk
14y ago
> If we draw a parallel to C++, Haskell's polymorphism is like templates It's important to note that even if Haskell's classes feel like C++ templates they are actually implemented more like abstract classes. In C++ you essentially crea
215.
▲
by
kevinnk
14y ago
One of the approaches my statistics books take is to include the numerical answers in the back of the book but have a separate guide for sale if you want to know why specific approaches were taken. By being an extra book, students who need
216.
▲
by
kevinnk
14y ago
Most Drug stores I've been to in the US do photo printing. At CVS I think it's around 20 cents for a 4x6.
217.
▲
by
kevinnk
14y ago
A really good way to counter this, at least for me, is to keep track of your progress in a notebook or on your phone. It helps a lot to be able to say "oh, I was able to do 2 more reps than average this time" or "Hmm, I've been on this weig
218.
▲
by
kevinnk
14y ago
>#include <stdio.h> >#define yell(i,l,o,v,e,u) o##v##i##l defines a macro called yell. The preprocessor operator ## concatenates it's operands together so something like ma##in gets transformed into main. >#define billy_
219.
▲
by
kevinnk
14y ago
D is not backwards compatible with C or C++, it doesn't even have a preprocesser. I think what you mean is D code can link C code if you use the C standard libraries.
220.
▲
by
kevinnk
14y ago
What you're describing sounds more like "C++ strikes a balance between features and implementation difficulty" not "C++ is written for compiler writers." And even that's charitable because it's not like we haven't gotten hard to implement f
221.
▲
by
kevinnk
14y ago
"the C++ standard is written with compiler writers in mind, rather than with C++ users in mind" Just looking at the enormous lengths compilers have to go through to correctly parse C++ should tell you this isn't true. C++ does have some rat
222.
▲
by
kevinnk
14y ago
I think you're right in the sense that the president doesn't really control things like the direction of the economy as much as most people think he does. However, I do think there are decisions that the president does have direct control o
223.
▲
by
kevinnk
14y ago
I agree, this is a really, really cool visualization of something that would otherwise be rather difficult to understand. I've always known about the "Southern switch" but something like this really highlights it. Alabama in particular had
224.
▲
by
kevinnk
14y ago
I think Notch has been going through a divorce so understandably development has been a little slow. http://www.reddit.com/r/0x10c/comments/yb94y/the_reason_for_...
225.
▲
by
kevinnk
14y ago
"In practice humans do not match automation." Maybe this is a nitpicky argument, but to me this means one thing: when put head to head, humans do not do better than automated output. This is wrong for exactly the reason I said. In 99% of ca
226.
▲
by
kevinnk
14y ago
> "In practice humans do not match automation." Actually in practice human's almost always surpass automation mostly because they can start with automated output and improve upon it.
227.
▲
by
kevinnk
14y ago
The advantage for me at least is volume. In online interaction you can connect with a large number of people at once. For example, it's easy to carry a chat conversation with 2 or 3 people whereas in real life you'd need to actually have ev
228.
▲
by
kevinnk
14y ago
Maybe it's professor specific, but EECS 151, 280 and 281 all stressed using gdb. ddd was mentioned, but most of the debugging examples used gdb. I took these class several years ago though, so it's also possible things have changed since th
229.
▲
by
kevinnk
14y ago
GDB itself has a -tui option which gives you a nice "gui" style interface in the command line. As to why you would not use any sort of gui interface, I don't think the command line alone gives you any advantage as far as I know.
230.
▲
by
kevinnk
14y ago
Yeah, GDB and Valgrind are heavily encouraged at the University of Michigan in both introductory and advanced classes. Talking to friends at other universities, it seems like most other places encourage it too.
231.
▲
by
kevinnk
14y ago
> "This is a significant reason that many Unix hackers prefer languages like C or Common Lisp where the same symbol means the same thing system-wide." I don't know about lisp, but that's not even close to true for C. typedef struct A {
232.
▲
by
kevinnk
14y ago
In my state (Michigan) world history is a state wide requirement, so the first part of your comment is absolutely wrong. And I can't talk about any other schools, but the school I attended (a large, public, middle of the road high school) d
233.
▲
by
kevinnk
15y ago
>But for a properly informed programmer for a given piece of code, not so much. There are a couple reasons that even for "informed" programmers this is still important 1) For most dynamic languages, even simple operations can take a hig
234.
▲
by
kevinnk
15y ago
C is not assembly and hasn't been for a very long time. But I think when people use the people use the phrase "portable assembler" they really mean that in C you both control the memory layout of data types very finely and that code maps ve