HNHacker News
TopNewBestAskShowJobs

denim_chicken

165 karma · joined September 27, 2013

submissionscomments
denim_chicken··on Lee Sedol Beats AlphaGo in Game 4
It feels really weird to see someone being showered with congratulations for beating a computer program. What exactly is he being congratulated for? For probably triggering and then capitalizing on a bug in AlphaGo's AI? For showing that human resolve, perseverance and a "fighting spirit" can trump a flawed AI, at least until the AI gets fixed? For giving DeepMind extremely valuable test data that will only accelerate the refinement of AlphaGo's AI? For helping to advance an amoral field of study that can potentially delegitimize everything that currently makes humans unique and extraordinary?
denim_chicken··on YouTube now shows "An error has occurred" while ads running
I would probably watch 95% fewer YouTube videos if I actually had to pay money for them.
denim_chicken··on Glibc getaddrinfo stack-based buffer overflow
Maybe in a decade.
denim_chicken··on Glibc getaddrinfo stack-based buffer overflow
Neither is Rust, which comes with a huge RTS that itself likely full of such bugs. The library and the compiler too may have bugs that compromise the "guaranteed" memory safety of a libc written in Rust.

There is no silver bullet here. If one takes into account all the sources of bugs, C may very well be the best choice given its maturity and its ecosystem. Our best bet is likely to put more resources towards glibc development and especially fuzz testing. I bet there are only 1-2 developers who work on glibc full-time.

denim_chicken··on Glibc getaddrinfo stack-based buffer overflow
Rust is not a decent contender. It is far too immature. The only reasonable contender is C++.
denim_chicken··on The crash of 2016?
There is loads of data that suggests an economic collapse around the corner. Right now there are so many indicators of economic health that are reporting poor results, that it's worth taking seriously the prospect of a looming economic collapse.
denim_chicken··on Where are we in the Python 3 transition?
This behavior is pretty reasonable to me.
denim_chicken··on The World Is Not Falling Apart (2014)
The article should be titled, "The World is Not Becoming More Violent".

Violence among humans is only one of many metrics to gauge the state of the world. Other metrics show trends that are not as rosy. Let's not forget, for example, that we are in the middle of the sixth mass extinction event, exhibiting a rate of species extinction 10x greater than during any other extinction event.

If we especially ignore our anthropocentric biases one can make a convincing case that the world is falling apart.

denim_chicken··on What happens when a culture is driven by the need for money to make more money
Empathy and remorse cause inefficiencies in the economy. A perfectly rational agent would have neither.
denim_chicken··on Memory and C++ Debugging at Electronic Arts [video]
Such naivety.
denim_chicken··on John Carmack's son's game in Racket
I doubt he will need to know a popular language to get employment opportunities if he's the son of John Carmack.
denim_chicken··on A Garbage Collector for C and C++
I feel that this library is a testament to the power of C and C++ (and their ecosystem).
denim_chicken··on Why is finance so complex? (2011)
> You need a mortgage because you don't have $400,000 in cash sitting around.

And a large part of why housing costs $400,000 in the first place is due to the availability of mortgages. Mortgages gave themselves a reason to exist.

denim_chicken··on With 61 Seconds in a Minute, Markets Brace for Trouble
> it is cheaper and easier to get in more markets than ever before and the margins are as low as they have ever been on providing it

High enough that the firms are at least receiving a normal profit. And given the opportunity cost that all these smart people incur by working in this industry, this normal profit is rather big, and no doubt that the extraction of this normal profit has non-neglible deleterious effects on the economy.

denim_chicken··on Why functional programming matters (1990) [pdf]
If functional programming actually mattered we would stop having to remind ourselves why it matters.
denim_chicken··on Why functional programming matters (1990) [pdf]
C is "pure" too.

The statement

   puts ("hello");
is a "pure" value of type int.
denim_chicken··on Why functional programming matters (1990) [pdf]
It's only anecdotal, but I feel the opposite.
denim_chicken··on Death to C
The C ecosystem has tools designed to compensate for its issues. There's valgrind, static analysis, debuggers, asan, tsan, etc.. With its immense popularity, its flexibility and portability, and its mature, comprehensive ecosystem behind it, there's no all-purpose programming language better than C (expect maybe C++).
denim_chicken··on This bakery will hire anyone
Why did the moderators change the title from "Felons, addicts, immigrants: This bakery will hire anyone"?
denim_chicken··on Unix system programming in OCaml
> C got its place in the IT world thanks to UNIX's adoption.

I disagree with your implicit claim that C's position as the most popular systems programming language is not due the language's intrinsic qualities. Luck was a factor but not the only one. It cannot be the only one. The language is just good -- or at least good enough.

> It is nothing more than a portable macro assembler with all advantages and more importantly the disadvantages that it entails.

Stop the hyperbole. The language is quite a bit more than that. For one, it's structured.

denim_chicken··on Unix system programming in OCaml
> A rich history of segfaults and security issues is not proof enough?

The most popular language in the world -- the language that's being used to write the largest, most complex software -- will surely have a rich history of bugs and security holes. That will be the case whether or not said language is C.

denim_chicken··on Unix system programming in OCaml
All I'm saying is that if we plot languages on a spectrum, where one end corresponds to functional programming and the other to, say, imperative programming, then Haskell will be most closely to the FP end than any other practical language. Haskell embodies the most of the tenets of FP.
denim_chicken··on Unix system programming in OCaml
C is the best language we have for this sort of stuff. Nobody has been able to show otherwise.
denim_chicken··on Unix system programming in OCaml
I seem to be describing Haskell because Haskell is the epitome of an FP language. If FP is truly a self-contained practical, versatile paradigm by itself, then Haskell would exemplify this.
denim_chicken··on Unix system programming in OCaml
> Functional programming languages shine when they deal with complex, recursive data structures, not for simple tasks which are primarily IO and need to handle many cases.

I think most of the advantages of FP languages (as they exist today) become disadvantages as your data structures get more and more complex. Efficient mutability becomes necessary. Pattern matching breaks down as (G)ADTs can no longer encode useful invariants. Referential transparency becomes useless once you realize you want explicit sharing. Laziness and space leaks become a huge PITA. The RTS and the mandatory GC start getting in your way as it gets harder and harder to eek out performance from your code. etc etc..

denim_chicken··on Google discloses three severe vulnerabilities in Apple OS X
Such naivety.
denim_chicken··on How to zero a buffer
In GNU C one can add the statement

    asm ("" : : "m" (&key));
just before or after the memset, effectively telling the compiler that the address of "key" escapes the scope of the function.
denim_chicken··on Macroscopic quantum objects cannot exist if P ≠ NP?
There is no evidence that nature can globally solve NP-hard problems. At best, nature finds locally optimum solutions to these problems.
denim_chicken··on ARM64 and You
But why didn't Apple increase the RAM _and_ upgrade the processor?
denim_chicken··on ARM64 and You
The extra RAM also helps. Any good OS will not fail to find a use for extra RAM.
← PreviousPage 2 of 3Next →