Live data from Hacker News

Apollo 11 Guidance Computer vs. USB-C Chargers

forrestheller.com

201–210 of 210 posts

Re: Apollo 11 Guidance Computer vs. USB-C Chargers

#201
post #59

Earlier quoted context omitted.

If it can be done efficiently in asm then it can be done in C, C++, perhaps even Rust. But there are sacrifices to be made: unmaintainable “clever” code without clean abstractions.

There are architectures that are just fundamentally C-hostile. Perhaps the most famous one is 6502. No efficient way to implement stack based parameter passing, generic pointer arithmetic, and lots of other bits and pieces. You can still use C on 6502, it's just not very fast. I guess you could define another language that mostly looks like C, but built around particular CPU architecture quirks.

Sounds like it was targeting Fortran.

Re: Apollo 11 Guidance Computer vs. USB-C Chargers

#202
post #114

I'd like to also see an article examining these computing power attributes on the piece of garbage embedded computer on the front of the gas pumps where the lag between registering every keypress is like 800ms, and every screen redraw takes about 2000ms. It takes me an extra 60 seconds to get gas now thanks to how slow these things are, and it is nearly universal despite whether they appear to be 20 year old or new d…

>I bet they run Java. And maybe it runs on Windows CE device with anemic CPU..

On aside.. fuel pumps with embedded computers and payment terminals are US thing? There it is necessary to pay at the cashier after filling. (and it is most annoying part, because they try to upsell you hotdog/coffee, washer fluid and encourage to join loyalty program)

Re: Apollo 11 Guidance Computer vs. USB-C Chargers

#203
post #114

I'd like to also see an article examining these computing power attributes on the piece of garbage embedded computer on the front of the gas pumps where the lag between registering every keypress is like 800ms, and every screen redraw takes about 2000ms. It takes me an extra 60 seconds to get gas now thanks to how slow these things are, and it is nearly universal despite whether they appear to be 20 year old or new d…

>I bet they run Java. And maybe it runs on Windows CE device with anemic CPU.. On aside.. fuel pumps with embedded computers and payment terminals are US thing? There it is necessary to pay at the cashier after filling. (and it is most annoying part, because they try to upsell you hotdog/coffee, washer fluid and encourage to join loyalty program)

"Would you like to join our customer loyalty reward program?"

"No, I'm just naturally loyal. Runs in the family."

Re: Apollo 11 Guidance Computer vs. USB-C Chargers

#204
post #188

Earlier quoted context omitted.

I'm surprised to see that you (and obviously lots of other people) were able to affect a reduction in advertising by boycotting ad-playing stations. I wonder if it would work here... I live in Minnesota and I'm pretty limited on where I can fill up with 98 RON (called 93 Pump here in the US for some reason...). A lot of stations play video ads with sounds while you stand there.

Well, for a long time the population as a whole in the US managed to kill pay first gas stations. Pretty much everyone just kept driving when they saw the "pay first" signs and the pumps refused to just pump gas. The inconvenience of guessing how much gas you need give the attendant a $10 or $20, pump gas, go back and collect your change was a far worse experience than pump the gas, pay whatever you owe. Wouldn't sur…

I'm in BC, Canada, and I think it's all pay-first here. On the other hand, some places will accept debit cards at the pump, and it just pre-authorizes some set amount before permitting me to fill the tank. Of course, I'm only charged for the amount dispensed.

This strikes me as a reasonable solution, in that it removes the need to guess how much I need beforehand.

Re: Apollo 11 Guidance Computer vs. USB-C Chargers

#205

Earlier quoted context omitted.

Given that all that high-level control flow is rewritten into gotos anyway, why would that make a difference in general, or specifically for 6502?

All high-level control flow is very definitely not rewritten into gotos. Almost all cpus have some form of function call instruction, and c functions are implemented by using it. Without such an instruction, or even a fast way to model it, C becomes much less efficient to implement.

OP was talking about block structure, not subprograms. In any case, BASIC has them.

Re: Apollo 11 Guidance Computer vs. USB-C Chargers

#206
post #173

Earlier quoted context omitted.

As a non-US citizen: What's the deal with entering ZIP codes in some gas stations in the US? Tax reasons?

From what I understand it is for fraud protection. If you steal a credit card you likely do not know what the billing zip code is. According to this blog[0] they also collect the data for "marketing purposes". [0]: https://blogs.creditcards.com/2014/05/zip-codes-gas-station-...

I remeber a foreigner asking me what should he enter for zip code, when fueling, I did not know the answer, but I'm wondering how did he solve it.

Re: Apollo 11 Guidance Computer vs. USB-C Chargers

#207
post #114

I'd like to also see an article examining these computing power attributes on the piece of garbage embedded computer on the front of the gas pumps where the lag between registering every keypress is like 800ms, and every screen redraw takes about 2000ms. It takes me an extra 60 seconds to get gas now thanks to how slow these things are, and it is nearly universal despite whether they appear to be 20 year old or new d…

I wonder if any of that performance is due to the intrinsic safety requirements, especially the need to select only intrinsically safe components that will never produce enough energy to ignite gasoline vapors under any transient condition - https://en.wikipedia.org/wiki/Intrinsic_safety

Yet, they can process data fast enough to display video ads.

I don't think this is the reason.

Re: Apollo 11 Guidance Computer vs. USB-C Chargers

#208
post #86
post #44

Earlier quoted context omitted.

Maybe. 20 years ago Moore's Law was in effect. We've become accustomed to "it'll be so cheap in 20 years" because, from 1947 to 2010, transistors dropped in price by a factor of two every 2 years, while getting faster starting in 1975 due to Dennard scaling. Roughly, for ten thousand transistors or so, the prices (in inflation-adjusted US dollars) and response times varied very roughly as follows: 1950: $1'048'576 (1…

GPUs, FPGAs, TPUs, etc.--combined with open source and public clouds that abstract a lot of the complexity--have helped mitigate the impact of the slowdown of CMOS process scaling especially for the workloads that really need the performance. But it's reasonable to wonder what happens when we start to run out of various "hacks" and performance stops getting cheaper and more power efficient. Big implications that I'm…

[deleted]

Re: Apollo 11 Guidance Computer vs. USB-C Chargers

#209
post #46

Earlier quoted context omitted.

Something requiring human labor doesn't make it impossible! There's no lost scientific knowledge. Engineering details may be lost but we can design a new rocket that works just as well. We send unmanned probes to the moon all the time. There's no loss of resources to do it either. We have more money than ever before. We just can't be bothered. That's all.

Even if we could be bothered, I think we've lost the political technology to organize large government projects and complete them on a sane budget/timetable. The budget plan for the James Webb Space Telescope was $500m with completion in 2007. We're now at $9.6b with completion predicted in 2021. Some of the cost overruns and delays were caused by the unexpected complexity of fabricating the mirrors and assembling th…

Yes, that does seem to be true. Though I wonder if the incredible amazingness of the first moon trip together with a sense of competition with USSR actually gave workers throughout the project more personal motivation to put in real effort instead of just being minimum-effort drones in a bureaucracy that doesn't matter to them. Doing it all again will never be the same. Even going to Mars won't be such a massive leap.
Post reply on HN