HNHacker News
TopNewBestAskShowJobs

claystu

178 karma · joined November 8, 2011

submissionscomments
claystu··on The Air Force Gives Up Its Plan to Retire the A-10
Retiring the A-10 probably has more to do with trying to find a reason for the F35 than any real issues with the A-10's performance, which is disturbing given the real concerns being raised about the F35's capabilities.
claystu··on Flat assembler: x86 assembler that does multiple passes to optimize machine code
This is a serious question: what's the point of programming in assembly if you don't want to control the registers? And what do you do if the assembler does a poor job of register allocation? If you hand optimize it, you're back in normal assembly; if you ignore it, you might as well not check in the first place.

Once you sacrifice the registers, assembly just becomes a non-portable programming language without any libraries. Unless you build it out with macros and capitalize on it being a programmable programming language, but then why not go with Forth or some kind of Lisp?

What does no-register assembly gain you that higher level languages don't already offer?

claystu··on Why I Write Games in C
Can you point to some blog posts on this subject? I would love to see what's out there.
claystu··on TIOBE Index for January 2016
Tiobe can't be right. It has Assembly ahead of Ruby and right behind JavaScript. What???

Redmonk looks flawed too. I would expect GitHub to create a major sampling bias in favor of smaller, throwaway projects, and in fact, a quick search(1) on GitHub appears to show 2.2 million projects smaller than a kilobyte that have never gotten a single star. Should those be counted? Do they really reflect anything meaningful about the language's rank?

In my opinion, the only meaningful measure of a programming language worth quantifying from the net are StackOverFlow tags: they can be counted and read and provide a real reflection of the language's community without giving any special preference to language, license, or context.

Everything else is hopelessly subjective: whether or not the language maps well to a particular problem, whether it maps well to the way you like to program, and whether it fits into the ecosystem in which you plan to deploy it. You can't measure those with google searches.

(1) https://github.com/search?utf8=%E2%9C%93&q=size%3A%3C1+stars...

claystu··on Flat assembler: x86 assembler that does multiple passes to optimize machine code
Your wish has been granted. It's called C and it's been around since the 70's.
claystu··on Findings from 15 years of the International Space Station
Oh I'm a big fan of NASA and think we ought to spend a lot on space since it's the future, but that doesn't change the fact that the Shuttle and the ISS were terrible investments. For one thing, the shuttle could lift only a fraction of what the Saturn V (used for Apollo and Skylab) lifted. In fact, Skylab actually had more space than even the largest module on the ISS (almost 2x) and was launched all in one go with a Saturn V.

Think about that: Skylab was bigger and was launched in a single day by a Saturn V. It also only cost $2.2 billion vs $150 billion for the ISS. If we had stuck with Saturn V's and the Skylab solution, we could have around 50 space stations right now--as opposed to just one. Or better yet, we could have colonies on Mars, and deep space manned missions (remember...the ship in 2001 A Space Odyssey wasn't supposed to be science fiction), and many more super-sized space telescopes, and who knows what else.

Anyway, I look at what we've done with NASA for the past 40 years compared to what we could have done and I can't help but feel like we squandered an incredible opportunity.

claystu··on Where are we in the Python 3 transition?
Sorry... s/day/did
claystu··on Where are we in the Python 3 transition?
More importantly, these stages have nothing to do with choosing either Python 2 or Python 3. Python is just a tool. If one doesn't work, you choose another, and if the developers of that tool decide to screw it up, you just move on.
claystu··on Where are we in the Python 3 transition?
According to the python community survey of 2014, 80% of users are still using Python 2. Of course, that was two years ago, but 2014 was still six years after Python 3 was released. (https://wiki.python.org/moin/2.x-vs-3.x-survey)

If the python developers were any normal business, they would have abandoned Python 3 and returned back to developing what their customers obviously prefer; the problem here is that the python developers essentially concluded that because users get python for free, they aren't customers at all and the python developers can do whatever they want and their users will eventually be forced to fall into line.

Except they won't...

Python users are refusing to migrate to Python 3 as a community. It's a shame that the python developers have decided to try to show their customers who is boss because it won't work--the developers will lose. Many people will continue with 2.7 forever and fork the language in 2020 like Perl 5 day. The rest, like me, have dumped python and moved on to greener pastures.

claystu··on Findings from 15 years of the International Space Station
It's telling that the only way to make the ISS look good is by comparing it to one of the biggest boondoggles in US funding history.
claystu··on Findings from 15 years of the International Space Station
We already had Skylab, which never gets the attention it deserves, and the Russians had Mir. They kept somebody up there for more than a year.

The true mission of the ISS was to serve as a jobs program for the shuttle.

The Apollo missions accomplished infinitely more--including launching Skylab--than the shuttle and ISS ever could have accomplished.

claystu··on First chapter of Kernighan and Donovan's new Go book [pdf]
It would be nice if all C libraries get rewritten in Go, but realistically, there are way too many for that to ever happen.
claystu··on First chapter of Kernighan and Donovan's new Go book [pdf]
Nice to see Oberon getting its fair share of credit too
claystu··on First chapter of Kernighan and Donovan's new Go book [pdf]
I have no idea what they will specifically say regarding calling C from Go, but the table of contents says that part is only going to be about five pages.

I really wish they would beef up this portion of the book.

claystu··on Cat purr generator
My cat immediately reacted! Must be pretty good...
claystu··on On being the maintainer and sole developer of SPITBOL (2012)
Java employs a limited Goto in the form of labelled continue statements. C# includes an explicit Goto statement for breaking out of loops.

Goto is definitely still out there.

claystu··on What Killed Smalltalk?
So, you're saying that the prototype for Pharo and Squeak was Smalltalk 71 or one of the other, earlier versions of Smalltalk?

In any case, I know the early history of Smalltalk too. All I'm saying is that your original point was flawed: the ultimate goal of programming languages is to be useful tools; otherwise, they are merely art.

Experimentation during the development of a programming language is an obvious part of inventing them--as experimentation and prototyping is with any tool--but experimentation is not their ultimate goal.

claystu··on What Killed Smalltalk?
What have you built with Pharo? (Genuine question...)
claystu··on What Killed Smalltalk?
> Whether these languages are useful day-to-day doesn't really matter

No. Usefulness does matter because, at the end of the day, programming languages are tools, and a useless programming language has no more value than a hammer that breaks if you hit it on anything.

It's nice that there are research languages out there that explore new ideas, but Smalltalk 80--the prototype for all modern Smalltalks--was designed and released to be useful day-to-day, and the Smalltalk distributions out there now--Pharo and Squeak--really look like they want to attract users.

claystu··on Hello Ruby – Almost there
Your "OOP sense" is exactly what I meant about confusing things with computer science jargon. To a beginner, treating objects as structs with functions is all they need to know.
claystu··on Hello Ruby – Almost there
I think objects are intuitive. After all, we live in a world made of objects.

What confuses newcomers is the computer science vocabulary that everyone insists on using when teaching objects. I am a big fan of object oriented programming, but the vocabulary and terrible metaphors of introductory books reads like punishment.

The only language that has done a worse job explaining a simple concept is Lisp with macros. My God! It's like they're trying to keep Macro's a secret.

claystu··on Hello Ruby – Almost there
I would say Python and Javascript are both easier to install--you don't even have to install Javascript--and Python is easier to get coding in thanks to 1) fewer high level concepts that Ruby gets from Smalltalk and 2) Idle.

Having said that, Ruby is the superior language to Python once you get going, in my opinion, because of what it steals from Smalltalk.

claystu··on Creating a language using only assembly language
Forth has an ANSI standard as a programming language. What more do you need? What features does a language require to make it a 3GL?
claystu··on Fantasy must shake off the tyranny of the mega-novel
It wasn't inability. If you look closely, the first Wheel of Time book stands alone and actually concludes the story by beating the main bad guy at the end of book 1. However, after the first book's success, Jordan obviously realized he could make it a trilogy, which he did and once again has Rand fight a triumphant battle that defeats all the forces of evil at the end of book 3. And then...Jordan finally just decided to pretend like he hadn't ended it twice already and settled in to write non-stop in that universe forever...which he did.

I personally quit reading the series somewhere around book 6 or 7, but it wasn't inability that kept him going...it was sales.

GRR Martin, on the other hand, I firmly believe lost track of his story. I don't think he would ever have made any more headway on it had it not been for the HBO miniseries and all the help and fan-made reference pages that cropped up as a result. I predicted for years that the story had stalled and would never see anymore progress during the mid 2000's.

claystu··on There are more trees in the U.S. than there were 100 years ago
I wasn't saying that farming is no longer viable anywhere as a business. I was saying that there are places, like my home state, that have seen a resurgence of forest as farms have disappeared due to competition from elsewhere.
claystu··on There are more trees in the U.S. than there were 100 years ago
At the same time, turning young trees into old trees isn't a very difficult problem. Once the decision is made either by economics--farming is no longer viable--or aesthetics to let the trees grow back, it's only a matter of time.
claystu··on There are more trees in the U.S. than there were 100 years ago
North Carolina--East Coast state in USA--is basically contiguous forest once you leave the downtown area of our few big cities. Farms and neighborhoods still punctuate the landscape, but any land that isn't routinely maintained by farming and mowing begins to revert back to woods very quickly.
claystu··on Ask HN: Should I use K&R to learn C?
Was the Morris Worm, which brought down a huge percentage of Unix Servers in 1988, the result of C?

In any case, there was definitely a network that was being used by a lot of people by 1988.

claystu··on Classic Game Postmortem: Loom [video]
Loom was the one game I never purchased that captured my imagination from the game mag descriptions back when it first came out. It's awesome to have finally been able to "play" it and see what it was all about.
claystu··on Perl Already Won
I know you're just being funny, but go check out this page on the [Underwood typewriter](http://site.xavier.edu/polt/typewriters/underwood5.html)
← PreviousPage 3 of 5Next →