elia has quit [Read error: Connection reset by peer]
elia has joined #opal
dimaursu16 has quit [Ping timeout: 252 seconds]
GitHub71 has joined #opal
<GitHub71>
[opal] elia force-pushed real-requires from 2868f30 to 317dd06: http://git.io/Q_pLJg
<GitHub71>
opal/real-requires 02bf442 Elia Schito, Federico Ravasio & Gianluca Randazzo: Changed expect_compiled to be just a wrapper around Opal::Compiler
<GitHub71>
opal/real-requires 970dd82 Elia Schito, Federico Ravasio & Gianluca Randazzo: Added "requirable" to compiler options to mark files for future requires
<GitHub71>
opal/real-requires 8ef3711 Elia Schito, Federico Ravasio & Gianluca Randazzo: Compiles require into Javascript as a no-op
<newbsduser>
i have an application that uses opal and i want to use opal static
<mieko>
adambeynon, meh`: I'm sorting specs out of uncategorized/, and noticed all the enumerator filters are in unsupported/, specifically these: https://gist.github.com/mieko/10397663 . I've looked at the implementation of Enumerator, and can't tell which of these (and why) should be unsupported/ vs bugs/. Any guidance here?
<meh`>
mieko, gimme a sec
<meh`>
I'm the Enum guy :P
<mieko>
Awesome.
<meh`>
mieko, unless I made some mistakes, those are unsupported because they use interruptable enumerators
<meh`>
for instance, we can't support Enumerator#next and anything that works with it
<meh`>
mieko, but some may have been there before I reworked Enumerator
<mieko>
Because it's basically a continuation, right?
<meh`>
yes
<meh`>
the only one I'm sure should be there is the #rewind one
<meh`>
mieko, if you want to check which are bugs and which are using #next and friends, do so please
<meh`>
I'll fix the failures you move to bugs
<mieko>
meh`: Opinion: How crazy would it be to, in the compiler, do something like Regenerator (http://facebook.github.io/regenerator/) does for ECMA6 -> ECMA 5 to get generator expressions? Think that buy us all we need to support interruptible iterators, post-1.0 or so?
<mieko>
(Readability of generated code not withstanding.)
<meh`>
mieko, impossible crazy because of the runtime nature of ruby
<meh`>
and even more impossible because of how Enumerable works
<fkchang>
newbsduser: do you just want to precompile everything to a single js file?
<meh`>
all you know is this object responds to #each
<meh`>
and for #next and friends to work you'd have to stop execution INSIDE the #each
<meh`>
and you can't do it without the Enumerable user implementation collaboration
<meh`>
which kind of moots the point of Enumerable in the first place :P
<meh`>
mieko, but we do have Enumerator::Lazy, isn't that enough? ◔ ◡ ◔
ryanstout has joined #opal
<mieko>
meh`: Faking suspension is what the ECMA6 -> ECMA5 translators to. Any method that yields returns a function that "fake-resumes" based on a switch of where it left off.
elia has joined #opal
<mieko>
When opal throws its yeilder, I image this resumption argument could be stashed into it. (Not that I'm volunteering for ANY OF THIS CRAZY SHIT)
<mieko>
imagine*
ryanstout has quit [Ping timeout: 240 seconds]
ryanstout has joined #opal
ryanstout has quit [Client Quit]
_elia has joined #opal
elia has quit [Ping timeout: 258 seconds]
newbsduser has quit [Remote host closed the connection]
ryanstout has joined #opal
_elia has quit [Quit: Computer has gone to sleep.]
tils has quit [Ping timeout: 250 seconds]
ryanstout has quit [Quit: ryanstout]
<meh`>
mieko, it would add overhead and complexity to every function compiled by opal, method included