Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/opal/opal

Ruby ♥︎ JavaScript
https://github.com/opal/opal

Update UNRELEASED.md

dc5e1d241c7206303a1c75dbab4484971bccecd5 authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2385 from takaram/fix_zsuper_with_js_reserved_word

Fix zsuper with args named with js reserved word

3c52c42350b64b7ee901de038d4a2430f5091202 authored almost 3 years ago by Elia Schito <[email protected]>
Fix zsuper with args named with js reserved word

Fixes #2361

a8c69256e68a4fdecb8188ebd25bea6d9493772c authored almost 3 years ago by Takuya Aramaki <[email protected]>
Merge pull request #2382 from opal/hmdne/gha-head-ruby

GHA: Test head Ruby

a46adeac3cb7b5e13a8ac9e77dd3aa11278ccef8 authored almost 3 years ago by hmdne <[email protected]>
GHA: Test head Ruby, test 3.1

45a132846ac2531f4486a3cd89d06d4ea34b94f4 authored almost 3 years ago by hmdne <[email protected]>
Release v1.4.0

6e6af72e6ba246118fd812e62590845a28c3a27c authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2377 from opal/hmdne/revert-2345

Revert "Fix defining multiple methods with the same block"

19e1a5e55ae42ac37c84e9dc943018a6824f71d7 authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2378 from opal/hmdne/fix-ml-xstr-case-asgn

Fix multiline x-string in a case assignment

b969356a063dc4695878b0db97e023ba02b48429 authored almost 3 years ago by Elia Schito <[email protected]>
Fix multiline x-string in a case assignment

214ffe30900b695d040c0dabcd008f8651e3a85a authored almost 3 years ago by hmdne <[email protected]>
Update UNRELEASED.md

8e3f1175ef900bd950d5f6441e13b3b7212341c6 authored almost 3 years ago by hmdne <[email protected]>
Revert "Fix defining multiple methods with the same block"

This reverts commit 3eacd508eb55daa34198330bf6820579428d845d.

787c6065ff6045c57aeb3c98e887c920fb1270c7 authored almost 3 years ago by hmdne <[email protected]>
Update the release date for v1.4.0.alpha1

9602ec806abc6830d1df2018fb11e6549896c0df authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2374 from opal/elia/doc-fixes

Docs & opal/platform fixes

24ef00edb15d3860260d869cfe839ee39ab2d8b7 authored almost 3 years ago by Elia Schito <[email protected]>
Declare opalminiracer as a global in stdlib/opal/miniracer

45d79a3ff1b44036b17e2225c5dc529bb446cece authored almost 3 years ago by Elia Schito <[email protected]>
Improve the readability of opal/platform

78978eb888bc7b7fddda5a25203371848d3764ac authored almost 3 years ago by Elia Schito <[email protected]>
Move the generic nodejs Process::Status implementation to corelib

Also remove requiring "native" which is not used here.

47da2296385876b1bdafc45faa32fa0c02c11b82 authored almost 3 years ago by Elia Schito <[email protected]>
Update UNRELEASED.md

45d2e8b4c6d280b3f493bd5ddd2974adc570e6ee authored almost 3 years ago by Elia Schito <[email protected]>
Move the bare-minimum nodejs config to nodejs/base

Also require nodejs/file so that IO.read and friends won't break.

56ab4c9eff3b759b3ab519e29b41215b1f2fb177 authored almost 3 years ago by Elia Schito <[email protected]>
Remove nodejs Kernel.node_require

It's been deprecated for a while.

ec43803c853fd08b2d21e7b12e0446bfb04e15a7 authored almost 3 years ago by Elia Schito <[email protected]>
Remove nodejs/irb

It's very outdated and not working, no need for a deprecation cycle.

fb62b2baabc85f30a84848ce81824c991c3a8d07 authored almost 3 years ago by Elia Schito <[email protected]>
Let opal-repl binaries just perform an exec toward `opal --repl`

3e57ab68bc6073294c877cade066e530227740cd authored almost 3 years ago by Elia Schito <[email protected]>
Update the Opal.add_stubs documentation

0989d2708f6baef8a0b987e9e3c74fc968bbbdd7 authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2373 from opal/hmdne/opal-14-release-work

Opal v1.4 alpha release work

7458d66b483188e6e2aad4691384541263ed50fe authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2347 from opal/hmdne/ruby31

Ruby 3.1 support branch

9d095c38e4f701cab7275d63e4ee6b5fc930ba72 authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2364 from opal/hmdne/fix-opalopal-indentation

Fix opalopal <<~END support.

b29b446d68ac1cd86aaed181825544b8c343ec54 authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2326 from opal/hmdne/opalinopal

Opal-in-Opal workshop

77e3c371dfa87cff0b508f6ae640e5695bbe7f38 authored almost 3 years ago by Elia Schito <[email protected]>
Update UNRELEASED.md

68f96487e555047101e66fb0d70fa3dff270cae7 authored almost 3 years ago by hmdne <[email protected]>
Update UNRELEASED.md

b5acc7b9a2464d94bf798ba0846197d0de2ff072 authored almost 3 years ago by hmdne <[email protected]>
Update UNRELEASED.md

b08a19bd5abff40143e1c57d92d07629a5792a07 authored almost 3 years ago by hmdne <[email protected]>
Update UNRELEASED.md and version

e21bb32603aedb2eeb59325276f3a06f70f29516 authored almost 3 years ago by hmdne <[email protected]>
Update UNRELEASED.md

b223c4d3b65eaa6e0055c19b30cfb84ba99975e0 authored almost 3 years ago by hmdne <[email protected]>
[bugfix] Make Opal.respond_to correctly handle classes where respond_to_missing? has been defined

b6a73e2bb2554ff40f8a33582e83e73967fb4f44 authored almost 3 years ago by hmdne <[email protected]>
Array#values_at to also support beginless/endless ranges

512d2f6781a06cf3dc8726af731c10305b8f6e39 authored almost 3 years ago by hmdne <[email protected]>
Kernel/BasicObject#inspect/p/pp improvements

ae70e59dd680ae27fe59b769ab3b133f2adb71bf authored almost 3 years ago by hmdne <[email protected]>
main#{public,private} to have a 3.1-compatible return value

216f4ac50d1efd848060647d101eeb4915098b3c authored almost 3 years ago by hmdne <[email protected]>
Move the filters we won't support for Ruby 3.1 to appropriate files

a9969de6c2a27b22d8a378995872e41f3f990e01 authored almost 3 years ago by hmdne <[email protected]>
File.dirname to support limit argument

493e678132e2e22858407dce6d207154da1a94a0 authored almost 3 years ago by hmdne <[email protected]>
Enumerable#sum to use Kahan summation algorithm

64d6895a7fb37fe02dbe0ce64edf13fc07b72ac4 authored almost 3 years ago by hmdne <[email protected]>
Large Enumerator rework commit.

* Separate Enumerator subclasses into separate files and autoload them.
* Introduce Enumerator::...

39c1e41836b502182d6cb97c0b27e8fdb13db8d1 authored almost 3 years ago by hmdne <[email protected]>
Switch to a Ruby 3.1 parser

3a97cd3f46e6e53b660796e1d81007bfa1e71cfd authored almost 3 years ago by hmdne <[email protected]>
Kernel#local_variables

4ea01f471e5be33f319de6dbc879fdd3105f73cc authored almost 3 years ago by hmdne <[email protected]>
Integer.try_convert

eb737e0060104a54fd7b47c765ab51d985be87a1 authored almost 3 years ago by hmdne <[email protected]>
Update parser dependency

303442344c2423464a7fb37989f79652cc7b352e authored almost 3 years ago by hmdne <[email protected]>
Class#{descendants,subclasses}

6f3620d1adfc06e6996a0d23cd2fa21d2283097a authored almost 3 years ago by hmdne <[email protected]>
UnboundMethod#bind_call

df3e9b677821460b3efadcffb4cb6785a9d3a8cc authored almost 3 years ago by hmdne <[email protected]>
Remove deprecated NIL, TRUE and FALSE constants, as Ruby 3.1 did

499b9afabd09b951ffd6767ec3bb6cb103a90b80 authored almost 3 years ago by hmdne <[email protected]>
Move Refinement to become its own class (as in 3.1)

cbab8163c047b52d3a7f4ef2d2f7ca58e2813270 authored almost 3 years ago by hmdne <[email protected]>
Enumerable modernization

* Enumerable#tally to support an optional hash argument for accumulation
* Enumerable#each_{cons...

5132e86a75068c719c9e0f905c3c1f78e0430b7e authored almost 3 years ago by hmdne <[email protected]>
MatchData#{match,match_length}

d36d2d8c9f0d9da8efa6e1821ff677223e9ebb84 authored almost 3 years ago by hmdne <[email protected]>
String#unpack{1,} to support `offset:` kwarg

ab9db77ba2da70f397b2364b364bc67bd62e02e8 authored almost 3 years ago by hmdne <[email protected]>
Correct an ArgumentError message to fix a few bugs

abb4044f8b56125aa84f577342736841b0593e7f authored almost 3 years ago by hmdne <[email protected]>
Set local variables for named captures

0f31a5acca763b8920478b69b8cef213c3bd961e authored almost 3 years ago by hmdne <[email protected]>
Remove not applicable filters

eb451df569ba219aa9ef3b7d0c0a8eecbb8fca69 authored almost 3 years ago by hmdne <[email protected]>
Module#{public,private,protected,module_function} to return arguments

034a136584a33e1bf74400bcf7c798e200b9ee36 authored almost 3 years ago by hmdne <[email protected]>
Move unsupported filters

378f118879513a78dac47a8827488b8aca8b6a80 authored almost 3 years ago by hmdne <[email protected]>
Update filters

c6b5003a1186a8765a73da93ee07b58ae9c8e320 authored almost 3 years ago by hmdne <[email protected]>
String#{strip,lstrip} to also remove NUL bytes

d4c7a1db66309f8343882c5ce216501c45ef6996 authored almost 3 years ago by hmdne <[email protected]>
Array#intersect?

962126b6cdca170eeff3c99fc8ec15e1c0907877 authored almost 3 years ago by hmdne <[email protected]>
Add filters to ruby31.rb - we will move them out once this PR is finished

b2f6667f321536cf8d8d4f3a3aff75dd4fc2b1ff authored almost 3 years ago by hmdne <[email protected]>
Struct#keyword_init?

610c74f73098cff283f9e22d31049ab209174c8a authored almost 3 years ago by hmdne <[email protected]>
Fix opalopal <<~END support.

* Fixes #2169
* Fixes #2363

Avoid using String#slice! in the dedenter and expect a new string f...

83eb4f96ae1658d5e50c33eab35a5211350a61e4 authored almost 3 years ago by hmdne <[email protected]>
Merge pull request #2293 from opal/hmdne/optimize-truthiness

Optimize truthiness/falsiness checks

f79df3a6a4a751839f7dc353699a72a2b49c2530 authored almost 3 years ago by Elia Schito <[email protected]>
Import Parser::Builders::Default#dedent_string & Parser::Lexer::Dedenter#dedent

They'll be patched in a following commit, this import is there just to
maintain a clean diff.

2dd6fe8b696982749e71f395af334e9004870214 authored almost 3 years ago by hmdne <[email protected]>
A rather large patch that makes at least a few interconnected changes

* Load corelib/main before corelib/error
* Correct an edge case where errors weren't readable at...

d8280e817cc26f3afd7eacb4dd440cf4e4870ba2 authored almost 3 years ago by hmdne <[email protected]>
Update filters and fix rubocop

a30c765634e6962db0cd907c0ac8b31aba0fc66c authored almost 3 years ago by hmdne <[email protected]>
optparse: Correct long arguments support

b0fa564bf8391f067906f724101088a7cb18cc05 authored almost 3 years ago by hmdne <[email protected]>
Make nodejs runner work in opalopal

75315147719b8864ef2e962679d9fab1c9c0b10f authored almost 3 years ago by hmdne <[email protected]>
Optparse&Shellwords - remaining issues + pass all tests

5d2d7d4e40298bdbf106233fd4b1292f1b124396 authored almost 3 years ago by hmdne <[email protected]>
nodejs: revamp file errors; a few new methods to File::Stat

9c0992b816af2439f9bc14a5fd2b8fc49a9857fc authored almost 3 years ago by hmdne <[email protected]>
Factor out opal-the-compiler requires to opal/requires

4da7e9cf8a1a1b3d3e04a2a172c3866e2f7a0d18 authored almost 3 years ago by hmdne <[email protected]>
Vendor-in optparse and shellwords

97cb1fb21beb18223fbdaeec8913cd5dfd15897c authored almost 3 years ago by hmdne <[email protected]>
boolean.rb & kernel.rb & basic_object.rb - Enable strict mode; ensure String can get a singleton class

4114fa912c1e1b7188d54066b35ca8afe005266c authored almost 3 years ago by hmdne <[email protected]>
Don't allocate a singleton class if it's not needed

4e12940eb268478a6c27e9882eded1db53b60af5 authored almost 3 years ago by hmdne <[email protected]>
Fix Marshal for boxed booleans

b4dd9245294ca69dc1c16393658a96a9d10eb115 authored almost 3 years ago by hmdne <[email protected]>
Merge pull request #2365 from opal/hmdne/generated-code-optimization-pt2

Second batch of generated code optimization

15e76b8d474b5ab65d3d0f95bfeb3ba12eb70a27 authored almost 3 years ago by Elia Schito <[email protected]>
Further improve Opal.truthy by fast-tracking nil and false

=== Files: benchmark-ips/bm_truthy.rb
bundle exec opal --dynamic-require ignore --missing-requir...

b1b28c5e52162aaa62884a06a1d5bb21eda7638e authored almost 3 years ago by Elia Schito <[email protected]>
Optimize $eqeq and $eqeqeq calls.

```
Comparison of the Asciidoctor (a real-life Opal application) compile and run:
...

d83d7400f49f8e255de9e10cf3fc277d195ef85b authored almost 3 years ago by hmdne <[email protected]>
Optimize $truthy and $not

This came from my cooperation with Elia on writing extensive benchmarks
for how to write the $tr...

acfc3dda8e79c9f74f571f311d3af1f64bc4f0c6 authored almost 3 years ago by hmdne <[email protected]>
Also optimize a != b and !b

The ! and != calls happen quite often. Let's also optimize them akin
to how we optimize == and =...

07f21f9fffa7583676d553ca57574956d13f80b6 authored almost 3 years ago by hmdne <[email protected]>
Explicitly define operator helpers

Are easier to read and still manageable with and editor supporting
multicaret changes.

bfbf1c62e828c824834fda3fe4d69bee3cfcc2c9 authored almost 3 years ago by Elia Schito <[email protected]>
Optimize the If node to facilitate case nodes better

Since we don't have a `case` node anymore, we can make an `if` node
generate code better.

This ...

6b778fb55e83306d5fe399e4e791cf29afacb09b authored almost 3 years ago by hmdne <[email protected]>
Optimize the args node outputs

This is very simple. I found a few places where we can make the
arguments handling boilerplate a...

b8c34354a39a066b293813a134c2f23617799085 authored almost 3 years ago by hmdne <[email protected]>
Don't generate $ret_or_ tmp values conditionally.

Sometimes we don't care about the return value except of if it's
truthy or falsy.

Let's conside...

3e4db4ef4b11a49829a249520f32ef97d73d8b67 authored almost 3 years ago by hmdne <[email protected]>
Don't generate $rb_plus-like helpers for every top, but convert them to become regular helpers

We used to generate helpers for $rb_plus, $rb_minus etc. for every top.
Now we generate them in ...

c511781bd2b874d89ca5fec51f949d638d9dbc49 authored almost 3 years ago by hmdne <[email protected]>
Eliminate falsy calls whenever possible

This may not be that important, but there was a `js_falsy` method
inside a compiler which isn't ...

a2ceefc989a5fce96ea50d17f14bdb8c80281fb9 authored almost 3 years ago by hmdne <[email protected]>
`$truthy('a'['$==']('b'))` is now shortened to `$eqeq('a', 'b')`.

Same with `===` -> `$eqeqeq`. This is so that we can safely cherry-pick case
node elimination. S...

147da7ce7029ddf264297768a5d278788a92656c authored almost 3 years ago by hmdne <[email protected]>
Case: free_tmp

This is a small patch, but as we free the temporary variables for the or
rewriter, we can also f...

94e3ef5734dd1b870db931227171189d2a5f505c authored almost 3 years ago by hmdne <[email protected]>
Eliminate case node with a rewriter.

This is a backport from an earlier pull request, but this time it makes
a lot of sense, because ...

f935a7455bdca59fe9ffa400d87027ebb9abdd06 authored almost 3 years ago by hmdne <[email protected]>
Update UNRELEASED.md

e6e41bd1058c5faf5c6f8dcd66c86a0c01e31c00 authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2372 from opal/elia/fix-io-puts

Fix io puts

2071900a7bae9af9a80f93894564ab890eb57cd4 authored almost 3 years ago by Elia Schito <[email protected]>
Fix & test IO#puts

Copied and adapted some specs from rubyspec as Benchmark IPS was
messing up some output when pri...

daecf447323a3319e109d522e3557c90691fe66b authored almost 3 years ago by Elia Schito <[email protected]>
Coerce paths given to File.absolute_path to Strings

Passing nil as the first argument was resulting in an obscure JS error.

e9e78d504adfa499b903f1a4b8bffa9cd1733e56 authored almost 3 years ago by Elia Schito <[email protected]>
Fix the ENV name in bin/opal-mspec

015ab5798f3c97d5ce1ce74b6bd609ade9ef403a authored almost 3 years ago by Elia Schito <[email protected]>
Update UNRELEASED.md

30a0d5f60b17a88b57651d3399176823800f56ab authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2371 from opal/elia/sort-aliases

Move aliases to the end of classes

90a7d0f9598f445b8eb8ff10697aef5be2c654c4 authored almost 3 years ago by Elia Schito <[email protected]>
Keep aliases at the end of classes

We had a loose policy in the corelib to keep method definitions
alphabetized, that doesn't work ...

5e5a33d5b2fabebafd4996cac056ac4b6bb43ced authored almost 3 years ago by Elia Schito <[email protected]>
Fix coertion for Array#drop

7c09dd5d7eb9d5a54d7b404fe071f88434e563bb authored almost 3 years ago by Elia Schito <[email protected]>
Merge pull request #2369 from opal/hmdne/chore

Spec updates chore

b21f23b2f50ac38cc5d9b4db433c675dc35dc974 authored almost 3 years ago by hmdne <[email protected]>
A bad test case for Chromium

6e008e3985cc0624eec617fc3081e767267fb325 authored almost 3 years ago by hmdne <[email protected]>
Remove unused filters

512c71ea90fa8332a466cebc28a2bb2b81169dc8 authored almost 3 years ago by hmdne <[email protected]>