These are chat archives for opal/opal

4th
Nov 2015
Elia Schito
@elia
Nov 04 2015 00:07
20 examples, 21 failures (time taken: 0.06400012969970703) that's when it becomes interesting… :D
meh.
@meh
Nov 04 2015 00:30
kek
Elia Schito
@elia
Nov 04 2015 00:31
apparently one can't simply escape yak shaving…
Ilya Bylich
@iliabylich
Nov 04 2015 13:43
Is there a way to get instances variables that are actually instance variables?
>> Object.new.instance_variables
=> ["@constructor", "@toString"]
Elia Schito
@elia
Nov 04 2015 13:45
probably a check with hasOwnProperties can help, not sure it's ok for classes and modules
Ilya Bylich
@iliabylich
Nov 04 2015 13:45
Instances of Object class have only @constructor and @toString, but String has @encoding. From what I see in the source code, instance_variables returns all fields in the object that do not start from $.
Ok, I'll try
@elia seems to work, thank you
Martin Becker
@Thermatix
Nov 04 2015 17:00
do heredoc's work in opal?
Elia Schito
@elia
Nov 04 2015 17:00
yes
Martin Becker
@Thermatix
Nov 04 2015 17:01
cool
thanks
Alex Egg
@eggie5
Nov 04 2015 17:30
how do you call javascript libraries?
instance variables on String seems to be completely broken :(
@0 is not a valid instance variable name. Do you think it's ok to filter them directly in Kernel#instance_variables method?
Elia Schito
@elia
Nov 04 2015 18:43
Probably @encoding should become $$encoding at JS level, and yes, invalid var names should be skipped
@iliabylich I think I saw somewhere a check for valid ivar names, but don't remember exactly where (or if) atm
Ilya Bylich
@iliabylich
Nov 04 2015 18:45
I've found it
Also I've stuck with setting ivar on string. Previous example shows that it seems to be impossible
Elia Schito
@elia
Nov 04 2015 18:45
Strings are rather special in JS
Ilya Bylich
@iliabylich
Nov 04 2015 18:48
Completely immutable, right? Have you ever thought about writing a wrapper for String? :smile:
meh.
@meh
Nov 04 2015 19:23
@elia any bug to fix that has some priority? I just got done fixing GNU screen and I'm bored
Elia Schito
@elia
Nov 04 2015 19:26
Lol, check If there's something in the 0.9 milestone or just rewrite the class/module system! 😎😂
meh.
@meh
Nov 04 2015 19:31
@elia there's nothing for 0.9
Elia Schito
@elia
Nov 04 2015 19:51
@meh heres a good one: promise taking multiple thens
also I remember an issue with always
meh.
@meh
Nov 04 2015 19:59
the always issue was fixed
Jared White
@jaredcwhite
Nov 04 2015 20:16
the opal-rails project is being featured on Hacker News right now. cool :)
Elia Schito
@elia
Nov 04 2015 20:17
\o/
Jared White
@jaredcwhite
Nov 04 2015 20:20
also the Opalist is over 300 subscribers now. :clap:
meh.
@meh
Nov 04 2015 20:27
more replies to someone posting 941 than anything else
usual top quality comments
meh.
@meh
Nov 04 2015 21:05
@elia where even are the mspec_opal_node specs in?
ah, they're the opal specs
mh
ah
there's the problem
elia @elia to Be back in an hour
meh.
@meh
Nov 04 2015 22:50
@elia we're fucked :DDDD
@elia #1173 might be unfixable, or have a deadly performance hit
or maybe I'm seeing things
meh.
@meh
Nov 04 2015 22:56
I guess I'm seeing things
and it's just a stupid compiler bug