These are chat archives for opal/opal

22nd
Apr 2015
George Plymale II
@ylluminarious
Apr 22 2015 05:48
hey, i just wrote a post in the phaser forum about using opal to rewrite phaser for phaser 3: http://www.html5gamedevs.com/topic/13599-reconsidering-building-phaser-3-in-typescript/?p=79737
if anyone wants to offer community support with that, that'd be great :)
Bernhard Weichel
@bwl21
Apr 22 2015 16:06
How can I clone a Javascript object?
curnote = `Abc.get_abcModel()`  # somehow get the javascript object
myclone = Native(curnote).clone # always returns Nil
Elia Schito
@elia
Apr 22 2015 16:10
I think one of the techniques is JSON.parse(JSON.stringify(obj))
Bernhard Weichel
@bwl21
Apr 22 2015 16:27
the problem is that curnote contains circular references so JSON.stringify does not work.
If I could get the keys of the object (e.g. curnote.keys) i could implement a generic clone or dup. but curnote.keys also delivers Nil, and I could not find out how to get the keys of an object.
Ryan Stout
@ryanstout
Apr 22 2015 17:53
question, is phantom 2.0 still an issue on opal-rspec?
Adam Beynon
@adambeynon
Apr 22 2015 18:03
@ryanstout not sure . I keep getting the warnings, but not sure what version of phantom im using (on mobile, can’t check)
I have nt made any fixes for the issue though]
Ryan Stout
@ryanstout
Apr 22 2015 18:11
@adambeynon ok, no worries, just was curious. Someone was running into phantom 2.0 issues and I figured it was still a problem.
@adambeynon also, sorry to ask, but are you thinking 0.8 will go out soon? (debating what to do about sourcemaps)
Adam Beynon
@adambeynon
Apr 22 2015 19:34
@ryanstout yes, really as soon as we can get things together
I believe @elia has fixed all the source map stuff
there isn’t anything “major” to do before release
I guess we could release a beta asap to check for issues and see where we get
Ryan Stout
@ryanstout
Apr 22 2015 19:35
@adambeynon ok, cool. Sorry to bug you on it. Was just debating if I should try and worry about 0.7, or just wait.
Elia Schito
@elia
Apr 22 2015 21:40
@adambeynon @ryanstout the only thing that still bugs me is that we can't enable optim ops by default yet as some specs fail /cc @meh @vais
Ryan Stout
@ryanstout
Apr 22 2015 21:40
@elia what's optim ops? Is that inline ops?
Elia Schito
@elia
Apr 22 2015 23:41
yes, sorry, was writing onehanded