HNHacker News
TopNewBestAskShowJobs

bstamour

303 karma · joined July 19, 2013

submissionscomments
bstamour··on Building a Tetris Clone in x86 Assembly, pt. Ⅱ: I/O
You're not trolling, but you are being an ass. Tons of tech can be cool for the sake of being cool, without users in mind.
bstamour··on Supercomputers: Obama orders world's fastest computer
One of the issues faced in super computing isn't just raw horsepower or more cpu's, it's latency. It's not enough to just connect a ton of machines via ethernet, you need specialized hardware to provide high-throughput sharing of data.
bstamour··on Two years after LASIK eye surgery
I had it done about 6 years ago. While I wasn't completely under, I was given Valium beforehand and therefore didn't really give a shit about what they were doing. Also, because of the freezing, I didn't feel a thing. I just floated there, looking where they told me to look, and about 10 minutes later I was back out on the waiting room with my parents.
bstamour··on Two years after LASIK eye surgery
I had my eyes zapped about six years ago, and it's been nothing but positive for me. Like the author said, the procedure itself was painless (and very fast, a few minutes per eye).

I had the surgery done early in the morning, and afterward slept through most of the day to let my eyes heal. I woke up the next day and was able to read car license plates across the street, where two days prior my vision was bad enough that I couldn't make out facial features over an arm's length away without my glasses.

I'll second the author: it was one of the best decisions I ever made.

bstamour··on Dragula: Simple drag and drop
Does Rob Zombie know about this? :-)
bstamour··on Google: 90% of our engineers use the software you wrote (Homebrew), but...
Devil's avocado: if they're truly CS fundamentals, then they should be baked into you good and deep during the course of your college education. It shouldn't be painful at all.
bstamour··on Show HN: Calc, a simple command-line calulator in C
You can use bc interactively just fine, no needing to pipe anything.

    $ bc
    3+4
    7
    ^D
    $
bstamour··on Ask HN: What are your hobbies, and why are they cool?
I practice Isshinryu, a particular style of Karate. We place about equal emphasis on traditional aspects of Karate (empty-handed forms, or "katas", traditional weapons, etc), as well as in sparring. While we do occasionally get the odd macho-man in our club, the vast majority of us are regular people looking for a fun way to stay in shape.

As for your stereotype, it really depends on the gym. I'd say if you're looking to do mixed martial arts of boxing, the probability of finding a meathead-alpha-gym will be higher, but there are MMA and boxing gyms that are also laid back. So in a nutshell, you really have to take it on a gym-by-gym basis. If you're looking at getting into MA, find a place close to you, and sit in and observe a few classes before giving it a try, and be aware of the vibes you get from it. If you get a decent feeling about the place, see if you can try a lesson or two for free, to see if it's for you. Repeat this process for other gyms and soon you'll find the one for you :-)

bstamour··on Ask HN: What are your hobbies, and why are they cool?
I practice/teach martial arts 2-4 times a week. People pay me to hit them, and that's why it's so cool :-) Joking aside, it's a great way to stay in shape, and the people at my dojo are fantastic - they're like a second family to me.
bstamour··on Death of a Programmer, Life of a Farmer
Found the person who only read the first few paragraphs.
bstamour··on GCC 5.1 released
I haven't really heard much buzz about C11 since its release. I don't mean to sound snarky (I'm really curious): does anyone really use C11 at all?
bstamour··on A Million Lines of Bad Code
In the martial arts community we call this "praise, correct, praise."
bstamour··on A repository of modern C++ code samples curated by the community
"A Tour of C++" by Bjarne is also a nice introduction to modern C++. It's essentially a select few chapters from TCPPPL4 that covers the fundamental bits of the language.
bstamour··on Arch Linux – Do it yourself
I thought so too, but then I reminded myself that my laptop has a 256 gb solid state drive. 6 gb for a fully loaded system is pretty small in comparison.
bstamour··on Arch Linux – Do it yourself
What you described is basically slackware. If you install the whole image (roughly 6 gb) you get a working desktop machine that's easy to keep up to date (just run slackpkg update once in a while). Yet when it comes to tweaking, it's easy, because everything is a shell script or text file, no binary blobs of weird file formats. It actually reminds me a lot of FreeBSD.
bstamour··on Doom3 is the proof that “keep it simple” works
All of that is hardly prerequisite for using modern C++ on a day-to-day basis. You can get away with just reading "A Tour of C++" and the Effective C++ books.

If you want to start writing highly generic libraries with the intention of submitting them to boost, then absolutely you should be reading everything in your list and more. But how many C++ programmers are writing boost libraries?

bstamour··on Dempster–Shafer theory
For anyone interested in applying Dempster-Shafer Theory, I suggest checking out Subjective Logic [1] as well. One of the issues that pops up in DS-Theory is that the traditional method of belief combination tends to assign lots of mass to uncertainty, and thus highly opposed beliefs end up with sometimes counter-intuitive results. Subjective Logic offers an extensive battery of operators for combining beliefs: from cumulative and averaging fusion, to belief constraining, to consensus. I did my Master's thesis on implementing and analyzing the various SL operators, and for many situations, working with SL is very pleasant.

[1] http://folk.uio.no/josang/sl/

bstamour··on Ending the open office epidemic
Maybe a kind of torus?
bstamour··on Category theory for beginners
Ah yes, you're right. I always forget about bottom.
bstamour··on Category theory for beginners
Can you expand on this? I'm genuinely curious.
bstamour··on Category theory for beginners
The only thing I can think of that's wrong with Haskell's functors is that they're more specifically endofunctors, or am I missing something else?
bstamour··on Learn You a Haskell for Great Good (2008)
I found the typeclassopedia to be really helpful after I'd been programming in Haskell for a few years. It really helped tie all of the types together, but a part of me thinks that it might be a bit overkill for someone who's just dipping their toes in for the first time.
bstamour··on Popular Myths about C++, Part 1
I still use C++ because it not only allows me to write high performance code, but also allows me to easily express high level ideas without worrying about too much overhead. I can write generic algorithms in terms of monoids and semigroups and I can write device drivers. I do a lot of signal processing at work, so sometimes these high-level and low-level concepts exist side-by-side in the same codebase.

Edit: I should mention that by no means to I think C++ is perfect. Very few other languages, however, give you the amount of low-level control, and the tools to build cheap, powerful abstractions, like C++ does.

bstamour··on Reallocarray() in OpenBSD: Integer Overflow Detection for Free
Modern C and modern C++ are closer to siblings now, with the parent being K&R C. Each has added features that the other has not embraced, and writing code in one like you would in the other is a recipe for pain and suffering.
bstamour··on Reallocarray() in OpenBSD: Integer Overflow Detection for Free
> In application development, you seldom have the need for maximum speed in all your coding. And always worrying about such things as what is addressed by this small enhancement, is a pain.

That's what my comment was addressing: In C++ with vector, map, etc, you don't need to remember to safely realloc manually, because the containers do it for you automatically.

bstamour··on Reallocarray() in OpenBSD: Integer Overflow Detection for Free
You won't need this enhancement in C++ if you just use `std::vector` or `std::array`.
bstamour··on Ask HN: What is HN reading?
I have two on the go. In the middle of moving houses so it's been about a week or so since I've picked up either :S

1. Prelude to Foundation by Asimov 2. The Elegant Universe by Brian Greene

I've read the Foundation series in the past, and I'm going through them again since it's been years. As for Greene, I've always had an interest in Physics, though I studied Computer Science. It's a nice introduction to String Theory that is approachable enough to be read during my leisure time.

bstamour··on Failing the startup game at Unbabel
I'm not sure either. The first thing that came to mind was "programmable logic controller", but that makes no sense in the context :S
bstamour··on We have C++14
Very few people care about any kind of computing - they care about the end result. Between embedded systems, servers and systems programs, and infrastructure, the modern world basically runs on C and C++.
bstamour··on Why C++ Sails When the Vasa Sank [pdf]
C++ is indeed a high level language, comparable to, say, C#. Let's enumerate some features that we take for granted in most modern high level languages

1. Type deduction (C++ has it)

2. Lambda functions (C++ has it)

3. Support for OOP (C++ has it)

4. Generics (C++ has it)

5. Static typing (C++ has it)

6. Support for functional-style programming (C++ has it)

7. Support for garbage collection* (C++11 has it)

8. A powerful library of data structures and algorithms (C++ has it, and the library is growing very rapidly as well.)

C++ supports pretty much every feature other high level languages support, but the features are opt-in, that is, if you don't use it, you don't pay for it.

*As far as I know, however, no compilers are currently implementing garbage collection. But the language support is there already.

← PreviousPage 4 of 5Next →