Hacker Newsnew | comments | show | ask | jobs | submit | login

Holy shit you must be rich!

reply


To be honest, i lied. Its actually one of my fathers company ;)

reply


Must be running Windows 10 on it.

reply


I'm sorry, but how is the Cooley-Tukey FFT algorithm not on this list? We would have no mobiles, no Skype, no MP3s, no Netflix, and on and on, if not for their implementation of the FFT.

reply


That looks much less.. exciting than the trolling that's taking place in OP's repo.

reply


Well it's died down significantly from its original release. It was very much like how OP's is right now.

reply


A 6502 in ~2500 lines of C? Really? Bookmarked :)

-----


I can top that :) (although it hasn't been used in a production emulator)

I wrote this a few years ago - it's ~500 lines taking advantage of the logic behind the instruction set (instead of a jump table) and it can run Apple I BASIC at least.

https://github.com/happycube/chadslab/tree/master/m6502

-----


Looks really clean. Nicely done.

That is similar to my approach to emulating the Gameboy Color's Z80-like CPU. Not yet completed - probably never will be :(

reply


Yeah, imo trying to actually do some instruction decoding rather than just a massive switch case is a lot nicer.

-----


They work fine here for 3 lane roads. The issue is high traffic from more than one direction simultaneously.

-----


My country thinks otherwise. Roundabouts are great for low to medium traffic conditions but at high traffic they are a nightmare for any driver. The wait times can be excruciatingly long.

-----


Haha, makes me feel sorry for people who drink alcohol. It's basically the same as smoking - "how many cigarettes a day keeps me away from lung cancer?". Instead of asking that question, why not just stop?

The fact that alcohol is such a norm is something I don't get. Let's not even mention its other helpful side-effects.

Edit: Keep the downvotes coming. <3 hivemind

-----


You may be surprised to know there's evidence that moderate consumption of alcohol has health benefits, especially for the heart. Of course, excessive alcohol intake is known to be detrimental.

http://www.mayoclinic.org/healthy-living/nutrition-and-healt...

Interestingly the same can be said for aerobic exercise. 30 minutes of aerobic exercise four times per week has positive health effects. Running 100 miles per week (the training schedule of a serious marathon runner) is bad in the long run (pardon the pun).

Of course, all this is for an average person. If you have a family history of liver cancer or alcoholism, it's probably a good idea to be a teetotaler. If you have bad joints, certain heart conditions or are too heavy it's possible that running is a net negative for you.

-----


There is also evidence that moderate consumption of alcohol has health detriments. And of course, there's evidence that the benefits outweigh the detriments, and also evidence that the detriments outweigh the benefits. I haven't seen anyone do a good job of putting these together (in e.g. a funnel plot), but as far as I can tell the only justifiable conclusion at this stage is that we really don't know.

-----


At some point you have to weigh risks and benefits for yourself personally. Sometimes this is due to incomplete information or because it is a grey area issue. You may want to use all cause mortality which says under a drink a day is optimum versus none or more. Or if you are male, you may want higher alcohol consumption due to the heart benefits, where you are of higher risk of a disease that tends to kill earlier than cancer. It is grey area depending on the individual, their genetics, and their wishes, IMO.

-----


Drinking 3 drinks a day, the amount necessary to have an effect on liver cancer according to the study, makes you pretty much an alcoholic, not just part of the vast number of people "who drink alcohol".

-----


3 drinks a day is about 15% of all Americans... http://www.washingtonpost.com/blogs/wonkblog/wp/2014/09/25/t...

-----


I don't think alcoholism can be defined by the quantity of consumption but a persons dependency on alcohol itself, and how it impacts or impairs their day-to-day life / relations / functions.

-----


It's about developing an addiction. And addiction is a function of regularity, for alcohol. Day-to-day impact is not necessarily a good measure because it can have no negative impact at all as long as you have access to the product. A well-behaved addiction under normal circumstances is an addiction nonetheless.

-----


Great to hear then.

-----


I think the downvotes are due to the sarcastic tone of your comment, but none the less you do raise an interesting point. 70 years ago people probably felt that there was nothing wrong with smoking, I wonder if drinking alcohol will end up in the same boat.

-----


I'm with you. HN hivemind is getting as bad as Reddit's.

-----


Agreed.

-----


Suggestions:

* View all notes and navigate to file or folder on click (or something). It should be easy to use a note to find the file.

* Backup to Dropbox (for example) and offline backup and restore.

* Attach multiple notes to a single file or folder.

* Categories or tag-based search.

-----


If we're talking about the modern purpose of a "Hello, world!" program, then I agree. However, at the time the idea was originated, and I'm sure for a good time afterwards, build processes and frameworks weren't as mainstream as they are today. Therefore the function of a "Hello, world!" program was simply to test out the basic features of the language. That's the way I see it.

-----


The idea of the “hello world” program was promulgated by Kernighan and Ritchie in “The C Programming Language”, and they saw it the way kylec does. Quoting “The C Programming Language, Second Edition”:

“This is the big hurdle; to leap over it you have to be able to create the program text somewhere, compile it successfully, load it, run it, and find out where your output went. With these mechanical details mastered, everything else is comparatively easy.”

(I got rid of my first edition years ago but as I recall it described the purpose of the program pretty much the same way.)

-----


Thanks for the reference.

-----


It doesn't take modern build processes and frameworks to need to know that you've crafted the bare essentials for a running problem, and the multi-stage compilations and linking process has performed as expected. Or that your cross-compile is working. Building software has been complex enough to warrant this for many decades.

-----

More

Guidelines | FAQ | Support | API | Lists | Bookmarklet | DMCA | Y Combinator | Apply | Contact

Search: