Better HN
topnewbestaskshowjobs
Log inSign up

grav1tas

258 karma · joined Oct 21, 2010 (16y ago) · 130 submissions

Submissions

comment 15y ago · link · parent

I would qualify that statement better by saying "compilers with Turing Complete macros or type systems terminate for any input is trivially false". The point may not be trivial (which I'm not ready to concede), but it still doesn't matter. The author's means implicitly relies on an evasion where programs aren't written in this (rather strange) way. It's a safe assumption to say that you can eliminate programs written in such a way that will not compile, then the Halting Problem as you've stated it doesn't apply.

I think you may be right about the point your trying to make, but the point I'm making is that your point covers a negligible section of programs that the author would hope to analyze, so it doesn't matter.

comment 15y ago · link · parent

That's fine that they're different. My point is that they're both formal processes. Adding AI to the mix will not help you arrive at formal conclusions. The conclusions will be probabilistic, instead. If an AI could use formal routines to show you formal conclusions, then you wouldn't need an AI, you'd just need your routines.

comment 15y ago · link · parent

The point about the macros being Turing Complete is trivial in this instance because if you wrote a macro that never terminated, you'd never compile anything do decompile ;-).

comment 15y ago · link · parent

I don't think you connected your arguments very well. Just because a human can do something doesn't mean that AI's are the best solution to the task. I'm not sure how your specific example plays to the general case.

Both AIs and Humans both attempt to ape some fundamental truism or formalism about logic to compile and decompile programs. To me, it's better off knowing what those formalisms are than aping them with intelligent behavior, though finding formalisms is hard so sometimes we make do.

comment 15y ago · link · parent

The set of all possible inputs for a compiler is infinite, too. Does that mean that compilers are all harangued by the halting problem as well? Nope. Having an infinite number of possible inputs (infinite input set size) does not prevent you from showing that a program can actually halt. I think most compilers are written in a way that can be shown to halt, as well.

The Halting Problem does apply in the general case, but if you carve up your programs and reason about them, you can still show that you can have a halter. The Halting Problem just states that there does not exist a method that will take an arbitrary program and show it to be a halter.

comment 15y ago · link · parent

It depends on what you want from decompilation. Decompilation by its basic nature is just as decideable as compilation is. It's a translation from one language to another in addition to semantics-preserving translations. Now what a lot of people seem to want from a decompiler that makes them intractable is a guarantee that the output source will look just like the source used to compile the source program for the decompiler.

Program1 -> Compiler -> BinProg1 (compilation)

BinProg1 -> Decompiler -> Program2 (decompilation)

Even if the source language of the Compiler and the target language of the decompiler are the same, you're usually still screwed because the compiler is going to manipulate your program to optimize it or fit it onto your target architecture. The result is going to be a program that looks way more general case than your original program.

Is this undecideable? No way.

comment 15y ago · link · parent

Applying AI to a decompilation problem is just like applying AI to a compilation problem. You're taking a potentially nondeterministic approach to a problem that should be formalized and deterministic. I think AI applied to compilers is something to avoid, in general.

comment 15y ago · link · parent

Sometimes I wonder if these payment processing companies behave like this so they can keep their books straight/solvent.

comment 15y ago · link · parent

I think it might be important to note that while the terms map and reduce do come from Lisp, they're not one-to-one with what these functions do in Lisp. The original MapReduce paper mentions the borrowing, but doesn't really go into specifics. There's a good paper by Ralf Lämmel that describes the relation that MapReduce has to "map" and "reduce" at http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.104.... . I liked this paper much better and found it the most informative functional explanation to MapReduce (note, it's in Haskell).

I think MapReduce is really part of a more general pattern where you have an (in more Haskell-y terms) unfold (anamorphism) to a foldr (catamorphism). If your operations on the items in your intermediate set of data in the MapReduce are associative/commutative, you can work out parallelization more or less for free. It's pretty cool stuff, and really not that complicated when you sit down and think about it.

comment 15y ago · link · parent

Yeah I've always been tweaked by the "inborn" trait thing. I think there's a natural affinity that people can have for things, but at the same time, anybody who puts in the hours can get there with this stuff. Yes, some people "get" how to play a piano right off, and they're naturally really good. For many people who are really good, though, they put in tons of practice hours honing their "piano qi". My 2 cents, at least.

comment 15y ago · link · parent

I'm not sure what's surprising about a compiler with no C in it. They're becoming much more common. I personally think C is an awful language to write a compiler in. One shouldn't be worrying about C's bookkeeping while also worrying about the bookkeeping a compiler requires.

Also, I think it's interesting when people use the word "interesting" when they probably really mean to use the word "annoying". If something really bugs you just say it bugs you.

comment 15y ago · link · parent

Perhaps Peter Thiel's real master plan is to increase the value of an education by convincing a lot of people that they shouldn't go to school, and thus increasing scarcity of those getting degrees. AmIright?

comment 15y ago · link · parent

Your suggestion that the deans are pro-college institution because they are deans doesn't necessarily follow. It actually is an ad hominem against the deans because you're trying to weaken the author's point by reducing the weight of a series of supporting claims made by the deans because you claim that the deans are acting out of self-interest (or interest of some educational-industrial complex of which they are a part) when they wrote these statements. Given that one side of this argument likes to frame the educational institution as bad (and sometimes go as far as saying the people in the institution are actively working to further its negative ends), it would be reasonable to interpret your first remarks as an ad hominem attack.

That said, your initial statement doesn't necessarily follow because it could also be the case that the deans became deans because they earnestly believe in the system they're helping to further, and that's why they became deans. Claiming the possibility of bias doesn't entail the presence of bias.

comment 15y ago · link · parent

I also think it sort of waters down Computer Science to wedge it into engineering and treat it as such. Ultimately it's more about theory, formalisms, and mathematical/logical foundations than it is about "making it go". I think when we start treating a CS program like it's a EE/ECE program, then the CS program is impeded by getting too caught up in the nitty gritty. Don't get me wrong, I think the hardware portions are very important, but I like writing compilers. I'll learn as much about a system as I need to get a good compiler going, but the physical nature of a system generally are of no interest to me. They should be somebody else's job (who enjoys such things and derives pleasure in doing them [more power to them for it ;-)]).

comment 15y ago · link · parent

Is good software engineering something you can truly learn in the classroom, or is it something that's emergent to applying good learning techniques to real life experiences (kind of like being a journeyman)? I think a good Software Engineering degree would be one that somebody who has a good amount of real life programming experience would return to get to signify a level of "mastery" in the field. My two cents at least. I don't want to act like I know a ton about the trades, but I'd like to think that there is some similarity in mastery of Software Engineering to being a master craftsman in both learnedness and years of practice.

comment 15y ago · link · parent

Isn't that kinda like saying the C language still lives on in the form of Java?

comment 15y ago · link · parent

I've read some of this and it's good stuff. I guess where I was coming from was that OOP is already so scatter shot and widely used as such that even if somebody did formalize something based on OOP, it wouldn't be generally accepted as "the OOP standard". So many people have an idea of what OOP is based on the language they've used, and I doubt that if somebody formalized OOP tomorrow that everybody would rush to make their languages compliant to the model.

That being said, I suppose that a solid new language with formalized OOP models that was very useful could become the next Java/C++. Time (and marketing) will tell. I would be very excited about such a language >_>.

comment 15y ago · link · parent

Haskell is a purely functional language in this sense.

http://en.wikipedia.org/wiki/Pure_function

http://en.wikipedia.org/wiki/Purely_functional

Haskell has taken functional purity and ran with it. It's proof that you can eliminate side effects (sans the sin bin) and still actually get things done. The benefits of this can be seen in the papers written by SPJ, Wadler, etc. Moreover some features from Haskell/FP have influenced the mainstream programming community (Java generics).

As far as I know Erlang is not purely functional, nor does it try to be. On top of that, I think Erlang's emphasis is more on the actor model / message passing than it is on functional programming. That's my take at least.

comment 15y ago · link · parent

I think with languages like Haskell, ML, Coq, ACL2 and their ilk, you're not going to get a lot of traction for theorem proving in an OOP-ed C++ variant. The first two do compile to machine code, and have type systems that better lend themselves to theorem proving. I'm not sure if C++ OOP is formal enough (or generally accepted as such) to be a strong contender in theorem proving.

comment 15y ago · link · parent

FP ~ Math/Formal Logics. OOP is a grab bag of theories, ideas and their applications to programming. Unfortunately I don't think that there's a generally accepted formal notion of what OOP actually is. On the other hand, functional languages, while there's some variance, all borrow from the same core principles. Moreover, feature parity in functional languages is a lot more clear in FP than in OOP. Terms such as "pureness" have a well defined meaning.

This is by no means a dogging of OOP. I personally think OOP seems to be better suited for practical business computing. Also FP, tends to have a higher learning curve (ex. monads) such that people of the street and in many academic programs gravitate towards the OOP paradigm. I think this could say something about how natural it is to use OOP, or maybe it just says something about how everybody is taught that programming "should be" (imperative vs functional).

comment 15y ago · link · parent

I think to call C++ compilers a black box and then turn around and say something like gcc is not is a bit of a stretch, and simply unfair to C++. The largess of the GNU C compiler is the very definition of a black box. If you're going to run off and do loads of systems programming, you're going to have to understand exactly how your black box works. This is still very possible with C++, it's just a lot more complicated given the semantics of the language.

I think this back and forth sort of breaks down because people say things like C and C++ and it's not clear if they're talking about

1) The languages themselves. 2) The compilers 3) Possible runtimes and other overhead that need to be considered in a stereotypical environment (that is, probably not kernel coding). It tweeks me every time we get into a language war, because a lot of the time the language itself isn't the real point of discussion, but rather it's some sideways way of referring to the toolchain that's popular at the given moment. C++ as a language could very well be tooled to write a kernel, given a good compiler and a semantics that coders stick to (just like C). I feel like the C++/HLL camps are crying for something other than C because they're not interested in the super low level details, but still would like to eek some functionality out of the kernel. They're basically saying, "we would prefer tools other than C" (regardless of whether C++ is a worthwhile and better option, I am unconvinced).

I think an even more interesting conversation to have would be: have operating systems kernels become TOO COMPLEX to code in (just) C/ASM? Are we in over our heads? Should we invest in the creation of better tools to handle such large, complex systems or is everything just fine?

DISCLAIMER: I actually don't like programming in C++. I will put up with C, but I usually find myself writing in Ruby or Haskell.

comment 15y ago · link · parent

While the price tag is pretty bad, at least she'll be ending with an advanced degree. Some of the people in this article had comparable liabilities but were going to wind up with undergraduate degrees. I hope it works out for you all, regardless.

comment 15y ago · link · parent

Agreed. My second year in college as a CS student I felt like I was rolling in money (relative to working at a grocery store) when I had an internship.

comment 15y ago · link · parent

Which part? I don't think he actually logged in under the guy's Facebook account?

comment 15y ago · link · parent

Care to elaborate what you mean by VB-like stack?

comment 15y ago · link · parent

Apple is pretty secretive already. Would it really matter if they got even more secretive? I find myself on the opposite end of the spectrum as you with respect to NDAs. I think it's a sad state of affairs that so many companies today use them to stifle discussion about their up and coming products...or use other legislation or agreements to prevent power users from realizing the full potential of the products they already own (EULAs + DMCA). Are there cases where NDAs make sense? Of course! Is an NDA really an appropriate reason to stifle conversation about an up and coming OS? I personally don't think so. Plus, it's just exciting to talk about new things and leak info and it really doesn't hurt anybody in this case anyway. If anything, it just builds up the fanboy marketing fervor that Apple works off of so well. To say that they are unaware of this effect's existence would be rather strange to me.

As far as being lax about caring for contractual obligations, I think it's a side-effect of living in an overly litigious society where you have to agree to umpteen EULAs a day to get anything done on a computer (and many electronic devices).

comment 15y ago · link · parent

I'm curious if specs in mobile devices have become less important when the device is only supposed to do more or less what it's advertised to doand what the user bought it to do, and not much else. Apple advertises all the apps that work on the iOS line of devices, but these apps are (should be) designed to fit "inside the box" of functionality on the device. Android seems to take a different philosophical approach where users are the big deciders in what is good and appropriate for them on their devices. In the face of advertising versatility, specs do become a bigger issue...especially when you compete with multiple devices on the same platform...like PCs. Apple devices don't have the spec issue, except where it's relevant to show difference between generations of devices. At least that's my two cents. I think both platforms put forth their design philosophies pretty well, and both are respectable options for users. Why people fight over what's better so much is a source of both hilarity and sadness for me.

comment 15y ago · link · parent

The presence of wealth and the presence of motivation do not entail the existence of the other in a person.

comment 15y ago · link · parent

Even if that were the case, you still have to package your app for distribution. The app store model probably makes this easier to do since you don't have to develop a framework for pushing your apps along with any updates you have down the road. Naturally there are libraries for this, but you still have to mess with them, and maintain deployment stuff on your own end.

comment 15y ago · link · parent

That's actually a very interesting point. Is maintaining another app distribution system viable in the face of "developer fatigue"? I guess that also sorta begs the question: is developer fatigue real?
12345