7,682 reputation
22438
bio website
location Bellingham, WA
age 33
visits member for 4 years, 3 months
seen 13 hours ago

13h
comment Is every language written in C?
@mathguy54: There are more than one implementation of each, but: OCaml is bootstrapped with C and written in its own ML dialect. Glasgow Haskell is written in Haskell and compiles to C. There are hundreds of Scheme compilers, some written in C, some in Scheme, some in ML, several in JavaScript, and many others. The goal of most languages is to be self-hosting, so that they can compile their own source code. C is a common starting point, but it is by no means the only one.
Dec
23
comment Is every language written in C?
@MichaelT: To be fair, most of it is still basically C, but depending on C++ features. That's what I mean.
Dec
23
comment Is every language written in C?
Of course, GCC is now being rewritten in C++, but that's not as important as the fact that the first C compiler couldn't be written in C.
Dec
12
comment Implement a new Unicode encoding in a suitable open-source text-editor?
@MilindR I think you're confused about something, but I'm not sure what. The Unicode blocks are arranged as a standard against which fonts can be developed. If you're talking about making your own Unicode-like mapping, that is a massive undertaking that has previously involved the efforts of international committees, and is well outside the scope of what an individual can do alone. If you're talking about encodings like UTF, please read RFC-2279 and look up how the idea came about - it's the standard because any other approach would be needlessly convoluted.
Dec
3
comment What can C++ do that Python cannot?
Put another way, C++ offers tools to meet a requirement of completing a computation within a resource-limited (time-limited, memory-limited, etc.) window. For example, many games have the requirement that all work done for a given frame must be completed in less than 16 milliseconds to achieve a consistent 60 frames per second. The more complex the work, the harder it is to stay within that window.
Nov
27
comment Getting your user agreement right
@rmayer06 The question is one about legal matters, for which no one here is qualified to answer. An attorney who is well-versed in user agreements can clarify what issues need to be addressed, and more importantly, how to word the agreement to protect him from litigious users.
Sep
26
comment Why do most programming languages have special keyword or syntax for declaring functions?
Just FYI: Your second "why not" example is syntactically identical to CoffeeScript.
Sep
8
comment Should a developer know the inner workings of the computers' hardware?
@AndrewHill: When is that a hardware matter and not an algorithmic one? The question is about understanding low-level hardware behavior, not high-level algorithms.
Aug
24
comment Why does void in C mean not void?
@Snowman: Your most recent comment is a much better description of what void is than your answer: It is, literally, the absence of type. Simple as that. And, having no type, it can have no value; so a type of pointer to void is a pointer to nothing in particular, just a location in memory.
Jul
18
comment What was Ruby used for before Rails?
@djechlin: Anything. Everything from build systems to web applications. Rails is merely a framework. Asking what it was used for before it got one of several dozen web frameworks implies it has no use without that framework, which is patently ridiculous. It was used for all of the same things that Python, PHP, Perl, and a dozen other languages were used for.
Jul
9
comment What do you think was a poor design choice in Java?
@Andrea: Unlike Java, Scala has the privilege of having a stronger type system from which weaker generics can be generated. You can always go to weaker typing, but you can't always go stronger.
Jun
20
comment Learning computer architecture as a programmer
For the record, the books assume C or C++ (which includes Objective-C, as it's a strict superset of both), and discusses inline assembly. It doesn't get much more "high-level" than that.
May
12
comment Can C++ be used as a server-side web development language?
@PaulDraper: Does it matter? The point, and implication, is that the reason Facebook moved away from using a pure PHP infrastructure is the expense of scaling, specifically because of the execution overhead of PHP interpreters. Surely that's changed, but my point stands, unaltered.
Mar
12
comment How do I licence my OS project, which uses other (differently-licenced) projects?
I'm only saying that it's bad form to offer legal advice without appropriate disclaimers. Getting licensing wrong can be a big deal to some very litigious folks, and the best way to avoid it is to have an attorney's assistance in verifying that the licensing is correct and valid. You and I may read the license one way, but a Court may one day read them another, despite the best efforts of the license authors. Adding the simple disclaimer "TINLA, IANAL, talk to your attorney" is a sufficient CYA.
Mar
11
comment How do I licence my OS project, which uses other (differently-licenced) projects?
But, he should probably consult an attorney anyway.
Mar
1
comment What data cannot be compressed by huffman codes?
@Carson63000: That sounds about right. 256 values with evenly distributed probabilities would require an average of at least 8 bits to represent them, and depending on how your huffman tree is built, that could mean more bits, yes.
Dec
5
comment What is considered best practice for printing usage / help (--help)?
@mouviciel: ... I thought it was. I guess not. C++ has a related standard stream (cin, cout, cerr, and clog), so I guess I thought stdlog was in the C standard. My bad.
Dec
5
comment What is considered best practice for printing usage / help (--help)?
But help is not necessarily desirable standard output, is it? How about stdlog?
Nov
28
comment adding array pointer in c
@Jonathan: You won't see this in other languages except perhaps C++ (where the rules are a bit different). This is a peculiarity unique to C.
Nov
26
comment Is application written from scratch in programming language has to be license?
A notable (and fairly uncommon) exception is (was?) Opa, which, becuase its standard library was licensed AGPL, it imposed the AGPL on all applications.