News for hackers. Stuff that matters.
Re:IBM ported Go to s390x mainframes by bg46z on Monday January 11, 2016 @10:04AM (#10881094)
I think this is awesome? I'm not entirely sure though.
Re:IBM ported Go to s390x mainframes by melling on Monday January 11, 2016 @10:12AM (#10881159)
Write once, compile and run anywhere. Go is gaining traction. IBM doesn't want to lose a sale to an organization that has adopted Go.
Re:IBM ported Go to s390x mainframes by rodgerd on Monday January 11, 2016 @03:42PM (#10883344)
IBM wants to be able to run Docker on zLinux. No Go, no Docker.
Re:IBM ported Go to s390x mainframes by k__ on Monday January 11, 2016 @11:58AM (#10881573)
lol, last time I talked to IBM Linux was Linux was Linux.

Shouldn't Go stuff simply run on their LinuxVMs on Z?

Re:IBM ported Go to s390x mainframes by mseepgood on Monday January 11, 2016 @12:04PM (#10881612)
Processor architecture is not processor architecture is not processor architecture. The Go compiler produces native binaries.
Re:IBM ported Go to s390x mainframes by vram22 on Monday January 11, 2016 @02:09PM (#10882444)
>Processor architecture is not processor architecture is not processor architecture.

Interestingly, I've come across multiple computer people who didn't know this basic fact. Hardware engineers, sysadmins and devs who were surprised when I said a binary/EXE for one processor architecture (and hence, machine instruction set) cannot run on another architecture (except for special cases that may exist nowadays, like maybe Apple related to PowerPC vs Intel CPUs?) But even then it is probably due to special extra steps being taken.

Edited to add hardware engineer category.

Re:IBM ported Go to s390x mainframes by andrewmunsell on Monday January 11, 2016 @02:39PM (#10882747)
Apple used to support a "universal binary" format[1] to run a "single" binary on both PPC and Intel processors (as well as 32 bit vs 64 bit). This meant that both the PPC and Intel code was inside the same file, but a specific section of the file was executed based on what architecture the computer was using.

Of course, modern Macs are 64 bit Intel only, so this isn't really necessary anymore unless a developer needs to support older platforms.

[1] https://en.wikipedia.org/wiki/Universal_binary

Re:IBM ported Go to s390x mainframes by Spooky23 on Monday January 11, 2016 @07:08PM (#10884647)
Rosetta was cooler. I have an old Mac Pro running some process that was never upgraded.

https://en.m.wikipedia.org/wiki/Rosetta_(software)

Re:IBM ported Go to s390x mainframes by vram22 on Monday January 11, 2016 @05:10PM (#10883985)
Cool, that universal binary concept is what I vaguely remembered and meant, thanks. Will check that link.
Re:IBM ported Go to s390x mainframes by k__ on Monday January 11, 2016 @12:12PM (#10881659)
They were always talking about their "bare metal" visualization, I thought they could virtualize CPUs too.
Re:IBM ported Go to s390x mainframes by krylon on Monday January 11, 2016 @01:20PM (#10882071)
You can run virtual machines in z/VM, but you can also partition the machine at the firmware level. (Partitions are called "Logical Partitions" or LPARs.) Maybe that was what they meant by "bare metal virtualization".
Re:IBM ported Go to s390x mainframes by cbd1984 on Monday January 11, 2016 @04:01PM (#10883484)
Virtualization and emulation are not the same thing. You can have one without the other.

(Traditionally, virtualization precluded emulation: The hypervisor simply multiplexed hardware, and the guests got what looked like raw access to the real hardware, with no way of "seeing" the hypervisor at all. Very secure, very simple, and you could run a hypervisor as a guest with guests under it, recursively.)

Re:IBM ported Go to s390x mainframes by wmf on Monday January 11, 2016 @02:26PM (#10882603)
Emulation is never going to be fast.
Re:IBM ported Go to s390x mainframes by rodgerd on Monday January 11, 2016 @03:44PM (#10883351)
Sure it is. The s390x instruction set is microcode emulation on top of a POWER-derived microarchitecture, just as modern x86 chips are microcode on an underlying microarch.
Re:IBM ported Go to s390x mainframes by filereaper on Monday January 11, 2016 @08:24PM (#10884933)
Completely wrong. s390x runs on its own dedicated hardware, it is not emulated on POWER. POWER and s390x are completely separate.

source: worked at IBM on their compilers team.

Re:IBM ported Go to s390x mainframes by akhilcacharya on Monday January 11, 2016 @12:01PM (#10881594)
Different processor architecture?
Re:IBM ported Go to s390x mainframes by rbanffy on Monday January 11, 2016 @05:04PM (#10883954)
zSeries machines are awesome. Costly, but awesome nevertheless.