Better HN
topnewbestaskshowjobs
Log inSign up

breadbox

3,118 karma · joined Mar 18, 2010 (16y ago) · 566 submissions

My personal website is at muppetlabs.com under my username.
Submissions

comment 11y ago · link · parent

But this is exactly the point of the article: There is an entire world in between "only interested in finding holes to poke" and "a pat on the back". It's a wonderful place, full of bridges and people working together that DOESN'T imply "I assume this is already perfect or else you wouldn't be wasting my time telling me about it."

comment 11y ago · link · parent

> Brainfuck is actually rather complicated. As mentioned above, it has 8 instructions [...] > but there are several languages which only require one instruction.

True enough, but I would say the crucial difference is that Brainfuck's eight instructions have no parameters, whereas all single-instruction languages use one or more operands in order for their lone instruction to have multiple effects.

comment 11y ago · link · parent

Were you aware that the original 1972 INTERCAL compiler was written in SPITBOL?

comment 11y ago · link · parent

Speaking as the original author of both of those documents (and a significant fraction of all INTERCAL code), I can affirm that I have INTERCAL on my resume. It's only come up once in an interview, sadly. Someday someone will ask me to write INTERCAL on the whiteboard....

comment 11y ago · link · parent

Certainly there is advantage in having a simple hello-world program. The original purpose of hello-world, naturally, is just to have something to verify that your environment and tools are properly installed and configured before you go off and do anything serious.

But because Petzold used "his" hello-world program to introduce you to a bunch of critical, foundational concepts -- to show you everything you needed in order to get a functioning top-level application window open on the desktop -- I myself found it a great place to start. By forcing you to confront the message loop from square one, it really reinforced the idea that you aren't in Kansas anymore (and you can't do things like the Kansans do).

As Petzold hints in his article, the original version of the book (for Windows 2.x) didn't even start with that program, but worked its way up to hello-world through a sequence of 5-10 iterations that got you to that point over the course of an entire chapter. (Thus for example one iteration actually opened a top-level window but lacked a message loop, so the program exited and the window immediately disappeared after it was created.) It makes sense that he had to edit out such a lackadaisical introductory chapter as the subject of Windows programming got bigger and bigger, but I for one always liked that chapter.

comment 12y ago · link · parent

Exactly! With the current maker movement you'd think they would be primed to reinvent themselves.

After reading that article, however, I'm inclined to think that their problems are not so much from a market that changed out from under them, but rather are internal and self-inflicted. If so, then they completely deserve their current situation.

comment 12y ago · link · parent

It's awful to read that and compare it with what Radio Shack was for us geeklings in the 1980s. For those of us living far from big cities, Radio Shack was the source of electric parts, IC chips, LEDs, not to mention hands-on access to actual computers.

comment 12y ago · link · parent

I loved having the debugger separated out onto its own screen, even if it was a monochrome screen showing a bunch of tiled windows drawn with CP437 text-mode characters. To this day I miss the perfection of that setup.

One of the first times I had to use a "modern" 32-bit debugger, one with its own top-level window on the normal desktop, I was trying to find a bug triggered by focus events. Every time I hit a breakpoint, the focus would change to the debugger, dropping another focus event into the event queue, which would naturally trigger the breakpoint again once I stopped single-stepping. Having the debugger embedded in the system you're trying to debug can be very, very annoying.

comment 12y ago · link · parent

Franklin is the closest thing we have to a scientist on our currency now -- so, maybe.

comment 12y ago · link · parent

No, that's not too obvious. As has already been pointed out, you're going to need a circle the size of a building if you want to get more than 2-3 digits of precision (assuming that you can make your measurements with millimeter accuracy). How are you going to verify that your inscribed circle has no serious imperfections? Try making a building-sized circle on the ground using string -- it will be off of true by much more than a millimeter, I assure you.

comment 12y ago · link · parent

You might think that if you've never tried it. But how do you get a giant circle on the ground in the first place? I mean, sure that giant circle you've drawn there looks circular, but how do you know that it is? Normally you'd measure it and verify it, but the whole point is that you're trying to use this circle to determine what those verified measurements ought to be in the first place. Even a hairsbreadth misshapen circle is going to give you wrong numbers. No, there's no comparison to finding a precise mathematical formula and exploiting it.

252.

The Teensy Files: Creating teensy ELF executables for Linux(muppetlabs.com ↗)

44 points · by breadbox · 12y ago · 7 comments

comment 12y ago · link · parent

A nice little page with some very helpful examples for someone just starting out with using assembly on Linux. (There actually isn't much that's specific to Nasm, though. Based on the page's title, I would have at least expected an example that demonstrated setting up a .bss section, with the special resd [et al.] directives, and some examples of Nasm macros, which have some idiosyncratic features. But that's just a minor quibble about the name of the page. The information that is there is plenty useful, and not always easy to find.)

254.

Lopsided: Sifting through the election results(bit-player.org ↗)

3 points · by breadbox · 12y ago · discuss

comment 12y ago · link · parent

Only a reminder that the OCR process looks nothing like what humans do.

256.

Sunshine in = Earthshine Out(bit-player.org ↗)

15 points · by breadbox · 12y ago · 1 comment

257.

On sexism, sexual assault and the threat of the ‘non-bro’(deathandtaxesmag.com ↗)

1 points · by breadbox · 12y ago · discuss

comment 12y ago · link · parent

The issue is that pointers with the high bit set are commonplace, whereas pointers that are not aligned to the processor's word size are easily avoided (and on some architectures, outright invalid).

comment 12y ago · link · parent

Setting the high bit would mean that the integer values are no longer automatically distinguishable from pointer values, which is kind of the whole point.

comment 12y ago · link · parent

This is a good perspective -- pointing out e.g. how when the media even tries to report on how casual sexism affect the industry, it usually mangles the real issues beyond recognition. The title doesn't really do the article justice.

comment 12y ago · link · parent

I think a lot of people would agree that both statements are true.

comment 12y ago · link · parent

At one time there was; it was called the Internet. The archive still exists, but it's been made harder to browse through due to being jumbled up with javascript and cat gifs.

comment 12y ago · link · parent

It's not necessary per se, but many programmers do it out of good habits. It becomes much harder to e.g. find memory leaks in your code if you never free the memory you haven't leaked. And normally the extra overhead it entails is imperceptible.

Obviously many programmers do not think to (or cannot easily) test their code with 40 TBs of data.

comment 12y ago · link · parent

I'd argue that a survey of the literature shows quite the opposite. A young adult novel is more likely to address a specific subset of questions, yes, but if anything they are more likely to address e.g. ethical issues and moral dilemmas.

comment 12y ago · link · parent

Leaving aside the typical silly assumption that a "young adult" book is somehow less likely to grapple with important questions...

You shouldn't be at all surprised that a list of books characterized by "what has stayed with you" would skew towards books typically read during youth. I can still provide basic plot lines of the reruns I watched during my childhood, not to mention commercial jingles. Also, youth is a prime time for adopting such guidepost stars. A young adult book is probably going to prove a better roadmap than, say, a cult leader.

comment 12y ago · link · parent

It would probably be easier to write a program to transcribe your piano playing from a silent video aimed at the keyboard, than from an audio recording.

comment 12y ago · link · parent

I believe they were just considered to be blemishes, and as such not part of the shape. (Perhaps just a coating picked up from being too close to the earthly realm?) The telescope, however, showed that there were shadows that changed as the sun and moon changed positions, making it clear that the craters and mountains were actual structures.

comment 12y ago · link · parent

I'm familiar with the difference between the two. It's my experience that what I said is largely true for both, and thus my comments.

comment 12y ago · link · parent

Actually, most of C's "undefined behavior" is left undefined to permit compilers to define whatever behavior is most natural for the target's assembly. Undefined behavior is an issue when you're trying to write portable code. So it's really not surprising that this worked out in the programmer's favor in this situation.

comment 12y ago · link · parent

Ask ten women/minorities if they feel the same way, then ask ten white dudes. If you find a discrepancy between the two groups, then ask yourself if that isn't actually an indication that that call-out is in fact doing the job it was intended to do.
1
8910
19