HNHacker News
TopNewBestAskShowJobs

gngeal

987 karma · joined March 2, 2013

submissionscomments
gngeal··on How to interpret complex C/C++ declarations (2004)
My memory may be faulty, but isn't this also a significant material in K&R? That would make it almost as old as dirt.
gngeal··on The Belt CPU Architecture
Is this architecture going to face the same issue?

Why don't you just recompile?

gngeal··on Everybody thinks about garbage collection the wrong way (2010)
Wouldn't a creation of the equivalent of a permspace and instructing said tools to ignore it mitigate the problem?
gngeal··on More Encryption Is Not the Solution
"To an intelligence agency, a well-thought-out weakness can easily be worth a cover identity and five years of salary to a top-notch programmer. Anybody who puts in five good years on an open source project can get away with inserting a patch that 'on further inspection might not be optimal.'"

Suddenly, Dijkstra's insistence on developing the proof together with the program and providing it to any interested person doesn't seem to be the ridiculous idea that some people consider it to be, does it?

gngeal··on The Future of Programming
Think about how "direct manipulation" programming fits into a source control / branching workflow, for example.

Trivially. Since virtually all currently used languages form syntactic trees (the exception being such beasts as Forth, Postscript etc.), you could use persistent data structures (which are trees again) for programs in these languages. Serializing the persistent data structure in a log-like fashion would be equivalent to working with a Git repository, only on a more fine-grained level. Essentially, this would also unify the notion of in-editor undo/redo and commit-based versioning; there would be no difference between the two at all. You'd simply tag the whole thing every now and then whenever you reach a development milestone.

gngeal··on Down with lifehacking
Do you think that quantifying your life actually has some benefits? I was never totally sold on that claim.

You've never had an ECG done?

gngeal··on GameBoy Programming Manual
I'd also bet 5$ that in 20 years the changes won't be as dramatic as the 80s-00s shift.

Thare's been a "dramatic change" between the 80's and 00's? If so, I must have missed it. I look at, say, IBM 1620 versus the machines designed in the 1980's, and that is change to me. In the 1980's, essentially everything we use now in the area of personal computing architectures has already been invented and put to use. Essentially, by the time you get to the 1980's, everything has been so homogenized and regularized that I really don't see anything new that happened since then.

Perhaps some change is going on now - AMD's hUMA seems to me to be the first major departure from the 1980's machine model in those twenty five years or so, but even then, I'm not sure how much is that "new" - IBM has had heterogenous CPUs on their mainframes for quite some time, so conceptually, it's just another idea getting to the PC world from the world of mainframes.

gngeal··on GameBoy Programming Manual
What makes you think that a "low-level programmer" can't do time-to-market stuff? That's like saying that a professional writer and proofreader can't fire off a quick SMS to his friends (sometimes with a typo, but nobody cares).
gngeal··on Ruins of forgotten empires: APL languages
Alan Kay seems to think along similar (though not identical) lines these days. The sheer inertia of ordinary programming language implementations means that by the time you get to use it, you may realize that something "slightly different" would have been better, but you seldom have any other option than to "suck it up".
gngeal··on Ruins of forgotten empires: APL languages
Or use SQL, which is a lot more powerful than APL

How could that possibly be true? What does "powerful" mean? Certainly not that it can compute things that APL family languages can't, and the design of APL/J/K etc. as languages is so much better that it isn't even fun. SQL is the COBOL for the 21th century.

Does the author understand that a just-in-time dynamically recompiling virtual machine is faster than an interpreter?

As memory latencies relative to instruction execution times go up, this factor becomes less and less relevant. An even worse problem is that your "just-in-time dynamically recompiling virtual machine" can't even vectorize properly, whereas APL has high-level array manipulating operators that make it comparatively easy to generate vectorized code. Your "just-in-time dynamically recompiling virtual machine" would have to "intelligently" recover high-level patterns from seemingly nondescript for() and while() loops to do that. Guess what: it doesn't! When you consider the fact that memory latencies matter these days, the fact that an AVX vector instruction can do a whole lot of work in a single cycle (or a few of them at most), and the fact that the integer units that would otherwise be idle can handle dispatching the next primitive operation in the meantime, there's a potential for even an interpreter to kick your "just-in-time dynamically recompiling virtual machine"'s ass.

gngeal··on Can Software That Predicts Crime Pass Constitutional Muster?
If it's based on crime statistics, this software would be heavily oriented toward black communities.

So what? On what else than crime statistics do you propose to build a predictive system for crime? It doesn't matter which communities it picks as risky, people in those communities will scream "bloody murder" no matter what community we'd be talking about.

gngeal··on Show HN: My product lets you catalog your book collection online
The page says "Libramatic runs on multiple platforms including Android devices and any internet-enabled computer".
gngeal··on Show HN: My product lets you catalog your book collection online
This is something that will make large portions of your target audience twitch.

Exactly, this is for literrate people!

gngeal··on Show HN: My product lets you catalog your book collection online
Does that mean that you're not allowed to view the page on your mobile device either? Is that supposed to be some sort of a silly artificial restriction?
gngeal··on The Humble Programmer (1972)
it takes 300 pages for him to get to the point of developing simple algorithms of the type you meet in the first chapter of an algorithm textbook

That's impossible; Discipline of Programming has only 217 pages of text. Surely you've been so enthralled by your reading that you didn't notice skipping through the covers to the book laying below!

gngeal··on Show HN: Easy-to-configure Web Server in Go
How do you propose to make exceptions work in the presence of large number of cooperating goroutines? As in, there's no implicit control flow the way you have it in "less-threaded" languages.
gngeal··on The biggest thing nature did to fight climate change is no longer working
"The biggest thing nature did to fight climate change..."

...has always been the absorption of CO2 in the rocks of the Earth's crust. Or hasn't it? Well, this process is still working, but it won't be working for long, since there's almost no CO2 to absorb anymore.

gngeal··on Increasing the D Compiler Speed by Over 75%
The idea of never free()ing and then taking advantage of that with a dumb allocator to get better performance is pretty clever.

Doesn't Erlang do something like this with processes?

What about doing scratch heaps for data with limited lifetime? Especially if you have a way of somehow reasonably predicting how much heap you're likely going to need (perhaps a heuristics obtained with a bit of machine learning?). Allocate a bit more to give yourself some headroom, use a dumb allocator, and if you run out of space, allocate an emergency area. Obviously, in most cases you won't have to do that, though. (If you're obsessed about speed, you can allocate just blindly and use a memory fault handler to detect that you've run out of space. :-) CLISP does that and it seems to work. Look at GNU libsigsegv.)

gngeal··on Increasing the D Compiler Speed by Over 75%
Vtune is even able to do power consumption analysis these days.

...on AMD machines, too? (Not to mention mobile development on ARM.)

gngeal··on LLVM Intermediate Representation is better than assembly
Why would I care if it's portable or not? I've never understood the mentality of "but it's not portable". If something isn't not portable, you put #+ and #- on top of it. I'd rather go for "straight-forward and performant" than for some abstract code transformations to make it runnable on platforms that almost nobody uses to the detriment of everyone else.

LLVM is the lowest common denominator. I'm really not fond of lowest common denominators. (Not to mention the fact that it's bloatware in the first place - it's about twice the size of my favourite compiler, and that's before you add the actual language you're trying to compile.)

gngeal··on LLVM Intermediate Representation is better than assembly
Why would I save "a representaion model" when I can simply save the process/thread state?
gngeal··on LLVM Intermediate Representation is better than assembly
Yes. But now _every_ mac user and plenty of other people have a typed assembly compiler on their machines!

Really? Where? Which one? The last time I looked, TAL was only a proposal.

gngeal··on LLVM Intermediate Representation is better than assembly
There's no valid direct technical reason other than financial resource constraints to justify compiling to C (... or JS, for that matter) instead of a more suitable and expressive IR/bytecode.

How does one do call/cc in LLVM, or delimited continuations, for that matter?

gngeal··on What happens when people in Pakistan start taking MIT classes
Not necessarily "forced", but I was certainly much uncomfortable. A brick and mortar type of school is good if you need access to equipment and labs, but fortunately, my interests don't include practical nuclear engineering or brain surgery.
gngeal··on What happens when people in Pakistan start taking MIT classes
Can a person get the same quality of education from online courses as traditional courses? Can those courses be graded and accredited in a way which means something to employers?

What about the overall success of http://www.open.ac.uk ? Apparently, distance learning is acknowleged by employers.

gngeal··on What happens when people in Pakistan start taking MIT classes
I learned more from the clubs I joined and/or formed in university than I did from the lectures.

However, it's great for schizoid people who may not have the same options that you had.

gngeal··on On Distributing Command Line Applications: Why I Switched From Ruby to Go
Well, actually speed was a design goal for Common Lisp.

It might have been one of the design goals, but it wasn't the ultimate design goal (which, I believe, was making a convergent compromise dialect to rule them all), otherwise certain parts of the language would have been most likely simpler. The things you mention are the good stuff. The problem is that there's also some bad stuff that hindered performance of CL on stock hardware until quality compilers were written. Yes, SBCL is quite fast. But you'd have a hard time trying to convince me that even modern implementations of Common Lisp represent some sort of performance optimum in the same way that, say, Stalin Scheme represents an optimum.

Also, wouldn't TAGBODY/GO be replaceable in presence of proper tail recursion by structuring the "TAGBODY basic blocks" into mutually recursive function calls? The same argument could be applied to inlining: Yes, the Common Lisp standard mentions inlining. But did you notice how nowadays, that's more or less considered an implementation issue rather than a language issue? How JVMs are capable of inlining just fine without having to be hinted what to inline and what not to inline?

Now I'd understand some of the hints, perhaps DYNAMIC-EXTENT makes somewhat more sense if the purpose is to say "It's my intent to create this value for a limited period of time, yell at me if I pass it out", but in general, from where I stand, a lot of the design decisions seem to make writing Common Lisp compilers actually more complicated to modern compiler writers.

gngeal··on Leaked Samsung exFat driver relicensed as GPL
Did Samsung, in fact, distribute the code in Android devices? If the answer is "yes", wouldn't that make it GPLd?
gngeal··on On Distributing Command Line Applications: Why I Switched From Ruby to Go
Ruby does have support for callcc, which most lisps, specially the fast ones like Common Lisp, don't, since it is a pain to implement a fast one without implications in your whole language.

Gambit-C is one of the fastest Lisp implementations around, and it does have a full and performant implementations of call/cc. And I'm afraid that Common Lisp happens to be "fast by sccident" rather than "fast by design" - there's probably more extra speed to be gained by having a better implementable standard (which CL isn't, or at least not that much) than by omitting call/cc.

(Also note that call/cc is sort of out of favour these days, delimited continuations is where it's at.)

gngeal··on On Distributing Command Line Applications: Why I Switched From Ruby to Go
it's the language design. All that dynamism and runtime reflection is really a performance killer.

So why are Lisp and Smalltalk, which are equally dynamic and reflective, even faster?

← PreviousPage 7 of 16Next →