HNHacker News
TopNewBestAskShowJobs

Sirenos

141 karma · joined August 18, 2013

submissionscomments
Sirenos··on Functors, Applicatives, and Monads in Plain English
I always found it a bit amusing that learning Haskell actually helped me get a deeper understanding of C++ templates and metaprogramming.
Sirenos··on Composing Programs – Python 3 in the tradition of SICP
Just because it has those functions doesn't make it good at them. Have you ever seen a Pythonic program converted into functional style? It looks horrendous.
Sirenos··on Peter Naur has died
I don't think that's how it works. Ruby is general-purpose, unlike Rails, which solves a very specific problem by building on top of core Ruby.
Sirenos··on Peter Naur has died
The grandparent was right, in a sense, because while Rails definitely is not a standalone language on its own, it is an embedded DSL since you are working at a much higher level of abstraction than what Ruby offers out-of-the-box.
Sirenos··on The Effects of Computer Programming on the Brain (2012)
Except there are legitimate health-risks to playing video games for extended periods, which I believe is what you mean when you say "preferring video games to the outside world". Both are odds with healthy development if allowed without restrictions, but they are hardly equivalent in their effects on the body.
Sirenos··on Set Theory and Foundations of Mathematics
Isn't Russell's paradox more like a problem with naive set theory? By analogy to a software framework, the paradox would be considered a bug in the framework and say nothing about how useful it is.
Sirenos··on The Advanced Rust Programming Language Book Draft
You're not alone. On flip side, however, there are people who prefer a more informal tone and find academic treatments a little dry. I guess you can't win in that regard since someone else is bound to find your book/guide unapproachable due to whatever subjective reason they have.

That said though, I don't see why an informal tone should preclude getting the information across and sprinkling in some humor -- all without sacrificing precision. Something like Bjarne Stroustrup's C++ book is a good example of how to retain both humor and a thorough treatment of the subject.

Sirenos··on I noticed some disturbing privacy defaults in Windows 10
> Personalized deep learning is an attempt to create a relatively neutral arbiter of all this information, distill it into something useful based not only on the user's behavior but also the aggregate of everyone's behavior. The algorithms don't just learn from what you like but have the potential to uncover interests and information that you might never be able to access outside your bubble.

That's an interesting statement considering how most recommender systems tend to suggest things related to your interests, further keeping you within the confines of your bubble. How is Cortana different?

Sirenos··on C++: Return value optimization vs. std::move
Someone correct me if I am wrong but isn't that last snippet where he returns std::move(localObj) essentially returning an rvalue-ref to a local object? That's like a big no-no because the local object destructs after foo(1) returns.
Sirenos··on I taught myself Python on the Internet and so can you
I liken learning C++ as a newbie to using a chainsaw to slice a pizza: it's not going to be pretty no matter how you do it and you might as well chug down the whole thing. It's always important to pick the right tool for the job, and when you are trying to get into the programmer's mindset, it's really easy to miss the forest for the trees. Programming is a wonderful intersection of math, algorithms, creativity, and the messy reality of modern hardware; that's both a curse and a blessing because it means that you have so many ways of looking at it that a beginner might just think that they aren't smart enough, when the reality is just that they are trying to bite more than they can chew.
Sirenos··on Atom 1.0
Ah, that totally flew over my head. Thanks!
Sirenos··on Atom 1.0
> Emacs has the benefit of decades of Huffman coding for its keystrokes, and I appreciate that.

Huffman coding, emacs, keystrokes, ...

what?

Sirenos··on The Internet is running in debug mode (2014)
> Anyone can look at a web page and learn how it works.

Not so true anymore. It's true that HTML/CSS are easy to inspect on a browser, but the meat of most websites today (JavaScript) is heavily minified to the point that you'd be hard-pressed to call it plain text.

Sirenos··on The Internet is running in debug mode (2014)
> WebAssembly is going to reduce data transfer sizes and load times while increasing developer productivity as the ecosystem and tools surrounding it expand.

That's being a little too optimistic. And assuming that does happen, it's going to take years before it surpasses the current toolset.

Sirenos··on Redundancy vs. dependencies: which is worse? (2008)
Less safe? How so?
Sirenos··on Three months of Rust
Rust isn't what you seem to think it is. It targets a very specific area that's been dominated by C/C++ only because there wasn't anything better out there.

Rust still has a long way to go, but it's making progress and I would personally like to see a world where Rust is the go-to language for systems software.

Sirenos··on What is PL research and how is it useful?
It's just you. PL isn't that rare an abbreviation, although I mostly see it used within discussions about PL Theory.
Sirenos··on The prisoners trying to code their way to a better life
Are you talking about the social stigma or is there something in the law that makes it difficult for ex-convicts to find jobs?
Sirenos··on Y combinator in Scheme
That was a really nice explanation. I like they you write.
Sirenos··on Anthropomorphism Gone Wrong: OOP
I don't think procedural programming itself makes code unreadable. For example, take a look at the redis source code. It's clean and approachable.
Sirenos··on Your language sucks
Maybe it's just my ignorance showing, but it seems to me that the complexity is inherent in the languages themselves.
Sirenos··on Helping my students overcome command-line bullshittery
Except computer science isn't about hardware.
Sirenos··on From Vim to Emacs
Emacs isn't superior to Vim in every possible way. I personally find Vim's modal editing hard to let go of. On the other hand, vimscript is an atrocity compared to Elisp. Vimmers have certainly managed to make some amazing extensions to the editor despite that fact, but no tool is perfect; the whole point of an extension layer is to make the tool work the way you want. The defaults aren't necessarily what everyone likes (or ought to like).
Sirenos··on PureScript: a statically typed language which compiles to JavaScript
Easy to understand != clean

Javascript has enough implicit behavior and then some to make working with it a nightmare unless you remain extremely diligent with your coding practices. To a large extent, it's been around long enough for this to not be a major problem anymore, but is this an acceptable state of affairs for a language that dominates web programming? I'd expect most people to say "no".

Sirenos··on C++ sequenced-before graphs
Just to make sure I've got the terminology down.

Objects correspond to locations in memory.

5 + 6 has operands which are rvalues (and thus not objects because you can't take their address).

if x is an int, then in the context of the expr 5+x, it is undergoing lvalue-to-rvalue conversion

Did I get that right?

Sirenos··on C++ sequenced-before graphs
> Black nodes are value computations in general. Blue nodes are value computations that use the values of objects.

I don't quite understand the difference. Don't all value computations use the values of objects?

Sirenos··on Poor UI Design Can Kill – Air Inter Flight 148, a Harsh Lesson Learned
Well now you're just nitpicking. Vim's notion of a mode is far more central to its operation than that of Emacs. Major/minor modes work differently than do vim's modes.
Sirenos··on Poor UI Design Can Kill – Air Inter Flight 148, a Harsh Lesson Learned
In direct contrast to Vim is Emacs, a modeless editor which uses modifier keys to distinguish inserting text from navigation commands. From my perspective, there doesn't appear to be any other way of choosing keybindings that keep Vim's mnemonic/composable command structure without introducing the slight mental overhead of modes.
Sirenos··on Programming is not math?
> but generations of people have written software, some of it quite substantial, who have no mathematical education at all

Could you list some examples? I am curious.

Sirenos··on Animals in the wild found to use running wheel if given the choice
I don't quite get what you are implying here. "cats are people" is a patently bogus claim whereas their possession of emotion is hardly worth debating.
← PreviousPage 2 of 3Next →