Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
copsarebastards
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
copsarebastards
11y ago
I'd agree with you in some languages, but in C this would be prohibitively difficult. In general, good fluent design uses immutable objects, which makes it basically just a syntactic sugar for functional programming. While fluent synta
2.
▲
by
copsarebastards
11y ago
That’s the danger of Occam’s razor and of simple answers. “Simplicity” is often a hiding place for our biases. We reach the conclusion we want to reach and then call it simple. --Plaza Garabaldi I'm not saying you're wrong, I&#x
3.
▲
by
copsarebastards
11y ago
That's actually a very good example, but I'd argue that this is actually a violation of the standard: memset is defined as setting the value in memory. Most optimizations on undefined behavior don't really fall into this cate
4.
▲
by
copsarebastards
11y ago
Good luck with that. I suspect the only good C is not C.
5.
▲
by
copsarebastards
11y ago
There's a flipside to this: middle-aged-to-old people aren't choosing to participate in the silicon valley startup culture. As superuser2 noted, a 22-year-old can subsist on ramen while living in a car, while a 45-year-old can
6.
▲
by
copsarebastards
11y ago
I'm not missing that; you're making an assumption.
7.
▲
by
copsarebastards
11y ago
>> Computers don't have spirits > But standards committee do. Agreed. Which is why you should choose a language which was standardized by a standards committee whose goals better align with your goals. > I doubt rust could
8.
▲
by
copsarebastards
11y ago
> More specifically, they're competing to produce the fastest code for software that follows the C specification to the letter. That's not necessarily the same as producing the fastest code that actually achieves the intended g
9.
▲
by
copsarebastards
11y ago
> What GCC is doing subverts the purpose of writing in C, which is to get close to the machine and instruct its processor to do certain things. That's not the purpose of writing in C. It's a goal you might be able to achieve wi
10.
▲
by
copsarebastards
11y ago
> This is a case of following the letter of the law (in this case the C standard) while disregarding its spirit: all the undefined behaviour was so that C compilers could accomodate for odd architectures while remaining close to the meta
11.
▲
by
copsarebastards
11y ago
Yeah, I'd go so far as to argue that if you need security, you probably shouldn't be writing C.
12.
▲
by
copsarebastards
11y ago
I don't think people's inability to distinguish between paying for software and paying for programming makes the statement "Software should be free" a bad statement.
13.
▲
by
copsarebastards
11y ago
I understand the problem, I'm saying that it's not GCC's problem. If you don't want undefined behavior, don't put undefined behavior in your code. The code you wrote isn't clear or reasonable, because it reli
14.
▲
by
copsarebastards
11y ago
Writing code that depends on the value of unread memory is bad for security.
15.
▲
by
copsarebastards
11y ago
I think a better design would be to separate mutators from pure functions. If a procedure mutates state, it should have a void return type, and if a procedure returns a value it should be a pure function that doesn't mutate state. This
16.
▲
by
copsarebastards
11y ago
That complaint isn't a valid complaint. If the checks relied on undefined behavior, the code wasn't secure. If you want to rely on the behavior of a specific version of a specific compiler, then you need to define that in your dep
17.
▲
by
copsarebastards
11y ago
> On the first point I think we are talking about two different things. I am not talking about the entire signup list of Old Reader, I am talking about a user of Old Reader that uses Google OAuth to access Old Reader. In this case Google
18.
▲
by
copsarebastards
11y ago
You're right; I'm sorry for misreading your intention. I've edited my post so it's not as directed at you.
19.
▲
by
copsarebastards
11y ago
I don't think it's the language's fault either: C is four decades old, and being bound by reverse-compatibility, they can't integrate much of the programming language research that has happened in the last four decades.
20.
▲
by
copsarebastards
11y ago
> On two occasions I have been asked, — "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" In one case a member of the Upper, and in the other a member of the Lower, House put this
21.
▲
by
copsarebastards
11y ago
There's a parable where a man goes to the doctor and says, "Doctor, whenever I drink my coffee with the spoon in the cup, the spoon handle pokes me in the eye and it hurts." And the doctor says, "Well, stop doing that.&q
22.
▲
by
copsarebastards
11y ago
The only reasonable thing to say about this was already said upthread of the page, and quoted here: > I have worked on many programs, and whenever I found such a problem (typically called a "portability problem"), where the co
23.
▲
by
copsarebastards
11y ago
Interesting. Yeah, that makes a lot of sense. The Swiss style seems to have influenced the covers of a lot of old sci-fi books, so I mentally associate these kinds of color schemes with faded old paper and sitting indoors on a rainy afterno
24.
▲
by
copsarebastards
11y ago
> i'm sorry, but conflating the issue of a perceived disparity with 'beliefs' about social gender consensus is unhelpful and only incites issue derailing ire It's not a conflation, it's acknowledging what I belie
25.
▲
by
copsarebastards
11y ago
> Analogies aren't evidence, they're a tool for explanation, again by semantic definition. Agreed, that's what I've been saying all along. So then why did you use an analogy? Did you really think the sentences "P
26.
▲
by
copsarebastards
11y ago
So don't collect any more information than you need. Choosing OAuth amounts to a very bad assumption that you'll never care about who your users are.
27.
▲
by
copsarebastards
11y ago
> I do not know who is the uneducated here, but in the case of OAuth, the other company already has the user data. No, they don't. Google, for example, doesn't have the entire signup list of all the users of The Old Reader, but
28.
▲
by
copsarebastards
11y ago
At a very basic level, when I was volunteering helping the homeless, I saw a great deal of disparity. There are many homeless shelters and programs that only take in women and children, and many shelters which accept people of all genders b
29.
▲
by
copsarebastards
11y ago
> Analogies are inexact by semantic definition, and that doesn't make then "faulty". Well, it makes them useless as evidence. An argument by analogy simply isn't a valid argument. Don't you remember the "You
30.
▲
by
copsarebastards
11y ago
I'm not questioning what you're saying, as it seems to be correct based on what I know (I may or may not have watched the Helvetica documentary) but what's with the graininess in the color picker? It doesn't fit with any
More ›