News for hackers. Stuff that matters.
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by blasdel on Monday December 07, 2009 @02:53PM (#981957)
Are there any languages for which international standardization processes have not been either tombstones (like Smalltalk, repeatedly) or vehicles for inter-corporate bullying?
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by stcredzero on Monday December 07, 2009 @03:44PM (#982085)
Are there any languages for which international standardization processes have not been either tombstones (like Smalltalk, repeatedly)

We're zombies!? Actually, that's kinda cool.

You can consider the Smalltalk image as a single program, with branching, mutating clones, which has been running continuously, modulo suspending (image save) since sometime in the 1970s. Maybe that's where our unkillable, repeatedly come-back-from-the-dead nature comes from?

(You can't build a Smalltalk-80 image from scratch because of "strange loops." We've been doing binary transformations to pre-existing images all this time! Even the Squeak image was produced this way. (Dolphin image as well, I believe))

But back to "standards." The Smalltalk standard was pretty wimpy for most if its iterations. It was a watered-down inter-corporate Détente. Not sure about the most recent one.

Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by derefr on Monday December 07, 2009 @09:51PM (#982871)
> You can consider the Smalltalk image as a single program, with branching, mutating clones, which has been running continuously, modulo suspending (image save) since sometime in the 1970s.

You could sort of say the same thing about C, except that the "image" is a *nix partition.

Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by stcredzero on Tuesday December 08, 2009 @12:55PM (#984184)
Not hardly. When a Smalltalk image comes back, it's in the exactly the same state as it was when it took a "snapshot" then quit. Can't say the same for a Unix box.

There are some deliberate modifications. Like the "command line" array is whatever the command line was when the VM was re-invoked. Sockets deliberately aren't active for security reasons. But where the state isn't exactly the same, it's for a specific reason.

Even processes (green threads) are frozen halfway through, and continue chugging along when we return from snaphot!

Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by rbanffy on Monday December 07, 2009 @04:32PM (#982216)
"(You can't build a Smalltalk-80 image from scratch because of "strange loops." We've been doing binary transformations to pre-existing images all this time! Even the Squeak image was produced this way."

Wow! You mean a Squeak image can't be fully built from source?

That's kind of... scary.

It also reminds me of how we do Plone upgrades... I always cross my fingers.

Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by derefr on Monday December 07, 2009 @09:54PM (#982873)
Rather than doing binary translations, though, wouldn't it be easier to just establish a primitive in the smalltalk VM that constructs, as an atomic operation, a graph of interrelated object references, then hands out the IDs to be populated with data?
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by stcredzero on Monday December 07, 2009 @11:17PM (#983002)
Then you make the VM larger. ObjectStudio (the old Enfin) Smalltalk has "primitive classes." Classes largely implemented in the VM. With that Smalltalk, you can build the image from source files. The strange loops are resolved this way.
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by stcredzero on Monday December 07, 2009 @08:45PM (#982772)
That's kind of... scary.

Lots of things in Smalltalk evoke that reaction. But while others get to tremble in fear of imagined disasters, we Smalltalkers get to know the truth: that lots of the "conventional wisdom" is nonsense!

Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by cma on Monday December 07, 2009 @08:59PM (#982794)
Is it that crazy? Aren't most C compilers self-hosting too?
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by j_baker on Monday December 07, 2009 @03:24PM (#982047)
Who was it that said something like "standards are always outdated... that's why they're standards"?
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by carbon8 on Monday December 07, 2009 @05:53PM (#982426)
And as it says in the draft spec, the reason they are using 1.8.7 is basically because it's a dead end version of Ruby and, therefore, isn't changing.
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by jhancock on Monday December 07, 2009 @06:02PM (#982444)
My favorite: "Standards are great. Everyone should have one."
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by 0wned on Monday December 07, 2009 @07:10PM (#982604)
C and C++ for starters.
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by mbreese on Monday December 07, 2009 @03:05PM (#981991)
That was my first thought too...

"Well, there goes innovation in Ruby".

Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by halostatue on Monday December 07, 2009 @05:05PM (#982300)
Not even likely. The spec/standard is based around 1.8.7 and does not yet address 1.9->2.0. Most of the innovation in Ruby lately has been in how things have been used, not syntactically.

My understanding is that the standard will largely be compliant with RubySpec, pioneered by Rubinius.

Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by jdminhbg on Monday December 07, 2009 @04:47PM (#982251)
Just because there's a standard doesn't mean you have to follow it. I'm sure MacRuby for example will keep its divergent selector syntax; they just won't advertise themselves as conformant to the standard.
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by jamesbritt on Tuesday December 08, 2009 @12:36PM (#984138)
"they just won't advertise themselves as conformant to the standard."

But they should advertise themselves as non-conformant to the standard.

Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by steveklabnik on Monday December 07, 2009 @04:40PM (#982232)
It's based on 1.8.7, so no worries on that front.