Better HN
topnewbestaskshowjobs
Log inSign up

Breakthrough

1,159 karma · joined Aug 10, 2012 (14y ago) · 217 submissions

Software engineer with a passion for hardware and open source software. Rust, Python, and C++ lover. Author of PySceneDetect.

bcastell.com

github.com/Breakthrough

Submissions

comment 13y ago · link · parent

I missed it the first time, but oh man did I ever LOL when I saw how casual/oblivious it was written (in a "don't worry, you clicked the button so you're obviously okay with it" kind of way).

comment 13y ago · link · parent

Even ZFS isn't a replacement for backups. Think of it more as a better indicator of when things are happening that clearly shouldn't be (e.g. hardware problems).

comment 13y ago · link · parent

Agreed that he should have gotten permission before publicly hosting this, but looking through some of what he's done, I'm pretty impressed with what I've seen so far. He's clearly doing this to learn, and some of the comments in the source code I read through reflect this as well. I always loved showing people JSLinux, they'd flip out at how it was a joke or not real or something...

Then I'd do a "Hello, world!" type example in C and their eyes would open wide, knowing that I just compiled and ran an x86 program under a Javascript emulator in my browser.

94.

Resistor hack turns a Nvidia GTX690 into a Quadro K5000 or Tesla K10(eevblog.com ↗)

405 points · by Breakthrough · 13y ago · 190 comments

comment 13y ago · link · parent

Reminds me of this question on Super User: How does a CPU 'know' what commands and instructions actually mean? http://superuser.com/questions/307116/how-does-a-cpu-know-wh...

Microcode in its most basic form is just a big look-up table (could be nested if word size is limited) containing the electrical signals for a particular instruction, and a new address to "jump" to (either a subsequent micro-operation, or jump back to the "fetch" micro-op). Electrically, however, there's no difference between a microcoded and hard-wired CPU - they both fetch and execute sequences of instructions.

Of course, there's an obvious advantage to the microcoded approach: your instruction set gets uploaded to your hardware in a ROM! You can change the operation of instructions after the hardware is made, make custom sequences of instructions, or even fix microcode bugs (while uncommon, there have been cases in the past).

comment 13y ago · link · parent

I find a lot of ambient music without vocals is good (Aphex Twin, Boards of Canada, Nettless, etc...). Not too repetitive, but the sounds give a nice "mask" to the external world and lets you focus.

I also found an online radio station called "Moving Through Space" which provides some nice background ambiance when reading (esp. science fiction): http://www.live365.com/stations/atombob

comment 13y ago · link · parent

It appears to be common nomenclature dating back to the 1960s-70s [1] to refer to the registers in a CPU as a single "file" in RAM, although the term "file" denotes the fact that you can access multiple parts of it at once.

From [2]: "A register file is a critical component of a modern superscalar processor. It has a large number of entries and read/write ports in order to enable high levels of instruction parallelism."

You might want to think of a register file as "a group of registers with several (parallel) input/output ports", as opposed to a component which can only perform a single read/write at a time. Basically, a really fast multi-channel RAM which can do simultaneous reads/writes. The number of read/write ports is usually dictated by your hardware, instruction set, parallelism, and scheduling [3] [4].

----

[1] Bollesen, V.; , "Core memories," Magnetics, IEEE Transactions on , vol.6, no.3, pp. 534- 535, Sep 1970

[2] Gonzalez, R.; Cristal, A.; Ortega, D.; Veidenbaum, A.; Valero, M.; , "A content aware integer register file organization," Computer Architecture, 2004. Proceedings. 31st Annual International Symposium on , vol., no., pp. 314- 324, 19-23 June 2004.

[3] Wallace, S.; Bagherzadeh, N.; , "A scalable register file architecture for dynamically scheduled processors," Parallel Architectures and Compilation Techniques, 1996., Proceedings of the 1996 Conference on , vol., no., pp.179-184, Oct 1996

[4] Balasubramonian, R.; Dwarkadas, S.; Albonesi, D.H.; , "Reducing the complexity of the register file in dynamic superscalar processors," Microarchitecture, 2001. MICRO-34. Proceedings. 34th ACM/IEEE International Symposium on , vol., no., pp. 237- 248, 1-5 Dec. 2001

comment 13y ago · link · parent

And for those who just love seeing silicon dies up and close, you might want to check out these amazing pictures to really put things into perspective:

http://zeptobars.ru/en/read/open-microchip-asic-what-inside-...

Really cool to see the different designs used in various components, or even compared to other CPUs/MCUs. The pictures above were taken by dissolving off the inline package casing with sulfuric acid. No 8085, but there's a picture of the Z80A available, and you can make out the similar areas to the 8085 (register file, control logic, ALU, etc... the quality is insane, the Z80A picture is 6200x6000 px). There's also some earlier photos at http://zeptobars.ru/en/read/how-to-open-microchip-asic-what-... if you want some more high-res silicon imagery.

comment 13y ago · link · parent

Yes, that's called co-generation (or combined heat/power plants). I can't comment on fusion reactors, but this isn't really feasible with fission reactors, since the coolant becomes radioactive. Sure you could run it through several loops to bring it down to a safe level, but then you're losing efficiency at each sub-stage.

I'd also like to point out you can only achieve those high efficiency numbers when you're actually using the heat.

comment 13y ago · link · parent

It's a heat sink right now. Hydroelectric generation aside, efficiency for electricity generation is pretty much always below 40%! That, however, is since almost all our plants use the Carnot/Rankine cycle heat engine.

Again though, even those watts of electricity eventually get turned back into heat. Gotta love entropy...

The consequences of us having fusion?

The good, we get cheap, abundant electricity for the entirety of the planet's lifespan with almost no harmful byproducts, made by a nuclear plant that's impossible to melt down or be used in the proliferation of nuclear weapons.

The bad, we have to build the plants, and possibly replace the old ones. That indicates a large shift in jobs, and makes you wonder how we can afford it (although improving economic conditions should make the latter less of a downside as fusion becomes viable).

comment 13y ago · link · parent

For those who are curious, here's the NYT article Mr. Musk is talking about: http://publiceditor.blogs.nytimes.com/2013/02/18/problems-wi...

"[...] I do not believe Mr. Broder hoped the drive would end badly. [...] Did he use good judgment along the way? Not especially. In particular, decisions he made at a crucial juncture – when he recharged the Model S in Norwich, Conn. [...] were certainly instrumental in this saga’s high-drama ending.

In addition, Mr. Broder left himself open to valid criticism by taking what seem to be casual and imprecise notes along the journey, unaware that his every move was being monitored.

"

comment 13y ago · link · parent

And on the Fourth Day, God proclaimed "Thou shalt have the ability to use inline assembly in thy C/C++ code for performance-critical tasks".

I can think of absolutely zero reason to write an entire program in x86 assembly, let alone any other kind of assembly (GCC spits out some pretty optimized code for my little Atmel MCU)... It's a lot nicer to write everything in a high-level, and then write any performance specifics in inline assembly.

The really cool thing to see is how other newer languages have adopted this scheme (e.g. PyASM for Python, or the ability to edit the instructions for interpreted languages that run in their own VM). And as always, great power comes with great responsibility ;)

comment 13y ago · link · parent

It's a very valid point - it doesn't take a genius to figure out competition drives development, while having a market monopoly affords you a great position of "extortion" in regards to your customers (developers). If there was only one solution from only one company, it would literally be their way - and that's it.

Then again, this is why we first develop web standards or markup languages (e.g. HTML, XHTML, XML) in the first place ;)

comment 13y ago · link · parent

I was about to pick one of these laptops up late last year until I happened to stumble across that very bug report myself: https://bugs.launchpad.net/ubuntu-cdimage/+bug/1040557?comme... Everyone seems to have it working fine with UEFI disabled, and several people have noted the vendor or Samsung has provided a replacement in the cases where it was bricked.

At least in their darkest hours, Linux users can still put on a smile:

"[...] they changed the motherboard and it's working again now. I won't try to install Ubuntu again though. The whole process took about 2 weeks."

comment 13y ago · link · parent

I have given NS2 a go actually. Last I played NS1 personally was just over a year ago.

Regarding NS2, graphics are sweet, but I do not like the gameplay changes coming from NS1. I literally thought NS1 was perfect, and NS:Source would have sold like hotcakes.

That being said, I did happen to stumble across NS2 Classic (http://ns2cmodpreview.com/), and was very intrigued. Search for "Classic" in the NS2 server browser and just connect to play it. I found one with just 3 people on it, so not much gameplay was to be had.

Long story short, it was everything it was advertised to be - it felt JUST like NS1, with additions where needed. There was even a ported NS1 map we were playing on (I think it was ns_eclipse), although the textures weren't done. It still needs lots of polish to be done, but man, is it promising.

Very promising though if NS2 classic takes off, and I think (hope) it will see more adoption as the NS1 crew starts to move out of HL1... And as more people in NS2 discover the wonders of NS2 Classic.

comment 13y ago · link · parent

http://cdr.xpaw.ru/app/70/

Seems to be using the original Goldsource content GCF, so it appears indeed to be Half-Life. Interestingly enough, the OS list shows both Linux and OSX.

comment 13y ago · link · parent

This is so amazing, but I'm really hoping that they release a way for mod developers to recompile their mods to work... Do they have the multiplayer aspects working?

Obligatory plug for my favourite HL1 mod: http://www.unknownworlds.com/ns/

Edit: Yep, sure enough HL1 shows up in the Steam Linux CDR (http://cdr.xpaw.ru/linux/), and interestingly enough, so does Counter-Strike - albeit with the message "Not Marked for Linux"...

12345
8